MGUI::CTRL_EDIT_OBJECTNAME_T< _CT > Class Template Reference

Convenience template for String 'edit' control to allow method in container class to be called. More...

#include <mgui/formeditobjname.h>

Inheritance diagram for MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, _CT *pContainer, void(_CT::*pfOnChangeValue)(), bool(_CT::*pfOnValidate)(MISTRING &string), MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize)
 CTRL_EDIT_OBJECTNAME_T ()

Private Member Functions

virtual void OnChangeValue ()
virtual bool OnValidate (MISTRING &str)

Private Attributes

_CT * m_pContainer
void(_CT::* m_pfOnChangeValue )()
bool(_CT::* m_pfOnValidate )(MISTRING &)

Detailed Description

template<class _CT>
class MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >

Convenience template for String 'edit' control to allow method in container class to be called.

Definition at line 127 of file formeditobjname.h.


Constructor & Destructor Documentation

template<class _CT>
MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >::CTRL_EDIT_OBJECTNAME_T  )  [inline, explicit]
 

Constructor.

Definition at line 131 of file formeditobjname.h.


Member Function Documentation

template<class _CT>
void MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >::Create MGUI::LAYOUT_PANE_BASE ParentPane,
_CT *  pContainer,
void(_CT::*  pfOnChangeValue)(),
bool(_CT::*  pfOnValidate)(MISTRING &string),
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize
[inline]
 

Create control.

Parameters:
ParentPane  Parent pane
pContainer  Pointer to container
pfOnChangeValue  Function to call when value changed, NULL for none
pfOnValidate  Function to call for validation, NULL for none

Definition at line 136 of file formeditobjname.h.

template<class _CT>
virtual void MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >::OnChangeValue  )  [inline, private, virtual]
 

Called when value is changed after validation.

If the user modifies the text in the edit control this will not be called until the control loses "focus".

Reimplemented from MGUI::CTRL_EDIT_BASE.

Definition at line 154 of file formeditobjname.h.

template<class _CT>
virtual bool MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >::OnValidate MISTRING str  )  [inline, private, virtual]
 

Validate the string and alter if possible/necessary.

Derived class must call corresponding base class method BEFORE performing its own processing.

Returns:
'true' if string could be validated, 'false' if not

Reimplemented from MGUI::CTRL_EDIT_OBJECTNAME.

Definition at line 159 of file formeditobjname.h.


Member Data Documentation

template<class _CT>
_CT* MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >::m_pContainer [private]
 

Definition at line 150 of file formeditobjname.h.

template<class _CT>
void(_CT::* MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >::m_pfOnChangeValue)() [private]
 

template<class _CT>
bool(_CT::* MGUI::CTRL_EDIT_OBJECTNAME_T< _CT >::m_pfOnValidate)(MISTRING &) [private]
 


The documentation for this class was generated from the following file:
Generated on Wed May 31 15:29:48 2006 for TNTsdk by  doxygen 1.3.8-20040913