Fix thinkos in cubasish theme
[ardour.git] / gtk2_ardour / plugin_selector.h
index 10d384103ef49bcdd04a50aab8e4447f79d8cfd9..4deda02aba315c0e5548ab881b1a791c1524602b 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();
@@ -112,14 +120,12 @@ private:
                        add (type_name);
                        add (audio_io);
                        add (midi_io);
-                       add (category);
                        add (plugin);
                }
                Gtk::TreeModelColumn<bool> favorite;
                Gtk::TreeModelColumn<bool> hidden;
                Gtk::TreeModelColumn<std::string> name;
                Gtk::TreeModelColumn<std::string> type_name;
-               Gtk::TreeModelColumn<std::string> category;
                Gtk::TreeModelColumn<std::string> creator;
                Gtk::TreeModelColumn<std::string> tags;
                Gtk::TreeModelColumn<std::string> audio_io;
@@ -167,8 +173,6 @@ private:
        ARDOUR::PluginPtr load_plugin (ARDOUR::PluginInfoPtr);
        bool show_this_plugin (const ARDOUR::PluginInfoPtr&, const std::string&);
 
-       void setup_search_string (std::string&);
-
        void favorite_changed (const std::string& path);
        void hidden_changed (const std::string& path);
        bool in_row_change;
@@ -186,8 +190,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__