]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/private/preferences.h
f68893a99de4e83cf18c7569853267eecb3f072b
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/preferences.h
3 // Purpose: wxPreferencesEditorImpl declaration.
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PRIVATE_PREFERENCES_H_
12 #define _WX_PRIVATE_PREFERENCES_H_
14 #include "wx/preferences.h"
16 #if wxUSE_TOOLBAR && defined(__WXOSX_COCOA__) && wxOSX_USE_NATIVE_TOOLBAR
17 #define wxHAS_PREF_EDITOR_NATIVE
20 #if defined(__WXOSX__) || defined(__WXGTK__)
21 #define wxHAS_PREF_EDITOR_MODELESS
24 // ----------------------------------------------------------------------------
25 // wxPreferencesEditorImpl: defines wxPreferencesEditor implementation.
26 // ----------------------------------------------------------------------------
28 class wxPreferencesEditorImpl
31 // This is implemented in a platform-specific way.
32 static wxPreferencesEditorImpl
* Create(const wxString
& title
);
34 // These methods simply mirror the public wxPreferencesEditor ones.
35 virtual void AddPage(wxPreferencesPage
* page
) = 0;
36 virtual void Show(wxWindow
* parent
) = 0;
37 virtual void Dismiss() = 0;
39 virtual ~wxPreferencesEditorImpl() {}
42 wxPreferencesEditorImpl() {}
45 #endif // _WX_PRIVATE_PREFERENCES_H_