-#ifdef VST_SUPPORT
- // page 2
- struct VstColumns : public Gtk::TreeModel::ColumnRecord {
- VstColumns () {
- add (name);
- add (ins);
- add (outs);
- add (plugin);
- }
- Gtk::TreeModelColumn<std::string> name;
- Gtk::TreeModelColumn<std::string> ins;
- Gtk::TreeModelColumn<std::string> outs;
- Gtk::TreeModelColumn<ARDOUR::PluginInfo *> plugin;
- };
- VstColumns vcols;
- Glib::RefPtr<Gtk::ListStore> vmodel;
- Glib::RefPtr<Gtk::TreeSelection> vselection;
- Gtk::TreeView vst_display;
- static void _vst_refiller (void *);
- void vst_refiller ();
- void vst_display_selection_changed();
-#endif // VST_SUPPORT
-
-#ifdef HAVE_COREAUDIO
- // page 3
- struct AUColumns : public Gtk::TreeModel::ColumnRecord {
- AUColumns () {
- add (name);
- add (ins);
- add (outs);
- add (plugin);
- }
- Gtk::TreeModelColumn<std::string> name;
- Gtk::TreeModelColumn<std::string> ins;
- Gtk::TreeModelColumn<std::string> outs;
- Gtk::TreeModelColumn<ARDOUR::PluginInfo *> plugin;
- };
- AUColumns aucols;
- Glib::RefPtr<Gtk::ListStore> aumodel;
- Glib::RefPtr<Gtk::TreeSelection> auselection;
- Gtk::TreeView au_display;
- static void _au_refiller (void *);
- void au_refiller ();
- void au_display_selection_changed();
-#endif //HAVE_COREAUDIO
-
- ARDOUR::PluginInfo* i_selected_plug;
-
- // We need an integer for the output side because
- // the name isn't promised to be unique.
- gint o_selected_plug;
-
- ARDOUR::PluginManager *manager;
- list<ARDOUR::PluginInfo*> added_plugins;
-
- static void _input_refiller (void *);
-
- void input_refiller ();
- void row_clicked(GdkEventButton *);
+ void refill ();
+ void refiller (const ARDOUR::PluginInfoList& plugs, const::std::string& filterstr, const char* type);
+ 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 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;
+
+ void row_activated(Gtk::TreeModel::Path path, Gtk::TreeViewColumn* col);