#include <gtkmm/dialog.h>
#include <gtkmm/notebook.h>
#include <gtkmm/treeview.h>
+#include "gtkmm2ext/dndtreeview.h"
#include <gtkmm2ext/selector.h>
#include "ardour/plugin.h"
#include "ardour/session_handle.h"
#include "plugin_interest.h"
+#include "ardour_button.h"
+#include "ardour_dialog.h"
+
namespace ARDOUR {
class Session;
class PluginManager;
Gtk::Entry filter_entry;
Gtk::Button filter_button;
+ ArdourButton fil_hidden_button;
+ ArdourButton fil_instruments_button;
+ ArdourButton fil_analysis_button;
+ 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;
- void row_clicked(GdkEventButton *);
void row_activated(Gtk::TreeModel::Path path, Gtk::TreeViewColumn* col);
void btn_add_clicked();
void btn_remove_clicked();
- void btn_update_clicked();
void added_list_selection_changed();
+ void added_row_clicked(GdkEventButton* event);
void display_selection_changed();
void btn_apply_clicked();
ARDOUR::PluginPtr load_plugin (ARDOUR::PluginInfoPtr);
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_creator_menu (ARDOUR::PluginInfoList&);
Gtk::Menu* create_by_category_menu (ARDOUR::PluginInfoList&);
void build_plugin_menu ();
- PBD::ScopedConnection plugin_list_changed_connection;
+ 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__