X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=05f3b7b8a2bba7c6fc1c8750ac3e109523047785;hb=8cd56d486b6e96b8814002f9f0f4acadd6cea11b;hp=f7e7bd4927beee3e177948cac8cddb1419fdc287;hpb=8f9631c551573523a4dd93f582efd70105bd3c82;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index f7e7bd492..05f3b7b8a 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.h +++ b/src/ModuleBase/ModuleBase_WidgetFactory.h @@ -24,8 +24,8 @@ class ModuleBase_PageBase; /** * \ingroup GUI -* A class for creation of widgets instances in for property panel using -* XML description of a feature +* A class for creation of widgets instances in for property panel using XML deskription of +* a feature */ class MODULEBASE_EXPORT ModuleBase_WidgetFactory { @@ -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);