class ModuleBase_WidgetSelectorStore;
class ModelAPI_Validator;
class Config_WidgetAPI;
-class Handle_SelectMgr_EntityOwner;
//#define LIST_OF_VALID_PRS
//! Clear all validated cash in the widget
void clearValidatedCash();
+ /// Returns true if the workshop validator filter has been already activated
+ /// \return boolean value
+ bool isFilterActivated() const;
+
protected:
/// Checks whether all active viewer filters validate the presentation
/// \param thePrs a selected presentation in the view
/// \return a boolean value
- bool isValidInFilters(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs);
+ virtual bool isValidInFilters(const std::shared_ptr<ModuleBase_ViewerPrs>& thePrs);
/// Checks all attribute validators returns valid. It tries on the given selection
/// to current attribute by setting the value inside and calling validators. After this,
/// 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
+ /// \param isAttributeSendUpdatedBlocked out value if model signal is blocked
virtual void blockAttribute(const AttributePtr& theAttribute, const bool& theToBlock,
- bool& isFlushesActived, bool& isAttributeSetInitializedBlocked);
+ bool& isFlushesActived, bool& isAttributeSetInitializedBlocked,
+ bool& isAttributeSendUpdatedBlocked);
private:
/// Checks the current attibute in all attribute validators
/// \return true if all validators return that the attribute is valid
bool isValidAttribute(const AttributePtr& theAttribute) const;
- /// Returns true if the workshop validator filter has been already activated
- /// \return boolean value
- bool isFilterActivated() const;
-
protected:
- /// Gets the validity state of the presentation in an internal map. Returns true if the valid state of value is stored
+ /// 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
bool getValidState(const std::shared_ptr<ModuleBase_ViewerPrs>& theValue, bool& theValid);
private:
ObjectPtr myPresentedObject; /// back up of the filtered object
#ifdef LIST_OF_VALID_PRS
- QList<std::shared_ptr<ModuleBase_ViewerPrs>> myValidPrs; /// cash of valid selection presentations
- QList<std::shared_ptr<ModuleBase_ViewerPrs>> myInvalidPrs; /// cash of invalid selection presentations
+ /// cash of valid selection presentations
+ QList<std::shared_ptr<ModuleBase_ViewerPrs>> myValidPrs;
+
+ /// cash of invalid selection presentations
+ QList<std::shared_ptr<ModuleBase_ViewerPrs>> myInvalidPrs;
#else
// assume that one presentation selection presentation corresponds only one shape
NCollection_DataMap<TopoDS_Shape, std::shared_ptr<ModuleBase_ViewerPrs> > myValidPrs;