X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_WidgetFactory.h;h=8fddaa4dd69590f3cc7fe6c851f04db1d8165cab;hb=9aeb69897970e21212d6f8926ec33d2eb696f18d;hp=96489ce8e52ba0129700a5b5c81b6bb54959b5fb;hpb=ab9d4995b9893f1aa2a48d6189df6477f8f5bb41;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetFactory.h b/src/ModuleBase/ModuleBase_WidgetFactory.h index 96489ce8e..8fddaa4dd 100644 --- a/src/ModuleBase/ModuleBase_WidgetFactory.h +++ b/src/ModuleBase/ModuleBase_WidgetFactory.h @@ -39,7 +39,7 @@ 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 @@ -68,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);