00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef __CHMINDEXPANEL_H_
00024 #define __CHMINDEXPANEL_H_
00025
00026
00027 #include <wx/panel.h>
00028 #include <wx/textctrl.h>
00029 #include <wx/listctrl.h>
00030
00031
00032 class CHMHtmlNotebook;
00033 class CHMListCtrl;
00034
00035
00042
00043 enum {
00044 ID_SearchIndex = 1500,
00045 ID_IndexClicked,
00046 };
00047
00048
00050 class CHMIndexPanel : public wxPanel {
00051
00052 public:
00059 CHMIndexPanel(wxWindow *parent, CHMHtmlNotebook* nbhtml);
00060
00061 public:
00063 CHMListCtrl* GetResultsList() { return _lc; }
00064
00066 void Reset();
00067
00069 void SetNewFont(const wxFont& font);
00070
00071 protected:
00073 void OnIndexSel(wxListEvent& event);
00074
00076 void OnIndexSelRet(wxCommandEvent& event);
00077
00079 void OnText(wxCommandEvent& event);
00080
00081 private:
00082 CHMHtmlNotebook* _nbhtml;
00083 wxTextCtrl* _text;
00084 CHMListCtrl* _lc;
00085 bool _navigate;
00086
00087 private:
00088 DECLARE_EVENT_TABLE()
00089 };
00090
00091
00092 #endif // __CHMINDEXPANEL_H_
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107