1 /*soundcloud_export_selector.h***********************************************
3 Adapted for Ardour by Ben Loftis, March 2012
5 *****************************************************************************/
6 #ifndef __soundcloud_export_selector_h__
7 #define __soundcloud_export_selector_h__
16 #include <gtkmm/box.h>
17 #include <gtkmm/checkbutton.h>
18 #include <gtkmm/entry.h>
19 #include <gtkmm/label.h>
20 #include <gtkmm/progressbar.h>
21 #include <gtkmm/table.h>
23 class SoundcloudExportSelector : public Gtk::VBox, public ARDOUR::SessionHandlePtr
26 SoundcloudExportSelector ();
27 int do_progress_callback (double ultotal, double ulnow, const std::string &filename);
28 std::string username () { return soundcloud_username_entry.get_text (); }
29 std::string password () { return soundcloud_password_entry.get_text (); }
30 bool make_public () { return soundcloud_public_checkbox.get_active (); }
31 bool open_page () { return soundcloud_open_checkbox.get_active (); }
32 bool downloadable () { return soundcloud_download_checkbox.get_active (); }
33 void cancel () { soundcloud_cancel = true; }
37 Gtk::Label soundcloud_username_label;
38 Gtk::Entry soundcloud_username_entry;
39 Gtk::Label soundcloud_password_label;
40 Gtk::Entry soundcloud_password_entry;
41 Gtk::CheckButton soundcloud_public_checkbox;
42 Gtk::CheckButton soundcloud_open_checkbox;
43 Gtk::CheckButton soundcloud_download_checkbox;
44 bool soundcloud_cancel;
45 Gtk::ProgressBar progress_bar;
49 #endif // __soundcloud_export_selector_h__