diff options
author | Ben Loftis <ben@glw.com> | 2008-03-24 00:19:03 +0000 |
---|---|---|
committer | Ben Loftis <ben@glw.com> | 2008-03-24 00:19:03 +0000 |
commit | cd89c6e3bf1e6c4b786b6ee89bc5fa9a0e780d61 (patch) | |
tree | a4cd10f6bcba3ca7a09639b1a49fb740f14b78a4 /gtk2_ardour/sfdb_ui.h | |
parent | 2ac3d8656515e67209a8f5cd82e9e5a2167dbb44 (diff) |
initial checkin of freesound integration
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3168 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/sfdb_ui.h')
-rw-r--r-- | gtk2_ardour/sfdb_ui.h | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/gtk2_ardour/sfdb_ui.h b/gtk2_ardour/sfdb_ui.h index 43f76a9ea2..0f164bcb11 100644 --- a/gtk2_ardour/sfdb_ui.h +++ b/gtk2_ardour/sfdb_ui.h @@ -117,6 +117,9 @@ class SoundFileBrowser : public ArdourDialog FoundTagColumns found_list_columns; Glib::RefPtr<Gtk::ListStore> found_list; + FoundTagColumns freesound_list_columns; + Glib::RefPtr<Gtk::ListStore> freesound_list; + public: SoundFileBrowser (Gtk::Window& parent, std::string title, ARDOUR::Session* _s, bool persistent); virtual ~SoundFileBrowser (); @@ -127,20 +130,30 @@ class SoundFileBrowser : public ArdourDialog void clear_selection (); Gtk::FileChooserWidget chooser; + + SoundFileBox preview; + + Gtk::Entry found_entry; + 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::Button freesound_search_btn; + Gtk::TreeView freesound_list_view; + + void freesound_search_thread(); + protected: bool resetting_ourselves; Gtk::FileFilter custom_filter; Gtk::FileFilter matchall_filter; - SoundFileBox preview; Gtk::HBox hpacker; static Glib::ustring persistent_folder; - Gtk::Entry found_entry; - Gtk::Button found_search_btn; Gtk::Notebook notebook; GainMeter* gm; @@ -153,10 +166,15 @@ class SoundFileBrowser : public ArdourDialog sigc::connection metering_connection; void update_preview (); + void found_list_view_selected (); void found_list_view_activated (const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn*); void found_search_clicked (); + void freesound_list_view_selected (); + void freesound_list_view_activated (const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn*); + void freesound_search_clicked (); + void chooser_file_activated (); bool on_custom (const Gtk::FileFilter::Info& filter_info); |