preferences.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ///////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/private/preferences.h
  3. // Purpose: wxPreferencesEditorImpl declaration.
  4. // Author: Vaclav Slavik
  5. // Created: 2013-02-19
  6. // Copyright: (c) 2013 Vaclav Slavik <vslavik@fastmail.fm>
  7. // Licence: wxWindows licence
  8. ///////////////////////////////////////////////////////////////////////////////
  9. #ifndef _WX_PRIVATE_PREFERENCES_H_
  10. #define _WX_PRIVATE_PREFERENCES_H_
  11. #include "wx/preferences.h"
  12. #if wxUSE_TOOLBAR && defined(__WXOSX_COCOA__) && wxOSX_USE_NATIVE_TOOLBAR
  13. #define wxHAS_PREF_EDITOR_NATIVE
  14. #endif
  15. // ----------------------------------------------------------------------------
  16. // wxPreferencesEditorImpl: defines wxPreferencesEditor implementation.
  17. // ----------------------------------------------------------------------------
  18. class wxPreferencesEditorImpl
  19. {
  20. public:
  21. // This is implemented in a platform-specific way.
  22. static wxPreferencesEditorImpl* Create(const wxString& title);
  23. // These methods simply mirror the public wxPreferencesEditor ones.
  24. virtual void AddPage(wxPreferencesPage* page) = 0;
  25. virtual void Show(wxWindow* parent) = 0;
  26. virtual void Dismiss() = 0;
  27. virtual ~wxPreferencesEditorImpl() {}
  28. protected:
  29. wxPreferencesEditorImpl() {}
  30. };
  31. #endif // _WX_PRIVATE_PREFERENCES_H_