SHAPER  9.12.0
CollectionPlugin_WidgetCreator Class Reference

Interface to WidgetCreator which can create specific widgets by type. More...

Inheritance diagram for CollectionPlugin_WidgetCreator:
Inheritance graph

Public Member Functions

 CollectionPlugin_WidgetCreator ()
 Default constructor. More...
 
 ~CollectionPlugin_WidgetCreator ()
 Virtual destructor. More...
 
virtual void widgetTypes (std::set< std::string > &theTypes)
 Returns a container of possible page types, which this creator can process. More...
 
virtual ModuleBase_ModelWidgetcreateWidgetByType (const std::string &theType, QWidget *theParent, Config_WidgetAPI *theWidgetApi, ModuleBase_IWorkshop *)
 Create widget by its type The default implementation is empty. More...
 
virtual void panelTypes (std::set< std::string > &)
 Returns a container of possible page types, which this creator can process The default implementation is empty. More...
 
virtual void pageTypes (std::set< std::string > &theTypes)
 Returns a container of possible page types, which this creator can process The default implementation is empty. More...
 
virtual QWidgetcreatePanelByType (const std::string &theType, QWidget *theParent, const FeaturePtr &theFeature, Config_WidgetAPI *theWidgetApi=0)
 Create panel control by its type. More...
 
virtual ModuleBase_PageBasecreatePageByType (const std::string &theType, QWidget *theParent, Config_WidgetAPI *theWidgetApi)
 Create page by its type The default implementation is empty. More...
 

Detailed Description

Interface to WidgetCreator which can create specific widgets by type.

Constructor & Destructor Documentation

◆ CollectionPlugin_WidgetCreator()

CollectionPlugin_WidgetCreator::CollectionPlugin_WidgetCreator ( )

Default constructor.

◆ ~CollectionPlugin_WidgetCreator()

CollectionPlugin_WidgetCreator::~CollectionPlugin_WidgetCreator ( )
inline

Virtual destructor.

Member Function Documentation

◆ widgetTypes()

void CollectionPlugin_WidgetCreator::widgetTypes ( std::set< std::string > &  theTypes)
virtual

Returns a container of possible page types, which this creator can process.

Parameters
theTypesa list of type names

Reimplemented from ModuleBase_IWidgetCreator.

◆ createWidgetByType()

ModuleBase_ModelWidget * CollectionPlugin_WidgetCreator::createWidgetByType ( const std::string &  theType,
QWidget theParent,
Config_WidgetAPI theWidgetApi,
ModuleBase_IWorkshop theWorkshop 
)
virtual

Create widget by its type The default implementation is empty.

Parameters
theTypea type
theParenta parent widget
theDataa low-level API for reading xml definitions of widgets
theWorkshopa current workshop
Returns
a created model widget or null

Reimplemented from ModuleBase_IWidgetCreator.

◆ panelTypes()

virtual void ModuleBase_IWidgetCreator::panelTypes ( std::set< std::string > &  )
inlinevirtualinherited

Returns a container of possible page types, which this creator can process The default implementation is empty.

Parameters
theTypesa list of type names

Reimplemented in SamplePanelPlugin_WidgetCreator.

◆ pageTypes()

virtual void ModuleBase_IWidgetCreator::pageTypes ( std::set< std::string > &  theTypes)
inlinevirtualinherited

Returns a container of possible page types, which this creator can process The default implementation is empty.

Parameters
theTypesa list of type names

◆ createPanelByType()

QWidget * ModuleBase_IWidgetCreator::createPanelByType ( const std::string &  theType,
QWidget theParent,
const FeaturePtr &  theFeature,
Config_WidgetAPI theWidgetApi = 0 
)
virtualinherited

Create panel control by its type.

The default implementation is empty

Parameters
theTypea panel type
theParenta parent widget
theFeaturea feature modified in the panel
theWidgetApia low-level API for reading xml definitions of widget
Returns
created widget or null

◆ createPageByType()

ModuleBase_PageBase * ModuleBase_IWidgetCreator::createPageByType ( const std::string &  theType,
QWidget theParent,
Config_WidgetAPI theWidgetApi 
)
virtualinherited

Create page by its type The default implementation is empty.

Parameters
theTypea type
theParenta parent widget
theWidgetApia low-level API for reading xml definitions of widgets