Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

mgOptTreeCtrlItemData Class Reference

#include <OptTreeCtrl.h>

List of all members.


Detailed Description

The 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:

See also:
mgOptionsTreeCtrl mgOptDlg::CreatePanel mgOptDlg#DispalyPanel

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

mgOptBasePanelm_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 & Destructor Documentation

mgOptTreeCtrlItemData::mgOptTreeCtrlItemData IdOptionsPanel  id,
const wxString *  className = 0
 

Constructor.

Initialize the m_className to the empty string and sets to NULL the m_panel pointer.

Parameters:
id The identifier for the optionwxT('s panel')s window class
className classname string. not used, should be empty string.

Definition at line 55 of file OptTreeCtrl.cpp.

References m_classID, and m_panel.


Member Data Documentation

IdOptionsPanel mgOptTreeCtrlItemData::m_classID
 

The class ID.

The panel's window class Identification. This is an enum.

Definition at line 129 of file OptTreeCtrl.h.

Referenced by mgOptTreeCtrlItemData().

wxString mgOptTreeCtrlItemData::m_className
 

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().

mgOptBasePanel* mgOptTreeCtrlItemData::m_panel
 

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!).

See also:
mgOptDlg::CreatePanel

Definition at line 113 of file OptTreeCtrl.h.

Referenced by mgOptDlg::CommitChanges(), mgOptDlg::DisplayPanel(), and mgOptTreeCtrlItemData().


The documentation for this class was generated from the following files:

Documentation generated with Doxygen on Sun Feb 6 17:19:27 2005
Visit MathStudio home page for more info

[ Top ]