#include <chmsearchpanel.h>
Inheritance diagram for CHMSearchPanel:

Public Member Functions | |
| CHMSearchPanel (wxWindow *parent, wxTreeCtrl *topics, CHMHtmlWindow *html) | |
| Initialized the search panel. | |
| ~CHMSearchPanel () | |
| Calls SetConfig(). | |
| void | Reset () |
| Resets the panel (clears the result list and the textbox.). | |
| void | SetNewFont (const wxFont &font) |
| Sets the font. | |
Protected Member Functions | |
| void | OnSearch (wxCommandEvent &event) |
| void | OnSearchSel (wxListEvent &event) |
| This gets called when the user clicks on a result. | |
Private Member Functions | |
| void | PopulateList (wxTreeItemId root, wxString &text, bool wholeWords) |
| Helper. Searches through the tree recursively. | |
| bool | TitleSearch (const wxString &title, wxString &text, bool caseSensitive, bool wholeWords) |
| Helper. Grep searches page titles for the given text. | |
| void | GetConfig () |
| Reads the search configuration from .xchm (case sensitive, etc.). | |
| void | SetConfig () |
| Writes the search configuration to .xchm. | |
Private Attributes | |
| wxTreeCtrl * | _tcl |
| wxTextCtrl * | _text |
| wxCheckBox * | _partial |
| wxCheckBox * | _titles |
| wxButton * | _search |
| CHMListCtrl * | _results |
| CHMHtmlWindow * | _html |
|
||||||||||||||||
|
Initialized the search panel.
|
|
|
This gets called when the user clicks the Search button or presses Enter in the textbox. |
1.4.4