VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | 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]

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.
- Public Member Functions inherited from makVrv::DtPage
 DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR for page.
virtual ~DtPage ()
 DTOR for page.
- Public Member Functions inherited from makVrv::DtGridLinesInterface
 DtGridLinesInterface ()
 CTOR.
virtual ~DtGridLinesInterface ()
 DTOR.

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
QSpinBoxmyDecimalsSpinBox
QButtonGroup * mySpacingButtonGroup
QRadioButton * myAutoSpacingRadioButton
QRadioButton * myFixedSpacingRadioButton
QLabelmySpacingAmountLabel
QLabelmyMinSpacingLabel
QDoubleSpinBox * mySpacingAmountSpinBox
QSpinBoxmyMinSpacingSpinBox
QHBoxLayout * myXOffsetLayout
QHBoxLayout * myYOffsetLayout
QLabelmyXOffsetLabel
QLabelmyYOffsetLabel
QDoubleSpinBox * myXOffsetSpinBox
QDoubleSpinBox * myYOffsetSpinBox
- Public Attributes inherited from makVrv::DtGridLinesInterface
boost::signal< void(makArchives::DtDisplayUnitsSettingsRecord::CoordSys)> signal_gridTypeChanged
 Signal sent by page when the grid type changes.
boost::signal< void(makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits)> signal_unitTypeChanged
 Signal sent by page when the grid type changes.
boost::signal< void(makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits)> signal_angularUnitTypeChanged
boost::signal< void(bool)> signal_autoSpacingChanged
 Signal sent by page when auto spacing changes.
boost::signal< void(double)> signal_fixedSpacingAmountChanged
 Signal sent by page when the fixed spacing amount changes.
boost::signal< void(int)> signal_minSpacingChanged
 Signal sent by page when the minimum spacing amount changes.
boost::signal< void(double)> signal_xOffsetChanged
 Signal sent by page when the xOffset changes.
boost::signal< void(double)> signal_yOffsetChanged
 Signal sent by page when the yOffset changes.
boost::signal< void(unsigned)> signal_decimalsChanged
 Signal sent by page when the decimals changes.

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
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe

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.

virtual makVrv::DtGridLinesPage::~DtGridLinesPage ( )
virtual

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.

virtual void makVrv::DtGridLinesPage::setGridType ( makArchives::DtDisplayUnitsSettingsRecord::CoordSys  gridType)
virtual

Set the current grid type.

Implements makVrv::DtGridLinesInterface.

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

Clears out grid type systems.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::disableAllGridTypes ( )
virtual

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.

virtual void makVrv::DtGridLinesPage::setUnitType ( makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits  unitType)
virtual

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

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setUnitType ( makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits  unitType)
virtual
virtual void makVrv::DtGridLinesPage::clearUnitTypes ( )
virtual

Clear the units.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setUnitTypeEnabled ( makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits  unitType,
bool  enabled 
)
virtual

Enable the specified unit type.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setUnitTypeEnabled ( makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits  unitType,
bool  enabled 
)
virtual
virtual void makVrv::DtGridLinesPage::addUnitType ( const DtUnicode unitName,
makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits  unitType 
)
virtual

Add a unit type.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::addUnitType ( const DtUnicode unitName,
makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits  unitType 
)
virtual
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.

virtual void makVrv::DtGridLinesPage::setGridTypeEnabled ( makArchives::DtDisplayUnitsSettingsRecord::CoordSys  ,
bool  enabled 
)
virtual

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.

void makVrv::DtGridLinesPage::on_gridTypeCombo_currentIndexChanged ( int  index)
protectedslot

Handle Qt signal when grid type selected.

void makVrv::DtGridLinesPage::on_unitTypeCombo_currentIndexChanged ( int  index)
protectedslot

Handle Qt signal when unit type selected.

void makVrv::DtGridLinesPage::on_autoSpacingRadioButtonClicked ( )
protectedslot

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

void makVrv::DtGridLinesPage::on_fixedSpacingRadioButtonClicked ( )
protectedslot

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

void makVrv::DtGridLinesPage::on_fixedSpacingAmountChanged ( double  val)
protectedslot

Handle Qt signal when the fixed spacing amount changes.

void makVrv::DtGridLinesPage::on_minSpacingChanged ( int  val)
protectedslot

Handle Qt signal when the min spacing amount changes.

void makVrv::DtGridLinesPage::on_xOffsetChanged ( double  val)
protectedslot

Handle Qt signal when the xOffset amount changes.

void makVrv::DtGridLinesPage::on_yOffsetChanged ( double  val)
protectedslot

Handle Qt signal when the yOffset amount changes.

void makVrv::DtGridLinesPage::on_decimalsChanged ( int  decimals)
protectedslot

Handle Qt signal when the decimals changes.

void makVrv::DtGridLinesPage::setupGui ( )
protected

Sets up the widget's fields.

Non-virtual (Called from CTOR).

void makVrv::DtGridLinesPage::connectToSignals ( )
protected

Connects widget signals to slots.

Non-virtual (Called from CTOR).

virtual void makVrv::DtGridLinesPage::activate ( )
protectedvirtual

Called when the page is displayed.

Implements makVrv::DtPage.

virtual void makVrv::DtGridLinesPage::deactivate ( )
protectedvirtual

Called when the page is hidden.

Implements makVrv::DtPage.

QString makVrv::DtGridLinesPage::notation ( makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits  unitType)
protected

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

QString makVrv::DtGridLinesPage::notation ( makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits  unitType)
protected
void makVrv::DtGridLinesPage::setupUnitLabels ( const QString &  notation)
protected

Member Data Documentation

DtPersistenceToolbarWidget* makVrv::DtGridLinesPage::myToolbar
QGridLayout* makVrv::DtGridLinesPage::myGridTypeLayout
QLabel* makVrv::DtGridLinesPage::myGridTypeLabel
QComboBox* makVrv::DtGridLinesPage::myGridTypeComboBox
QLabel* makVrv::DtGridLinesPage::myUnitTypeLabel
QComboBox* makVrv::DtGridLinesPage::myUnitTypeComboBox
QLabel* makVrv::DtGridLinesPage::myDecimalsLabel
QSpinBox* makVrv::DtGridLinesPage::myDecimalsSpinBox
QButtonGroup* makVrv::DtGridLinesPage::mySpacingButtonGroup
QRadioButton* makVrv::DtGridLinesPage::myAutoSpacingRadioButton
QRadioButton* makVrv::DtGridLinesPage::myFixedSpacingRadioButton
QLabel* makVrv::DtGridLinesPage::mySpacingAmountLabel
QLabel* makVrv::DtGridLinesPage::myMinSpacingLabel
QDoubleSpinBox* makVrv::DtGridLinesPage::mySpacingAmountSpinBox
QSpinBox* makVrv::DtGridLinesPage::myMinSpacingSpinBox
QHBoxLayout* makVrv::DtGridLinesPage::myXOffsetLayout
QHBoxLayout* makVrv::DtGridLinesPage::myYOffsetLayout
QLabel* makVrv::DtGridLinesPage::myXOffsetLabel
QLabel* makVrv::DtGridLinesPage::myYOffsetLabel
QDoubleSpinBox* makVrv::DtGridLinesPage::myXOffsetSpinBox
QDoubleSpinBox* makVrv::DtGridLinesPage::myYOffsetSpinBox
DtDe& makVrv::DtGridLinesPage::myDe
protected
DtVirtualBaseClass* makVrv::DtGridLinesPage::myLogic
protected
std::string makVrv::DtGridLinesPage::myClassName
protected
bool makVrv::DtGridLinesPage::myUsingAngularUnits
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)