]> git.saurik.com Git - wxWidgets.git/blob - include/wx/private/preferences.h
Fix wxPropertyGrid::GetPropertyRect when the last item is collapsed.
[wxWidgets.git] / include / wx / private / preferences.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/preferences.h
3 // Purpose: wxPreferencesEditorImpl declaration.
4 // Author: Vaclav Slavik
5 // Created: 2013-02-19
6 // Copyright: (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_PRIVATE_PREFERENCES_H_
11 #define _WX_PRIVATE_PREFERENCES_H_
12
13 #include "wx/preferences.h"
14
15 #if wxUSE_TOOLBAR && defined(__WXOSX_COCOA__) && wxOSX_USE_NATIVE_TOOLBAR
16 #define wxHAS_PREF_EDITOR_NATIVE
17 #endif
18
19 // ----------------------------------------------------------------------------
20 // wxPreferencesEditorImpl: defines wxPreferencesEditor implementation.
21 // ----------------------------------------------------------------------------
22
23 class wxPreferencesEditorImpl
24 {
25 public:
26 // This is implemented in a platform-specific way.
27 static wxPreferencesEditorImpl* Create(const wxString& title);
28
29 // These methods simply mirror the public wxPreferencesEditor ones.
30 virtual void AddPage(wxPreferencesPage* page) = 0;
31 virtual void Show(wxWindow* parent) = 0;
32 virtual void Dismiss() = 0;
33
34 virtual ~wxPreferencesEditorImpl() {}
35
36 protected:
37 wxPreferencesEditorImpl() {}
38 };
39
40 #endif // _WX_PRIVATE_PREFERENCES_H_