]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ModuleBase/ModuleBase_WidgetCreatorFactory.h
Salome HOME
Issue #1368: Creation of a Qt panel. Persistent mechanism.
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetCreatorFactory.h
index 6373eebba0b99b64b2bb4a5a635e1d8cce567aab..5cbc34c06bc2bb582cc295e85193548bc4906204 100755 (executable)
@@ -16,6 +16,8 @@
 
 #include <ModuleBase_IWidgetCreator.h>
 
+#include <ModelAPI_Feature.h>
+
 class ModuleBase_ModelWidget;
 class ModuleBase_PageBase;
 class ModuleBase_IWorkshop;
@@ -48,8 +50,10 @@ class MODULEBASE_EXPORT ModuleBase_WidgetCreatorFactory
   /// Create panel by its type
   /// \param theType a type
   /// \param theParent a parent widget
+  /// \param theFeature a feature to fill the panel
   /// \return a created panel or null
-  QWidget* createPanel(const std::string& theType, QWidget* theParent);
+  QWidget* createPanelByType(const std::string& theType, QWidget* theParent,
+                             const FeaturePtr& theFeature);
 
   /// Returns true if there is a creator, which can make a page by the type
   /// \param theType a type