VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtUnitsWidget.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2019 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCoreQt/vrvCoreQt.h>
13 
14 #include <QtWidgets/QWidget>
15 
16 class QDoubleSpinBox;
17 class QComboBox;
18 class QHBoxLayout;
19 
20 namespace makVrv
21 {
24  class DT_DLL_VRVCOREQT DtUnitsWidget : public QWidget
25  {
26  Q_OBJECT
27 
28  public:
29 
32  DtUnitsWidget(QWidget* parentWidget);
33 
36  void addUnits(const std::string& unit);
37 
40  void setUnits(const std::string& unit);
41 
44  void setValue(double value);
45 
47  double value() const;
48 
50  std::string units() const;
51 
52  protected:
55  QHBoxLayout* myMainLayout;
56  };
57 }
A double spin box and a combo box that displays a current unit and it&#39;s value.
Definition: DtUnitsWidget.h:24
QDoubleSpinBox * myDoubleSpinBox
Definition: DtUnitsWidget.h:53
#define DT_DLL_VRVCOREQT
Definition: vrvCoreQt.h:20
QComboBox * myComboBox
Definition: DtUnitsWidget.h:54
Contains DLL export macros.
QHBoxLayout * myMainLayout
Definition: DtUnitsWidget.h:55

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)