Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider Class Reference

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 = container_id
 

Detailed Description

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.

Member Function Documentation

◆ containerId()

UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.containerId ( self)
The ID of the container we should query for property values.

◆ key()

UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.key ( self)
The key of the setting that we should provide property values for.

◆ setContainerId()

UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setContainerId ( self,
container_id )
Set the containerId property.

◆ setKey()

UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setKey ( self,
key )
Set the key property.

◆ setPropertyValue()

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.

◆ setWatchedProperties()

UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.setWatchedProperties ( self,
properties )
Set the watchedProperties property.

◆ watchedProperties()

UM.Settings.Models.ContainerPropertyProvider.ContainerPropertyProvider.watchedProperties ( self)
A list of property names that should be watched for changes.

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