#include <wx/preferences.h>
One page of preferences dialog.
This is the base class for implementation of application's preferences. Its methods return various properties of the page, such as title or icon. The actual page is created by CreateWindow().
Public Member Functions | |
wxPreferencesPage () | |
Constructor. | |
virtual | ~wxPreferencesPage () |
Destructor. | |
virtual wxString | GetName () const =0 |
Return name of the page. | |
virtual wxBitmap | GetLargeIcon () const =0 |
Return 32x32 icon used for the page on some platforms. | |
virtual wxWindow * | CreateWindow (wxWindow *parent)=0 |
Create a window for this page. | |
wxPreferencesPage::wxPreferencesPage | ( | ) |
Constructor.
|
virtual |
Destructor.
Create a window for this page.
The window will be placed into the preferences dialog in platform-specific manner. Depending on the platform, this method may be called before showing the preferences window, when switching to its tab or even more than once. Don't make assumptions about the number of times or the specific time when it is called.
The caller takes ownership of the window.
wxPanel is usually used, but doesn't have to be.
parent | Parent window to use. |
|
pure virtual |
Return 32x32 icon used for the page on some platforms.
Currently only used on OS X.
wxHAS_PREF_EDITOR_ICONS
is defined if this method must be implemented. Implemented in wxStockPreferencesPage.
|
pure virtual |
Return name of the page.
The name is used for notebook tab's label, icon label etc., depending on the platform.
Implemented in wxStockPreferencesPage.