|
RTC Toolkit 6.0.0
|
Widget that represent an RTC component. More...
Public Member Functions | |
| __init__ (self, str component_name, cfg, parent=None) | |
| component_name (self) | |
| Getter for component name. | |
| rr_uri (self) | |
| Getter for rr_uri Qt Property. | |
| set_rr_uri (self, str uri) | |
| Setter for rr_uri Qt Property. | |
| disconnect_facades (self) | |
| Disconnect for all facades. | |
| oldb_uri (self) | |
| Getter for oldb_uri Qt Property. | |
| set_oldb_uri (self, str uri) | |
| Setter for oldb_uri Qt Property. | |
| on_startButton_clicked (self, checked) | |
| Slot that reacts to the the startButton being clicked. | |
| on_stopButton_clicked (self, checked) | |
| Slot that reacts to the the stopButton being clicked. | |
| on_logsButton_clicked (self, checked) | |
| Slot that reacts to the the logsButton being clicked. | |
| focusInEvent (self, QFocusEvent event) | |
| Overrides QWidget.focusInEvent. | |
| try_mal_connection (self) | |
| Tries to connect to StdCmds and Update Mal servers only is connection is not already established. | |
| is_rr_connected (self) | |
| Indicates if BOTH interfaces are connected. | |
| handle_introspection_connection_changed (self, bool new_value) | |
| If introspection facade is connected, it asks for interfaces used by current rtc component. | |
| handle_component_start_finished (self, str comp_name) | |
| Handles the component start notification from the deployment control. | |
| handle_component_stop_finished (self, str comp_name) | |
| Handles the component stop notification from the deployment control. | |
| update_tooltip (self) | |
| Updates the Component Name labels tooltip with extra information. | |
| on_actionCopy_RR_URI_triggered (self) | |
| Reacts to the users requests of copying to clipboard the RR URI. | |
| on_actionCopy_OLDB_URI_triggered (self) | |
| Reacts to the users requests of copying to clipboard the OLDB URI. | |
Public Attributes | |
| ui = Ui_RtcComponent() | |
| handle_introspection_connection_changed = IfFacade(f"{self._rr_uri}Introspection") | |
| try_mal_connection | |
Static Public Attributes | |
| logs_requested = Signal(str) | |
| Signal that indicates that the component is requesting logs to be shown. | |
| start_requested = Signal((str,), (str, object)) | |
| Signal that indicates that the component is requesting its process to be started. | |
| stop_requested = Signal((str,), (str, object)) | |
| Signal that indicates that the component is requesting its process to be stopped. | |
| rr_connection_changed = Signal(bool) | |
| Current Components's Reply Request connection state has changed. | |
| supervisor_detected = Signal((str,), (str, str)) | |
| Signal that indicates RTC Supervisor uri address for Global Status display. | |
| rr_uri_changed = Signal(str) | |
| Request Reply URI signal emitted when property changes value. | |
| rr_uri | |
| oldb_uri_changed = Signal(str) | |
| OLDB URI signal emitted when property changes value. | |
| oldb_uri | |
Protected Member Functions | |
| _init_gui (self) | |
| In some cases, widgets are not ready for modification until init is done. | |
Protected Attributes | |
| _component_name = component_name | |
| str | _rr_uri = "" |
| str | _oldb_uri = "" |
| _cfg = cfg | |
| _logger = CiiLogManager.get_logger(__name__) | |
| _if_facade = None | |
| str | _tooltip_text = "Component name" |
| _is_connected = None | |
Widget that represent an RTC component.
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:
logsButton: a QPushButton that shows the logs in a LogsWidget
TODO A method to create and show a LogsWidget. TODO A init argument to use the method above when logsButton is pressed, instead of emitting the signal.
| gui.rtc_component.RtcComponent.__init__ | ( | self, | |
| str | component_name, | ||
| cfg, | |||
| parent = None ) |
| [in] | component_name | Component name, a string that identifies the RTC component. |
| [in] | cfg | Configuration. |
| [in] | parent | Reference to the parent widget. Needed by Qt. |
|
protected |
In some cases, widgets are not ready for modification until init is done.
This can be workaround by invoking another method at the end of init.
| gui.rtc_component.RtcComponent.component_name | ( | self | ) |
Getter for component name.
| gui.rtc_component.RtcComponent.disconnect_facades | ( | self | ) |
Disconnect for all facades.
| gui.rtc_component.RtcComponent.focusInEvent | ( | self, | |
| QFocusEvent | event ) |
Overrides QWidget.focusInEvent.
When focus is gained, we start connections to the component.
| [in] | event | the QFocusEvent |
| gui.rtc_component.RtcComponent.handle_component_start_finished | ( | self, | |
| str | comp_name ) |
Handles the component start notification from the deployment control.
| [in] | comp_name | String that carries the started component. |
| gui.rtc_component.RtcComponent.handle_component_stop_finished | ( | self, | |
| str | comp_name ) |
Handles the component stop notification from the deployment control.
| [in] | comp_name | String that carries the stopped component. |
| gui.rtc_component.RtcComponent.handle_introspection_connection_changed | ( | self, | |
| bool | new_value ) |
If introspection facade is connected, it asks for interfaces used by current rtc component.
Based on this, it's deducted whether the component is RTC Supervisor or not (RTC Supervisor component supports 'WriteBackCmds' and 'ModeCmds' interfaces).
If the component is indentified as Supervisor, a signal 'supervisor_detected' is emmited with OLDB URI of the component and then it's used by RtcGlobalStatus widget in RTC Overview class to display global status
| gui.rtc_component.RtcComponent.is_rr_connected | ( | self | ) |
Indicates if BOTH interfaces are connected.
| gui.rtc_component.RtcComponent.oldb_uri | ( | self | ) |
Getter for oldb_uri Qt Property.
| gui.rtc_component.RtcComponent.on_actionCopy_OLDB_URI_triggered | ( | self | ) |
Reacts to the users requests of copying to clipboard the OLDB URI.
| gui.rtc_component.RtcComponent.on_actionCopy_RR_URI_triggered | ( | self | ) |
Reacts to the users requests of copying to clipboard the RR URI.
| gui.rtc_component.RtcComponent.on_logsButton_clicked | ( | self, | |
| checked ) |
Slot that reacts to the the logsButton being clicked.
| [in] | checked | state of the button being pressed |
| gui.rtc_component.RtcComponent.on_startButton_clicked | ( | self, | |
| checked ) |
Slot that reacts to the the startButton being clicked.
| [in] | checked | state of the button being pressed |
| gui.rtc_component.RtcComponent.on_stopButton_clicked | ( | self, | |
| checked ) |
Slot that reacts to the the stopButton being clicked.
| [in] | checked | state of the button being pressed |
| gui.rtc_component.RtcComponent.rr_uri | ( | self | ) |
Getter for rr_uri Qt Property.
| gui.rtc_component.RtcComponent.set_oldb_uri | ( | self, | |
| str | uri ) |
Setter for oldb_uri Qt Property.
| [in] | uri | URI String that locates OLDB entries for the component |
| gui.rtc_component.RtcComponent.set_rr_uri | ( | self, | |
| str | uri ) |
Setter for rr_uri Qt Property.
| [in] | uri | URI String that identifies the RR StdIf |
| gui.rtc_component.RtcComponent.try_mal_connection | ( | self | ) |
Tries to connect to StdCmds and Update Mal servers only is connection is not already established.
| gui.rtc_component.RtcComponent.update_tooltip | ( | self | ) |
Updates the Component Name labels tooltip with extra information.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| gui.rtc_component.RtcComponent.handle_introspection_connection_changed = IfFacade(f"{self._rr_uri}Introspection") |
|
static |
Signal that indicates that the component is requesting logs to be shown.
|
static |
|
static |
OLDB URI signal emitted when property changes value.
|
static |
Current Components's Reply Request connection state has changed.
|
static |
|
static |
Request Reply URI signal emitted when property changes value.
|
static |
Signal that indicates that the component is requesting its process to be started.
|
static |
Signal that indicates that the component is requesting its process to be stopped.
|
static |
Signal that indicates RTC Supervisor uri address for Global Status display.
| gui.rtc_component.RtcComponent.try_mal_connection |
| gui.rtc_component.RtcComponent.ui = Ui_RtcComponent() |