Update export format when 'upload to soundcloud' changes.

This commit is contained in:
Colin Fletcher 2013-10-07 20:22:56 +01:00
parent a3465ff5d3
commit 8b9a1fae6a
4 changed files with 14 additions and 0 deletions

View 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);

View 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;

View 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);

View 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);