From 1d984b7985ad6f717fe7de206a6189fbf019b9eb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 14 Nov 2011 22:04:14 +0000 Subject: 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 --- gtk2_ardour/sfdb_ui.h | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) (limited to 'gtk2_ardour/sfdb_ui.h') 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 id; + Gtk::TreeModelColumn uri; + Gtk::TreeModelColumn filename; + + FreesoundColumns() { add(id); add(filename); add(uri); } + }; + FoundTagColumns found_list_columns; Glib::RefPtr found_list; - FoundTagColumns freesound_list_columns; + FreesoundColumns freesound_list_columns; Glib::RefPtr 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; -- cgit v1.2.3