The DlgUnitsCalculator provides a unit conversion dialog. More...
#include <DlgUnitsCalculatorImp.h>
Public Member Functions | |
DlgUnitsCalculator (QWidget *parent=0, Qt::WindowFlags fl=0) | |
Constructs a DlgUnitsCalculator which is a child of 'parent', with the name 'name' and widget flags set to 'f'. More... | |
~DlgUnitsCalculator () | |
Destroys the object and frees any allocated resources. More... | |
Protected Slots | |
void | copy (void) |
void | on_comboBoxScheme_activated (int) |
void | on_spinBoxDecimals_valueChanged (int) |
void | on_unitsBox_activated (int) |
void | parseError (const QString &errorText) |
void | returnPressed (void) |
void | textChanged (const QString) |
void | valueChanged (const Base::Quantity &) |
Protected Member Functions | |
void | accept () |
void | reject () |
Detailed Description
The DlgUnitsCalculator provides a unit conversion dialog.
Constructor & Destructor Documentation
◆ DlgUnitsCalculator()
DlgUnitsCalculator::DlgUnitsCalculator | ( | QWidget * | parent = 0 , |
Qt::WindowFlags | fl = 0 |
||
) |
Constructs a DlgUnitsCalculator which is a child of 'parent', with the name 'name' and widget flags set to 'f'.
The dialog will by default be modeless, unless you set 'modal' to true to construct a modal dialog.
References Base::Unit::Acceleration, accept(), Base::Unit::AmountOfSubstance, Base::Unit::Angle, Base::Unit::Area, copy(), Base::Unit::Density, Base::Unit::ElectricalCapacitance, Base::Unit::ElectricalConductance, Base::Unit::ElectricalInductance, Base::Unit::ElectricalResistance, Base::Unit::ElectricCharge, Base::Unit::ElectricCurrent, Base::Unit::ElectricPotential, Base::Unit::Force, Base::Unit::Frequency, Base::UnitsApi::getDecimals(), Base::UnitsApi::getDescription(), Base::Unit::HeatFlux, Base::Unit::Length, Base::Unit::LuminousIntensity, Base::Unit::MagneticFieldStrength, Base::Unit::MagneticFlux, Base::Unit::MagneticFluxDensity, Base::Unit::Mass, Base::NumUnitSystemTypes, parseError(), Base::Unit::Power, Base::Unit::Pressure, returnPressed(), Base::Unit::SpecificHeat, Base::Unit::Stress, Base::Unit::Temperature, textChanged(), Base::Unit::ThermalConductivity, Base::Unit::ThermalExpansionCoefficient, Base::Unit::ThermalTransferCoefficient, Base::Unit::TimeSpan, valueChanged(), Base::Unit::Velocity, Base::Unit::Volume, and Base::Unit::Work.
◆ ~DlgUnitsCalculator()
DlgUnitsCalculator::~DlgUnitsCalculator | ( | ) |
Destroys the object and frees any allocated resources.
Member Function Documentation
◆ accept()
|
protected |
Referenced by DlgUnitsCalculator(), and ArchComponent.ComponentTaskPanel::editObject().
◆ copy
|
protectedslot |
Referenced by DlgUnitsCalculator().
◆ on_comboBoxScheme_activated
|
protectedslot |
◆ on_spinBoxDecimals_valueChanged
|
protectedslot |
◆ on_unitsBox_activated
|
protectedslot |
◆ parseError
|
protectedslot |
Referenced by DlgUnitsCalculator().
◆ reject()
|
protected |
◆ returnPressed
|
protectedslot |
Referenced by DlgUnitsCalculator().
◆ textChanged
|
protectedslot |
References valueChanged().
Referenced by DlgUnitsCalculator().
◆ valueChanged
|
protectedslot |
References Base::UnitsApi::getDecimals(), Base::Unit::getTypeString(), Base::Quantity::getUnit(), Base::Quantity::getValue(), and Base::Quantity::parse().
Referenced by DlgUnitsCalculator(), and textChanged().
The documentation for this class was generated from the following files:
- src/Gui/DlgUnitsCalculatorImp.h
- src/Gui/DlgUnitsCalculatorImp.cpp