diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-14 22:04:14 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-11-14 22:04:14 +0000 |
commit | 1d984b7985ad6f717fe7de206a6189fbf019b9eb (patch) | |
tree | db0df9ec5aa3d6a651e4a374831307d7752e9bf9 /gtk2_ardour/sfdb_ui.h | |
parent | 8171a144e05d7e1a52023bd08717f025d54fe016 (diff) |
the return of basic FreeSound mootcher functionality, c/o colinf. lots of bugs and workflow issues to still resolve, but good to play with. remember that ardour can't play mp3's
git-svn-id: svn://localhost/ardour2/branches/3.0@10596 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.h')
-rw-r--r-- | gtk2_ardour/sfdb_ui.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/gtk2_ardour/sfdb_ui.h b/gtk2_ardour/sfdb_ui.h index 5e24d99434..4a4bdf9c7d 100644 --- a/gtk2_ardour/sfdb_ui.h +++ b/gtk2_ardour/sfdb_ui.h @@ -114,12 +114,24 @@ class SoundFileBrowser : public ArdourDialog FoundTagColumns() { add(pathname); } }; + class FreesoundColumns : public Gtk::TreeModel::ColumnRecord + { + public: + Gtk::TreeModelColumn<std::string> id; + Gtk::TreeModelColumn<std::string> uri; + Gtk::TreeModelColumn<std::string> filename; + + FreesoundColumns() { add(id); add(filename); add(uri); } + }; + FoundTagColumns found_list_columns; Glib::RefPtr<Gtk::ListStore> found_list; - FoundTagColumns freesound_list_columns; + FreesoundColumns freesound_list_columns; Glib::RefPtr<Gtk::ListStore> freesound_list; + Gtk::ProgressBar progress_bar; + public: SoundFileBrowser (Gtk::Window& parent, std::string title, ARDOUR::Session* _s, bool persistent); virtual ~SoundFileBrowser (); @@ -137,13 +149,14 @@ class SoundFileBrowser : public ArdourDialog Gtk::Button found_search_btn; Gtk::TreeView found_list_view; - Gtk::Entry freesound_name_entry; - Gtk::Entry freesound_pass_entry; Gtk::Entry freesound_entry; + Gtk::ComboBoxText freesound_sort; + Gtk::SpinButton freesound_page; + Gtk::Button freesound_search_btn; Gtk::TreeView freesound_list_view; - void freesound_search_thread(); + void freesound_search(); protected: bool resetting_ourselves; |