]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_ModelWidget.h
Salome HOME
Merge branch 'Dev_0.7.1' of newgeom:newgeom into Dev_0.7.1
[modules/shaper.git] / src / ModuleBase / ModuleBase_ModelWidget.h
index 35bd1632026d91a530505880b3f41c2c47746121..c4b2ec614f3a6db38f57c9ab4ac66b024247c8e1 100644 (file)
@@ -51,6 +51,11 @@ Q_OBJECT
   /// on operation's execute, like radius for circle's constraint (can not be zero)
   bool isComputedDefault() { return myIsComputedDefault; }
 
+  /// Returns true, if default value of the widget is defined in the XML and it is not the
+  /// computed value
+  /// \return the boolean result
+  bool isValueDefault() { return myIsValueDefault; }
+
   /// Defines if it is supposed that the widget should interact with the viewer.
   virtual bool isViewerSelector() { return false; }
 
@@ -177,7 +182,9 @@ signals:
 
   /// Value should be computed on execute, like radius for circle's constraint (can not be zero)
   bool myIsComputedDefault; 
-                            
+                        
+  /// the default value is defined in the XML for this attribute    
+  bool myIsValueDefault;
   /// Flag which shows that current operation is in editing mode
   bool myIsEditing; 
 };