Uranium
Application Framework
Loading...
Searching...
No Matches
UM.Qt.Bindings.OutputDevicesModel.OutputDevicesModel Class Reference
Inheritance diagram for UM.Qt.Bindings.OutputDevicesModel.OutputDevicesModel:
UM.Qt.ListModel.ListModel

Public Member Functions

def __init__ (self, parent=None)
 
def getDevice (self, device_id)
 
def deviceCount (self)
 
- Public Member Functions inherited from UM.Qt.ListModel.ListModel
None __init__ (self, parent=None)
 
int count (self)
 
int rowCount (self, parent=None)
 
def addRoleName (self, int role, str name)
 
def roleNames (self)
 
def data (self, index, role)
 
Dict[str, Any] getItem (self, int index)
 
List[Dict[str, Any]] items (self)
 
None setItems (self, List[Dict[str, Any]] items)
 
def appendItem (self, Dict[str, Any] item)
 
None insertItem (self, int index, Dict[str, Any] item)
 
None removeItem (self, int index)
 
None clear (self)
 
None setProperty (self, int index, str property, Any value)
 
None sort (self, Callable[[Any], float] fun, Optional[str] key=None, reverse=False)
 
int find (self, str key, Any value)
 

Static Public Attributes

Qt IdRole = Qt.ItemDataRole.UserRole + 1
 
Qt NameRole = Qt.ItemDataRole.UserRole + 2
 
Qt ShortDescriptionRole = Qt.ItemDataRole.UserRole + 3
 
Qt DescriptionRole = Qt.ItemDataRole.UserRole + 4
 
Qt IconNameRole = Qt.ItemDataRole.UserRole + 5
 
Qt PriorityRole = Qt.ItemDataRole.UserRole + 6
 
pyqtSignal outputDevicesChanged = pyqtSignal()
 
- Static Public Attributes inherited from UM.Qt.ListModel.ListModel
pyqtSignal itemsChanged = pyqtSignal()
 

Protected Member Functions

def _update (self)
 

Protected Attributes

 _device_manager
 
- Protected Attributes inherited from UM.Qt.ListModel.ListModel
 _items
 

Detailed Description

A list model providing a list of all registered OutputDevice instances.

This list model wraps OutputDeviceManager's list of OutputDevice instances.
Additionally it provides a function to set OutputDeviceManager's active device.

Exposes the following roles:
* id - The device ID
* name - The human-readable name of the device
* short_description - The short description of the device
* description - The full description of the device
* icon_name - The name of the icon used to identify the device
* priority - The device priority

Constructor & Destructor Documentation

◆ __init__()

def UM.Qt.Bindings.OutputDevicesModel.OutputDevicesModel.__init__ (   self,
  parent = None 
)

Reimplemented from UM.Qt.ListModel.ListModel.


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