00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __CHMLISTCTRL_H_
00023 #define __CHMLISTCTRL_H_
00024
00025 #include <wx/listbox.h>
00026 #include <wx/listctrl.h>
00027 #include <wx/string.h>
00028
00029
00030
00031 class CHMHtmlWindow;
00032
00033
00040
00041 class CHMListCtrl : public wxListCtrl {
00042
00043 public:
00052 CHMListCtrl(wxWindow *parent, CHMHtmlWindow *html,
00053 wxWindowID id = -1);
00054
00055 public:
00057 void Reset();
00058
00066 void AddPairItem(const wxString& title, const wxString& url);
00067
00069 void LoadSelected();
00070
00072 void UpdateUI();
00073
00078 void FindBestMatch(const wxString& title);
00079
00080 protected:
00082 void OnSize(wxSizeEvent& event);
00083
00084 private:
00085 wxArrayString _urls;
00086 CHMHtmlWindow *_html;
00087
00088 private:
00089 DECLARE_EVENT_TABLE()
00090 };
00091
00092
00093 #endif // __CHMLISTCTRL_H_
00094