Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Stage.Stage Class Reference
Inheritance diagram for UM.Stage.Stage:
UM.PluginObject.PluginObject

Public Member Functions

None __init__ (self, Optional[QObject] parent=None)
 
None onStageSelected (self)
 
None onStageDeselected (self)
 
None addDisplayComponent (self, str name, Union[str, QUrl] source)
 
QUrl getDisplayComponent (self, str name)
 
- Public Member Functions inherited from UM.PluginObject.PluginObject
str getId (self)
 
None setPluginId (self, str plugin_id)
 
None setMetaData (self, Dict[str, Any] metadata)
 
Dict[str, Any] getMetaData (self)
 
str getPluginId (self)
 
None setVersion (self, str version)
 
str getVersion (self)
 

Additional Inherited Members

- Protected Attributes inherited from UM.PluginObject.PluginObject
 _plugin_id
 
 _version
 
 _metadata
 
 _name
 

Detailed Description

Stages handle combined views in an Uranium application.

The active stage decides which QML component to show where.
Uranium has no notion of specific view locations as that's application specific.

Constructor & Destructor Documentation

◆ __init__()

None UM.Stage.Stage.__init__ ( self,
Optional[QObject] parent = None )

Reimplemented from UM.PluginObject.PluginObject.

Member Function Documentation

◆ addDisplayComponent()

None UM.Stage.Stage.addDisplayComponent ( self,
str name,
Union[str, QUrl] source )
Add a QML component to the stage

◆ getDisplayComponent()

QUrl UM.Stage.Stage.getDisplayComponent ( self,
str name )
Get a QUrl by name.

◆ onStageDeselected()

None UM.Stage.Stage.onStageDeselected ( self)
Something to do when this Stage is deselected

◆ onStageSelected()

None UM.Stage.Stage.onStageSelected ( self)
Something to do when this Stage is selected

The documentation for this class was generated from the following file: