X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IModule.h;h=be36fede6b6475fb67ac8ffa5b4cbe4859e9ca2f;hb=eef14b29d313b9dd16453d12f20aa02383ee139c;hp=da7ed2b31372d0bbb0a0986d5500b691d0300dcc;hpb=2302f15a8daf85b03bacc97fe20810f4fedec3c5;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IModule.h b/src/ModuleBase/ModuleBase_IModule.h index da7ed2b31..be36fede6 100755 --- a/src/ModuleBase/ModuleBase_IModule.h +++ b/src/ModuleBase/ModuleBase_IModule.h @@ -15,6 +15,7 @@ #include #include #include +#include #include #include @@ -56,6 +57,12 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject /// Remove default selection filters of the module from the current viewer virtual void deactivateSelectionFilters() {}; + // Stores the current selection + virtual void storeSelection() {}; + + // Restores the current selection + virtual void restoreSelection() {}; + /// Reads description of features from XML file virtual void createFeatures(); @@ -122,6 +129,13 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject /// It is called as on clearing of property panel as on filling with new widgets virtual void propertyPanelDefined(ModuleBase_Operation* theOperation) {} + /// Have an opportunity to create widgets for the current operation instead of standard creation in workshop + /// \param theOperation a started operation + /// \param theWidgets a list of created widgets + /// \return boolean result, false by default + virtual bool createWidgets(ModuleBase_Operation* theOperation, + QList& theWidgets) const { return false; } + //! Returns True if there are available Undos and there is not an active operation virtual bool canUndo() const; @@ -262,11 +276,6 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject virtual AttributePtr findAttribute(const ObjectPtr& theObject, const GeomShapePtr& theGeomShape) = 0; - /// Returns color of the object - /// \param theObject a result of a feature object - /// \param theColor a vector of three values in [0, 255] range - virtual void getColor(const ObjectPtr& theObject, std::vector& theColor) {} - /// Returns XML information by the feature index /// \param theFeatureId a feature id /// \param theXmlCfg XML configuration