16 #ifndef QMITK_NUMBERPROPERTYEDITOR_H_INCLUDED
17 #define QMITK_NUMBERPROPERTYEDITOR_H_INCLUDED
28 Q_PROPERTY(
short decimalPlaces READ getDecimalPlaces WRITE setDecimalPlaces)
29 Q_PROPERTY(
bool showPercent READ getShowPercent WRITE setShowPercent)
30 Q_PROPERTY(
int minValue READ minValue WRITE setMinValue)
31 Q_PROPERTY(
int maxValue READ maxValue WRITE setMaxValue)
40 short getDecimalPlaces() const;
41 void setDecimalPlaces(
short);
43 bool getShowPercent() const;
44 void setShowPercent(
bool);
47 void setMinValue(
int);
49 void setMaxValue(
int);
50 double doubleValue() const;
51 void setDoubleValue(
double);
56 virtual QString textFromValue(
int) const override;
57 virtual
int valueFromText(const QString &) const override;
59 virtual
void PropertyChanged() override;
60 virtual
void PropertyRemoved() override;
79 void onValueChanged(
int);
82 void adjustFactors(
short,
bool);
84 bool m_SelfChangeLock;
DataCollection - Class to facilitate loading/accessing structured data.
mitk::GenericProperty< float > * m_FloatProperty
mitk::GenericProperty< double > * m_DoubleProperty
double m_FactorPropertyToSpinbox
mitk::GenericProperty< int > * m_IntProperty
double m_FactorSpinboxToDisplay