Main Page | Class Hierarchy | Alphabetical List | Compound List | File List | Compound 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 #ifdef _ENABLE_COPY_AND_FIND
00023 #ifndef __CHMFINDDIALOG_H
00024 #define __CHMFINDDIALOG_H
00025 
00026 
00027 #include <wx/dialog.h>
00028 #include <wx/textctrl.h>
00029 #include <wx/html/htmlcell.h>
00030 
00031 
00032 // Forward declarations.
00033 class wxCheckBox;
00034 class CHMHtmlWindow;
00035 
00036 
00038 enum {
00039         ID_TextFind = 1408,
00040         ID_FindNext,
00041 };
00042 
00043 
00045 class CHMFindDialog : public wxDialog {
00046 public:
00048         CHMFindDialog(wxWindow *parent, CHMHtmlWindow *toSearch);
00049 
00051         void SetFocusToTextBox() { _text->SetFocusFromKbd(); }
00052 
00054         void Reset() { _cell = NULL; }
00055 
00056 protected:
00058         void OnFind(wxCommandEvent& event);
00059 
00060 private:
00061         CHMHtmlWindow* _html;
00062         wxTextCtrl* _text;      
00063         wxCheckBox* _whole;
00064         wxCheckBox* _case;
00065         wxString _currWord;
00066         wxHtmlCell *_cell;
00067 
00068 private:
00069         DECLARE_EVENT_TABLE();
00070 };
00071 
00072 
00073 #endif // __CHMFINDDIALOG_H
00074 #endif // _ENABLE_COPY_AND_FIND

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