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