X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_IModule.h;h=3c12c31ea8ad9583b2e3987a08591dc6f0307a06;hb=64bd95cebe79a5639800635efb7b0d21f13c079c;hp=963070788e390a26d96e8c9f394b29aa97597dc2;hpb=584f97832c77adf0c9df154b2f3eb1835bd3ce9e;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IModule.h b/src/ModuleBase/ModuleBase_IModule.h index 963070788..3c12c31ea 100644 --- a/src/ModuleBase/ModuleBase_IModule.h +++ b/src/ModuleBase/ModuleBase_IModule.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2022 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -41,6 +41,10 @@ #include #include +#ifdef _MSC_VER +#pragma warning(disable: 4100) +#endif + class QAction; class QMouseEvent; class QKeyEvent; @@ -421,6 +425,10 @@ public slots: /// \param theAIS a presentation object virtual void onBeforeObjectErase(ObjectPtr theObject, AISObjectPtr theAIS) {} + /// Called on transformation in current viewer + /// \param theTrsfType type of tranformation + virtual void onViewTransformed(int theTrsfType = 2) {} + protected slots: /// Called on selection changed event virtual void onSelectionChanged() {} @@ -435,12 +443,24 @@ protected: /// Returns new instance of operation object (used in createOperation for customization) virtual ModuleBase_Operation* getNewOperation(const std::string& theFeatureId); + /// Load plugins required license + void loadProprietaryPlugins(); + + /// Collect features, which have valid license + void processProprietaryFeatures(); + protected: /// Reference to workshop ModuleBase_IWorkshop* myWorkshop; /// Map of features in XML std::map myFeaturesInFiles; + /// Map of features in XML, which require license but not confirmed yet + std::map myProprietaryFeatures; + /// Proprietary plugins + std::set myProprietaryPlugins; + /// Features, which have valid license + std::set myFeaturesValidLicense; std::map mySelectionFilters;