Uranium
Application Framework
UM.Stage.Stage Class Reference
Inheritance diagram for UM.Stage.Stage:
UM.PluginObject.PluginObject

Public Member Functions

None __init__ (self, parent=None)
 
None onStageSelected (self)
 
None onStageDeselected (self)
 
None addDisplayComponent (self, str name, Union[str, QUrl] source)
 
QUrl getDisplayComponent (self, str name)
 
QUrl iconSource (self)
 
None setIconSource (self, Union[str, QUrl] source)
 
- Public Member Functions inherited from UM.PluginObject.PluginObject
None __init__ (self, *args, **kwags)
 
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)
 

Static Public Attributes

 iconSourceChanged = pyqtSignal()
 

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,
  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: