Salome HOME
Update SketchPlugin_Projection feature (issue #1459)
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetFactory.h
index cebeb0bda77b4b0db7be809ac6b7731773291c24..8fddaa4dd69590f3cc7fe6c851f04db1d8165cab 100644 (file)
@@ -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);