X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=05f3b7b8a2bba7c6fc1c8750ac3e109523047785;hb=7850a95ad1efe835c2266230bdab39bf2e856789;hp=1e1f29fa76e8dfc54e6de9b682f1efc2881cc0f5;hpb=2734393c7c19899fca7e7c36577b31317887a9c9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index 1e1f29fa7..05f3b7b8a 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.h +++ b/src/ModuleBase/ModuleBase_WidgetFactory.h @@ -51,9 +51,16 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFactory protected: /// check if ModuleBase_Widget has expandable widgets in getControls bool hasExpandingControls(QWidget* theParent); - /// Create widget by its type - /// \param theType a type - /// \param theParent a parent widget + + /// Create page by its type + /// \param theType a type + /// \param theParent a parent widget + ModuleBase_PageBase* createPageByType(const std::string& theType, + QWidget* theParent); + + /// Create widget by its type + /// \param theType a type + /// \param theParent a parent widget ModuleBase_ModelWidget* createWidgetByType(const std::string& theType, QWidget* theParent = NULL);