summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_format_dialog.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
committerDavid Robillard <d@drobilla.net>2009-10-14 16:10:01 +0000
commitbb9cc45cd22af67ac275a5e73accbe14fee664d8 (patch)
treee52977d3eae6ff07b856088041a080a2fa3e5b79 /gtk2_ardour/export_format_dialog.h
parent8c4ce1e2ce35571aed5a686671431fdfffae7f8c (diff)
Strip trailing whitespace and fix other whitespace errors (e.g. space/tab mixing). Whitespace changes only.
Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/export_format_dialog.h')
-rw-r--r--gtk2_ardour/export_format_dialog.h122
1 files changed, 61 insertions, 61 deletions
diff --git a/gtk2_ardour/export_format_dialog.h b/gtk2_ardour/export_format_dialog.h
index acb561b06b..418b015d8c 100644
--- a/gtk2_ardour/export_format_dialog.h
+++ b/gtk2_ardour/export_format_dialog.h
@@ -57,9 +57,9 @@ class ExportFormatDialog : public ArdourDialog {
FormatPtr format;
ARDOUR::ExportFormatManager manager;
-
+
XMLNode & original_state;
-
+
ARDOUR::AnyTime silence_start;
ARDOUR::AnyTime silence_end;
@@ -67,7 +67,7 @@ class ExportFormatDialog : public ArdourDialog {
void revert ();
/*** Init functions ***/
-
+
void load_state (FormatPtr spec);
void init_format_table ();
void init_encoding_option_widgets ();
@@ -75,71 +75,71 @@ class ExportFormatDialog : public ArdourDialog {
/*** Interactive selections ***/
/* These are connected to signals from GUI components, and should change element states */
-
+
void update_compatibility_selection (Glib::ustring const & path);
void update_quality_selection ();
void update_format_selection ();
void update_sample_rate_selection ();
void update_sample_format_selection ();
void update_dither_type_selection ();
-
+
template<typename ColsT>
void update_selection (Glib::RefPtr<Gtk::ListStore> & list, Gtk::TreeView & view, ColsT & cols);
-
+
/* These are connected to signals from elements, and should only update the gui */
-
+
void change_compatibility_selection (bool select, WeakCompatPtr compat);
-
+
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);
-
+
template<typename T, typename ColsT>
void change_selection (bool select, boost::weak_ptr<T> w_ptr, Glib::RefPtr<Gtk::ListStore> & list, Gtk::TreeView & view, ColsT & cols);
-
+
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);
-
+
template<typename T, typename ColsT>
void change_compatibility (bool compatibility, boost::weak_ptr<T> w_ptr, Glib::RefPtr<Gtk::ListStore> & list, ColsT & cols,
Glib::ustring const & c_incompatible = "red", Glib::ustring const & c_compatible = "white");
-
+
uint32_t applying_changes_from_engine;
-
+
/*** Non-interactive selections ***/
-
+
void update_name ();
-
+
void update_trim_start_selection ();
void update_trim_end_selection ();
-
+
void update_normalize_selection ();
void update_silence_start_selection ();
void update_silence_end_selection ();
-
+
void update_clock (AudioClock & clock, ARDOUR::AnyTime const & time);
void update_time (ARDOUR::AnyTime & time, AudioClock const & clock);
-
+
void update_src_quality_selection ();
void update_tagging_selection ();
-
+
/*** Encoding options */
-
+
void change_encoding_options (ARDOUR::ExportFormatManager::FormatPtr ptr);
-
+
void empty_encoding_option_table ();
void remove_widget (Gtk::Widget & to_remove, Gtk::Container * remove_from);
-
+
void show_linear_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatLinear> ptr);
void show_ogg_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatOggVorbis> ptr);
void show_flac_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatFLAC> ptr);
void show_bwf_enconding_options (boost::shared_ptr<ARDOUR::ExportFormatBWF> ptr);
-
+
void fill_sample_format_lists (boost::shared_ptr<ARDOUR::HasSampleFormat> ptr);
/*** GUI components ***/
@@ -150,159 +150,159 @@ class ExportFormatDialog : public ArdourDialog {
Gtk::Label name_label;
Gtk::Entry name_entry;
-
+
/* Normalize */
-
+
Gtk::HBox normalize_hbox;
Gtk::CheckButton normalize_checkbox;
Gtk::SpinButton normalize_spinbutton;
Gtk::Adjustment normalize_adjustment;
Gtk::Label normalize_db_label;
-
+
/* Silence */
-
+
Gtk::Table silence_table;
-
+
Gtk::CheckButton trim_start_checkbox;
Gtk::CheckButton silence_start_checkbox;
AudioClock silence_start_clock;
-
+
Gtk::CheckButton trim_end_checkbox;
Gtk::CheckButton silence_end_checkbox;
AudioClock silence_end_clock;
-
+
/* Format table */
-
+
struct CompatibilityCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::CompatPtr> ptr;
Gtk::TreeModelColumn<bool> selected;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
CompatibilityCols () { add(ptr); add(selected); add(label); }
};
CompatibilityCols compatibility_cols;
Glib::RefPtr<Gtk::ListStore> compatibility_list;
-
+
/* Hack to disallow row selection in compatibilities */
void prohibit_compatibility_selection ();
sigc::connection compatibility_select_connection;
-
+
struct QualityCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::QualityPtr> ptr;
Gtk::TreeModelColumn<Glib::ustring> color;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
QualityCols () { add(ptr); add(color); add(label); }
};
QualityCols quality_cols;
Glib::RefPtr<Gtk::ListStore> quality_list;
-
+
struct FormatCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::FormatPtr> ptr;
Gtk::TreeModelColumn<Glib::ustring> color;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
FormatCols () { add(ptr); add(color); add(label); }
- };
+ };
FormatCols format_cols;
Glib::RefPtr<Gtk::ListStore> format_list;
-
+
struct SampleRateCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<ARDOUR::ExportFormatManager::SampleRatePtr> ptr;
Gtk::TreeModelColumn<Glib::ustring> color;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
SampleRateCols () { add(ptr); add(color); add(label); }
};
SampleRateCols sample_rate_cols;
Glib::RefPtr<Gtk::ListStore> sample_rate_list;
-
+
Gtk::Table format_table;
-
+
Gtk::Label compatibility_label;
Gtk::Label quality_label;
Gtk::Label format_label;
Gtk::Label sample_rate_label;
-
+
Gtk::TreeView compatibility_view;
Gtk::TreeView quality_view;
Gtk::TreeView format_view;
Gtk::TreeView sample_rate_view;
-
+
/* SRC quality combo */
-
+
struct SRCQualityCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<ARDOUR::ExportFormatBase::SRCQuality> id;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
SRCQualityCols () { add(id); add(label); }
};
SRCQualityCols src_quality_cols;
Glib::RefPtr<Gtk::ListStore> src_quality_list;
-
+
Gtk::Label src_quality_label;
Gtk::ComboBox src_quality_combo;
/* Common encoding option components */
-
+
Gtk::VBox encoding_options_vbox;
Gtk::Label encoding_options_label;
-
+
Gtk::Table encoding_options_table;
/* Other common components */
-
+
Gtk::Button * revert_button;
Gtk::Button * close_button;
-
+
/*** Changing encoding option stuff ***/
-
+
/* Linear */
-
+
struct SampleFormatCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::SampleFormatPtr> ptr;
Gtk::TreeModelColumn<Glib::ustring> color;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
SampleFormatCols () { add(ptr); add(color); add(label); }
};
SampleFormatCols sample_format_cols;
Glib::RefPtr<Gtk::ListStore> sample_format_list;
-
+
struct DitherTypeCols : public Gtk::TreeModelColumnRecord
{
public:
Gtk::TreeModelColumn<ARDOUR::HasSampleFormat::DitherTypePtr> ptr;
Gtk::TreeModelColumn<Glib::ustring> color;
Gtk::TreeModelColumn<Glib::ustring> label;
-
+
DitherTypeCols () { add(ptr); add (color); add(label); }
};
DitherTypeCols dither_type_cols;
Glib::RefPtr<Gtk::ListStore> dither_type_list;
-
+
Gtk::Label sample_format_label;
Gtk::Label dither_label;
-
+
Gtk::TreeView sample_format_view;
Gtk::TreeView dither_type_view;
-
+
/* Tagging */
-
+
Gtk::CheckButton tag_checkbox;
-
+
};
#endif /* __export_format_dialog_h__ */