- /// Create widget by its type
- /// \param theType a type
- /// \param theParent a parent widget
+ /// Create panel control by its type.
+ /// The default implementation is empty
+ /// \param theType a panel type
+ /// \param theParent a parent widget
+ /// \param theFeature a feature modified in the panel
+ /// \return created widget or null
+ virtual QWidget* createPanelByType(const std::string& theType,
+ QWidget* theParent,
+ const FeaturePtr& theFeature);
+
+ /// Create page by its type
+ /// The default implementation is empty
+ /// \param theType a type
+ /// \param theParent a parent widget
+ /// \param theWidgetApi a low-level API for reading xml definitions of widgets
+ virtual ModuleBase_PageBase* createPageByType(const std::string& theType,
+ QWidget* theParent,
+ Config_WidgetAPI* theWidgetApi);
+
+ /// Create widget by its type
+ /// The default implementation is empty
+ /// \param theType a type
+ /// \param theParent a parent widget
+ /// \param theWidgetApi a low-level API for reading xml definitions of widgets
+ /// \param theWorkshop a workshop class instance