|
SHAPER
9.15.0
|
A class for creation of widgets instances in for property panel using XML deskription of a feature. More...
Public Member Functions | |
| virtual | ~ModuleBase_WidgetCreatorFactory () |
| Destructor. More... | |
| void | registerCreator (const WidgetCreatorPtr &theCreator) |
| The creator is added to the internal container to be used when the createWidgetByType is called. More... | |
| bool | hasPanelWidget (const std::string &theType) |
| Returns true if there is a creator, which can make a panel by the type. More... | |
| QWidget * | createPanelByType (const std::string &theType, QWidget *theParent, const FeaturePtr &theFeature, Config_WidgetAPI *theWidgetApi=0) |
| Create panel by its type. More... | |
| bool | hasPageWidget (const std::string &theType) |
| Returns true if there is a creator, which can make a page by the type. More... | |
| ModuleBase_PageBase * | createPageByType (const std::string &theType, QWidget *theParent, Config_WidgetAPI *theWidgetApi) |
| Create page by its type. More... | |
| ModuleBase_ModelWidget * | createWidgetByType (const std::string &theType, QWidget *theParent, Config_WidgetAPI *theWidgetApi, ModuleBase_IWorkshop *theWorkshop) |
| Create widget by its type. More... | |
Static Public Member Functions | |
| static std::shared_ptr< ModuleBase_WidgetCreatorFactory > | get () |
| Returns an singular instance of the class if it exists or create it. More... | |
A class for creation of widgets instances in for property panel using XML deskription of a feature.
|
virtual |
Destructor.
|
static |
Returns an singular instance of the class if it exists or create it.
| void ModuleBase_WidgetCreatorFactory::registerCreator | ( | const WidgetCreatorPtr & | theCreator | ) |
The creator is added to the internal container to be used when the createWidgetByType is called.
| theCreator | a new widget creator |
fill map of panels
fill map of widgets
fill map of pages
| bool ModuleBase_WidgetCreatorFactory::hasPanelWidget | ( | const std::string & | theType | ) |
Returns true if there is a creator, which can make a panel by the type.
| theType | a type |
| QWidget * ModuleBase_WidgetCreatorFactory::createPanelByType | ( | const std::string & | theType, |
| QWidget * | theParent, | ||
| const FeaturePtr & | theFeature, | ||
| Config_WidgetAPI * | theWidgetApi = 0 |
||
| ) |
Create panel by its type.
| theType | a type |
| theParent | a parent widget |
| theFeature | a feature to fill the panel |
| theWidgetApi | the widget configuration. The attribute of the model widget is obtained from XML |
| bool ModuleBase_WidgetCreatorFactory::hasPageWidget | ( | const std::string & | theType | ) |
Returns true if there is a creator, which can make a page by the type.
| theType | a type |
| ModuleBase_PageBase * ModuleBase_WidgetCreatorFactory::createPageByType | ( | const std::string & | theType, |
| QWidget * | theParent, | ||
| Config_WidgetAPI * | theWidgetApi | ||
| ) |
Create page by its type.
| theType | a type |
| theParent | a parent widget |
| theWidgetApi | the widget configuration. The attribute of the model widget is obtained from XML |
| ModuleBase_ModelWidget * ModuleBase_WidgetCreatorFactory::createWidgetByType | ( | const std::string & | theType, |
| QWidget * | theParent, | ||
| Config_WidgetAPI * | theWidgetApi, | ||
| ModuleBase_IWorkshop * | theWorkshop | ||
| ) |
Create widget by its type.
| theType | a type |
| theParent | a parent widget |
| theWidgetApi | the widget configuration. The attribute of the model widget is obtained from XML |
| theWorkshop | a workshop object instance |