21 #ifndef __qMRMLSpinBox_h 22 #define __qMRMLSpinBox_h 25 #include <ctkDoubleSpinBox.h> 26 #include <ctkVTKObject.h> 29 #include <qMRMLWidgetsExport.h> 36 class qMRMLSpinBoxPrivate;
65 Q_PROPERTY(QString quantity READ quantity WRITE setQuantity)
74 Q_PROPERTY(UnitAwareProperties unitAwareProperties READ unitAwareProperties WRITE setUnitAwareProperties)
93 Q_DECLARE_FLAGS(UnitAwareProperties, UnitAwareProperty)
99 QString quantity()
const;
101 UnitAwareProperties unitAwareProperties()
const;
104 void setQuantity(
const QString& baseName);
110 void setUnitAwareProperties(UnitAwareProperties flags);
113 void updateWidgetFromUnitNode();
116 QScopedPointer<qMRMLSpinBoxPrivate>
d_ptr;
123 Q_DECLARE_OPERATORS_FOR_FLAGS(qMRMLSpinBox::UnitAwareProperties)
ctkDoubleSpinBox Superclass
QScopedPointer< qMRMLSpinBoxPrivate > d_ptr
Extend the ctkDoubleSpinBox to integrate units support.
A set of MRML Nodes that supports serialization and undo/redo.
Abstract Superclass for all specific types of MRML nodes.