summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_file_notebook.h
diff options
context:
space:
mode:
authorColin Fletcher <colin.m.fletcher@googlemail.com>2014-05-31 14:47:11 +0100
committerColin Fletcher <colin.m.fletcher@googlemail.com>2014-06-12 23:20:06 +0100
commit60349bcee6abd86a58dbbacbfe9afbff4204f8d6 (patch)
treeff5e0119f8347c5ea155a53e90ed2cfb06030e0c /gtk2_ardour/export_file_notebook.h
parent5abf3624f46fdff1daca8498ea04d89428fae25d (diff)
Show Soundcloud credentials and upload options only when required
A slightly hacky patch to make the Soundcloud username & password and the upload options only become visible when at least one export format is chosen for upload to Soundcloud. I think that changing ExportDialog::soundcloud_selector to a boost::shared_ptr is the right thing to do, but I must confess to having only a hazy understanding of what boost::scoped_ptr was doing in the first place. Also it feels a bit wrong to be passing a pointer to ExportDialog's SoundcloudExportSelector around, but I can't (for the moment, at least) think of any better way to affect its visibility from inside ExportFileNotebook.
Diffstat (limited to 'gtk2_ardour/export_file_notebook.h')
-rw-r--r--gtk2_ardour/export_file_notebook.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk2_ardour/export_file_notebook.h b/gtk2_ardour/export_file_notebook.h
index 52c87c3717..42a05e7611 100644
--- a/gtk2_ardour/export_file_notebook.h
+++ b/gtk2_ardour/export_file_notebook.h
@@ -29,6 +29,7 @@
#include "export_format_selector.h"
#include "export_filename_selector.h"
+#include "soundcloud_export_selector.h"
class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr
{
@@ -40,6 +41,8 @@ class ExportFileNotebook : public Gtk::Notebook, public ARDOUR::SessionHandlePtr
void sync_with_manager ();
void update_example_filenames();
+ boost::shared_ptr<SoundcloudExportSelector> soundcloud_export_selector;
+
sigc::signal<void> CriticalSelectionChanged;
private: