jvconnected.ui.models.tslumd
- class jvconnected.ui.models.tslumd.UmdModel(*args)[source]
Bases:
GenericQObjectQt bridge to
jvconnected.interfaces.tslumd.umd_io.UmdIo- Property engine: jvconnected.ui.models.engine.EngineModel
The
EngineModelin use
- Property hostaddr: str
Alias for
jvconnected.interfaces.tslumd.umd_io.UmdIo.hostaddr
- Property hostport: int
Alias for
jvconnected.interfaces.tslumd.umd_io.UmdIo.hostport
- Property editedProperties: List[str]
A list of attributes that have changed and are waiting to be set on the
umd_io
- async Slot sendValuesToInterface()[source]
Update the
umd_iovalues for any attributes currently ineditedProperties.After all values are set, the
editedPropertieslist is emptied.
- async Slot getValuesFromInterface()[source]
Get the current values from the
umd_ioChanges made to anything in
editedPropertiesare overwritten and the list is cleared.
- class jvconnected.ui.models.tslumd.TallyRoles(value)[source]
Bases:
IntEnumRole definitions to specify column mapping in
TallyListModelto aPySide2.QtQuick.TableView- screenIndexRole
Screen index
- tallyIndexRole
Tally index
- RhTallyRole
rhTally
- TxtTallyRole
txtTally
- LhTallyRole
lhTally
- TextRole
text
- get_tally_prop() str[source]
Get the attribute name of this role mapped to
jvconnected.interfaces.tslumd.umd_io.Tally
- get_tally_prop_value(tally: Tally) Any[source]
Get the value associated with this role from the given
tslumd.tallyobj.Tally
- class jvconnected.ui.models.tslumd.TallyListModel(*args, **kwargs)[source]
Bases:
QAbstractTableModelTable Model for
jvconnected.interfaces.tslumd.umd_io.Tallyobjects- Property engine: jvconnected.ui.models.engine.EngineModel
The
EngineModelin use
- roleNames(self) Dict[int, PySide2.QtCore.QByteArray][source]
- columnCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) int[source]
- rowCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) int[source]
- flags(self, index: PySide2.QtCore.QModelIndex) PySide2.QtCore.Qt.ItemFlags[source]
- Slot getTallyKeyForRow(row: int) Tuple[int, int][source]
Get the key within
talliesfor the given row
- data(self, index: PySide2.QtCore.QModelIndex, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) Any[source]
- class jvconnected.ui.models.tslumd.TallyMapListModel(*args, **kwargs)[source]
Bases:
QAbstractTableModelTable Model for
jvconnected.interfaces.tslumd.mapper.DeviceMappingobjects- Property engine: jvconnected.ui.models.engine.EngineModel
The
EngineModelin use
- property maps: Optional[Dict[int, DeviceMapping]]
Shortcut for
device_mapsof theumd_io
- roleNames(self) Dict[int, PySide2.QtCore.QByteArray][source]
- columnCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) int[source]
- rowCount(self, parent: PySide2.QtCore.QModelIndex = Invalid(PySide2.QtCore.QModelIndex)) int[source]
- flags(self, index: PySide2.QtCore.QModelIndex) PySide2.QtCore.Qt.ItemFlags[source]
- data(self, index: PySide2.QtCore.QModelIndex, role: int = PySide2.QtCore.Qt.ItemDataRole.DisplayRole) Any[source]
- async Slot unMapByRow(row: int)[source]
Remove a
DeviceMappingfrom theumd_io. Seejvconnected.interfaces.tslumd.umd_io.UmdIo.remove_device_mapping()- Parameters
row (int) – The table row index
- class jvconnected.ui.models.tslumd.TallyMapBase(*args)[source]
Bases:
GenericQObject- Property tallyKey: Tuple[int, int]
Tuple of
screenIndex,tallyIndexmatchingjvconnected.interfaces.tslumd.mapper.TallyMap.tally_key
- Property screenIndex: int
Alias for
jvconnected.interfaces.tslumd.mapper.TallyMap.screen_index
- Property tallyIndex: int
Alias for
jvconnected.interfaces.tslumd.mapper.TallyMap.tally_index
- Property tallyType: str
Alias for
jvconnected.interfaces.tslumd.mapper.TallyMap.tally_type
- class jvconnected.ui.models.tslumd.TallyMapModel(*args)[source]
Bases:
TallyMapBase- Property deviceIndex: int
Alias for
jvconnected.interfaces.tslumd.mapper.DeviceMapping.device_index
- Property destTallyType: str
The destination tally type to map to the device (
'Preview'or'Program')
- async Slot applyMap(umd_model: UmdModel)[source]
Add a
DeviceMappingto theUmdModel.umd_iousingjvconnected.interfaces.tslumd.umd_io.UmdIo.add_device_mapping()
- create_device_map() DeviceMapping[source]
Create a
DeviceMappingwith the current values of this instance
- merge_with_device_map(existing_map: DeviceMapping) DeviceMapping[source]
Merge an existing
DeviceMappingwith one created bycreate_device_map()
- class jvconnected.ui.models.tslumd.TallyCreateMapModel(*args)[source]
Bases:
GenericQObject- Property program: jvconnected.ui.models.tslumd.TallyMapModel
Instance of
TallyMapModelto be used for program tally
- Property preview: jvconnected.ui.models.tslumd.TallyMapModel
Instance of
TallyMapModelto be used for preview tally
- Slot checkValid() bool[source]
Check validity of current parameters
Calls
checkValid()on bothprogramandpreviewobjects
- async Slot applyMap(umd_model: UmdModel)[source]
Add a
DeviceMappingto theUmdModel.umd_iousingjvconnected.interfaces.tslumd.umd_io.UmdIo.add_device_mapping().The values from the
programandpreviewobjects are merged
- class jvconnected.ui.models.tslumd.TallyUnmapModel(*args)[source]
Bases:
TallyMapBase