Uranium
Application Framework
|
Public Member Functions | |
__init__ (self, parent=None) | |
setContainerId (self, container_id) | |
containerId (self) | |
setWatchedProperties (self, properties) | |
watchedProperties (self) | |
setKey (self, key) | |
key (self) | |
properties (self) | |
setPropertyValue (self, property_name, property_value) |
Static Public Attributes | |
containerIdChanged = pyqtSignal() | |
watchedPropertiesChanged = pyqtSignal() | |
keyChanged = pyqtSignal() | |
propertiesChanged = pyqtSignal() |
Protected Member Functions | |
_onPropertyChanged (self, key, property_name) | |
_update (self, container=None) | |
str | _getPropertyValue (self, str property_name) |
Protected Attributes | |
str | _container_id = "" |
_container = None | |
str | _key = "" |
list | _watched_properties = [] |
dict | _property_values = {} |
_onPropertyChanged |
This class provides the value and change notifications for the properties of a single setting This class provides the property values through QObject dynamic properties so that they are available from QML.
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.containerId | ( | self | ) |
The ID of the container we should query for property values.
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.key | ( | self | ) |
The key of the setting that we should provide property values for.
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setContainerId | ( | self, | |
container_id ) |
Set the containerId property.
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setKey | ( | self, | |
key ) |
Set the key property.
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setPropertyValue | ( | self, | |
property_name, | |||
property_value ) |
Set the value of a property. :param property_name: The name of the property to set. :param property_value: The value of the property to set.
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setWatchedProperties | ( | self, | |
properties ) |
Set the watchedProperties property.
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.watchedProperties | ( | self | ) |
A list of property names that should be watched for changes.