MGUI::FORM_EDIT_EXTENTS Class Reference

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

#include <mgui/formextents.h>

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

List of all members.

Public Types

enum  FLAGS {
  FLAG_None = 0x00, FLAG_AllowAllGeorefDatumTypes = 0x01, FLAG_NoChangeCoordRefSys = 0x02, FLAG_NoShowCRS = 0x04,
  FLAG_MinimalWidth = 0x08, FLAG_Precision0 = 0x10
}

Public Member Functions

 FORM_EDIT_EXTENTS ()
virtual ~FORM_EDIT_EXTENTS ()
void ClearExtents (bool notify=true)
void Create (MGUI::LAYOUT_PANE_BASE &ParentPane, bool IsRangeEditable=true, FLAGS flags=FLAG_None, MGUI::LAYOUT_SIZEALIGN sizealign=MGUI::LAYOUT_SIZEALIGN_FixedSize)
const SPATREF::COORDREFSYSGetCoordRefSys () const
const DRECT2DGetExtents () const
bool HasAllRangeValues ()
void SetCoordRefSys (const SPATREF::COORDREFSYS &CoordRefSys, bool notify=true)
void SetCoordRefSysEditable (bool IsCRSEditable)
void SetDelegateOnChangeCoordRefSys (DELEGATE_VOID_NOPARMS delegate)
void SetDelegateOnChangeExtents (DELEGATE_VOID_NOPARMS delegate)
void SetExtents (const DRECT2D &Extents, bool notify=true)
void SetRangeEditable (bool IsRangeEditable)
void SetRangeEnabled (bool IsRangeEnabled)

Detailed Description

Form consisting of label and string edit field.


Member Enumeration Documentation

Enumerator:
FLAG_None 
FLAG_AllowAllGeorefDatumTypes 

Allow all georeference-supported datum types.

FLAG_NoChangeCoordRefSys 

Disallow changing of coordinate reference system.

FLAG_NoShowCRS 

Don't show CRS selection controls.

FLAG_MinimalWidth 

Use minimal width for form.

FLAG_Precision0 

Use 0 decimal places of precision.


Constructor & Destructor Documentation

MGUI::FORM_EDIT_EXTENTS::FORM_EDIT_EXTENTS (  ) 

Constructor.

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

Destructor.


Member Function Documentation

void MGUI::FORM_EDIT_EXTENTS::ClearExtents ( bool  notify = true  ) 

Clear range edit controls.

void MGUI::FORM_EDIT_EXTENTS::Create ( MGUI::LAYOUT_PANE_BASE ParentPane,
bool  IsRangeEditable = true,
FLAGS  flags = FLAG_None,
MGUI::LAYOUT_SIZEALIGN  sizealign = MGUI::LAYOUT_SIZEALIGN_FixedSize 
)

Create form with label from resource lookup.

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

Get the projection to use for extents selection.

const DRECT2D& MGUI::FORM_EDIT_EXTENTS::GetExtents (  )  const [inline]

Get the extents of the form.

bool MGUI::FORM_EDIT_EXTENTS::HasAllRangeValues (  ) 

Determine if user has entered values for all range fields.

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

Set the projection to use for extents selection.

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

void MGUI::FORM_EDIT_EXTENTS::SetCoordRefSysEditable ( bool  IsCRSEditable  ) 

Set the coordinate reference system button and text as editable.

If not editable, button is disabled but text is still visible

void MGUI::FORM_EDIT_EXTENTS::SetDelegateOnChangeCoordRefSys ( DELEGATE_VOID_NOPARMS  delegate  )  [inline]

Set delegate to call when coordinate reference system changed.

void MGUI::FORM_EDIT_EXTENTS::SetDelegateOnChangeExtents ( DELEGATE_VOID_NOPARMS  delegate  )  [inline]

Set delegate to call when extents change.

void MGUI::FORM_EDIT_EXTENTS::SetExtents ( const DRECT2D Extents,
bool  notify = true 
)

Set the extents of the form Do this after the call to SetCoordRefSys() or the call to the method will alter the extents.

void MGUI::FORM_EDIT_EXTENTS::SetRangeEditable ( bool  IsRangeEditable  ) 

Set the extents section to be editable.

void MGUI::FORM_EDIT_EXTENTS::SetRangeEnabled ( bool  IsRangeEnabled  ) 

Set the extents section to be enabled.


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