MGUI::FORM_EDIT_COORD Class Reference

Form consisting of label and edit fields for editing a single coordinate. More...

#include <mgui/formcoord.h>

Inheritance diagram for MGUI::FORM_EDIT_COORD:
Inheritance graph
[legend]

List of all members.

Public Types

enum  FLAGS { FLAG_Default = 0x0000, FLAG_EditZCoord = 0x0001, FLAG_ShowCRS = 0x0002 }

Public Member Functions

 FORM_EDIT_COORD ()
virtual ~FORM_EDIT_COORD ()
void Clear (bool notify=true)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize, FLAGS flags=FLAG_Default)
const SPATREF::COORDREFSYSGetCoordRefSys () const
CTRL_LABELGetLabelX ()
CTRL_LABELGetLabelY ()
CTRL_LABELGetLabelZ ()
const DPOINT3DGetValue () const
bool HasValues ()
void SetCoordRefSys (const SPATREF::COORDREFSYS &CoordRefSys, bool notify=true)
void SetDelegateOnChangeValue (DELEGATE_VOID_NOPARMS delegate)
void SetValue (const DPOINT3D &Point, bool notify=true)
void SetValue (const DPOINT2D &Point, bool notify=true)

Detailed Description

Form consisting of label and edit fields for editing a single coordinate.


Member Enumeration Documentation

Enumerator:
FLAG_Default 
FLAG_EditZCoord 
FLAG_ShowCRS 

Constructor & Destructor Documentation

MGUI::FORM_EDIT_COORD::FORM_EDIT_COORD (  ) 

Constructor.

virtual MGUI::FORM_EDIT_COORD::~FORM_EDIT_COORD (  )  [virtual]

Destructor.


Member Function Documentation

void MGUI::FORM_EDIT_COORD::Clear ( bool  notify = true  ) 

Clear range edit controls.

void MGUI::FORM_EDIT_COORD::Create ( MGUI::LAYOUT_PANE_BASE ParentPane,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize,
FLAGS  flags = FLAG_Default 
)

Create form with label from resource lookup.

Parameters:
ParentPane Parent pane
const SPATREF::COORDREFSYS& MGUI::FORM_EDIT_COORD::GetCoordRefSys (  )  const [inline]

Get the projection to use for extents selection.

CTRL_LABEL& MGUI::FORM_EDIT_COORD::GetLabelX (  )  [inline]

Get X label control.

CTRL_LABEL& MGUI::FORM_EDIT_COORD::GetLabelY (  )  [inline]

Get Y label control.

CTRL_LABEL& MGUI::FORM_EDIT_COORD::GetLabelZ (  )  [inline]

Get Z label control.

const DPOINT3D& MGUI::FORM_EDIT_COORD::GetValue (  )  const [inline]

Get the extents of the form.

bool MGUI::FORM_EDIT_COORD::HasValues (  ) 

Determine if user has entered values for both x and y (and z if enabled).

void MGUI::FORM_EDIT_COORD::SetCoordRefSys ( const SPATREF::COORDREFSYS CoordRefSys,
bool  notify = true 
)

Set the projection to use for coordinate selection.

If a projection and value coordinates exists, the coordinate will be converted to the new projection

void MGUI::FORM_EDIT_COORD::SetDelegateOnChangeValue ( DELEGATE_VOID_NOPARMS  delegate  )  [inline]

Set delegate to call when value changed.

void MGUI::FORM_EDIT_COORD::SetValue ( const DPOINT3D Point,
bool  notify = true 
)

Set the coordinate of the form Do this after the call to SetProjection() or the call to the method will alter the point.

void MGUI::FORM_EDIT_COORD::SetValue ( const DPOINT2D Point,
bool  notify = true 
)

Set the coordinate of the form Do this after the call to SetProjection() or the call to the method will alter the point.


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

Generated on Sun Oct 7 21:35:57 2012 for TNTsdk 2012 by  doxygen 1.6.1