RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
gui.detailedledalert.DetailedLedAlert Class Reference

DetailedLedAlert Widget presents Alert Status calculated by RTC Supervisor. More...

Inheritance diagram for gui.detailedledalert.DetailedLedAlert:

Public Member Functions

 __init__ (self, parent=None)
 
 setModel (self, str model)
 Overrides the TaurusCommonModel.setModel method to populate popup with component alerts.
 
 extract_alarm_components (self)
 Prepares popup for the new model Extracts components' paths to get their alert states.
 
 show_popup (self, event)
 Sets proper coordinates of the popup and shows it.
 

Public Attributes

 mousePressEvent = self.show_popup
 
 popup_widget = PopupWidget()
 

Protected Attributes

 _oldb_uri = None
 
str _reduced_alert_model = "alert/status"
 
str _detailed_alert_path = "alert/source"
 
list _components_alert_models = []
 

Detailed Description

DetailedLedAlert Widget presents Alert Status calculated by RTC Supervisor.

The LED itself shows reduced alert, but clicking on it shows a popup with component alerts

Constructor & Destructor Documentation

◆ __init__()

gui.detailedledalert.DetailedLedAlert.__init__ ( self,
parent = None )

Member Function Documentation

◆ extract_alarm_components()

gui.detailedledalert.DetailedLedAlert.extract_alarm_components ( self)

Prepares popup for the new model Extracts components' paths to get their alert states.

◆ setModel()

gui.detailedledalert.DetailedLedAlert.setModel ( self,
str model )

Overrides the TaurusCommonModel.setModel method to populate popup with component alerts.

◆ show_popup()

gui.detailedledalert.DetailedLedAlert.show_popup ( self,
event )

Sets proper coordinates of the popup and shows it.

Member Data Documentation

◆ _components_alert_models

gui.detailedledalert.DetailedLedAlert._components_alert_models = []
protected

◆ _detailed_alert_path

str gui.detailedledalert.DetailedLedAlert._detailed_alert_path = "alert/source"
protected

◆ _oldb_uri

gui.detailedledalert.DetailedLedAlert._oldb_uri = None
protected

◆ _reduced_alert_model

gui.detailedledalert.DetailedLedAlert._reduced_alert_model = "alert/status"
protected

◆ mousePressEvent

gui.detailedledalert.DetailedLedAlert.mousePressEvent = self.show_popup

◆ popup_widget

gui.detailedledalert.DetailedLedAlert.popup_widget = PopupWidget()

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