#include <chmlistctrl.h>
Inheritance diagram for CHMListCtrl:
Public Member Functions | |
CHMListCtrl (wxWindow *parent, CHMHtmlWindow *html, wxWindowID id=-1) | |
Initializes the custom list control. | |
~CHMListCtrl () | |
Cleanup. | |
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 | 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. | |
wxString | OnGetItemText (long item, long column) const |
Gets called when an item needs to be displayed. | |
Private Member Functions | |
void | ResetItems () |
Delete/empty the items in the item array. | |
Private Attributes | |
ItemPairArray | _items |
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.
|