// Purpose: Implementation of wxPreferencesEditor.
// Author: Vaclav Slavik
// Created: 2013-02-19
-// RCS-ID: $Id$
// Copyright: (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
#pragma hdrstop
#endif
+#if wxUSE_PREFERENCES_EDITOR
+
#include "wx/private/preferences.h"
#ifndef wxHAS_PREF_EDITOR_NATIVE
dlg->AddPage(i->get());
}
+ dlg->Fit();
+
return dlg;
}
m_dlg = dlg.get();
wxON_BLOCK_EXIT_NULL(m_dlg);
- dlg->Fit();
-
// Restore the previously selected page, if any.
if ( m_currentPage != -1 )
dlg->SelectPage(m_currentPage);
}
#endif // !wxHAS_PREF_EDITOR_NATIVE
+
+#endif // wxUSE_PREFERENCES_EDITOR