2008-09-17 08:56:00 -04:00
|
|
|
/*
|
2019-08-02 17:26:43 -04:00
|
|
|
* Copyright (C) 2008-2013 Paul Davis <paul@linuxaudiosystems.com>
|
|
|
|
* Copyright (C) 2009 David Robillard <d@drobilla.net>
|
|
|
|
* Copyright (C) 2011-2012 Sakari Bergen <sakari.bergen@beatwaves.net>
|
|
|
|
* Copyright (C) 2013-2014 Colin Fletcher <colin.m.fletcher@googlemail.com>
|
|
|
|
* Copyright (C) 2015-2018 Robin Gareus <robin@gareus.org>
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2008-09-17 08:56:00 -04:00
|
|
|
|
|
|
|
#ifndef __export_format_dialog_h__
|
|
|
|
#define __export_format_dialog_h__
|
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "ardour/types.h"
|
|
|
|
#include "ardour/export_format_manager.h"
|
|
|
|
#include "ardour/export_format_compatibility.h"
|
|
|
|
#include "ardour/export_formats.h"
|
2008-09-17 08:56:00 -04:00
|
|
|
|
2009-02-25 13:26:51 -05:00
|
|
|
#include "pbd/xml++.h"
|
2009-12-19 15:26:31 -05:00
|
|
|
#include "pbd/signals.h"
|
2008-09-17 08:56:00 -04:00
|
|
|
|
|
|
|
#include "ardour_dialog.h"
|
|
|
|
#include "audio_clock.h"
|
|
|
|
|
2013-07-11 15:29:28 -04:00
|
|
|
#ifdef interface
|
|
|
|
#undef interface
|
|
|
|
#endif
|
|
|
|
|
2017-07-16 21:48:18 -04:00
|
|
|
#include <gtkmm/adjustment.h>
|
|
|
|
#include <gtkmm/box.h>
|
|
|
|
#include <gtkmm/checkbutton.h>
|
|
|
|
#include <gtkmm/combobox.h>
|
2021-04-08 15:21:33 -04:00
|
|
|
#include <gtkmm/comboboxtext.h>
|
2017-07-16 21:48:18 -04:00
|
|
|
#include <gtkmm/entry.h>
|
|
|
|
#include <gtkmm/label.h>
|
|
|
|
#include <gtkmm/liststore.h>
|
|
|
|
#include <gtkmm/radiobutton.h>
|
|
|
|
#include <gtkmm/spinbutton.h>
|
|
|
|
#include <gtkmm/table.h>
|
|
|
|
#include <gtkmm/treeview.h>
|
2008-09-17 08:56:00 -04:00
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
|
|
|
|
{
|
|
|
|
private:
|
2008-09-17 08:56:00 -04:00
|
|
|
|
2011-06-11 10:14:24 -04:00
|
|
|
typedef ARDOUR::WeakExportFormatCompatibilityPtr WeakCompatPtr;
|
|
|
|
typedef ARDOUR::WeakExportFormatPtr WeakFormatPtr;
|
2008-09-17 08:56:00 -04:00
|
|
|
typedef ARDOUR::ExportFormatManager::WeakQualityPtr WeakQualityPtr;
|
|
|
|
typedef ARDOUR::ExportFormatManager::WeakSampleRatePtr WeakSampleRatePtr;
|
|
|
|
typedef ARDOUR::ExportFormatManager::WeakSampleFormatPtr WeakSampleFormatPtr;
|
|
|
|
typedef ARDOUR::ExportFormatManager::WeakDitherTypePtr WeakDitherTypePtr;
|
|
|
|
|
2023-02-16 18:33:28 -05:00
|
|
|
typedef std::shared_ptr<ARDOUR::ExportFormatSpecification> FormatPtr;
|
2008-09-17 08:56:00 -04:00
|
|
|
|
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2008-09-17 08:56:00 -04:00
|
|
|
|
|
|
|
explicit ExportFormatDialog (FormatPtr format, bool new_dialog = false);
|
|
|
|
~ExportFormatDialog ();
|
|
|
|
|
|
|
|
void set_session (ARDOUR::Session* s);
|
|
|
|
|
2017-07-01 15:11:14 -04:00
|
|
|
private:
|
2008-09-17 08:56:00 -04:00
|
|
|
|
|
|
|
FormatPtr format;
|
|
|
|
ARDOUR::ExportFormatManager manager;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
XMLNode & original_state;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
ARDOUR::AnyTime silence_start;
|
|
|
|
ARDOUR::AnyTime silence_end;
|
|
|
|
|
|
|
|
void end_dialog ();
|
|
|
|
void revert ();
|
|
|
|
|
|
|
|
/*** Init functions ***/
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void load_state (FormatPtr spec);
|
|
|
|
void init_format_table ();
|
|
|
|
void init_encoding_option_widgets ();
|
|
|
|
|
|
|
|
/*** Interactive selections ***/
|
|
|
|
|
|
|
|
/* These are connected to signals from GUI components, and should change element states */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2010-09-14 12:51:02 -04:00
|
|
|
void update_compatibility_selection (std::string const & path);
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_quality_selection ();
|
|
|
|
void update_format_selection ();
|
|
|
|
void update_sample_rate_selection ();
|
|
|
|
void update_sample_format_selection ();
|
|
|
|
void update_dither_type_selection ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
template<typename ColsT>
|
|
|
|
void update_selection (Glib::RefPtr<Gtk::ListStore> & list, Gtk::TreeView & view, ColsT & cols);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* These are connected to signals from elements, and should only update the gui */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void change_compatibility_selection (bool select, WeakCompatPtr compat);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void change_quality_selection (bool select, WeakQualityPtr quality);
|
|
|
|
void change_format_selection (bool select, WeakFormatPtr format);
|
|
|
|
void change_sample_rate_selection (bool select, WeakSampleRatePtr rate);
|
|
|
|
void change_sample_format_selection (bool select, WeakSampleFormatPtr format);
|
|
|
|
void change_dither_type_selection (bool select, WeakDitherTypePtr type);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
template<typename T, typename ColsT>
|
2023-02-16 18:33:28 -05:00
|
|
|
void change_selection (bool select, std::weak_ptr<T> w_ptr, Glib::RefPtr<Gtk::ListStore> & list, Gtk::TreeView & view, ColsT & cols);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void change_quality_compatibility (bool compatibility, WeakQualityPtr quality);
|
|
|
|
void change_format_compatibility (bool compatibility, WeakFormatPtr format);
|
|
|
|
void change_sample_rate_compatibility (bool compatibility, WeakSampleRatePtr rate);
|
|
|
|
void change_sample_format_compatibility (bool compatibility, WeakSampleFormatPtr format);
|
|
|
|
void change_dither_type_compatibility (bool compatibility, WeakDitherTypePtr type);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
template<typename T, typename ColsT>
|
2023-02-16 18:33:28 -05:00
|
|
|
void change_compatibility (bool compatibility, std::weak_ptr<T> w_ptr, Glib::RefPtr<Gtk::ListStore> & list, ColsT & cols,
|
2010-09-14 12:51:02 -04:00
|
|
|
std::string const & c_incompatible = "red", std::string const & c_compatible = "white");
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2012-06-24 07:36:33 -04:00
|
|
|
void update_description();
|
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
uint32_t applying_changes_from_engine;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/*** Non-interactive selections ***/
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_name ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_trim_start_selection ();
|
|
|
|
void update_trim_end_selection ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_normalize_selection ();
|
2016-05-02 09:43:22 -04:00
|
|
|
void update_normalize_sensitivity ();
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_silence_start_selection ();
|
|
|
|
void update_silence_end_selection ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_clock (AudioClock & clock, ARDOUR::AnyTime const & time);
|
|
|
|
void update_time (ARDOUR::AnyTime & time, AudioClock const & clock);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2020-06-04 21:10:20 -04:00
|
|
|
/* SRC, codec, etc */
|
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_src_quality_selection ();
|
2018-11-19 17:45:26 -05:00
|
|
|
void update_codec_quality_selection ();
|
2008-09-17 08:56:00 -04:00
|
|
|
void update_tagging_selection ();
|
2018-11-21 17:21:52 -05:00
|
|
|
void set_codec_quality_selection ();
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2020-06-04 21:10:20 -04:00
|
|
|
void update_demo_noise_selection ();
|
|
|
|
void update_demo_noise_sensitivity ();
|
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/*** Encoding options */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2011-06-11 10:14:24 -04:00
|
|
|
void change_encoding_options (ARDOUR::ExportFormatPtr ptr);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
void empty_encoding_option_table ();
|
|
|
|
void remove_widget (Gtk::Widget & to_remove, Gtk::Container * remove_from);
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2023-02-16 18:33:28 -05:00
|
|
|
void show_linear_enconding_options (std::shared_ptr<ARDOUR::ExportFormatLinear> ptr);
|
|
|
|
void show_ogg_enconding_options (std::shared_ptr<ARDOUR::ExportFormatOggVorbis> ptr);
|
|
|
|
void show_flac_enconding_options (std::shared_ptr<ARDOUR::ExportFormatFLAC> ptr);
|
|
|
|
void show_bwf_enconding_options (std::shared_ptr<ARDOUR::ExportFormatBWF> ptr);
|
|
|
|
void show_opus_enconding_options (std::shared_ptr<ARDOUR::ExportFormatOggOpus> ptr);
|
|
|
|
void show_mpeg_enconding_options (std::shared_ptr<ARDOUR::ExportFormatMPEG> ptr);
|
|
|
|
void show_ffmpeg_enconding_options (std::shared_ptr<ARDOUR::ExportFormatFFMPEG> ptr);
|
|
|
|
|
|
|
|
void fill_sample_format_lists (std::shared_ptr<ARDOUR::HasSampleFormat> ptr);
|
|
|
|
void fill_codec_quality_lists (std::shared_ptr<ARDOUR::HasCodecQuality> ptr);
|
|
|
|
void fill_sample_rate_lists (std::shared_ptr<ARDOUR::ExportFormat> ptr);
|
2008-09-17 08:56:00 -04:00
|
|
|
|
|
|
|
/*** GUI components ***/
|
|
|
|
|
|
|
|
/* Name, new and remove */
|
|
|
|
|
|
|
|
Gtk::HBox name_hbox;
|
|
|
|
|
|
|
|
Gtk::Label name_label;
|
|
|
|
Gtk::Entry name_entry;
|
2012-06-24 07:36:33 -04:00
|
|
|
Gtk::Label name_generated_part;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* Normalize */
|
2021-04-08 15:21:33 -04:00
|
|
|
Gtk::Table normalize_table;
|
|
|
|
Gtk::CheckButton normalize_checkbox;
|
|
|
|
Gtk::RadioButton normalize_peak_rb;
|
|
|
|
Gtk::RadioButton normalize_loudness_rb;
|
|
|
|
Gtk::ComboBoxText normalize_tp_limiter;
|
|
|
|
Gtk::SpinButton normalize_dbfs_spinbutton;
|
|
|
|
Gtk::Adjustment normalize_dbfs_adjustment;
|
|
|
|
Gtk::SpinButton normalize_lufs_spinbutton;
|
|
|
|
Gtk::Adjustment normalize_lufs_adjustment;
|
|
|
|
Gtk::SpinButton normalize_dbtp_spinbutton;
|
|
|
|
Gtk::Adjustment normalize_dbtp_adjustment;
|
|
|
|
Gtk::Label normalize_dbfs_label;
|
|
|
|
Gtk::Label normalize_lufs_label;
|
|
|
|
Gtk::Label normalize_dbtp_label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* Silence */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::Table silence_table;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::CheckButton trim_start_checkbox;
|
|
|
|
Gtk::CheckButton silence_start_checkbox;
|
|
|
|
AudioClock silence_start_clock;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::CheckButton trim_end_checkbox;
|
|
|
|
Gtk::CheckButton silence_end_checkbox;
|
|
|
|
AudioClock silence_end_clock;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2014-05-21 12:52:42 -04:00
|
|
|
/* Post-export hook */
|
2015-10-05 10:17:49 -04:00
|
|
|
|
2020-11-18 13:26:32 -05:00
|
|
|
Gtk::VBox command_box;
|
2013-10-07 15:28:13 -04:00
|
|
|
Gtk::Label command_label;
|
|
|
|
Gtk::Entry command_entry;
|
2013-10-07 09:44:35 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* Format table */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
struct CompatibilityCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2011-06-11 10:14:24 -04:00
|
|
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatCompatibilityPtr> ptr;
|
|
|
|
Gtk::TreeModelColumn<bool> selected;
|
2010-09-14 12:51:02 -04:00
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
CompatibilityCols () { add(ptr); add(selected); add(label); }
|
|
|
|
};
|
|
|
|
CompatibilityCols compatibility_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> compatibility_list;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* Hack to disallow row selection in compatibilities */
|
|
|
|
void prohibit_compatibility_selection ();
|
|
|
|
sigc::connection compatibility_select_connection;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
struct QualityCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::QualityPtr> ptr;
|
2010-09-14 12:51:02 -04:00
|
|
|
Gtk::TreeModelColumn<std::string> color;
|
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
QualityCols () { add(ptr); add(color); add(label); }
|
|
|
|
};
|
|
|
|
QualityCols quality_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> quality_list;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
struct FormatCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2011-06-11 10:14:24 -04:00
|
|
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatPtr> ptr;
|
|
|
|
Gtk::TreeModelColumn<std::string> color;
|
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
FormatCols () { add(ptr); add(color); add(label); }
|
2009-10-14 12:10:01 -04:00
|
|
|
};
|
2008-09-17 08:56:00 -04:00
|
|
|
FormatCols format_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> format_list;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
struct SampleRateCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::SampleRatePtr> ptr;
|
2010-09-14 12:51:02 -04:00
|
|
|
Gtk::TreeModelColumn<std::string> color;
|
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
SampleRateCols () { add(ptr); add(color); add(label); }
|
|
|
|
};
|
|
|
|
SampleRateCols sample_rate_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> sample_rate_list;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::Table format_table;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::Label compatibility_label;
|
|
|
|
Gtk::Label quality_label;
|
|
|
|
Gtk::Label format_label;
|
|
|
|
Gtk::Label sample_rate_label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::TreeView compatibility_view;
|
|
|
|
Gtk::TreeView quality_view;
|
|
|
|
Gtk::TreeView format_view;
|
|
|
|
Gtk::TreeView sample_rate_view;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* SRC quality combo */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
struct SRCQualityCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::TreeModelColumn<ARDOUR::ExportFormatBase::SRCQuality> id;
|
2010-09-14 12:51:02 -04:00
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
SRCQualityCols () { add(id); add(label); }
|
|
|
|
};
|
|
|
|
SRCQualityCols src_quality_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> src_quality_list;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2020-11-18 13:26:32 -05:00
|
|
|
Gtk::HBox src_quality_box;
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::Label src_quality_label;
|
|
|
|
Gtk::ComboBox src_quality_combo;
|
|
|
|
|
2020-06-04 21:10:20 -04:00
|
|
|
/* Watermark */
|
|
|
|
|
|
|
|
struct DemoNoiseCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
|
|
|
Gtk::TreeModelColumn<int> interval;
|
|
|
|
Gtk::TreeModelColumn<int> duration;
|
|
|
|
|
|
|
|
DemoNoiseCols () {
|
|
|
|
add(label);
|
|
|
|
add(interval);
|
|
|
|
add(duration);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
DemoNoiseCols demo_noise_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> demo_noise_list;
|
|
|
|
|
|
|
|
Gtk::Table watermark_options_table;
|
|
|
|
|
|
|
|
Gtk::Label watermark_heading;
|
|
|
|
Gtk::Label demo_noise_mode_label;
|
|
|
|
Gtk::Label demo_noise_level_label;
|
|
|
|
Gtk::Label demo_noise_dbfs_unit;
|
|
|
|
|
|
|
|
Gtk::ComboBox demo_noise_combo;
|
|
|
|
Gtk::Adjustment demo_noise_dbfs_adjustment;
|
|
|
|
Gtk::SpinButton demo_noise_dbfs_spinbutton;
|
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* Common encoding option components */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::VBox encoding_options_vbox;
|
|
|
|
Gtk::Label encoding_options_label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::Table encoding_options_table;
|
|
|
|
|
|
|
|
/* Other common components */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::Button * revert_button;
|
|
|
|
Gtk::Button * close_button;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/*** Changing encoding option stuff ***/
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* Linear */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
struct SampleFormatCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::SampleFormatPtr> ptr;
|
2010-09-14 12:51:02 -04:00
|
|
|
Gtk::TreeModelColumn<std::string> color;
|
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
SampleFormatCols () { add(ptr); add(color); add(label); }
|
|
|
|
};
|
|
|
|
SampleFormatCols sample_format_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> sample_format_list;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
struct DitherTypeCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
2017-07-01 15:11:14 -04:00
|
|
|
public:
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::DitherTypePtr> ptr;
|
2010-09-14 12:51:02 -04:00
|
|
|
Gtk::TreeModelColumn<std::string> color;
|
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
DitherTypeCols () { add(ptr); add (color); add(label); }
|
|
|
|
};
|
|
|
|
DitherTypeCols dither_type_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> dither_type_list;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::Label sample_format_label;
|
|
|
|
Gtk::Label dither_label;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2012-01-18 16:56:06 -05:00
|
|
|
Gtk::CheckButton with_cue;
|
|
|
|
Gtk::CheckButton with_toc;
|
2015-04-12 08:26:39 -04:00
|
|
|
Gtk::CheckButton with_mp4chaps;
|
2012-01-18 16:56:06 -05:00
|
|
|
|
2020-11-18 13:26:32 -05:00
|
|
|
Gtk::Table metadata_table;
|
2012-01-18 16:56:06 -05:00
|
|
|
|
|
|
|
void update_with_toc ();
|
|
|
|
void update_with_cue ();
|
2015-04-12 08:26:39 -04:00
|
|
|
void update_with_mp4chaps();
|
2013-10-07 15:28:13 -04:00
|
|
|
void update_command ();
|
2012-01-18 16:56:06 -05:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::TreeView sample_format_view;
|
|
|
|
Gtk::TreeView dither_type_view;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2018-11-19 17:45:26 -05:00
|
|
|
|
|
|
|
/* codec quality combo */
|
|
|
|
|
|
|
|
struct CodecQualityCols : public Gtk::TreeModelColumnRecord
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Gtk::TreeModelColumn<int> quality;
|
|
|
|
Gtk::TreeModelColumn<std::string> label;
|
|
|
|
|
|
|
|
CodecQualityCols () { add(quality); add(label); }
|
|
|
|
};
|
|
|
|
CodecQualityCols codec_quality_cols;
|
|
|
|
Glib::RefPtr<Gtk::ListStore> codec_quality_list;
|
|
|
|
|
|
|
|
Gtk::ComboBox codec_quality_combo;
|
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
/* Tagging */
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
Gtk::CheckButton tag_checkbox;
|
2009-10-14 12:10:01 -04:00
|
|
|
|
2008-09-17 08:56:00 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* __export_format_dialog_h__ */
|