RVC::UI::DLG_EDIT_RASTER_VALUE Class Reference

Dialog allowing editing of raster cell value. More...

#include <rvc/uieditrastervalue.h>

Inheritance diagram for RVC::UI::DLG_EDIT_RASTER_VALUE:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DLG_EDIT_RASTER_VALUE (const MISTRING &title, const MISTRING &label, RVC::IMAGE::CELLTYPE CellType, HELPID HelpID=HELPID__None)
virtual ~DLG_EDIT_RASTER_VALUE ()
void GetValue (ANYRASTVALUE &value)
bool HasValue ()
void SetDelegateOnChangeValue (DELEGATE_VOID_NOPARMS delegate)
void SetValue (const ANYRASTVALUE &value, bool notify=true)

Private Member Functions

virtual ERRVALUE v_CreateContent ()

Private Attributes

RVC::IMAGE::CELLTYPE m_CellType
FORM_EDIT_RASTER_VALUE m_FormEditRasterValue
MISTRING m_label
ANYRASTVALUE m_value

Detailed Description

Dialog allowing editing of raster cell value.


Constructor & Destructor Documentation

RVC::UI::DLG_EDIT_RASTER_VALUE::DLG_EDIT_RASTER_VALUE ( const MISTRING title,
const MISTRING label,
RVC::IMAGE::CELLTYPE  CellType,
HELPID  HelpID = HELPID__None 
)

Constructor.

Parameters:
title Title string, can use TEXTID also
label Label
HelpID Help ID
virtual RVC::UI::DLG_EDIT_RASTER_VALUE::~DLG_EDIT_RASTER_VALUE (  )  [virtual]

Destructor.


Member Function Documentation

void RVC::UI::DLG_EDIT_RASTER_VALUE::GetValue ( ANYRASTVALUE value  ) 

Get current raster value.

bool RVC::UI::DLG_EDIT_RASTER_VALUE::HasValue (  ) 

Determine if value has been set.

void RVC::UI::DLG_EDIT_RASTER_VALUE::SetDelegateOnChangeValue ( DELEGATE_VOID_NOPARMS  delegate  ) 

Set delegate to call when value changed.

void RVC::UI::DLG_EDIT_RASTER_VALUE::SetValue ( const ANYRASTVALUE value,
bool  notify = true 
)

Set current value with validation.

If value specified is not valid for current raster type the value will not be updated. No comparison is made with the current value.

Parameters:
value New value to set
notify Call OnChangeValue() if value actually updated
virtual ERRVALUE RVC::UI::DLG_EDIT_RASTER_VALUE::v_CreateContent (  )  [private, virtual]

Create dialog shell contents.

Derived class MUST implement this. Function must return 0 for success or an error code. This will be called by the dialog creation code and must not be called directly. This is normally overridden only by the specific dialog implementation and not by the code that actually uses that dialog implementation. Implementation should call GetMainForm() or GetMainPane() to determine the form or pane to create the controls in. Note that you cannot override the dialog title in v_CreateContent, title must be set first. This function should not open another dialog, modal or non-modal.

Implements MGUI::DLGSHELL.


Member Data Documentation


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

Generated on Sun Oct 7 21:38:53 2012 for TNTsdk 2012 by  doxygen 1.6.1