#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 "widgets/ardour_button.h"
+
#include "plugin_interest.h"
+#include "ardour_dialog.h"
namespace ARDOUR {
class Session;
class PluginSelector : public ArdourDialog
{
- public:
+public:
PluginSelector (ARDOUR::PluginManager&);
~PluginSelector ();
Gtk::Menu* plugin_menu ();
void show_manager ();
- private:
+private:
PluginInterestedObject* interested_object;
Gtk::ScrolledWindow scroller; // Available plugins
Gtk::Entry filter_entry;
Gtk::Button filter_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 ();
void filter_mode_changed ();
};
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;
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;
bool show_this_plugin (const ARDOUR::PluginInfoPtr&, const std::string&);
void setup_filter_string (std::string&);
+ bool fil_hidden_button_release (GdkEventButton*);
+ bool fil_instruments_button_release (GdkEventButton*);
+ bool fil_analysis_button_release (GdkEventButton*);
+ bool fil_utils_button_release (GdkEventButton*);
+
void favorite_changed (const std::string& path);
void hidden_changed (const std::string& path);
bool in_row_change;
Gtk::Menu* create_by_category_menu (ARDOUR::PluginInfoList&);
void build_plugin_menu ();
PBD::ScopedConnectionList plugin_list_changed_connection;
+
+ bool _show_hidden;
+ Gtkmm2ext::ActiveState _show_instruments;
+ Gtkmm2ext::ActiveState _show_analysers;
+ Gtkmm2ext::ActiveState _show_utils;
};
#endif // __ardour_plugin_selector_h__