]>
git.saurik.com Git - wxWidgets.git/blob - src/common/preferencescmn.cpp
cb86a8f456e3e4a115a6eda5c961a8ccf1d4cfc1
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/preferencescmn.cpp
3 // Purpose: wxPreferencesEditor implementation common to all platforms.
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 // ============================================================================
13 // ============================================================================
15 // ----------------------------------------------------------------------------
17 // ----------------------------------------------------------------------------
19 // for compilers that support precompilation, includes "wx.h".
20 #include "wx/wxprec.h"
26 #if wxUSE_PREFERENCES_EDITOR
28 #include "wx/private/preferences.h"
31 // ============================================================================
33 // ============================================================================
35 wxString
wxStockPreferencesPage::GetName() const
44 return wxString(); // silence compiler warning
47 wxPreferencesEditor::wxPreferencesEditor(const wxString
& title
)
48 : m_impl(wxPreferencesEditorImpl::Create(title
))
52 wxPreferencesEditor::~wxPreferencesEditor()
57 void wxPreferencesEditor::AddPage(wxPreferencesPage
* page
)
59 wxCHECK_RET( page
, "can't set NULL page" );
60 m_impl
->AddPage(page
);
63 void wxPreferencesEditor::Show(wxWindow
* parent
)
68 void wxPreferencesEditor::Dismiss()
73 #endif // wxUSE_PREFERENCES_EDITOR