MGUI::FORM_EDIT_RASTER_VALUE Class Reference

Form consisting of label and string edit field. More...

#include <mgui/formrastervalue.h>

Inheritance diagram for MGUI::FORM_EDIT_RASTER_VALUE:

Inheritance graph
[legend]
List of all members.

Public Member Functions

void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, const MISTRING &label, RVC::IMAGE::CELLTYPE CellType, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, MGUI::CTRL_LABEL::STYLE labelstyle=MGUI::CTRL_LABEL::STYLE_LeftNoWrap)
 FORM_EDIT_RASTER_VALUE ()
MGUI::CTRL_LABELGetLabel ()
void GetValue (ANYRASTVALUE &value)
void SetCellType (RVC::IMAGE::CELLTYPE CellType)
void SetLabel (const MISTRING &label)
void SetValue (const ANYRASTVALUE &value, bool notify=true)
virtual ~FORM_EDIT_RASTER_VALUE ()

Protected Member Functions

virtual void v_OnChangeValue ()

Private Member Functions

void OnValueChanged ()

Private Attributes

RVC::IMAGE::CELLTYPE m_CellType
CTRL_LABEL m_label
FORM_EDIT_NUMBER_T< FORM_EDIT_RASTER_VALUEm_Value1
FORM_EDIT_NUMBER_T< FORM_EDIT_RASTER_VALUEm_Value2
FORM_EDIT_NUMBER_T< FORM_EDIT_RASTER_VALUEm_Value3
FORM_EDIT_NUMBER_T< FORM_EDIT_RASTER_VALUEm_Value4

Detailed Description

Form consisting of label and string edit field.

Definition at line 43 of file formrastervalue.h.


Constructor & Destructor Documentation

MGUI::FORM_EDIT_RASTER_VALUE::FORM_EDIT_RASTER_VALUE  ) 
 

Constructor.

virtual MGUI::FORM_EDIT_RASTER_VALUE::~FORM_EDIT_RASTER_VALUE  )  [virtual]
 

Destructor.


Member Function Documentation

void MGUI::FORM_EDIT_RASTER_VALUE::Create MGUI::LAYOUT_PANE_BASE ParentPane,
const MISTRING label,
RVC::IMAGE::CELLTYPE  CellType,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize,
MGUI::CTRL_LABEL::STYLE  labelstyle = MGUI::CTRL_LABEL::STYLE_LeftNoWrap
 

Create form with label from resource lookup.

Parameters:
ParentPane  Parent pane
label  Label

MGUI::CTRL_LABEL& MGUI::FORM_EDIT_RASTER_VALUE::GetLabel  )  [inline]
 

Retrieve label control for form.

Usually the label control is only retrieved for alignment purposes.

Definition at line 64 of file formrastervalue.h.

void MGUI::FORM_EDIT_RASTER_VALUE::GetValue ANYRASTVALUE value  ) 
 

Get current raster value.

void MGUI::FORM_EDIT_RASTER_VALUE::OnValueChanged  )  [private]
 

void MGUI::FORM_EDIT_RASTER_VALUE::SetCellType RVC::IMAGE::CELLTYPE  CellType  ) 
 

void MGUI::FORM_EDIT_RASTER_VALUE::SetLabel const MISTRING label  )  [inline]
 

Set label text using string from resource lookup.

Parameters:
label  New label text

Definition at line 77 of file formrastervalue.h.

void MGUI::FORM_EDIT_RASTER_VALUE::SetValue const ANYRASTVALUE value,
bool  notify = true
 

Set current string value with validation.

OnValidate() will be called and if valid, the string will be updated. No comparison is made with the current string value.

Parameters:
value  New value to set
notify  Call OnChangeValue() if string actually updated

virtual void MGUI::FORM_EDIT_RASTER_VALUE::v_OnChangeValue  )  [protected, virtual]
 

Called when value is changed after validation.

Derived class must call corresponding base class method BEFORE performing its own processing. If the user modifies the text in the edit control this will not be called until the control loses "focus".

Reimplemented in MGUI::FORM_EDIT_RASTER_VALUE_T< _CT >.


Member Data Documentation

RVC::IMAGE::CELLTYPE MGUI::FORM_EDIT_RASTER_VALUE::m_CellType [private]
 

Definition at line 97 of file formrastervalue.h.

CTRL_LABEL MGUI::FORM_EDIT_RASTER_VALUE::m_label [private]
 

Definition at line 98 of file formrastervalue.h.

FORM_EDIT_NUMBER_T<FORM_EDIT_RASTER_VALUE> MGUI::FORM_EDIT_RASTER_VALUE::m_Value1 [private]
 

Definition at line 99 of file formrastervalue.h.

FORM_EDIT_NUMBER_T<FORM_EDIT_RASTER_VALUE> MGUI::FORM_EDIT_RASTER_VALUE::m_Value2 [private]
 

Definition at line 100 of file formrastervalue.h.

FORM_EDIT_NUMBER_T<FORM_EDIT_RASTER_VALUE> MGUI::FORM_EDIT_RASTER_VALUE::m_Value3 [private]
 

Definition at line 101 of file formrastervalue.h.

FORM_EDIT_NUMBER_T<FORM_EDIT_RASTER_VALUE> MGUI::FORM_EDIT_RASTER_VALUE::m_Value4 [private]
 

Definition at line 102 of file formrastervalue.h.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:20:53 2004 for TNTsdk by  doxygen 1.3.8-20040913