+
+ /// Returns True if the input value contains variable
+ bool hasVariable() const;
+
+ double minimum() const { return myMinimum; }
+ double maximum() const { return myMaximum; }
+
+ void setMinimum(double theMin) { myMinimum = theMin; myValidator->setBottom(theMin); }
+ void setMaximum(double theMax) { myMaximum = theMax; myValidator->setTop(theMax); }
+
+ int decimals() const { return myValidator->decimals(); }
+ void setDecimals(int thePrecision) { myValidator->setDecimals(thePrecision); }
+
+ double singleStep() const { return mySingleStep; }
+ void setSingleStep(double theStep) { mySingleStep = theStep; }
+
+ void setValueEnabled(bool theEnable);
+
+protected:
+ /*!
+ \brief This function is called when the spinbox receives key release event.
+ */
+ virtual void keyReleaseEvent(QKeyEvent *event);
+
+ virtual bool eventFilter(QObject* theObj, QEvent* theEvent);
+
+ /// The virtual function is reimplemented in order to avoid extra increasing of value by StepBy
+ /// method
+ virtual void timerEvent(QTimerEvent *event) {}
+
+ virtual StepEnabled stepEnabled() const { return StepUpEnabled | StepDownEnabled; }
+
+ /// Returns True if the given text contains variable
+ /// \param theText a text string
+ bool hasVariable(const QString& theText) const;
+
+// /// Returns state of the control
+// State isValid(const QString&, double&) const;
+//
+// /// Returns True if the given value is within min and max of the control
+// bool checkRange(const double) const;
+//
+// /// Finds a variable by its name. Returns true in success
+// /// \param theName a name of variable
+// /// \param outValue an output value of the variable
+// bool findVariable(const QString& theName, double& outValue) const;