]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/fdrepdlg.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / msw / fdrepdlg.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/fdrepdlg.h
3 // Purpose: wxFindReplaceDialog class
4 // Author: Markus Greither
5 // Modified by: 31.07.01: VZ: integrated into wxWidgets
6 // Created: 23/03/2001
7 // Copyright: (c) Markus Greither
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_MSW_FDREPDLG_H_
12 #define _WX_MSW_FDREPDLG_H_
13
14 // ----------------------------------------------------------------------------
15 // wxFindReplaceDialog: dialog for searching / replacing text
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxFindReplaceDialog : public wxFindReplaceDialogBase
19 {
20 public:
21 // ctors and such
22 wxFindReplaceDialog() { Init(); }
23 wxFindReplaceDialog(wxWindow *parent,
24 wxFindReplaceData *data,
25 const wxString &title,
26 int style = 0);
27
28 bool Create(wxWindow *parent,
29 wxFindReplaceData *data,
30 const wxString &title,
31 int style = 0);
32
33 virtual ~wxFindReplaceDialog();
34
35 // implementation only from now on
36
37 wxFindReplaceDialogImpl *GetImpl() const { return m_impl; }
38
39 // override some base class virtuals
40 virtual bool Show(bool show = true);
41 virtual void SetTitle( const wxString& title);
42 virtual wxString GetTitle() const;
43
44 protected:
45 virtual void DoGetSize(int *width, int *height) const;
46 virtual void DoGetClientSize(int *width, int *height) const;
47 virtual void DoSetSize(int x, int y,
48 int width, int height,
49 int sizeFlags = wxSIZE_AUTO);
50
51 void Init();
52
53 wxString m_title;
54
55 wxFindReplaceDialogImpl *m_impl;
56
57 DECLARE_DYNAMIC_CLASS(wxFindReplaceDialog)
58 wxDECLARE_NO_COPY_CLASS(wxFindReplaceDialog);
59 };
60
61 #endif // _WX_MSW_FDREPDLG_H_