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 #ifndef _ENABLE_COPY_AND_FIND
00073         void OnIndexSel(wxCommandEvent& event);
00074 #else
00075         void OnIndexSel(wxListEvent& event);
00076 #endif
00077 
00079         void OnIndexSelRet(wxCommandEvent& event);
00080 
00082         void OnText(wxCommandEvent& event);
00083 
00084 private:
00085         CHMHtmlWindow* _html;
00086         wxTextCtrl* _text;
00087         CHMListCtrl* _lc;
00088         bool _navigate;
00089 
00090 private:
00091         DECLARE_EVENT_TABLE()
00092 };
00093 
00094 
00095 #endif // __CHMINDEXPANEL_H_
00096 

Generated on Mon Feb 21 11:08:37 2005 for xCHM by  doxygen 1.4.0