3 #include <gtkmm/entry.h>
6 #include "widgets/visibility.h"
8 namespace ArdourWidgets {
10 class LIBWIDGETS_API SearchBar : public Gtk::Entry
14 const std::string& placeholder_text = "Search...",
15 bool icon_click_resets = true);
17 /** resets the searchbar to the initial state */
20 /* emitted when the filter has been updated */
21 sigc::signal<void, const std::string&> signal_search_string_updated () { return sig_search_string_updated; }
24 bool focus_in_event (GdkEventFocus*);
25 bool focus_out_event (GdkEventFocus*);
27 bool key_press_event (GdkEventKey*);
28 void icon_clicked_event (Gtk::EntryIconPosition, const GdkEventButton*);
30 const std::string placeholder_text;
31 sigc::signal<void, const std::string&> sig_search_string_updated;
34 void search_string_changed () const;
36 Glib::RefPtr<Gdk::Pixbuf> icon;
37 bool icon_click_resets;