X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetValidated.h;h=60ed4edc9551367d7f288f28bee1d8808046e04b;hb=29dfb8a802f61cacf5f57fb79c62badee00ebcdf;hp=f1a5ef17ee27842fb50ca4362c0fbef5de396996;hpb=c3ae28ba30027cc4a6a757ef623f40adaae96ead;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.h b/src/ModuleBase/ModuleBase_WidgetValidated.h index f1a5ef17e..60ed4edc9 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.h +++ b/src/ModuleBase/ModuleBase_WidgetValidated.h @@ -67,10 +67,6 @@ class MODULEBASE_EXPORT ModuleBase_WidgetValidated : public ModuleBase_ModelWidg //! Returns data object by AIS ObjectPtr findPresentedObject(const AISObjectPtr& theAIS) const; - /// 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: /// Creates a backup of the current values of the attribute /// It should be realized in the specific widget because of different @@ -123,6 +119,19 @@ 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); + + /// Block the model flush of update and intialization of attribute + /// \param theToBlock flag whether the model is blocked or unblocked + /// \param isActive out value if model is blocked, in value if model is unblocked + /// to be used to restore flush state when unblocked + /// \param isAttributeSetInitializedBlocked out value if model is blocked + /// in value if model is unblocked to be used to restore previous state when unblocked + virtual void blockAttribute(const bool& theToBlock, bool& isFlushesActived, + bool& isAttributeSetInitializedBlocked); + protected: /// Reference to workshop ModuleBase_IWorkshop* myWorkshop;