mechanism to allow Track (or other Route-derived type) to add its own processors...
[ardour.git] / gtk2_ardour / plugin_selector.h
index cb90acc2d0785a660d21c50250bcf5b0c28cded0..e4fb89d5707ec576945972b2936a81de50ac0198 100644 (file)
 #ifndef __ardour_plugin_selector_h__
 #define __ardour_plugin_selector_h__
 
-#include <gtkmm/dialog.h>
+#include <gtkmm/button.h>
+#include <gtkmm/comboboxtext.h>
+#include <gtkmm/entry.h>
+#include <gtkmm/liststore.h>
 #include <gtkmm/notebook.h>
+#include <gtkmm/scrolledwindow.h>
+#include <gtkmm/treemodel.h>
 #include <gtkmm/treeview.h>
-#include <gtkmm2ext/selector.h>
+
+#include "gtkmm2ext/dndtreeview.h"
 
 #include "ardour/plugin.h"
 #include "ardour/session_handle.h"
-#include "plugin_interest.h"
 
-#include "ardour_button.h"
+#include "widgets/ardour_button.h"
+
+#include "plugin_interest.h"
 #include "ardour_dialog.h"
 
 namespace ARDOUR {
@@ -39,7 +46,7 @@ namespace ARDOUR {
 
 class PluginSelector : public ArdourDialog
 {
-  public:
+public:
        PluginSelector (ARDOUR::PluginManager&);
        ~PluginSelector ();
 
@@ -52,7 +59,7 @@ class PluginSelector : public ArdourDialog
        Gtk::Menu* plugin_menu ();
        void show_manager ();
 
-  private:
+private:
        PluginInterestedObject* interested_object;
 
        Gtk::ScrolledWindow scroller;   // Available plugins
@@ -62,10 +69,10 @@ class PluginSelector : public ArdourDialog
        Gtk::Entry filter_entry;
        Gtk::Button filter_button;
 
-       ArdourButton fil_hidden_button;
-       ArdourButton fil_instruments_button;
-       ArdourButton fil_analysis_button;
-       ArdourButton fil_utils_button;
+       ArdourWidgets::ArdourButton fil_hidden_button;
+       ArdourWidgets::ArdourButton fil_instruments_button;
+       ArdourWidgets::ArdourButton fil_analysis_button;
+       ArdourWidgets::ArdourButton fil_utils_button;
 
        void filter_button_clicked ();
        void filter_entry_changed ();
@@ -99,7 +106,7 @@ class PluginSelector : public ArdourDialog
        };
        PluginColumns plugin_columns;
        Glib::RefPtr<Gtk::ListStore> plugin_model;
-       Gtk::TreeView plugin_display;
+       Gtkmm2ext::DnDTreeView<ARDOUR::PluginInfoPtr> plugin_display;
        Gtk::Button* btn_add;
        Gtk::Button* btn_remove;
 
@@ -121,7 +128,9 @@ class PluginSelector : public ArdourDialog
        void lv2_refiller (const std::string&);
        void vst_refiller (const std::string&);
        void lxvst_refiller (const std::string&);
+       void mac_vst_refiller (const std::string&);
        void au_refiller (const std::string&);
+       void lua_refiller (const std::string&);
 
        Gtk::Menu* _plugin_menu;
        ARDOUR::PluginManager& manager;