Salome HOME
Issue #1505 Bug in parameters management (with parts not loaded)
[modules/shaper.git] / src / ModuleBase / ModuleBase_ModelWidget.h
index 9fe99e4f290e3007d90ad97cea5fdc5c5d904a1c..c21ef7e8a294424d050639b0321b3aea7337b956 100644 (file)
@@ -43,7 +43,7 @@ Q_OBJECT
   /// Constructor
   /// \param theParent the parent object
   /// \param theData the widget configuration. The attribute of the model widget is obtained from
-  /// \param theData a low-level API for reading xml definitions of widgets
+  /// a low-level API for reading xml definitions of widgets
   ModuleBase_ModelWidget(QWidget* theParent, const Config_WidgetAPI* theData);
   /// Destructor
   virtual ~ModuleBase_ModelWidget()
@@ -85,6 +85,9 @@ Q_OBJECT
   /// \return the enumeration result
   ValueState getValueState() const { return myState; }
 
+  /// Stores the widget value if it is modified
+  void processValueState();
+
   /// Returns an attribute error according to the value state
   /// It exists in all cases excepring the "Store" case
   QString getValueStateError() const;
@@ -291,7 +294,8 @@ protected slots:
   void onWidgetValuesModified();
 
  protected:
-   ModuleBase_WidgetValidator* myWidgetValidator; /// own validator, by default it is zero
+    /// own validator, by default it is zero
+   ModuleBase_WidgetValidator* myWidgetValidator;
 
   /// The attribute name of the model feature
   std::string myAttributeID;