]> git.saurik.com Git - wxWidgets.git/blame - include/wx/generic/fdrepdlg.h
Applied patch [ 650511 ] wxCalendarCtrl - year does not change
[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:
8// Copyright: (c) wxWindows team
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
af49c4b8 12#if defined(__GNUG__) && !defined(__APPLE__)
8db37e06
VZ
13 #pragma interface "genericfdrepdlg.h"
14#endif
15
16class WXDLLEXPORT wxCheckBox;
17class WXDLLEXPORT wxRadioBox;
18class WXDLLEXPORT wxTextCtrl;
19
20// ----------------------------------------------------------------------------
21// wxGenericFindReplaceDialog: dialog for searching / replacing text
22// ----------------------------------------------------------------------------
23
24class WXDLLEXPORT wxGenericFindReplaceDialog : public wxFindReplaceDialogBase
25{
26public:
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
44protected:
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
66private:
67 DECLARE_DYNAMIC_CLASS(wxGenericFindReplaceDialog)
68
69 DECLARE_EVENT_TABLE()
70};
71