VR-Forces Developer's Guide
 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.

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

Public Member Functions

 DtUnitsWidget (QWidget *parentWidget)
 
void addUnits (const std::string &unit)
 
void setUnits (const std::string &unit)
 
void setValue (double value)
 
double value () const
 
std::string units () const
 

Protected Attributes

QDoubleSpinBoxmyDoubleSpinBox
 
QComboBoxmyComboBox
 
QHBoxLayout * myMainLayout
 

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 Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)