Remove Soundcloud upload from export format specification
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Wed, 21 May 2014 16:52:42 +0000 (17:52 +0100)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Fri, 23 May 2014 16:42:35 +0000 (17:42 +0100)
Remove the Soundcloud upload property from export formats - it doesn't
belong there, since it's a thing which can apply (or not) to any format
preset.

gtk2_ardour/export_format_dialog.cc
gtk2_ardour/export_format_dialog.h
libs/ardour/ardour/export_format_specification.h
libs/ardour/export_format_manager.cc
libs/ardour/export_format_specification.cc

index 69c494e09043528f50347c2b0b0f64ad32d1a863..b4d266c43ea25ef39453ce7f336d12010c19c61f 100644 (file)
@@ -51,7 +51,6 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
   silence_end_checkbox (_("Add silence at end:")),
   silence_end_clock ("silence_end", true, "", true, false, true),
 
-  upload_checkbox(_("Upload to Soundcloud")),
   command_label(_("Command to run post-export\n(%f=full path & filename, %d=directory, %b=basename, %u=username, %p=password):")),
 
   format_table (3, 4),
@@ -116,7 +115,6 @@ ExportFormatDialog::ExportFormatDialog (FormatPtr format, bool new_dialog) :
        silence_table.attach (silence_end_checkbox, 1, 2, 2, 3);
        silence_table.attach (silence_end_clock, 2, 3, 2, 3);
 
-       get_vbox()->pack_start (upload_checkbox, false, false);
        get_vbox()->pack_start (command_label, false, false);
        get_vbox()->pack_start (command_entry, false, false);
 
@@ -149,7 +147,6 @@ 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));
        command_entry.signal_changed().connect (sigc::mem_fun (*this, &ExportFormatDialog::update_command));
 
        cue_toc_vbox.pack_start (with_cue, false, false);
@@ -305,7 +302,6 @@ ExportFormatDialog::load_state (FormatPtr spec)
        }
 
        tag_checkbox.set_active (spec->tag());
-       upload_checkbox.set_active (spec->upload());
        command_entry.set_text (spec->command());
 }
 
@@ -728,11 +724,6 @@ ExportFormatDialog::update_with_toc ()
        manager.select_with_toc (with_toc.get_active());
 }
 
-void
-ExportFormatDialog::update_upload ()
-{
-       manager.select_upload (upload_checkbox.get_active());
-}
 
 void
 ExportFormatDialog::update_command ()
index 6b92625e7a4668503526e2b45effd6e6896b8be9..8a3211db233debd8b25d53da7c4fa2671e3f28fd 100644 (file)
@@ -179,9 +179,8 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
        Gtk::CheckButton silence_end_checkbox;
        AudioClock       silence_end_clock;
 
-       /* Upload */
+       /* Post-export hook */
        
-       Gtk::CheckButton upload_checkbox;
        Gtk::Label       command_label;
        Gtk::Entry       command_entry;
 
@@ -317,7 +316,6 @@ class ExportFormatDialog : public ArdourDialog, public PBD::ScopedConnectionList
 
        void update_with_toc ();
        void update_with_cue ();
-       void update_upload ();
        void update_command ();
 
        Gtk::TreeView sample_format_view;
index d41fe3e97ac8edf756394a42208b2966109f520d..26d28648a2e3dd7672bec750188aab3a26414837 100644 (file)
@@ -96,7 +96,6 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase {
        void set_tag (bool tag_it) { _tag = tag_it; }
        void set_with_cue (bool yn) { _with_cue = yn; }
        void set_with_toc (bool yn) { _with_toc = yn; }
-       void set_upload (bool yn) { _upload = yn; }
        void set_command (std::string command) { _command = command; }
 
        void set_silence_beginning (AnyTime const & value) { _silence_beginning = value; }
@@ -127,7 +126,6 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase {
        float normalize_target () const { return _normalize_target; }
        bool with_toc() const { return _with_toc; }
        bool with_cue() const { return _with_cue; }
-       bool upload() const { return _upload; }
        std::string command() const { return _command; }
 
        bool tag () const { return _tag && supports_tagging; }
@@ -178,7 +176,6 @@ class LIBARDOUR_API ExportFormatSpecification : public ExportFormatBase {
        float           _normalize_target;
        bool            _with_toc;
        bool            _with_cue;
-       bool            _upload;
        std::string     _command;
 
        /* serialization helpers */
index 3ee940ffb6367ff50c5ddf2e7d6dda521deda007..04cfa76677720d8028891000f188aa226565f1a0 100644 (file)
@@ -293,12 +293,6 @@ ExportFormatManager::select_with_toc (bool value)
        check_for_description_change ();
 }
 
-void
-ExportFormatManager::select_upload (bool value)
-{
-       current_selection->set_upload (value);
-       check_for_description_change ();
-}
 
 void
 ExportFormatManager::set_command (std::string command)
index 8b921519f71fd9ccf60ab44f4651d85f93f166db..5191146790c815b4306811c69f77c02c2ac5d15d 100644 (file)
@@ -170,7 +170,6 @@ ExportFormatSpecification::ExportFormatSpecification (Session & s)
        , _normalize_target (1.0)
        , _with_toc (false)
        , _with_cue (false)
-       , _upload (false)
        , _command ("")
 {
        format_ids.insert (F_None);
@@ -246,7 +245,6 @@ ExportFormatSpecification::get_state ()
        root->add_property ("id", _id.to_s());
        root->add_property ("with-cue", _with_cue ? "true" : "false");
        root->add_property ("with-toc", _with_toc ? "true" : "false");
-       root->add_property ("upload", _upload ? "true" : "false");
        root->add_property ("command", _command);
 
        node = root->add_child ("Encoding");
@@ -325,11 +323,6 @@ ExportFormatSpecification::set_state (const XMLNode & root)
                _with_toc = false;
        }
        
-       if ((prop = root.property ("upload"))) {
-               _upload = string_is_affirmative (prop->value());
-       } else {
-               _upload = false;
-       }
        
        if ((prop = root.property ("command"))) {
                _command = prop->value();
@@ -606,10 +599,6 @@ ExportFormatSpecification::description (bool include_name)
                components.push_back ("CUE");
        }
 
-       if (_upload) {
-               components.push_back ("Upload");
-       }
-
        if (!_command.empty()) {
                components.push_back ("+");
        }