Salome HOME
Update merging two Coincidence constraints (issue #955)
[modules/shaper.git] / src / ModuleBase / ModuleBase_ParamSpinBox.h
index acdfadf1a98547dc60afe639a3d6eef551255983..7d14e951136d1f4cc6065fd650adc5adba00ec82 100644 (file)
@@ -15,12 +15,13 @@ class MODULEBASE_EXPORT ModuleBase_ParamSpinBox : public ModuleBase_DoubleSpinBo
   enum State { Invalid = 0, NoVariable, Incompatible, Acceptable };
 
 public:
-  explicit ModuleBase_ParamSpinBox(QWidget* theParent = 0, int thePrecision = 6);
+  explicit ModuleBase_ParamSpinBox( QWidget* theParent = 0, int thePrecision = -12 );
   virtual ~ModuleBase_ParamSpinBox();
 
   virtual void stepBy(int);
 
   virtual double valueFromText(const QString&) const;
+  virtual QString textFromValue (double value) const;
 
   virtual QValidator::State validate(QString&, int&) const;
 
@@ -32,8 +33,8 @@ public:
   bool isAcceptVariables() const;
   bool hasVariable() const;
 
-signals:
-  void textChanged(const QString&);
+//signals:
+  //void textChanged(const QString&);
 
  protected:
   bool hasVariable(const QString& theText) const;
@@ -44,7 +45,7 @@ signals:
   bool findVariable(const QString&, double&) const;
 
  protected:
-  virtual void keyPressEvent(QKeyEvent*);
+  //virtual void keyPressEvent(QKeyEvent*);
   virtual void showEvent(QShowEvent*);
 
  protected slots:
@@ -54,7 +55,6 @@ signals:
   void connectSignalsAndSlots();
 
  private:
-  QString myCorrectValue;
   QString myTextValue;
 
   bool myAcceptVariables;