Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound 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 
00029 
00030 class CHMHtmlWindow;
00031 class CHMListCtrl;
00032 
00033 
00040 
00041 enum {
00042         ID_SearchIndex = 1500,
00043         ID_IndexClicked,
00044 };
00045 
00046 
00048 class CHMIndexPanel : public wxPanel {
00049 
00050 public: 
00057         CHMIndexPanel(wxWindow *parent, CHMHtmlWindow* html);
00058 
00059 public:
00061         CHMListCtrl* GetResultsList() { return _lc; }
00062 
00064         void Reset();
00065 
00067         void SetNewFont(const wxFont& font);
00068 
00069 protected:
00071         void OnIndexSel(wxCommandEvent& event);
00072 
00074         void OnText(wxCommandEvent& event);
00075 
00076 private:
00077         CHMHtmlWindow* _html;
00078         wxTextCtrl* _text;
00079         CHMListCtrl* _lc;
00080         bool _navigate;
00081 
00082 private:
00083         DECLARE_EVENT_TABLE()
00084 };
00085 
00086 
00087 #endif // __CHMINDEXPANEL_H_
00088 

Generated on Fri Jan 23 11:06:47 2004 for xCHM by doxygen 1.3.3