SHAPER  9.12.0
SamplePanelPlugin_ModelWidgetCreator Class Reference

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

Inheritance diagram for SamplePanelPlugin_ModelWidgetCreator:
Inheritance graph

Public Member Functions

 SamplePanelPlugin_ModelWidgetCreator ()
 Default constructor. More...
 
 ~SamplePanelPlugin_ModelWidgetCreator ()
 Virtual destructor. More...
 
virtual void widgetTypes (std::set< std::string > &theTypes)
 Returns a container of possible widget 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

◆ SamplePanelPlugin_ModelWidgetCreator()

SamplePanelPlugin_ModelWidgetCreator::SamplePanelPlugin_ModelWidgetCreator ( )

Default constructor.

◆ ~SamplePanelPlugin_ModelWidgetCreator()

SamplePanelPlugin_ModelWidgetCreator::~SamplePanelPlugin_ModelWidgetCreator ( )
inline

Virtual destructor.

Member Function Documentation

◆ widgetTypes()

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

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

Parameters
alist of type names

Reimplemented from ModuleBase_IWidgetCreator.

◆ createWidgetByType()

ModuleBase_ModelWidget * SamplePanelPlugin_ModelWidgetCreator::createWidgetByType ( const std::string &  theType,
QWidget theParent,
Config_WidgetAPI theWidgetApi,
ModuleBase_IWorkshop  
)
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