#include <chmlistctrl.h>
Inheritance diagram for CHMListCtrl:
Public Member Functions | |
CHMListCtrl (wxWindow *parent, CHMHtmlWindow *html, wxWindowID id=-1) | |
Initializes the custom list control. | |
void | Reset () |
Cleans up and removes all the list items. | |
void | AddPairItem (const wxString &title, const wxString &url) |
Adds a title:url pair to the list. The title is the part that gets displayed, the url is tha page where the HTML window should go when the item is being clicked. | |
void | LoadSelected () |
Loads the page that corresponds to the item currently selected. | |
void | UpdateUI () |
Should be called each time the list control's state changes. | |
void | ListDirty () |
void | FindBestMatch (const wxString &title) |
Finds the list item that is the best match. | |
Protected Member Functions | |
void | OnSize (wxSizeEvent &event) |
Gets called when the widget is being resized. | |
Private Attributes | |
wxArrayString | _urls |
CHMHtmlWindow * | _html |
int | _currentSize |
|
Initializes the custom list control.
|
|
Adds a title:url pair to the list. The title is the part that gets displayed, the url is tha page where the HTML window should go when the item is being clicked.
|
|
Finds the list item that is the best match.
|
|
Called by ContentHandler to allow the list to perform (expensive) size computation. |