Give group and meter point buttons controllable visibility.
[ardour.git] / gtk2_ardour / plugin_selector.h
index 06e746853fa4d06390e4266f48cd79352de92367..3635b71a761f7de64f151cdf51e095f378be079f 100644 (file)
@@ -26,6 +26,7 @@
 #include <gtkmm2ext/selector.h>
 
 #include "ardour/plugin.h"
+#include "ardour/session_handle.h"
 #include "plugin_interest.h"
 
 namespace ARDOUR {
@@ -43,7 +44,6 @@ class PluginSelector : public ArdourDialog
 
        int run (); // XXX should we try not to overload the non-virtual Gtk::Dialog::run() ?
 
-       void set_session (ARDOUR::Session*);
        void on_show ();
 
        Gtk::Menu* plugin_menu ();
@@ -52,7 +52,6 @@ class PluginSelector : public ArdourDialog
   private:
        PluginInterestedObject* interested_object;
 
-       ARDOUR::Session* session;
        Gtk::ScrolledWindow scroller;   // Available plugins
        Gtk::ScrolledWindow ascroller;  // Added plugins
 
@@ -113,6 +112,7 @@ class PluginSelector : public ArdourDialog
        void ladspa_refiller (const std::string&);
        void lv2_refiller (const std::string&);
        void vst_refiller (const std::string&);
+       void lxvst_refiller (const std::string&);
        void au_refiller (const std::string&);
 
        Gtk::Menu* _plugin_menu;
@@ -129,8 +129,8 @@ class PluginSelector : public ArdourDialog
        bool show_this_plugin (const ARDOUR::PluginInfoPtr&, const std::string&);
        void setup_filter_string (std::string&);
 
-       void favorite_changed (const Glib::ustring& path);
-       void hidden_changed (const Glib::ustring& path);
+       void favorite_changed (const std::string& path);
+       void hidden_changed (const std::string& path);
        bool in_row_change;
 
        void plugin_chosen_from_menu (const ARDOUR::PluginInfoPtr&);
@@ -139,6 +139,7 @@ class PluginSelector : public ArdourDialog
        Gtk::Menu* create_by_creator_menu (ARDOUR::PluginInfoList&);
        Gtk::Menu* create_by_category_menu (ARDOUR::PluginInfoList&);
        void build_plugin_menu ();
+       PBD::ScopedConnection plugin_list_changed_connection;
 };
 
 #endif // __ardour_plugin_selector_h__