reduce clutter in Plugin Manager List
[ardour.git] / gtk2_ardour / plugin_selector.h
index 8c769653848c9471452dbe0bf1f7cdb378a0f5f6..cb90acc2d0785a660d21c50250bcf5b0c28cded0 100644 (file)
@@ -29,6 +29,7 @@
 #include "ardour/session_handle.h"
 #include "plugin_interest.h"
 
+#include "ardour_button.h"
 #include "ardour_dialog.h"
 
 namespace ARDOUR {
@@ -61,6 +62,11 @@ 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;
+
        void filter_button_clicked ();
        void filter_entry_changed ();
        void filter_mode_changed ();
@@ -131,6 +137,11 @@ class PluginSelector : public ArdourDialog
        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;
@@ -142,6 +153,11 @@ class PluginSelector : public ArdourDialog
        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__