X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_ModelWidget.h;h=c21ef7e8a294424d050639b0321b3aea7337b956;hb=5446f2f59af5cb087347b8b83ef830e2d69128dd;hp=9fe99e4f290e3007d90ad97cea5fdc5c5d904a1c;hpb=53ebc781118080f1821fbfa894876315cd13a2ec;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_ModelWidget.h b/src/ModuleBase/ModuleBase_ModelWidget.h index 9fe99e4f2..c21ef7e8a 100644 --- a/src/ModuleBase/ModuleBase_ModelWidget.h +++ b/src/ModuleBase/ModuleBase_ModelWidget.h @@ -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;