]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/SketchShapePlugin/SketchShapePlugin_WidgetCreator.h
Salome HOME
Merge with PythonAPI branch
[modules/shaper.git] / src / SketchShapePlugin / SketchShapePlugin_WidgetCreator.h
index fe4a442217d11234157c3274cd40edeb2f577d37..7d3e734b493e2f81b23f0a126d725fcdd24f6664 100755 (executable)
@@ -24,10 +24,20 @@ public:
   /// Virtual destructor
   ~SketchShapePlugin_WidgetCreator() {}
 
+  /// Returns a container of possible page types, which this creator can process
+  /// \returns types
+  virtual const std::set<std::string>& pageTypes();
+
   /// Returns a list of possible widget types, which this creator can process
-  /// \return theTypes
+  /// \returns types
   virtual const std::set<std::string>& widgetTypes();
 
+  /// Create page by its type
+  /// \param theType a type
+  /// \param theParent a parent widget
+  virtual ModuleBase_PageBase* createPageByType(const std::string& theType,
+                                                QWidget* theParent);
+
   /// Create widget by its type
   /// \param theType a type
   /// \param theParent a parent widget
@@ -35,6 +45,7 @@ public:
                                                      QWidget* theParent = NULL);
 
 private:
+  std::set<std::string> myPages; /// types of pages
   std::set<std::string> myTypes; /// types of widgets
 };