|
Dillo v3.2.0-93-g6a586845
|
Searchbar to find text in page. More...
#include <findbar.hh>
Public Member Functions | |
| Findbar (int width, int height) | |
| Construct text search bar. | |
| ~Findbar () | |
| int | handle (int event) |
| Handle events. | |
| void | show () |
| Show the findbar and focus the input field. | |
Static Private Member Functions | |
| static void | search_cb (Fl_Widget *, void *) |
| Find next occurrence of input key. | |
| static void | searchBackwards_cb (Fl_Widget *, void *) |
| Find previous occurrence of input key. | |
| static void | hide_cb (Fl_Widget *, void *) |
| Hide the search bar. | |
Private Attributes | |
| CustButton * | hide_btn |
| CustButton * | next_btn |
| CustButton * | prev_btn |
| Fl_Check_Button * | check_btn |
| Fl_Pixmap * | hideImg |
| Fl_Input * | i |
Searchbar to find text in page.
Definition at line 16 of file findbar.hh.
| Findbar::Findbar | ( | int | width, |
| int | height | ||
| ) |
Construct text search bar.
Definition at line 115 of file findbar.cc.
References check_btn, hide_btn, hide_cb(), hideImg, i, new_s_xpm, next_btn, prev_btn, search_cb(), searchBackwards_cb(), and TipWinButton::set_tooltip().
| Findbar::~Findbar | ( | ) |
Definition at line 174 of file findbar.cc.
References hideImg.
| int Findbar::handle | ( | int | event | ) |
|
staticprivate |
Hide the search bar.
Definition at line 107 of file findbar.cc.
References a_UIcmd_findbar_toggle(), and a_UIcmd_get_bw_by_widget().
Referenced by Findbar().
|
staticprivate |
Find next occurrence of input key.
Definition at line 78 of file findbar.cc.
References a_UIcmd_findtext_search(), a_UIcmd_get_bw_by_widget(), check_btn, and i.
Referenced by Findbar().
|
staticprivate |
Find previous occurrence of input key.
Definition at line 92 of file findbar.cc.
References a_UIcmd_findtext_search(), a_UIcmd_get_bw_by_widget(), check_btn, and i.
Referenced by Findbar().
| void Findbar::show | ( | ) |
Show the findbar and focus the input field.
Definition at line 198 of file findbar.cc.
References a_UIcmd_get_bw_by_widget(), dReturn_if, and i.
Referenced by UI::findbar_toggle().
|
private |
Definition at line 18 of file findbar.hh.
Referenced by Findbar(), search_cb(), and searchBackwards_cb().
|
private |
Definition at line 17 of file findbar.hh.
Referenced by Findbar().
|
private |
Definition at line 19 of file findbar.hh.
Referenced by Findbar(), and ~Findbar().
|
private |
Definition at line 20 of file findbar.hh.
Referenced by Findbar(), search_cb(), searchBackwards_cb(), and show().
|
private |
Definition at line 17 of file findbar.hh.
Referenced by Findbar().
|
private |
Definition at line 17 of file findbar.hh.
Referenced by Findbar().