Salome HOME
Issue #1477 Build Vertex - wrong selection in viewer
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetFactory.h
index 96489ce8e52ba0129700a5b5c81b6bb54959b5fb..8fddaa4dd69590f3cc7fe6c851f04db1d8165cab 100644 (file)
@@ -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);