Changing active-state needs no color lookup
[ardour.git] / gtk2_ardour / plugin_selector.h
index 3b904554084e6de87173307cb86a96dc1a1d73f4..4015344882c5762125b13d3093ee092a1471d36b 100644 (file)
@@ -1,21 +1,26 @@
 /*
-    Copyright (C) 2000 Paul Davis
-
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation; either version 2 of the License, or
-    (at your option) any later version.
-
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
-
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-*/
+ * Copyright (C) 2005-2006 Doug McLain <doug@nostar.net>
+ * Copyright (C) 2005-2006 Taybin Rutkin <taybin@taybin.com>
+ * Copyright (C) 2005-2011 Paul Davis <paul@linuxaudiosystems.com>
+ * Copyright (C) 2006-2012 David Robillard <d@drobilla.net>
+ * Copyright (C) 2006 Nick Mainsbridge <mainsbridge@gmail.com>
+ * Copyright (C) 2009 Carl Hetherington <carl@carlh.net>
+ * Copyright (C) 2014-2019 Robin Gareus <robin@gareus.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
 
 #ifndef __ardour_plugin_selector_h__
 #define __ardour_plugin_selector_h__
@@ -30,6 +35,9 @@
 #include <gtkmm/treemodel.h>
 #include <gtkmm/treeview.h>
 
+#include "widgets/ardour_button.h"
+#include "widgets/ardour_dropdown.h"
+
 #include "gtkmm2ext/dndtreeview.h"
 
 #include "ardour/plugin.h"
@@ -64,9 +72,9 @@ public:
 private:
 
        //search
-       Gtk::CheckButton *_search_name_checkbox;
-       Gtk::CheckButton *_search_tags_checkbox;
-       Gtk::CheckButton *_search_ignore_checkbox;
+       ArdourWidgets::ArdourButton* _search_name_checkbox;
+       ArdourWidgets::ArdourButton* _search_tags_checkbox;
+       ArdourWidgets::ArdourButton* _search_ignore_checkbox;
 
        //radio-button filters
        Gtk::RadioButton *_fil_effects_radio;
@@ -76,10 +84,9 @@ private:
        Gtk::RadioButton *_fil_hidden_radio;
        Gtk::RadioButton *_fil_all_radio;
 
-       //combobox filters
-       Gtk::ComboBoxText *_fil_type_combo;
-       Gtk::ComboBoxText *_fil_creator_combo;
-       Gtk::ComboBoxText *_fil_channel_combo;
+       /* combobox filters */
+       ArdourWidgets::ArdourDropdown _fil_type_combo;
+       ArdourWidgets::ArdourDropdown _fil_creator_combo;
 
        PluginInterestedObject* interested_object;
 
@@ -90,6 +97,7 @@ private:
        Gtk::Button search_clear_button;
 
        Gtk::Entry *tag_entry;
+       Gtk::Button* tag_reset_button;
        void tag_reset_button_clicked ();
 
        void set_sensitive_widgets();
@@ -184,8 +192,7 @@ private:
        bool _need_tag_save;
        bool _need_status_save;
        bool _need_menu_rebuild;
-
-       bool inhibit_refill;
+       bool _inhibit_refill;
 };
 
 #endif // __ardour_plugin_selector_h__