X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_IWidgetCreator.h;h=ecdee3a848a534f3e95c0af2d6a3bbafe049723e;hb=cbde248859fb0072f6012907391ea90cfc254574;hp=d544ecfe70f69951e18e2c5c71bca55f3e495191;hpb=eaedfec1bd44832c5c1b75265a034d5b79340420;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IWidgetCreator.h b/src/ModuleBase/ModuleBase_IWidgetCreator.h index d544ecfe7..ecdee3a84 100755 --- a/src/ModuleBase/ModuleBase_IWidgetCreator.h +++ b/src/ModuleBase/ModuleBase_IWidgetCreator.h @@ -7,8 +7,10 @@ #include #include +#include class ModuleBase_ModelWidget; +class ModuleBase_PageBase; class QWidget; @@ -25,11 +27,21 @@ public: /// Virtual destructor ~ModuleBase_IWidgetCreator(); - /// Returns a list of possible widget types, which this creator can process - /// \param theTypes + /// Returns a container of possible page types, which this creator can process + /// \returns types + virtual const std::set& pageTypes() = 0; + + /// Returns a container of possible widget types, which this creator can process + /// \returns types virtual const std::set& widgetTypes() = 0; - /// Create widget by its type + /// Create page by its type + /// \param theType a type + /// \param theParent a parent widget + virtual ModuleBase_PageBase* createPageByType(const std::string& theType, + QWidget* theParent) = 0; + + /// Create widget by its type /// \param theType a type /// \param theParent a parent widget virtual ModuleBase_ModelWidget* createWidgetByType(const std::string& theType,