]>
Commit | Line | Data |
---|---|---|
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 | #ifndef _WX_GENERIC_FDREPDLG_H_ | |
13 | #define _WX_GENERIC_FDREPDLG_H_ | |
14 | ||
15 | class WXDLLIMPEXP_FWD_CORE wxCheckBox; | |
16 | class WXDLLIMPEXP_FWD_CORE wxRadioBox; | |
17 | class WXDLLIMPEXP_FWD_CORE wxTextCtrl; | |
18 | ||
19 | // ---------------------------------------------------------------------------- | |
20 | // wxGenericFindReplaceDialog: dialog for searching / replacing text | |
21 | // ---------------------------------------------------------------------------- | |
22 | ||
23 | class WXDLLIMPEXP_CORE wxGenericFindReplaceDialog : public wxFindReplaceDialogBase | |
24 | { | |
25 | public: | |
26 | wxGenericFindReplaceDialog() { Init(); } | |
27 | ||
28 | wxGenericFindReplaceDialog(wxWindow *parent, | |
29 | wxFindReplaceData *data, | |
30 | const wxString& title, | |
31 | int style = 0) | |
32 | { | |
33 | Init(); | |
34 | ||
35 | (void)Create(parent, data, title, style); | |
36 | } | |
37 | ||
38 | bool Create(wxWindow *parent, | |
39 | wxFindReplaceData *data, | |
40 | const wxString& title, | |
41 | int style = 0); | |
42 | ||
43 | protected: | |
44 | void Init(); | |
45 | ||
46 | void SendEvent(const wxEventType& evtType); | |
47 | ||
48 | void OnFind(wxCommandEvent& event); | |
49 | void OnReplace(wxCommandEvent& event); | |
50 | void OnReplaceAll(wxCommandEvent& event); | |
51 | void OnCancel(wxCommandEvent& event); | |
52 | ||
53 | void OnUpdateFindUI(wxUpdateUIEvent& event); | |
54 | ||
55 | void OnCloseWindow(wxCloseEvent& event); | |
56 | ||
57 | wxCheckBox *m_chkCase, | |
58 | *m_chkWord; | |
59 | ||
60 | wxRadioBox *m_radioDir; | |
61 | ||
62 | wxTextCtrl *m_textFind, | |
63 | *m_textRepl; | |
64 | ||
65 | private: | |
66 | DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog) | |
67 | ||
68 | DECLARE_EVENT_TABLE() | |
69 | }; | |
70 | ||
71 | #endif // _WX_GENERIC_FDREPDLG_H_ |