Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members

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., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 
00019 */
00020 
00021 
00022 #ifndef __CHMINDEXPANEL_H_
00023 #define __CHMINDEXPANEL_H_
00024 
00025 
00026 #include <wx/panel.h>
00027 #include <wx/textctrl.h>
00028 #include <wx/listctrl.h>
00029 
00030 
00031 class CHMHtmlWindow;
00032 class CHMListCtrl;
00033 
00034 
00041 
00042 enum {
00043         ID_SearchIndex = 1500,
00044         ID_IndexClicked,
00045 };
00046 
00047 
00049 class CHMIndexPanel : public wxPanel {
00050 
00051 public: 
00058         CHMIndexPanel(wxWindow *parent, CHMHtmlWindow* html);
00059 
00060 public:
00062         CHMListCtrl* GetResultsList() { return _lc; }
00063 
00065         void Reset();
00066 
00068         void SetNewFont(const wxFont& font);
00069 
00070 protected:
00072         void OnIndexSel(wxListEvent& event);
00073 
00075         void OnIndexSelRet(wxCommandEvent& event);
00076 
00078         void OnText(wxCommandEvent& event);
00079 
00080 private:
00081         CHMHtmlWindow* _html;
00082         wxTextCtrl* _text;
00083         CHMListCtrl* _lc;
00084         bool _navigate;
00085 
00086 private:
00087         DECLARE_EVENT_TABLE()
00088 };
00089 
00090 
00091 #endif // __CHMINDEXPANEL_H_
00092 
00093 
00094 /*
00095   Local Variables:
00096   mode: c++
00097   c-basic-offset: 8
00098   tab-width: 8
00099   c-indent-comments-syntactically-p: t
00100   c-tab-always-indent: t
00101   indent-tabs-mode: t
00102   End:
00103 */
00104 
00105 // vim:shiftwidth=8:autoindent:tabstop=8:noexpandtab:softtabstop=8
00106 

Generated on Mon May 22 12:43:42 2006 for xCHM by  doxygen 1.4.4