Update export format when 'upload to soundcloud' changes.
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Mon, 7 Oct 2013 19:22:56 +0000 (20:22 +0100)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Mon, 7 Oct 2013 19:22:56 +0000 (20:22 +0100)
gtk2_ardour/export_format_dialog.cc
gtk2_ardour/export_format_dialog.h
libs/ardour/ardour/export_format_manager.h
libs/ardour/export_format_manager.cc

index 00a9466cb9f807ab28337ff187308b95c90ec6e1..62d98c5cd29831070ed8e0694cc657802eefc86b 100644 (file)
@@ -145,6 +145,7 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
 
        with_cue.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_with_cue));
        with_toc.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_with_toc));
+       upload_checkbox.signal_toggled().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_upload));
 
        cue_toc_vbox.pack_start (with_cue, false, false);
        cue_toc_vbox.pack_start (with_toc, false, false);
@@ -722,6 +723,11 @@ ExportFormatDialog::update_with_toc ()
 }
 
 void
+ExportFormatDialog::update_upload ()
+{
+       manager.select_upload (upload_checkbox.get_active());
+}
+
 ExportFormatDialog::update_description()
 {
        std::string text = ": " + format->description(false);
index 8e4b239ea0390ab512fcfe2629b10fb1a90ff5ac..96405c33dd8f8e7580cdd859f213b282573a730a 100644 (file)
@@ -311,6 +311,7 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        void update_with_toc ();
        void update_with_cue ();
+       void update_upload ();
 
        Gtk::TreeView sample_format_view;
        Gtk::TreeView dither_type_view;
index 2b5d0ad804181e25d96f4f02edea0182951691b0..4b4e43ae9c58d9f2bffbea921e5f9d44ee9240b2 100644 (file)
@@ -100,6 +100,7 @@ class ExportFormatManager : public PBD::ScopedConnectionList
 
        void select_with_cue (bool);
        void select_with_toc (bool);
+       void select_upload (bool);
        void select_src_quality (ExportFormatBase::SRCQuality value);
        void select_trim_beginning (bool value);
        void select_silence_beginning (AnyTime const & time);
index 890623c114b0f5a562aa28705f3e225b58dd94ea..c8bd0c0aa912b012eeda7fbdf2e1e70abcb7288a 100644 (file)
@@ -294,6 +294,12 @@ ExportFormatManager::select_with_toc (bool value)
 }
 
 void
+ExportFormatManager::select_upload (bool value)
+{
+       current_selection->set_upload (value);
+       check_for_description_change ();
+}
+
 ExportFormatManager::select_trim_beginning (bool value)
 {
        current_selection->set_trim_beginning (value);