]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/fdrepdlg.h
build fixes
[wxWidgets.git] / include / wx / generic / fdrepdlg.h
CommitLineData
8db37e06
VZ
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:
77ffb593 8// Copyright: (c) wxWidgets team
65571936 9// Licence: wxWindows licence
8db37e06
VZ
10/////////////////////////////////////////////////////////////////////////////
11
20ceebaa
MW
12#ifndef _WX_GENERIC_FDREPDLG_H_
13#define _WX_GENERIC_FDREPDLG_H_
14
b5dbe15d
VS
15class WXDLLIMPEXP_FWD_CORE wxCheckBox;
16class WXDLLIMPEXP_FWD_CORE wxRadioBox;
17class WXDLLIMPEXP_FWD_CORE wxTextCtrl;
8db37e06
VZ
18
19// ----------------------------------------------------------------------------
20// wxGenericFindReplaceDialog: dialog for searching / replacing text
21// ----------------------------------------------------------------------------
22
23class WXDLLEXPORT wxGenericFindReplaceDialog : public wxFindReplaceDialogBase
24{
25public:
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
43protected:
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
65private:
66 DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog)
67
68 DECLARE_EVENT_TABLE()
69};
70
20ceebaa 71#endif // _WX_GENERIC_FDREPDLG_H_