Salome HOME
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetIntValue.h
index 4a13ed44254e28b69a56c588e715d916694203f6..4637af46c6d01f6d1398e9067f4e3a9625b3af86 100644 (file)
@@ -24,7 +24,7 @@
 #include "ModuleBase.h"
 #include "ModuleBase_ModelWidget.h"
 
-class ModuleBase_ParamIntSpinBox;
+class ModuleBase_ParamSpinBox;
 class Config_WidgetAPI;
 class QWidget;
 class QLabel;
@@ -49,6 +49,9 @@ Q_OBJECT
 
   virtual ~ModuleBase_WidgetIntValue();
 
+  /// The methiod called when widget is activated
+  virtual void activateCustom();
+
   /// Select the internal content if it can be selected. It is empty in the default realization
   virtual void selectContent();
 
@@ -56,10 +59,10 @@ Q_OBJECT
   /// \return a control list
   virtual QList<QWidget*> getControls() const;
 
+protected:
   /// Returns true if the event is processed.
   virtual bool processEnter();
 
-protected:
   /// Saves the internal parameters to the given feature
   /// \return True in success
   virtual bool storeValueCustom();
@@ -77,7 +80,12 @@ protected:
   QLabel* myLabel;
 
   /// Input value control
-  ModuleBase_ParamIntSpinBox* mySpinBox;
+  ModuleBase_ParamSpinBox* mySpinBox;
+
+  FeaturePtr myParameter;
+
+  int myDefVal;
+  bool myHasDefault;
 };
 
 #endif