Dillo v3.1.1-99-gf3103cc4
Loading...
Searching...
No Matches
Findbar Class Reference

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

CustButtonhide_btn
 
CustButtonnext_btn
 
CustButtonprev_btn
 
Fl_Check_Button * check_btn
 
Fl_Pixmap * hideImg
 
Fl_Input * i
 

Detailed Description

Searchbar to find text in page.

Definition at line 16 of file findbar.hh.

Constructor & Destructor Documentation

◆ Findbar()

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::~Findbar ( )

Definition at line 174 of file findbar.cc.

References hideImg.

Member Function Documentation

◆ handle()

int Findbar::handle ( int  event)

Handle events.

Used to catch FL_Escape events.

Definition at line 182 of file findbar.cc.

◆ hide_cb()

void Findbar::hide_cb ( Fl_Widget *  ,
void *  vfb 
)
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().

◆ search_cb()

void Findbar::search_cb ( Fl_Widget *  ,
void *  vfb 
)
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().

◆ searchBackwards_cb()

void Findbar::searchBackwards_cb ( Fl_Widget *  ,
void *  vfb 
)
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().

◆ show()

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().

Member Data Documentation

◆ check_btn

Fl_Check_Button* Findbar::check_btn
private

Definition at line 18 of file findbar.hh.

Referenced by Findbar(), search_cb(), and searchBackwards_cb().

◆ hide_btn

CustButton* Findbar::hide_btn
private

Definition at line 17 of file findbar.hh.

Referenced by Findbar().

◆ hideImg

Fl_Pixmap* Findbar::hideImg
private

Definition at line 19 of file findbar.hh.

Referenced by Findbar(), and ~Findbar().

◆ i

Fl_Input* Findbar::i
private

Definition at line 20 of file findbar.hh.

Referenced by Findbar(), search_cb(), searchBackwards_cb(), and show().

◆ next_btn

CustButton * Findbar::next_btn
private

Definition at line 17 of file findbar.hh.

Referenced by Findbar().

◆ prev_btn

CustButton * Findbar::prev_btn
private

Definition at line 17 of file findbar.hh.

Referenced by Findbar().


The documentation for this class was generated from the following files: