Logo Search packages:      
Sourcecode: xchm version File versions

CHMSearchPanel Class Reference

#include <chmsearchpanel.h>

Inheritance diagram for CHMSearchPanel:


List of all members.

Detailed Description

Custom built search panel.

Definition at line 58 of file chmsearchpanel.h.

Public Member Functions

 CHMSearchPanel (wxWindow *parent, wxTreeCtrl *topics, CHMHtmlWindow *html)
 Initialized the search panel.
void Reset ()
 Resets the panel (clears the result list and the textbox.).
void SetNewFont (const wxFont &font)
 Sets the font.
 ~CHMSearchPanel ()
 Calls SetConfig().

Protected Member Functions

void OnSearch (wxCommandEvent &event)
void OnSearchSel (wxCommandEvent &event)
 This gets called when the user clicks on a result.

Private Member Functions

void GetConfig ()
 Reads the search configuration from .xchm (case sensitive, etc.).
void PopulateList (wxTreeItemId root, wxString &text, bool wholeWords)
 Helper. Searches through the tree recursively.
void SetConfig ()
 Writes the search configuration to .xchm.
bool TitleSearch (const wxString &title, wxString &text, bool caseSensitive, bool wholeWords)
 Helper. Grep searches page titles for the given text.

Private Attributes

wxCheckBox * _partial
wxButton * _search
wxTreeCtrl * _tcl
wxTextCtrl * _text
wxCheckBox * _titles

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

Generated by  Doxygen 1.6.0   Back to index