]> git.saurik.com Git - wxWidgets.git/blob - include/wx/generic/fdrepdlg.h
Project file update
[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) wxWindows team
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma interface "genericfdrepdlg.h"
14 #endif
15
16 class WXDLLEXPORT wxCheckBox;
17 class WXDLLEXPORT wxRadioBox;
18 class WXDLLEXPORT wxTextCtrl;
19
20 // ----------------------------------------------------------------------------
21 // wxGenericFindReplaceDialog: dialog for searching / replacing text
22 // ----------------------------------------------------------------------------
23
24 class WXDLLEXPORT wxGenericFindReplaceDialog : public wxFindReplaceDialogBase
25 {
26 public:
27 wxGenericFindReplaceDialog() { Init(); }
28
29 wxGenericFindReplaceDialog(wxWindow *parent,
30 wxFindReplaceData *data,
31 const wxString& title,
32 int style = 0)
33 {
34 Init();
35
36 (void)Create(parent, data, title, style);
37 }
38
39 bool Create(wxWindow *parent,
40 wxFindReplaceData *data,
41 const wxString& title,
42 int style = 0);
43
44 protected:
45 void Init();
46
47 void SendEvent(const wxEventType& evtType);
48
49 void OnFind(wxCommandEvent& event);
50 void OnReplace(wxCommandEvent& event);
51 void OnReplaceAll(wxCommandEvent& event);
52 void OnCancel(wxCommandEvent& event);
53
54 void OnUpdateFindUI(wxUpdateUIEvent& event);
55
56 void OnCloseWindow(wxCloseEvent& event);
57
58 wxCheckBox *m_chkCase,
59 *m_chkWord;
60
61 wxRadioBox *m_radioDir;
62
63 wxTextCtrl *m_textFind,
64 *m_textRepl;
65
66 private:
67 DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog)
68
69 DECLARE_EVENT_TABLE()
70 };
71