#include <OptGeneral.h>
Inheritance diagram for mgOptGeneralPanel:
All the previous variables are STATIC, so this panel doesn't need to own an instance of each class.
Definition at line 68 of file OptGeneral.h.
Protected Member Functions | |
virtual mgOptDlg::mgOptChangedType | CommitChanges (wxConfig *config) |
Commits the changes made by the user. | |
virtual void | Setup (const wxString &itemLabel) |
The alter ego of the constructor. | |
void | BuildCtrls () |
Creates all the controls whose pointers are stored in member variables for fast access. |
|
Commits the changes made by the user.
The virtual function is called with a pointer to a The function should change the variables used by MathCore and MathGUI in order to reflect changes in the configuration. In other words, if the user changed the font family and / or size this function should delete the font object used by the application and replace it with a new font ehich caracteristics are those specified by the user and store the pointer of the newly created font object in the MathCore library. There is no need for the function to store the settings in the configuration objevt because they will be stored automatically at program exit in CMathApp::OnExit() function. In order to refresh the application apareance when the user changes options settings (such as a font), the function returns a constant value, which is an enum, that represent what aspect of the application is to be refreshed. It is the caller responsability to do the actual work.
Implements mgOptBasePanel. Definition at line 84 of file OptGeneral.cpp. |
|
The alter ego of the constructor.
This function is the real ctor of the class. It is called from As you cannot set properies for the panel such as fonts, background color atc. in the class's ctor you have to set them in this function.
The The default implementation of this class just creates a wxStaticBoxSizer equal to the size of the panel and sets its label as the treelist's item's label. Specialized derived classes should construct the child controls and the sizer or layout constarints objects to be bounded to childs. Implements mgOptBasePanel. Definition at line 66 of file OptGeneral.cpp. References BuildCtrls(). |
[ Top ] |