#include <OptTreeCtrl.h>
Edit
| Options
dialog: custom data object.
This class holds informations about the item in the tree list control of the option's families. In particular, the informations stored in this object are:
mgOptBasePanel
panel window that is to be displayed when the user selects the treelist item itemID
used to create the specialized mgOptBasePanel
-derived class
Definition at line 84 of file OptTreeCtrl.h.
Public Member Functions | |
mgOptTreeCtrlItemData (IdOptionsPanel id, const wxString *className=0) | |
Constructor. | |
virtual | ~mgOptTreeCtrlItemData () |
Destructor - It does nothing. | |
Public Attributes | |
mgOptBasePanel * | m_panel |
The specialized panel to be shown when the item is selected. | |
wxString | m_className |
The class name of the specialized option's panel. | |
IdOptionsPanel | m_classID |
The class ID. |
|
Constructor.
Initialize the
Definition at line 55 of file OptTreeCtrl.cpp. |
|
The class ID. The panel's window class Identification. This is an enum. Definition at line 129 of file OptTreeCtrl.h. Referenced by mgOptTreeCtrlItemData(). |
|
The class name of the specialized option's panel. This is not used and initialized to an empty string. I used this for implementing the dynamical instantiation of the panelwxT('s window class using the wxWindow')s special RTTI feature. But this does not work on every platforms so I decided not to use it. Definition at line 123 of file OptTreeCtrl.h. Referenced by mgOptDlg::DisplayPanel(). |
|
The specialized panel to be shown when the item is selected. If NULL, the panel is not yet been created and it should be instantiated before using it. This allows to only create the option's panels on request when the user clicks on a treelist item and not in the constructor of the dialog: we have to save time (and RAM, too!).
Definition at line 113 of file OptTreeCtrl.h. Referenced by mgOptDlg::CommitChanges(), mgOptDlg::DisplayPanel(), and mgOptTreeCtrlItemData(). |
[ Top ] |