Salome HOME
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetIntValue.h
index 0394458c98641ae2b6f823607523651330216679..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();
 
@@ -77,7 +80,12 @@ protected:
   QLabel* myLabel;
 
   /// Input value control
-  ModuleBase_ParamIntSpinBox* mySpinBox;
+  ModuleBase_ParamSpinBox* mySpinBox;
+
+  FeaturePtr myParameter;
+
+  int myDefVal;
+  bool myHasDefault;
 };
 
 #endif