VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes
makVrv::DtGridLinesPage Class Reference

The grid lines page, controls for configuring grid lines. More...

Inheritance diagram for makVrv::DtGridLinesPage:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtGridLinesPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 Constructor of the page.
virtual ~DtGridLinesPage ()
 DTOR.
virtual QIcon icon ()
 Get the icon of the page.
virtual QString title ()
 Get the title of the page.
virtual const std::string & pageClassName () const
 Get the class name of the page.
virtual void setAutoSpacing (bool autoSpacing)
 Set the auto spacing on or off.
virtual void setFixedSpacingAmount (double amount)
 Set the fixed spacing for the current unit type.
virtual void setMaxFixedSpacing (double maxSpacing)
 Set the maximum allowable fixed spacing.
virtual void setMinFixedSpacing (double minSpacing)
 Set the minimum fixed spacing allowed.
virtual void setGridType (makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType)
 Set the current grid type.
virtual void clearGridTypes ()
 Clears out grid type systems.
virtual void disableAllGridTypes ()
 Disable all the grid types.
virtual void addGridType (const DtUnicode &gridName, makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType)
 Adds a new coordinate system.
virtual void setXOffset (double offset)
 Set the x offset for the current unit type.
virtual void setYOffset (double offset)
 Set the y offset for the current unit type.
virtual void setMinSpacing (int pixels)
 Set the minimum allowed spacing.
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType)
 Set the unit type (meters, feet, or degrees)
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType)
virtual void clearUnitTypes ()
 Clear the units.
virtual void setUnitTypeEnabled (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType, bool enabled)
 Enable the specified unit type.
virtual void setUnitTypeEnabled (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType, bool enabled)
virtual void addUnitType (const DtUnicode &unitName, makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType)
 Add a unit type.
virtual void addUnitType (const DtUnicode &unitName, makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType)
virtual void setDecimals (unsigned decimals)
 Set the decimals to use for mil grid.
virtual void setFixedSpacingAmountEnabled (bool enabled)
 Enable or disable the fixed spacing amount spin box.
virtual void setMinSpacingEnabled (bool enabled)
 Enable or disable the min spacing spin box.
virtual void setGridTypeEnabled (makArchives::DtDisplayUnitsSettingsRecord::CoordSys, bool enabled)
 Enable or disable a specific grid type within the grid type combo box.
virtual void setDecimalsEnabled (bool enabled)
 Enable or disable the decimals spin box.

Static Public Member Functions

static const std::string & thePageClassName ()
 Get the class name of the page.

Public Attributes

DtPersistenceToolbarWidgetmyToolbar
QGridLayout * myGridTypeLayout
QLabelmyGridTypeLabel
QComboBoxmyGridTypeComboBox
QLabelmyUnitTypeLabel
QComboBoxmyUnitTypeComboBox
QLabelmyDecimalsLabel
QSpinBox * myDecimalsSpinBox
QButtonGroup * mySpacingButtonGroup
QRadioButton * myAutoSpacingRadioButton
QRadioButton * myFixedSpacingRadioButton
QLabelmySpacingAmountLabel
QLabelmyMinSpacingLabel
QDoubleSpinBox * mySpacingAmountSpinBox
QSpinBox * myMinSpacingSpinBox
QHBoxLayout * myXOffsetLayout
QHBoxLayout * myYOffsetLayout
QLabelmyXOffsetLabel
QLabelmyYOffsetLabel
QDoubleSpinBox * myXOffsetSpinBox
QDoubleSpinBox * myYOffsetSpinBox

Protected Slots

void on_gridTypeCombo_currentIndexChanged (int index)
 Handle Qt signal when grid type selected.
void on_unitTypeCombo_currentIndexChanged (int index)
 Handle Qt signal when unit type selected.
void on_autoSpacingRadioButtonClicked ()
 Handle Qt signal when the auto spacing radio button is clicked.
void on_fixedSpacingRadioButtonClicked ()
 Handle Qt signal when the fixed spacing radio button is clicked.
void on_fixedSpacingAmountChanged (double val)
 Handle Qt signal when the fixed spacing amount changes.
void on_minSpacingChanged (int val)
 Handle Qt signal when the min spacing amount changes.
void on_xOffsetChanged (double val)
 Handle Qt signal when the xOffset amount changes.
void on_yOffsetChanged (double val)
 Handle Qt signal when the yOffset amount changes.
void on_decimalsChanged (int decimals)
 Handle Qt signal when the decimals changes.

Protected Member Functions

void setupGui ()
 Sets up the widget's fields.
void connectToSignals ()
 Connects widget signals to slots.
virtual void activate ()
 Called when the page is displayed.
virtual void deactivate ()
 Called when the page is hidden.
QString notation (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType)
 Setup units on spacing edit boxes ( (m), (ft), etc.)
QString notation (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType)
void setupUnitLabels (const QString &notation)

Protected Attributes

DtDemyDe
DtVirtualBaseClassmyLogic
std::string myClassName
bool myUsingAngularUnits

Detailed Description

The grid lines page, controls for configuring grid lines.


Constructor & Destructor Documentation

makVrv::DtGridLinesPage::DtGridLinesPage ( DtDe de,
QWidget parent = 0,
Qt::WindowFlags  f = 0 
)

Constructor of the page.

DTOR.


Member Function Documentation

virtual QIcon makVrv::DtGridLinesPage::icon ( ) [virtual]

Get the icon of the page.

Implements makVrv::DtPage.

virtual QString makVrv::DtGridLinesPage::title ( ) [virtual]

Get the title of the page.

Implements makVrv::DtPage.

virtual const std::string& makVrv::DtGridLinesPage::pageClassName ( ) const [virtual]

Get the class name of the page.

Implements makVrv::DtPage.

static const std::string& makVrv::DtGridLinesPage::thePageClassName ( ) [static]

Get the class name of the page.

virtual void makVrv::DtGridLinesPage::setAutoSpacing ( bool  autoSpacing) [virtual]

Set the auto spacing on or off.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setFixedSpacingAmount ( double  amount) [virtual]

Set the fixed spacing for the current unit type.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setMaxFixedSpacing ( double  maxSpacing) [virtual]

Set the maximum allowable fixed spacing.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setMinFixedSpacing ( double  minSpacing) [virtual]

Set the minimum fixed spacing allowed.

Implements makVrv::DtGridLinesInterface.

Set the current grid type.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::clearGridTypes ( ) [virtual]

Clears out grid type systems.

Implements makVrv::DtGridLinesInterface.

Disable all the grid types.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::addGridType ( const DtUnicode gridName,
makArchives::DtDisplayUnitsSettingsRecord::CoordSys  gridType 
) [virtual]

Adds a new coordinate system.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setXOffset ( double  offset) [virtual]

Set the x offset for the current unit type.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setYOffset ( double  offset) [virtual]

Set the y offset for the current unit type.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setMinSpacing ( int  pixels) [virtual]

Set the minimum allowed spacing.

Implements makVrv::DtGridLinesInterface.

Set the unit type (meters, feet, or degrees)

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::clearUnitTypes ( ) [virtual]

Clear the units.

Implements makVrv::DtGridLinesInterface.

Enable the specified unit type.

Implements makVrv::DtGridLinesInterface.

Add a unit type.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setDecimals ( unsigned  decimals) [virtual]

Set the decimals to use for mil grid.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setFixedSpacingAmountEnabled ( bool  enabled) [virtual]

Enable or disable the fixed spacing amount spin box.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setMinSpacingEnabled ( bool  enabled) [virtual]

Enable or disable the min spacing spin box.

Implements makVrv::DtGridLinesInterface.

Enable or disable a specific grid type within the grid type combo box.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setDecimalsEnabled ( bool  enabled) [virtual]

Enable or disable the decimals spin box.

Implements makVrv::DtGridLinesInterface.

Handle Qt signal when grid type selected.

Handle Qt signal when unit type selected.

Handle Qt signal when the auto spacing radio button is clicked.

Handle Qt signal when the fixed spacing radio button is clicked.

void makVrv::DtGridLinesPage::on_fixedSpacingAmountChanged ( double  val) [protected, slot]

Handle Qt signal when the fixed spacing amount changes.

void makVrv::DtGridLinesPage::on_minSpacingChanged ( int  val) [protected, slot]

Handle Qt signal when the min spacing amount changes.

void makVrv::DtGridLinesPage::on_xOffsetChanged ( double  val) [protected, slot]

Handle Qt signal when the xOffset amount changes.

void makVrv::DtGridLinesPage::on_yOffsetChanged ( double  val) [protected, slot]

Handle Qt signal when the yOffset amount changes.

void makVrv::DtGridLinesPage::on_decimalsChanged ( int  decimals) [protected, slot]

Handle Qt signal when the decimals changes.

void makVrv::DtGridLinesPage::setupGui ( ) [protected]

Sets up the widget's fields.

Non-virtual (Called from CTOR).

Connects widget signals to slots.

Non-virtual (Called from CTOR).

virtual void makVrv::DtGridLinesPage::activate ( ) [protected, virtual]

Called when the page is displayed.

Implements makVrv::DtPage.

virtual void makVrv::DtGridLinesPage::deactivate ( ) [protected, virtual]

Called when the page is hidden.

Implements makVrv::DtPage.

Setup units on spacing edit boxes ( (m), (ft), etc.)

void makVrv::DtGridLinesPage::setupUnitLabels ( const QString &  notation) [protected]

Member Data Documentation

Reimplemented from makVrv::DtPage.

std::string makVrv::DtGridLinesPage::myClassName [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)