chmindexpanel.h

00001 /*
00002 
00003   Copyright (C) 2003  Razvan Cojocaru <razvanco@gmx.net>
00004  
00005   This program is free software; you can redistribute it and/or modify
00006   it under the terms of the GNU General Public License as published by
00007   the Free Software Foundation; either version 2 of the License, or
00008   (at your option) any later version.
00009   
00010   This program is distributed in the hope that it will be useful,
00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013   GNU General Public License for more details.
00014   
00015   You should have received a copy of the GNU General Public License
00016   along with this program; if not, write to the Free Software
00017   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
00018   MA 02110-1301, USA.
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   Local Variables:
00097   mode: c++
00098   c-basic-offset: 8
00099   tab-width: 8
00100   c-indent-comments-syntactically-p: t
00101   c-tab-always-indent: t
00102   indent-tabs-mode: t
00103   End:
00104 */
00105 
00106 // vim:shiftwidth=8:autoindent:tabstop=8:noexpandtab:softtabstop=8
00107 

Generated on Tue Apr 14 19:43:38 2009 for xCHM by  doxygen 1.5.4