RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
gui.rtc_global_status.RtcGlobalStatus Class Reference

Widget that represent global status of RTC Supervisor. More...

Inheritance diagram for gui.rtc_global_status.RtcGlobalStatus:

Public Member Functions

 __init__ (self, cfg, parent=None, str component_name="RTC Supervisor Global Status")
 
 component_name (self)
 Getter for component name.
 
 set_cfg (self, cfg)
 Sets configuration.
 
 oldb_uri (self)
 Getter for oldb_uri Qt Property.
 
 set_oldb_uri (self, str uri)
 Setter for oldb_uri Qt Property.
 
 set_rr_uri (self, str uri)
 Ancillary method.
 
 get_global_status (self)
 Get Global Status.
 
 setModel (self, str model)
 Overrides the TaurusCommonModel.setModel method to end trailing "/" when missing.
 
 focusInEvent (self, QFocusEvent event)
 Overrides QWidget.focusInEvent.
 

Public Attributes

 ui = Ui_RtcGlobalStatus()
 

Static Public Attributes

 oldb_uri_changed = Signal(str)
 OLDB URI signal emitted when property changes value.
 
 oldb_uri
 

Protected Attributes

 _component_name = component_name
 
str _rr_uri = ""
 
str _oldb_uri = ""
 
 _logger = CiiLogManager.get_logger(__name__)
 
 _cfg = cfg
 
str _tooltip_text = "Global RTC status"
 
 _is_connected = None
 

Detailed Description

Widget that represent global status of RTC Supervisor.

It inherits from TaurusDeviceBase to hold a model property that represents the top level OLDB entry in which the device is located at.

The Widget contains:

  • nameLabel: a QLabel that shows the name of the component
  • statusLabel: a TaurusLabel that shows the OLDB value of the state.

Constructor & Destructor Documentation

◆ __init__()

gui.rtc_global_status.RtcGlobalStatus.__init__ ( self,
cfg,
parent = None,
str component_name = "RTC Supervisor Global Status" )
Parameters
[in]component_nameComponent name, a string that identifies the RTC component.
[in]cfgConfiguration.
[in]parentReference to the parent widget. Needed by Qt.

Member Function Documentation

◆ component_name()

gui.rtc_global_status.RtcGlobalStatus.component_name ( self)

Getter for component name.

◆ focusInEvent()

gui.rtc_global_status.RtcGlobalStatus.focusInEvent ( self,
QFocusEvent event )

Overrides QWidget.focusInEvent.

When focus is gained, we start connections to the component.

Parameters
[in]eventthe QFocusEvent

◆ get_global_status()

gui.rtc_global_status.RtcGlobalStatus.get_global_status ( self)

Get Global Status.

◆ oldb_uri()

gui.rtc_global_status.RtcGlobalStatus.oldb_uri ( self)

Getter for oldb_uri Qt Property.

◆ set_cfg()

gui.rtc_global_status.RtcGlobalStatus.set_cfg ( self,
cfg )

Sets configuration.

Parameters
cfgConfiguration to be set.

◆ set_oldb_uri()

gui.rtc_global_status.RtcGlobalStatus.set_oldb_uri ( self,
str uri )

Setter for oldb_uri Qt Property.

Parameters
[in]uriURI String that locates OLDB entries for the component

◆ set_rr_uri()

gui.rtc_global_status.RtcGlobalStatus.set_rr_uri ( self,
str uri )

Ancillary method.

Only available as initialization of this widget is done at the same time as rtc_component.

◆ setModel()

gui.rtc_global_status.RtcGlobalStatus.setModel ( self,
str model )

Overrides the TaurusCommonModel.setModel method to end trailing "/" when missing.

Member Data Documentation

◆ _cfg

gui.rtc_global_status.RtcGlobalStatus._cfg = cfg
protected

◆ _component_name

gui.rtc_global_status.RtcGlobalStatus._component_name = component_name
protected

◆ _is_connected

gui.rtc_global_status.RtcGlobalStatus._is_connected = None
protected

◆ _logger

gui.rtc_global_status.RtcGlobalStatus._logger = CiiLogManager.get_logger(__name__)
protected

◆ _oldb_uri

gui.rtc_global_status.RtcGlobalStatus._oldb_uri = ""
protected

◆ _rr_uri

str gui.rtc_global_status.RtcGlobalStatus._rr_uri = ""
protected

◆ _tooltip_text

str gui.rtc_global_status.RtcGlobalStatus._tooltip_text = "Global RTC status"
protected

◆ oldb_uri

gui.rtc_global_status.RtcGlobalStatus.oldb_uri
static
Initial value:
= Property(
type=str,
fget=oldb_uri,
fset=set_oldb_uri,
notify=oldb_uri_changed,
doc="URI that identifies OLDB entries for this component.",
)

◆ oldb_uri_changed

gui.rtc_global_status.RtcGlobalStatus.oldb_uri_changed = Signal(str)
static

OLDB URI signal emitted when property changes value.

◆ ui

gui.rtc_global_status.RtcGlobalStatus.ui = Ui_RtcGlobalStatus()

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