Salome HOME
Fix for the issue #593: do not remove naming attribute, but use TNaming_Builder for...
[modules/shaper.git] / src / ModuleBase / ModuleBase_ParamSpinBox.h
index 5945dcbd84250337d40c7bbf99da9105ddfac857..403fc7a2983d00c185f71f589d2d79014417b562 100644 (file)
@@ -21,27 +21,25 @@ public:
   virtual void stepBy(int);
 
   virtual double valueFromText(const QString&) const;
-  virtual QString textFromValue(double) const;
+  virtual QString textFromValue (double value) const;
 
   virtual QValidator::State validate(QString&, int&) const;
 
-  virtual void setDefaultValue(const double);
-
   virtual void setValue(double);
 
   virtual void setText(const QString&);
 
   void setAcceptVariables(const bool);
   bool isAcceptVariables() const;
-  bool hasVariables() const;
+  bool hasVariable() const;
 
 signals:
   void textChanged(const QString&);
 
  protected:
+  bool hasVariable(const QString& theText) const;
   State isValid(const QString&, double&) const;
 
-  double defaultValue() const;
   bool checkRange(const double) const;
 
   bool findVariable(const QString&, double&) const;
@@ -51,20 +49,15 @@ signals:
   virtual void showEvent(QShowEvent*);
 
  protected slots:
-  void onEditingFinished();
   void onTextChanged(const QString&);
 
  private:
   void connectSignalsAndSlots();
 
  private:
-  double myDefaultValue;
-
-  QString myCorrectValue;
   QString myTextValue;
 
   bool myAcceptVariables;
-  bool myHasVariables;
 };
 
 #endif