]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/private/preferences.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/preferences.h
3 // Purpose: wxPreferencesEditorImpl declaration.
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_PRIVATE_PREFERENCES_H_
11 #define _WX_PRIVATE_PREFERENCES_H_
13 #include "wx/preferences.h"
15 #if wxUSE_TOOLBAR && defined(__WXOSX_COCOA__) && wxOSX_USE_NATIVE_TOOLBAR
16 #define wxHAS_PREF_EDITOR_NATIVE
19 // ----------------------------------------------------------------------------
20 // wxPreferencesEditorImpl: defines wxPreferencesEditor implementation.
21 // ----------------------------------------------------------------------------
23 class wxPreferencesEditorImpl
26 // This is implemented in a platform-specific way.
27 static wxPreferencesEditorImpl
* Create(const wxString
& title
);
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;
34 virtual ~wxPreferencesEditorImpl() {}
37 wxPreferencesEditorImpl() {}
40 #endif // _WX_PRIVATE_PREFERENCES_H_