VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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. More...
 
virtual ~DtGridLinesPage ()
 DTOR. More...
 
virtual QIcon icon ()
 Get the icon of the page. More...
 
virtual QString title ()
 Get the title of the page. More...
 
virtual const std::string & pageClassName () const
 Get the class name of the page. More...
 
virtual void setNorthSouthGridLineColor (float r, float g, float b, float a)
 Set the color of the north-south gridlines. More...
 
virtual void setEastWestGridLineColor (float r, float g, float b, float a)
 Set the color of the east-west gridlines. More...
 
virtual void setMinimalGridlineLabelsEnabled (bool enabled)
 Set whether or not minimal grid line labels are used. More...
 
virtual void setAutoSpacing (bool autoSpacing)
 Set the auto spacing on or off. More...
 
virtual void setFixedSpacingAmount (double amount)
 Set the fixed spacing for the current unit type. More...
 
virtual void setMaxFixedSpacing (double maxSpacing)
 Set the maximum allowable fixed spacing. More...
 
virtual void setMinFixedSpacing (double minSpacing)
 Set the minimum fixed spacing allowed. More...
 
virtual void setGridType (makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType)
 Set the current grid type. More...
 
virtual void clearGridTypes ()
 Clears out grid type systems. More...
 
virtual void disableAllGridTypes ()
 Disable all the grid types. More...
 
virtual void addGridType (const DtUnicode &gridName, makArchives::DtDisplayUnitsSettingsRecord::CoordSys gridType)
 Adds a new coordinate system. More...
 
virtual void setXOffset (double offset)
 Set the x offset for the current unit type. More...
 
virtual void setYOffset (double offset)
 Set the y offset for the current unit type. More...
 
virtual void setMinSpacing (int pixels)
 Set the minimum allowed spacing. More...
 
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType)
 Set the unit type (meters, feet, or degrees) More...
 
virtual void setUnitType (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType)
 
virtual void clearUnitTypes ()
 Clear the units. More...
 
virtual void setUnitTypeEnabled (makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType, bool enabled)
 Enable the specified unit type. More...
 
virtual void setUnitTypeEnabled (makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType, bool enabled)
 
virtual void addUnitType (const DtUnicode &unitName, makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits unitType)
 Add a unit type. More...
 
virtual void addUnitType (const DtUnicode &unitName, makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits unitType)
 
virtual void setDecimals (unsigned decimals)
 Set the decimals to use for mil grid. More...
 
virtual void setFixedSpacingAmountEnabled (bool enabled)
 Enable or disable the fixed spacing amount spin box. More...
 
virtual void setMinSpacingEnabled (bool enabled)
 Enable or disable the min spacing spin box. More...
 
virtual void setGridTypeEnabled (makArchives::DtDisplayUnitsSettingsRecord::CoordSys, bool enabled)
 Enable or disable a specific grid type within the grid type combo box. More...
 
virtual void setDecimalsEnabled (bool enabled)
 Enable or disable the decimals spin box. More...
 
- Public Member Functions inherited from makVrv::DtPage
 DtPage (DtDe &de, QWidget *parent=0, Qt::WindowFlags f=0)
 CTOR for page. More...
 
virtual ~DtPage ()
 DTOR for page. More...
 
virtual PageAction pageAction ()
 return the current action on the page More...
 
virtual void setPageAction (PageAction action)
 set the curret action on the page More...
 
virtual void setActionFlag (int flag)
 set the action flag of the page More...
 
virtual int actionFlag ()
 return the action flag of the page More...
 
virtual void setParentDialog (QWidget *paraentDialog)
 set the parent dialog that owns this page More...
 
virtual QWidget * parentDialog ()
 return the parent dialog that own this page More...
 
virtual bool shouldAskBeforeAction (PageAction action)
 test the action flag with the action, return true if we should ask before executing the action /param action the current page action More...
 
virtual void askBeforeAction ()
 Called when the action flag is set and before the action is beind executed, default do nothing. More...
 
virtual void executeAfterAsk (bool revert)
 Called after askBeforeAction(), whether user wants to revert the action or resume the action /param revert if true, the user wants to revert the action, otherwise resume it. More...
 
virtual void resumeLastAction ()
 resume the last action of the page More...
 
virtual void onCloseEvent ()
 will be called when user hit the close button of this page, default do nothing. More...
 
virtual void onSwitchEvent ()
 will be called when user try switch to another page, default do nothing. More...
 
- Public Member Functions inherited from makVrv::DtGridLinesInterface
 DtGridLinesInterface ()
 CTOR. More...
 
virtual ~DtGridLinesInterface ()
 DTOR. More...
 

Static Public Member Functions

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

Public Attributes

DtPersistenceToolbarWidgetmyToolbar
 
QGridLayout * myGridTypeLayout
 
QLabelmyGridTypeLabel
 
QComboBoxmyGridTypeComboBox
 
QLabelmyUnitTypeLabel
 
QComboBoxmyUnitTypeComboBox
 
QLabelmyDecimalsLabel
 
QSpinBoxmyDecimalsSpinBox
 
DtColorPushButtonmyNorthSouthColorButton
 
DtColorPushButtonmyEastWestColorButton
 
QButtonGroup * mySpacingButtonGroup
 
QCheckBoxmyMinimalGridlineLabelsCheckbox
 
QRadioButton * myAutoSpacingRadioButton
 
QRadioButton * myFixedSpacingRadioButton
 
QLabelmySpacingAmountLabel
 
QLabelmyMinSpacingLabel
 
QDoubleSpinBoxmySpacingAmountSpinBox
 
QSpinBoxmyMinSpacingSpinBox
 
QHBoxLayout * myXOffsetLayout
 
QHBoxLayout * myYOffsetLayout
 
QLabelmyXOffsetLabel
 
QLabelmyYOffsetLabel
 
QDoubleSpinBoxmyXOffsetSpinBox
 
QDoubleSpinBoxmyYOffsetSpinBox
 
- Public Attributes inherited from makVrv::DtGridLinesInterface
boost::signalslib::signal
< void(makArchives::DtDisplayUnitsSettingsRecord::CoordSys)> 
signal_gridTypeChanged
 Signal sent by page when the grid type changes. More...
 
boost::signalslib::signal
< void(makArchives::DtDisplayUnitsSettingsRecord::DistanceUnits)> 
signal_unitTypeChanged
 Signal sent by page when the grid type changes. More...
 
boost::signalslib::signal
< void(makArchives::DtDisplayUnitsSettingsRecord::OrientationUnits)> 
signal_angularUnitTypeChanged
 
boost::signalslib::signal
< void(double, double, double,
double)> 
signal_eastWestColorChanged
 Signal sent by page when the color of the east/west gridlines has changed. More...
 
boost::signalslib::signal
< void(double, double, double,
double)> 
signal_northSouthColorChanged
 Signal sent by page when the color of the north/south gridlines has changed. More...
 
boost::signalslib::signal
< void(bool)> 
signal_minimalGridlineLabelsToggled
 Signal sent by page when the use of minimal gridline labels changes. More...
 
boost::signalslib::signal
< void(bool)> 
signal_autoSpacingChanged
 Signal sent by page when auto spacing changes. More...
 
boost::signalslib::signal
< void(double)> 
signal_fixedSpacingAmountChanged
 Signal sent by page when the fixed spacing amount changes. More...
 
boost::signalslib::signal
< void(int)> 
signal_minSpacingChanged
 Signal sent by page when the minimum spacing amount changes. More...
 
boost::signalslib::signal
< void(double)> 
signal_xOffsetChanged
 Signal sent by page when the xOffset changes. More...
 
boost::signalslib::signal
< void(double)> 
signal_yOffsetChanged
 Signal sent by page when the yOffset changes. More...
 
boost::signalslib::signal
< void(unsigned int)> 
signal_decimalsChanged
 Signal sent by page when the decimals changes. More...
 

Protected Slots

void on_gridTypeCombo_currentIndexChanged (int index)
 Handle Qt signal when grid type selected. More...
 
void on_unitTypeCombo_currentIndexChanged (int index)
 Handle Qt signal when unit type selected. More...
 
void on_northSouthColorChanged (const QColor &)
 Handle Qt signal when the color of north/south gridlines has been set. More...
 
void on_eastWestColorChanged (const QColor &)
 Handle Qt signal when the color of east/west gridlines has been set. More...
 
void on_minimalGridlineLabelsCheckBoxToggled (int state)
 Handle Qt signal when the minimal grid line labels check box state has changed. More...
 
void on_autoSpacingRadioButtonClicked ()
 Handle Qt signal when the auto spacing radio button is clicked. More...
 
void on_fixedSpacingRadioButtonClicked ()
 Handle Qt signal when the fixed spacing radio button is clicked. More...
 
void on_fixedSpacingAmountChanged (double val)
 Handle Qt signal when the fixed spacing amount changes. More...
 
void on_minSpacingChanged (int val)
 Handle Qt signal when the min spacing amount changes. More...
 
void on_xOffsetChanged (double val)
 Handle Qt signal when the xOffset amount changes. More...
 
void on_yOffsetChanged (double val)
 Handle Qt signal when the yOffset amount changes. More...
 
void on_decimalsChanged (int decimals)
 Handle Qt signal when the decimals changes. More...
 

Protected Member Functions

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

Protected Attributes

DtVirtualBaseClassmyLogic
 
std::string myClassName
 
bool myUsingAngularUnits
 
- Protected Attributes inherited from makVrv::DtPage
DtDemyDe
 
QWidget * myParentDialog
 
PageAction myCurrentPageAction
 
int myActionFlag
 

Additional Inherited Members

- Public Types inherited from makVrv::DtPage
enum  PageAction { None = 0x0000, Switching = 0x0001, Closing = 0x0010 }
 

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::setNorthSouthGridLineColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color of the north-south gridlines.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setEastWestGridLineColor ( float  r,
float  g,
float  b,
float  a 
)
virtual

Set the color of the east-west gridlines.

Implements makVrv::DtGridLinesInterface.

virtual void makVrv::DtGridLinesPage::setMinimalGridlineLabelsEnabled ( bool  enabled)
virtual

Set whether or not minimal grid line labels are used.

Implements makVrv::DtGridLinesInterface.

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_northSouthColorChanged ( const QColor &  )
protectedslot

Handle Qt signal when the color of north/south gridlines has been set.

void makVrv::DtGridLinesPage::on_eastWestColorChanged ( const QColor &  )
protectedslot

Handle Qt signal when the color of east/west gridlines has been set.

void makVrv::DtGridLinesPage::on_minimalGridlineLabelsCheckBoxToggled ( int  state)
protectedslot

Handle Qt signal when the minimal grid line labels check box state has changed.

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
DtColorPushButton* makVrv::DtGridLinesPage::myNorthSouthColorButton
DtColorPushButton* makVrv::DtGridLinesPage::myEastWestColorButton
QButtonGroup* makVrv::DtGridLinesPage::mySpacingButtonGroup
QCheckBox* makVrv::DtGridLinesPage::myMinimalGridlineLabelsCheckbox
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
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 Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)