Show Soundcloud credentials and upload options only when required
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Sat, 31 May 2014 13:47:11 +0000 (14:47 +0100)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Thu, 12 Jun 2014 22:20:06 +0000 (23:20 +0100)
commit60349bcee6abd86a58dbbacbfe9afbff4204f8d6
treeff5e0119f8347c5ea155a53e90ed2cfb06030e0c
parent5abf3624f46fdff1daca8498ea04d89428fae25d
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.
gtk2_ardour/export_dialog.cc
gtk2_ardour/export_dialog.h
gtk2_ardour/export_file_notebook.cc
gtk2_ardour/export_file_notebook.h