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 | Protected Attributes
makVrv::DtUnitsWidget Class Reference

A double spin box and a combo box that displays a current unit and it's value. More...

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

Public Member Functions

 DtUnitsWidget (QWidget *parentWidget)
 Default CTOR. More...
 
void addUnits (const std::string &unit)
 Add a unit into the combo box. More...
 
void setUnits (const std::string &unit)
 Sets the current unit. More...
 
void setValue (double value)
 Sets the current value. More...
 
double value () const
 Gets the current value. More...
 
std::string units () const
 Gets the current unit. More...
 

Protected Attributes

QDoubleSpinBoxmyDoubleSpinBox
 
QComboBoxmyComboBox
 
QHBoxLayout * myMainLayout
 

Detailed Description

A double spin box and a combo box that displays a current unit and it's value.

Constructor & Destructor Documentation

makVrv::DtUnitsWidget::DtUnitsWidget ( QWidget *  parentWidget)

Default CTOR.

Parameters
parentWidgetThe parent widget.

Member Function Documentation

void makVrv::DtUnitsWidget::addUnits ( const std::string &  unit)

Add a unit into the combo box.

Parameters
unitThe unit string to add.
void makVrv::DtUnitsWidget::setUnits ( const std::string &  unit)

Sets the current unit.

Parameters
unitThe unit must be added using addUnits before.
void makVrv::DtUnitsWidget::setValue ( double  value)

Sets the current value.

Parameters
valueThe value of the comboBox.
double makVrv::DtUnitsWidget::value ( ) const

Gets the current value.

std::string makVrv::DtUnitsWidget::units ( ) const

Gets the current unit.

Member Data Documentation

QDoubleSpinBox* makVrv::DtUnitsWidget::myDoubleSpinBox
protected
QComboBox* makVrv::DtUnitsWidget::myComboBox
protected
QHBoxLayout* makVrv::DtUnitsWidget::myMainLayout
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)