X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/615f9ff096c8c6553361975ab0504255c0f1f584..5d9b5db01e6b36835af126413461c897026e438a:/include/wx/preferences.h diff --git a/include/wx/preferences.h b/include/wx/preferences.h index 1a07fd857b..7eee648289 100644 --- a/include/wx/preferences.h +++ b/include/wx/preferences.h @@ -3,7 +3,6 @@ // Purpose: Declaration of wxPreferencesEditor class. // Author: Vaclav Slavik // Created: 2013-02-19 -// RCS-ID: $Id$ // Copyright: (c) 2013 Vaclav Slavik // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -12,6 +11,9 @@ #define _WX_PREFERENCES_H_ #include "wx/defs.h" + +#if wxUSE_PREFERENCES_EDITOR + #include "wx/bitmap.h" #include "wx/vector.h" @@ -93,7 +95,9 @@ class WXDLLIMPEXP_CORE wxPreferencesEditor public: // Ctor creates an empty editor, use AddPage() to add controls to it. wxPreferencesEditor(const wxString& title = wxString()); - ~wxPreferencesEditor(); + + // Dtor destroys the dialog if still shown. + virtual ~wxPreferencesEditor(); // Add a new page to the editor. The editor takes ownership of the page // and won't delete it until it is destroyed itself. @@ -136,4 +140,6 @@ private: wxDECLARE_NO_COPY_CLASS(wxPreferencesEditor); }; +#endif // wxUSE_PREFERENCES_EDITOR + #endif // _WX_PREFERENCES_H_