Remove references to connection manager from the build.
[ardour.git] / gtk2_ardour / sfdb_ui.h
index 43f76a9ea24402028eee6785ff3d139c9dba90d6..24cb08cc1b1602f8a681f10191df0555c3a2f3d1 100644 (file)
@@ -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,32 @@ 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 audio_filter;
+       Gtk::FileFilter midi_filter;
        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,13 +168,19 @@ 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);
+       bool on_audio_filter (const Gtk::FileFilter::Info& filter_info);
+       bool on_midi_filter (const Gtk::FileFilter::Info& filter_info);
 
        virtual bool reset_options() { return true; }