12 #ifndef QMITK_NUMBERPROPERTYEDITOR_H_INCLUDED 13 #define QMITK_NUMBERPROPERTYEDITOR_H_INCLUDED 24 Q_PROPERTY(
short decimalPlaces READ getDecimalPlaces WRITE setDecimalPlaces)
25 Q_PROPERTY(
bool showPercent READ getShowPercent WRITE setShowPercent)
26 Q_PROPERTY(
int minValue READ minValue WRITE setMinValue)
27 Q_PROPERTY(
int maxValue READ maxValue WRITE setMaxValue)
36 short getDecimalPlaces() const;
37 void setDecimalPlaces(
short);
39 bool getShowPercent() const;
40 void setShowPercent(
bool);
43 void setMinValue(
int);
45 void setMaxValue(
int);
46 double doubleValue() const;
47 void setDoubleValue(
double);
52 QString textFromValue(
int) const override;
53 int valueFromText(const QString &) const override;
55 void PropertyChanged() override;
56 void PropertyRemoved() override;
75 void onValueChanged(
int);
78 void adjustFactors(
short,
bool);
80 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