]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/fdrepdlg.h
Nuke #pragma implementation/interface's
[wxWidgets.git] / include / wx / generic / fdrepdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/fdrepdlg.h
3 // Purpose: wxGenericFindReplaceDialog class
4 // Author: Markus Greither
5 // Modified by:
6 // Created: 25/05/2001
7 // RCS-ID:
8 // Copyright: (c) wxWidgets team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 class WXDLLEXPORT wxCheckBox;
13 class WXDLLEXPORT wxRadioBox;
14 class WXDLLEXPORT wxTextCtrl;
15
16 // ----------------------------------------------------------------------------
17 // wxGenericFindReplaceDialog: dialog for searching / replacing text
18 // ----------------------------------------------------------------------------
19
20 class WXDLLEXPORT wxGenericFindReplaceDialog : public wxFindReplaceDialogBase
21 {
22 public:
23 wxGenericFindReplaceDialog() { Init(); }
24
25 wxGenericFindReplaceDialog(wxWindow *parent,
26 wxFindReplaceData *data,
27 const wxString& title,
28 int style = 0)
29 {
30 Init();
31
32 (void)Create(parent, data, title, style);
33 }
34
35 bool Create(wxWindow *parent,
36 wxFindReplaceData *data,
37 const wxString& title,
38 int style = 0);
39
40 protected:
41 void Init();
42
43 void SendEvent(const wxEventType& evtType);
44
45 void OnFind(wxCommandEvent& event);
46 void OnReplace(wxCommandEvent& event);
47 void OnReplaceAll(wxCommandEvent& event);
48 void OnCancel(wxCommandEvent& event);
49
50 void OnUpdateFindUI(wxUpdateUIEvent& event);
51
52 void OnCloseWindow(wxCloseEvent& event);
53
54 wxCheckBox *m_chkCase,
55 *m_chkWord;
56
57 wxRadioBox *m_radioDir;
58
59 wxTextCtrl *m_textFind,
60 *m_textRepl;
61
62 private:
63 DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog)
64
65 DECLARE_EVENT_TABLE()
66 };
67