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