13 #include <QTextStream> 21 #define ROUND(x) (((x) > 0) ? int((x) + 0.5) : int((x)-0.5)) 22 #define ROUND_SHORT(x) (((x) > 0) ? short((x) + 0.5) : short((x)-0.5)) 25 : QSpinBox(parent), PropertyEditor(property), m_IntProperty(property), m_DataType(
DT_INT)
59 m_SelfChangeLock =
false;
61 connect(
this, SIGNAL(valueChanged(
int)),
this, SLOT(
onValueChanged(
int)));
67 void QmitkNumberPropertyEditor::adjustFactors(
short newDecimalPlaces,
bool newShowPercents)
172 QString displayedText;
173 QTextStream stream(&displayedText);
187 return displayedText;
197 if (m_SelfChangeLock)
251 m_SelfChangeLock =
true;
257 QSpinBox::setValue(i);
275 m_SelfChangeLock =
false;
QString textFromValue(int) const override
bool getShowPercent() const
int valueFromText(const QString &) const override
~QmitkNumberPropertyEditor() override
short getDecimalPlaces() const
virtual T GetValue() const
mitk::BaseProperty * m_Property
void setShowPercent(bool)
static RenderingManager * GetInstance()
void PropertyRemoved() override
mitk::GenericProperty< float > * m_FloatProperty
PropertyEditor(mitk::BaseProperty *)
void PropertyChanged() override
double doubleValue() const
void BeginModifyProperty()
mitk::GenericProperty< double > * m_DoubleProperty
QmitkNumberPropertyEditor(mitk::IntProperty *, QWidget *parent)
double m_FactorPropertyToSpinbox
mitk::GenericProperty< int > * m_IntProperty
virtual void SetValue(T _arg)
void setDecimalPlaces(short)
double m_FactorSpinboxToDisplay
void RequestUpdateAll(RequestType type=REQUEST_UPDATE_ALL)
void setDoubleValue(double)