Uranium
Application Framework
|
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 | |
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) |
Protected Attributes | |
dict | _components = {} |
QUrl | _icon_source = QUrl() |
Protected Attributes inherited from UM.PluginObject.PluginObject | |
_plugin_id = None | |
_version = None | |
dict | _metadata = {} |
_name = None |
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.
None UM.Stage.Stage.addDisplayComponent | ( | self, | |
str | name, | ||
Union[str, QUrl] | source ) |
Add a QML component to the stage
QUrl UM.Stage.Stage.getDisplayComponent | ( | self, | |
str | name ) |
Get a QUrl by name.
None UM.Stage.Stage.onStageDeselected | ( | self | ) |
Something to do when this Stage is deselected
None UM.Stage.Stage.onStageSelected | ( | self | ) |
Something to do when this Stage is selected