]>
git.saurik.com Git - wxWidgets.git/blob - src/common/preferencescmn.cpp
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: src/common/preferencescmn.cpp
3 // Purpose: wxPreferencesEditor implementation common to all platforms.
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 // ============================================================================
12 // ============================================================================
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 // for compilers that support precompilation, includes "wx.h".
19 #include "wx/wxprec.h"
25 #if wxUSE_PREFERENCES_EDITOR
27 #include "wx/private/preferences.h"
30 // ============================================================================
32 // ============================================================================
34 wxString
wxStockPreferencesPage::GetName() const
43 return wxString(); // silence compiler warning
46 wxPreferencesEditor::wxPreferencesEditor(const wxString
& title
)
47 : m_impl(wxPreferencesEditorImpl::Create(title
))
51 wxPreferencesEditor::~wxPreferencesEditor()
56 void wxPreferencesEditor::AddPage(wxPreferencesPage
* page
)
58 wxCHECK_RET( page
, "can't set NULL page" );
59 m_impl
->AddPage(page
);
62 void wxPreferencesEditor::Show(wxWindow
* parent
)
67 void wxPreferencesEditor::Dismiss()
72 #endif // wxUSE_PREFERENCES_EDITOR