X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2FModuleBase%2FModuleBase_IWidgetCreator.h;h=b3018f044aa2f9fd30f0dfa69ebcd4bf9f537ab3;hb=3e6012473696e5fd94e3c8240e2e1eda8def1743;hp=d27f5be824bf2ce86db3239baf4c84ff8dd473ec;hpb=b558b7c5638d5042b001beae78420f43742bcf86;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_IWidgetCreator.h b/src/ModuleBase/ModuleBase_IWidgetCreator.h index d27f5be82..b3018f044 100755 --- a/src/ModuleBase/ModuleBase_IWidgetCreator.h +++ b/src/ModuleBase/ModuleBase_IWidgetCreator.h @@ -5,6 +5,8 @@ #include "ModuleBase.h" +#include "ModelAPI_Feature.h" + #include #include #include @@ -31,36 +33,44 @@ public: ~ModuleBase_IWidgetCreator(); /// Returns a container of possible page types, which this creator can process + /// The default implementation is empty /// \param theTypes a list of type names virtual void panelTypes(std::set& theTypes) {} /// Returns a container of possible page types, which this creator can process - /// \param a list of type names + /// The default implementation is empty + /// \param theTypes a list of type names virtual void pageTypes(std::set& theTypes) {} /// Returns a container of possible widget types, which this creator can process - /// \param a list of type names + /// \param theTypes a list of type names virtual void widgetTypes(std::set& theTypes) {} /// 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); + 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 theData a low-level API for reading xml definitions of widgets + /// \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 theData a low-level API for reading xml definitions of widgets + /// \param theWidgetApi a low-level API for reading xml definitions of widgets + /// \param theWorkshop a workshop class instance virtual ModuleBase_ModelWidget* createWidgetByType(const std::string& theType, QWidget* theParent, Config_WidgetAPI* theWidgetApi,