00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __CHMLISTCTRL_H_
00025 #define __CHMLISTCTRL_H_
00026
00027 #include <wx/listbox.h>
00028 #include <wx/listctrl.h>
00029 #include <wx/string.h>
00030
00031
00032
00033 class CHMHtmlWindow;
00034
00035
00042
00043 class CHMListCtrl : public wxListCtrl {
00044
00045 public:
00054 CHMListCtrl(wxWindow *parent, CHMHtmlWindow *html,
00055 wxWindowID id = -1);
00056
00057 public:
00059 void Reset();
00060
00068 void AddPairItem(const wxString& title, const wxString& url);
00069
00071 void LoadSelected();
00072
00074 void UpdateUI();
00075
00080 void ListDirty();
00081
00086 void FindBestMatch(const wxString& title);
00087
00088 protected:
00090 void OnSize(wxSizeEvent& event);
00091
00092 private:
00093 wxArrayString _urls;
00094 CHMHtmlWindow *_html;
00095 int _currentSize;
00096
00097 private:
00098 DECLARE_EVENT_TABLE()
00099 };
00100
00101
00102 #endif // __CHMLISTCTRL_H_
00103