Salome HOME
Fix solvespace version number in environment.
[modules/shaper.git] / src / ModuleBase / ModuleBase_IModule.h
index da7ed2b31372d0bbb0a0986d5500b691d0300dcc..75a962dad7abdc0608b485fc8273deb31ad0614a 100755 (executable)
@@ -15,6 +15,7 @@
 #include <QString>\r
 #include <QObject>\r
 #include <QMap>\r
+#include <QList>\r
 \r
 #include <string>\r
 #include <vector>\r
@@ -122,6 +123,13 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   /// It is called as on clearing of property panel as on filling with new widgets\r
   virtual void propertyPanelDefined(ModuleBase_Operation* theOperation) {}\r
 \r
+  /// Have an opportunity to create widgets for the current operation instead of standard creation in workshop\r
+  /// \param theOperation a started operation\r
+  /// \param theWidgets a list of created widgets\r
+  /// \return boolean result, false by default\r
+  virtual bool createWidgets(ModuleBase_Operation* theOperation,\r
+                             QList<ModuleBase_ModelWidget*>& theWidgets) const { return false; }\r
+\r
   //! Returns True if there are available Undos and there is not an active operation\r
   virtual bool canUndo() const;\r
 \r
@@ -262,11 +270,6 @@ class MODULEBASE_EXPORT ModuleBase_IModule : public QObject
   virtual AttributePtr findAttribute(const ObjectPtr& theObject,\r
                                      const GeomShapePtr& theGeomShape) = 0;\r
 \r
-  /// Returns color of the object\r
-  /// \param theObject a result of a feature object\r
-  /// \param theColor a vector of three values in [0, 255] range\r
-  virtual void getColor(const ObjectPtr& theObject, std::vector<int>& theColor) {}\r
-\r
   /// Returns XML information by the feature index\r
   /// \param theFeatureId a feature id\r
   /// \param theXmlCfg XML configuration\r