X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=8fddaa4dd69590f3cc7fe6c851f04db1d8165cab;hb=e32f95642855a63da2727cb324ce2a75632a712f;hp=cebeb0bda77b4b0db7be809ac6b7731773291c24;hpb=935d92397da8acd3bc317a6318572b508c118dc3;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index cebeb0bda..8fddaa4dd 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.h +++ b/src/ModuleBase/ModuleBase_WidgetFactory.h @@ -39,7 +39,12 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFactory /// Creates content widget for property panel /// \param thePage a parent page - void createWidget(ModuleBase_PageBase* thePage); + void createWidget(ModuleBase_PageBase* thePage, bool alignToTop = true); + + /// Creates property panel content for the feature + /// \param thePage a parent page + /// \param theFeature a feature to fill the panel + void createPanel(ModuleBase_PageBase* thePage, const FeaturePtr& theFeature); /// Creates one widget for property panel for the widget with given index /// \param theParent a parent widget @@ -63,6 +68,9 @@ class MODULEBASE_EXPORT ModuleBase_WidgetFactory /// \param theAttributeId an outpup parameter with attribute void getGreedAttribute(std::string& theAttributeId); + /// Returns widget API from XML + const Config_WidgetAPI* widgetAPI() const { return myWidgetApi; } + protected: /// check if ModuleBase_Widget has expandable widgets in getControls bool hasExpandingControls(QWidget* theParent);