X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetValidated.h;h=385f11a00f04e334e29fd048ebad38dc6765ae0e;hb=450d1bd65c11870d3942a30164518037b9a7503e;hp=a9b77d939980e4267c1e858690815233b8afda4b;hpb=8f09d362a50ccbc085841c24af2e755121e458ba;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.h b/src/ModuleBase/ModuleBase_WidgetValidated.h index a9b77d939..385f11a00 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.h +++ b/src/ModuleBase/ModuleBase_WidgetValidated.h @@ -36,6 +36,7 @@ class MODULEBASE_EXPORT ModuleBase_WidgetValidated : public ModuleBase_ModelWidg public: /// Constructor /// \param theParent the parent object + /// \param theWorkshop a reference to workshop /// \param theData the widget configuation. The attribute of the model widget is obtained from /// \param theParentId is Id of a parent of the current attribute ModuleBase_WidgetValidated(QWidget* theParent, @@ -45,8 +46,7 @@ class MODULEBASE_EXPORT ModuleBase_WidgetValidated : public ModuleBase_ModelWidg virtual ~ModuleBase_WidgetValidated(); /// Checks whether all active viewer filters validate the presentation - /// \param theWorkshop an active workshop - /// \param theValue a selected presentation in the view + /// \param thePrs a selected presentation in the view /// \return a boolean value bool isValidInFilters(const ModuleBase_ViewerPrs& thePrs); @@ -60,6 +60,7 @@ class MODULEBASE_EXPORT ModuleBase_WidgetValidated : public ModuleBase_ModelWidg /// The method is called by the current operation to process the operation preselection. /// It is redefined to check the value validity and if it is, fill the attribute with by value /// \param theValues the wrapped selection values + /// \param theToValidate a flag on validation of the values virtual bool setSelection(QList& theValues, const bool theToValidate); @@ -79,12 +80,12 @@ protected: virtual void restoreAttributeValue(const bool theValid); /// Checks the widget validity. By default, it returns true. - /// \param theValue a selected presentation in the view + /// \param thePrs a selected presentation in the view /// \return a boolean value virtual bool isValidSelectionCustom(const ModuleBase_ViewerPrs& thePrs); /// Fills the attribute with the value of the selected owner - /// \param theOwner a selected owner + /// \param thePrs a selected owner virtual bool setSelectionCustom(const ModuleBase_ViewerPrs& thePrs) = 0; /// Checks the current attibute in all attribute validators @@ -95,11 +96,6 @@ protected: /// \return boolean value bool isFilterActivated() const; - /// It obtains selection filters from the workshop and activates them in the active viewer - /// \param theWorkshop an active workshop - /// \param toActivate a flag about activation or deactivation the filters - void activateFilters(const bool toActivate); - /// Gets the validity state of the presentation in an internal map. Returns true if the valid state of value is stored /// \param theValue a viewer presentation /// \param theValid a valid state @@ -110,7 +106,7 @@ protected: /// \param theValid a valid state void storeValidState(const ModuleBase_ViewerPrs& theValue, const bool theValid); - // Removes all presentations from internal maps. + /// Removes all presentations from internal maps. void clearValidState(); /// Returns a list of selected presentations in the viewer and object browser @@ -123,9 +119,16 @@ protected: /// \param theValues a list of presentations. void filterPresentations(QList& theValues); + /// It obtains selection filters from the workshop and activates them in the active viewer + /// \param toActivate a flag about activation or deactivation the filters + void activateFilters(const bool toActivate); + protected: - ModuleBase_IWorkshop* myWorkshop; /// Reference to workshop - bool myIsInValidate; // the widget is in validation mode: store is performed, restore is not + /// Reference to workshop + ModuleBase_IWorkshop* myWorkshop; + + /// The widget is in validation mode: store is performed, restore is not + bool myIsInValidate; private: ObjectPtr myPresentedObject; /// back up of the filtered object