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

chmfinddialog.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 __CHMFINDDIALOG_H
00023 #define __CHMFINDDIALOG_H
00024 
00025 
00026 #include <wx/dialog.h>
00027 #include <wx/textctrl.h>
00028 #include <wx/html/htmlcell.h>
00029 
00030 
00031 // Forward declarations.
00032 class wxCheckBox;
00033 class CHMHtmlWindow;
00034 
00035 
00037 enum {
00038         ID_TextFind = 1408,
00039         ID_FindNext,
00040 };
00041 
00042 
00044 class CHMFindDialog : public wxDialog {
00045 public:
00047         CHMFindDialog(wxWindow *parent, CHMHtmlWindow *toSearch);
00048 
00050         void SetFocusToTextBox() { _text->SetFocusFromKbd(); }
00051 
00053         void Reset() { _cell = NULL; }
00054 
00055 protected:
00057         void OnFind(wxCommandEvent& event);
00058 
00059 private:
00060         CHMHtmlWindow* _html;
00061         wxTextCtrl* _text;      
00062         wxCheckBox* _whole;
00063         wxCheckBox* _case;
00064         wxString _currWord;
00065         wxHtmlCell *_cell;
00066 
00067 private:
00068         DECLARE_EVENT_TABLE();
00069 };
00070 
00071 
00072 #endif // __CHMFINDDIALOG_H
00073 
00074 
00075 /*
00076   Local Variables:
00077   mode: c++
00078   c-basic-offset: 8
00079   tab-width: 8
00080   c-indent-comments-syntactically-p: t
00081   c-tab-always-indent: t
00082   indent-tabs-mode: t
00083   End:
00084 */
00085 
00086 // vim:shiftwidth=8:autoindent:tabstop=8:noexpandtab:softtabstop=8
00087 

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