|
- Method resolution order:
- AlarmTableModel
- PySide6.QtCore.QAbstractTableModel
- PySide6.QtCore.QAbstractItemModel
- PySide6.QtCore.QObject
- Shiboken.Object
- IasKafkaUtils.KafkaValueConsumer.IasValueListener
- builtins.object
Methods defined here:
- __init__(self, view: PySide6.QtWidgets.QTableView)
- Constructor
- add_received_alarm(self, alarm: IasBasicTypes.IasValue.IasValue, alarm_list: list[IasBasicTypes.IasValue.IasValue]) -> None
- Adds the alarm to the list, replacing an old alarm
if it is already in the list.
Depending on the passed list, this function adds the alarm to
the alarm displayed by the view or to the list of alarms buffered when
the view is paused
Args:
alarm: the alarm to add
alarm_list: the list to add the alarm to
- cleared_and_acked(self, alarm: IasBasicTypes.IasValue.IasValue) -> bool
- Check if the alarm is cleared and acked.
Cleared and acked alarms must be removed from the table
if the auto-remove has been enabled in the tool bar
Args:
alarm the alarm whose state must be checked
Returns:
True if the alarm is acked and clear, False otherwise
- columnCount(self, index)
- columnCount(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> int
- data(self, index, role=<ItemDataRole.DisplayRole: 0>)
- data(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], role: int = Instance(Qt.DisplayRole)) -> Any
- flush_alarms(self) -> None
- Flush the alarms received in the last period in self.alarms
so that they are displayed in the table
New alarms are inserted in the head so they move on top of the table
- get_index_of_alarm(self, alarm: IasBasicTypes.IasValue.IasValue) -> int
- Get and return the position of an alarm in the list.
An alarm is in the list if the list contains an alarm with the
same fullRunningID
Args:
alarm: the alarm to which we want to get the position in th elist
Returns:
the index of the alarm in the list or -1 if the alarm is not
in the list
- get_priority(self, ias_value: IasBasicTypes.IasValue.IasValue) -> IasBasicTypes.Priority.Priority
- returns:
The priority of the alarm
- get_row_content(self, index: int) -> IasBasicTypes.IasValue.IasValue
- get_state(self, ias_value: IasBasicTypes.IasValue.IasValue) -> IasBasicTypes.AlarmState.AlarmState
- returns:
The priority of the alarm
- headerData(self, section, orientation, role=<ItemDataRole.DisplayRole: 0>)
- headerData(self, section: int, orientation: PySide6.QtCore.Qt.Orientation, role: int = Instance(Qt.DisplayRole)) -> Any
- iasValueReceived(self, iasValue)
- Gets alarms from Kafka and add them the model
- pause(self, enable: bool) -> None
- Pause resume the update of the table
Args:
enable: if True pause the update otherwise resume
- removeRows(self, rows: list[int]) -> None
- Removes the rows from the table
Args:
rows: the rows to remove
- remove_cleared(self, enable: bool) -> None
- Set the property to auto remove cleared alarms
Args:
enable: if True auto-remove of cleared alarms is enabled
otherwise is disabled
- rowCount(self, index)
- rowCount(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> int
- setData(self, index, value, role=<ItemDataRole.EditRole: 2>)
- setData(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], value: Any, role: int = Instance(Qt.EditRole)) -> bool
Data and other attributes defined here:
- staticMetaObject = PySide6.QtCore.QMetaObject("AlarmTableModel" inherits "QAbstractTableModel":
)
Methods inherited from PySide6.QtCore.QAbstractTableModel:
- __delattr__(self, name, /)
- Implement delattr(self, name).
- __setattr__(self, name, value, /)
- Implement setattr(self, name, value).
- dropMimeData(...)
- dropMimeData(self, data: PySide6.QtCore.QMimeData, action: PySide6.QtCore.Qt.DropAction, row: int, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool
- flags(...)
- flags(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.Qt.ItemFlag
- hasChildren(...)
- hasChildren(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool
- index(...)
- index(self, row: int, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> PySide6.QtCore.QModelIndex
- parent(...)
- parent(self) -> PySide6.QtCore.QObject
parent(self, child: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QModelIndex
- sibling(...)
- sibling(self, row: int, column: int, idx: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QModelIndex
Static methods inherited from PySide6.QtCore.QAbstractTableModel:
- __new__(*args, **kwargs) from Shiboken.ObjectType
- Create and return a new object. See help(type) for accurate signature.
Methods inherited from PySide6.QtCore.QAbstractItemModel:
- beginInsertColumns(...)
- beginInsertColumns(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], first: int, last: int) -> None
- beginInsertRows(...)
- beginInsertRows(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], first: int, last: int) -> None
- beginMoveColumns(...)
- beginMoveColumns(self, sourceParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], sourceFirst: int, sourceLast: int, destinationParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], destinationColumn: int) -> bool
- beginMoveRows(...)
- beginMoveRows(self, sourceParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], sourceFirst: int, sourceLast: int, destinationParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], destinationRow: int) -> bool
- beginRemoveColumns(...)
- beginRemoveColumns(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], first: int, last: int) -> None
- beginRemoveRows(...)
- beginRemoveRows(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], first: int, last: int) -> None
- beginResetModel(...)
- beginResetModel(self) -> None
- buddy(...)
- buddy(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QModelIndex
- canDropMimeData(...)
- canDropMimeData(self, data: PySide6.QtCore.QMimeData, action: PySide6.QtCore.Qt.DropAction, row: int, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool
- canFetchMore(...)
- canFetchMore(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool
- changePersistentIndex(...)
- changePersistentIndex(self, from_: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], to: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> None
- changePersistentIndexList(...)
- changePersistentIndexList(self, from_: Sequence[PySide6.QtCore.QModelIndex], to: Sequence[PySide6.QtCore.QModelIndex]) -> None
- checkIndex(...)
- checkIndex(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], options: PySide6.QtCore.QAbstractItemModel.CheckIndexOption = Instance(PySide6.QtCore.QAbstractItemModel.CheckIndexOption.NoOption)) -> bool
- clearItemData(...)
- clearItemData(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> bool
columnsAboutToBeInserted = <PySide6.QtCore.Signal object>
columnsAboutToBeMoved = <PySide6.QtCore.Signal object>
columnsAboutToBeRemoved = <PySide6.QtCore.Signal object>
columnsInserted = <PySide6.QtCore.Signal object>
columnsMoved = <PySide6.QtCore.Signal object>
columnsRemoved = <PySide6.QtCore.Signal object>
- createIndex(...)
- createIndex(self, row: int, column: int, id: int = 0) -> PySide6.QtCore.QModelIndex
createIndex(self, row: int, column: int, ptr: object) -> PySide6.QtCore.QModelIndex
dataChanged = <PySide6.QtCore.Signal object>
- decodeData(...)
- decodeData(self, row: int, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], stream: PySide6.QtCore.QDataStream) -> bool
- encodeData(...)
- encodeData(self, indexes: Sequence[PySide6.QtCore.QModelIndex], stream: PySide6.QtCore.QDataStream) -> None
- endInsertColumns(...)
- endInsertColumns(self) -> None
- endInsertRows(...)
- endInsertRows(self) -> None
- endMoveColumns(...)
- endMoveColumns(self) -> None
- endMoveRows(...)
- endMoveRows(self) -> None
- endRemoveColumns(...)
- endRemoveColumns(self) -> None
- endRemoveRows(...)
- endRemoveRows(self) -> None
- endResetModel(...)
- endResetModel(self) -> None
- fetchMore(...)
- fetchMore(self, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> None
- hasIndex(...)
- hasIndex(self, row: int, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
headerDataChanged = <PySide6.QtCore.Signal object>
- insertColumn(...)
- insertColumn(self, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
- insertColumns(...)
- insertColumns(self, column: int, count: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
- insertRow(...)
- insertRow(self, row: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
- insertRows(...)
- insertRows(self, row: int, count: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
- itemData(...)
- itemData(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> Dict[int, Any]
layoutAboutToBeChanged = <PySide6.QtCore.Signal object>
layoutChanged = <PySide6.QtCore.Signal object>
- match(...)
- match(self, start: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], role: int, value: Any, hits: int = 1, flags: PySide6.QtCore.Qt.MatchFlag = Instance(Qt.MatchFlags(Qt.MatchStartsWith|Qt.MatchWrap))) -> List[PySide6.QtCore.QModelIndex]
- mimeData(...)
- mimeData(self, indexes: Sequence[PySide6.QtCore.QModelIndex]) -> PySide6.QtCore.QMimeData
- mimeTypes(...)
- mimeTypes(self) -> List[str]
modelAboutToBeReset = <PySide6.QtCore.Signal object>
modelReset = <PySide6.QtCore.Signal object>
- moveColumn(...)
- moveColumn(self, sourceParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], sourceColumn: int, destinationParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], destinationChild: int) -> bool
- moveColumns(...)
- moveColumns(self, sourceParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], sourceColumn: int, count: int, destinationParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], destinationChild: int) -> bool
- moveRow(...)
- moveRow(self, sourceParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], sourceRow: int, destinationParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], destinationChild: int) -> bool
- moveRows(...)
- moveRows(self, sourceParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], sourceRow: int, count: int, destinationParent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], destinationChild: int) -> bool
- persistentIndexList(...)
- persistentIndexList(self) -> List[PySide6.QtCore.QModelIndex]
- removeColumn(...)
- removeColumn(self, column: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
- removeColumns(...)
- removeColumns(self, column: int, count: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
- removeRow(...)
- removeRow(self, row: int, parent: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex] = Invalid(PySide6.QtCore.QModelIndex)) -> bool
- resetInternalData(...)
- resetInternalData(self) -> None
- revert(...)
- revert(self) -> None
- roleNames(...)
- roleNames(self) -> Dict[int, PySide6.QtCore.QByteArray]
rowsAboutToBeInserted = <PySide6.QtCore.Signal object>
rowsAboutToBeMoved = <PySide6.QtCore.Signal object>
rowsAboutToBeRemoved = <PySide6.QtCore.Signal object>
rowsInserted = <PySide6.QtCore.Signal object>
rowsMoved = <PySide6.QtCore.Signal object>
rowsRemoved = <PySide6.QtCore.Signal object>
- setHeaderData(...)
- setHeaderData(self, section: int, orientation: PySide6.QtCore.Qt.Orientation, value: Any, role: int = Instance(Qt.EditRole)) -> bool
- setItemData(...)
- setItemData(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex], roles: Dict[int, Any]) -> bool
- sort(...)
- sort(self, column: int, order: PySide6.QtCore.Qt.SortOrder = Instance(Qt.AscendingOrder)) -> None
- span(...)
- span(self, index: Union[PySide6.QtCore.QModelIndex, PySide6.QtCore.QPersistentModelIndex]) -> PySide6.QtCore.QSize
- submit(...)
- submit(self) -> bool
- supportedDragActions(...)
- supportedDragActions(self) -> PySide6.QtCore.Qt.DropAction
- supportedDropActions(...)
- supportedDropActions(self) -> PySide6.QtCore.Qt.DropAction
Data and other attributes inherited from PySide6.QtCore.QAbstractItemModel:
- CheckIndexOption = <enum 'CheckIndexOption'>
- An enumeration.
- LayoutChangeHint = <enum 'LayoutChangeHint'>
- An enumeration.
Methods inherited from PySide6.QtCore.QObject:
- __getattribute__(self, name, /)
- Return getattr(self, name).
- __repr__(self, /)
- Return repr(self).
- blockSignals(...)
- blockSignals(self, b: bool) -> bool
- childEvent(...)
- childEvent(self, event: PySide6.QtCore.QChildEvent) -> None
- children(...)
- children(self) -> List[PySide6.QtCore.QObject]
- connectNotify(...)
- connectNotify(self, signal: PySide6.QtCore.QMetaMethod) -> None
- customEvent(...)
- customEvent(self, event: PySide6.QtCore.QEvent) -> None
- deleteLater(...)
- deleteLater(self) -> None
destroyed = <PySide6.QtCore.Signal object>
- disconnectNotify(...)
- disconnectNotify(self, signal: PySide6.QtCore.QMetaMethod) -> None
- dumpObjectInfo(...)
- dumpObjectInfo(self) -> None
- dumpObjectTree(...)
- dumpObjectTree(self) -> None
- dynamicPropertyNames(...)
- dynamicPropertyNames(self) -> List[PySide6.QtCore.QByteArray]
- emit(...)
- emit(self, arg__1: bytes, *args: None) -> bool
- event(...)
- event(self, event: PySide6.QtCore.QEvent) -> bool
- eventFilter(...)
- eventFilter(self, watched: PySide6.QtCore.QObject, event: PySide6.QtCore.QEvent) -> bool
- findChild(...)
- findChild(self, type: type, name: str = {}, options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) -> object
- findChildren(...)
- findChildren(self, type: type, name: str = {}, options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) -> Iterable
findChildren(self, type: type, pattern: Union[PySide6.QtCore.QRegularExpression, str], options: PySide6.QtCore.Qt.FindChildOption = Instance(Qt.FindChildrenRecursively)) -> Iterable
- inherits(...)
- inherits(self, classname: bytes) -> bool
- installEventFilter(...)
- installEventFilter(self, filterObj: PySide6.QtCore.QObject) -> None
- isQuickItemType(...)
- isQuickItemType(self) -> bool
- isSignalConnected(...)
- isSignalConnected(self, signal: PySide6.QtCore.QMetaMethod) -> bool
- isWidgetType(...)
- isWidgetType(self) -> bool
- isWindowType(...)
- isWindowType(self) -> bool
- killTimer(...)
- killTimer(self, id: int) -> None
- metaObject(...)
- metaObject(self) -> PySide6.QtCore.QMetaObject
- moveToThread(...)
- moveToThread(self, thread: PySide6.QtCore.QThread) -> None
- objectName(...)
- objectName(self) -> str
objectNameChanged = <PySide6.QtCore.Signal object>
- property(...)
- property(self, name: str) -> Any
- receivers(...)
- receivers(self, signal: bytes) -> int
- removeEventFilter(...)
- removeEventFilter(self, obj: PySide6.QtCore.QObject) -> None
- sender(...)
- sender(self) -> PySide6.QtCore.QObject
- senderSignalIndex(...)
- senderSignalIndex(self) -> int
- setObjectName(...)
- setObjectName(self, name: str) -> None
- setParent(...)
- setParent(self, parent: Optional[PySide6.QtCore.QObject]) -> None
- setProperty(...)
- setProperty(self, name: str, value: Any) -> bool
- signalsBlocked(...)
- signalsBlocked(self) -> bool
- startTimer(...)
- startTimer(self, interval: int, timerType: PySide6.QtCore.Qt.TimerType = Instance(Qt.CoarseTimer)) -> int
- thread(...)
- thread(self) -> PySide6.QtCore.QThread
- timerEvent(...)
- timerEvent(self, event: PySide6.QtCore.QTimerEvent) -> None
Class methods inherited from PySide6.QtCore.QObject:
- tr(...) from Shiboken.ObjectType
- tr(self, sourceText: str, disambiguation: Optional[str] = None, n: int = -1) -> str
Static methods inherited from PySide6.QtCore.QObject:
- connect(...)
- connect(arg__1: PySide6.QtCore.QObject, arg__2: bytes, arg__3: Callable, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection
connect(self, arg__1: bytes, arg__2: Callable, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection
connect(self, arg__1: bytes, arg__2: PySide6.QtCore.QObject, arg__3: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection
connect(self, sender: PySide6.QtCore.QObject, signal: bytes, member: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection
connect(sender: PySide6.QtCore.QObject, signal: PySide6.QtCore.QMetaMethod, receiver: PySide6.QtCore.QObject, method: PySide6.QtCore.QMetaMethod, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection
connect(sender: PySide6.QtCore.QObject, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes, type: PySide6.QtCore.Qt.ConnectionType = Instance(Qt.AutoConnection)) -> PySide6.QtCore.QMetaObject.Connection
- disconnect(...)
- disconnect(arg__1: PySide6.QtCore.QMetaObject.Connection) -> bool
disconnect(arg__1: PySide6.QtCore.QObject, arg__2: bytes, arg__3: Callable) -> bool
disconnect(self, arg__1: bytes, arg__2: Callable) -> bool
disconnect(self, receiver: PySide6.QtCore.QObject, member: Optional[bytes] = None) -> bool
disconnect(self, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes) -> bool
disconnect(sender: PySide6.QtCore.QObject, signal: PySide6.QtCore.QMetaMethod, receiver: PySide6.QtCore.QObject, member: PySide6.QtCore.QMetaMethod) -> bool
disconnect(sender: PySide6.QtCore.QObject, signal: bytes, receiver: PySide6.QtCore.QObject, member: bytes) -> bool
Data descriptors inherited from Shiboken.Object:
- __dict__
Data descriptors inherited from IasKafkaUtils.KafkaValueConsumer.IasValueListener:
- __weakref__
- list of weak references to the object (if defined)
|