diff options
author | Taybin Rutkin <taybin@taybin.com> | 2005-10-13 03:48:57 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2005-10-13 03:48:57 +0000 |
commit | fe83d9b77e0aff0af45d8c9ef4f1d8187b8f600e (patch) | |
tree | ef1caa64c4aae44d93ac394d0a92179a765edc83 /gtk2_ardour/sfdb_ui.h | |
parent | 3b91a592be371e25c6c135664ba0af2f484431ab (diff) |
sfdb almost done.
git-svn-id: svn://localhost/trunk/ardour2@60 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.h')
-rw-r--r-- | gtk2_ardour/sfdb_ui.h | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/gtk2_ardour/sfdb_ui.h b/gtk2_ardour/sfdb_ui.h index fda3c1d94e..26ce3c15b3 100644 --- a/gtk2_ardour/sfdb_ui.h +++ b/gtk2_ardour/sfdb_ui.h @@ -4,7 +4,11 @@ #include <string> #include <vector> +#include <sigc++/signal.h> + +#include <gtkmm/box.h> #include <gtkmm/button.h> +#include <gtkmm/checkbutton.h> #include <gtkmm/dialog.h> #include <gtkmm/filechooserwidget.h> @@ -12,38 +16,37 @@ class SoundFileBrowser : public Gtk::Dialog { public: SoundFileBrowser (std::string title); - virtual ~SoundFileBrowser (); + virtual ~SoundFileBrowser () {} protected: - Gtk::FileChooserWidget* chooser; - - Gtk::Button* ok_btn; + Gtk::FileChooserWidget chooser; }; class SoundFileChooser : public SoundFileBrowser { public: SoundFileChooser (std::string title); - virtual ~SoundFileChooser (); - - std::string get_filename (); + virtual ~SoundFileChooser () {}; - protected: - Gtk::Button* open_btn; + std::string get_filename () {return chooser.get_filename();}; }; -class SoundFileOmega : public SoundFileChooser +class SoundFileOmega : public SoundFileBrowser { public: SoundFileOmega (std::string title); - virtual ~SoundFileOmega (); + virtual ~SoundFileOmega () {}; - std::vector<std::string> get_filenames(); - bool get_split(); + sigc::signal<void, std::vector<std::string>, bool> Embedded; + sigc::signal<void, std::vector<std::string>, bool> Imported; protected: - Gtk::Button* insert_btn; - Gtk::Button* import_btn; -} + Gtk::Button embed_btn; + Gtk::Button import_btn; + Gtk::CheckButton split_check; + + void embed_clicked (); + void import_clicked (); +}; #endif // __ardour_sfdb_ui_h__ |