RTC Toolkit
2.0.0
|
RtcOverview Widget presents a list of RTC Components, based on the current deployment. More...
Public Member Functions | |
def | __init__ (self, OldbClient oldb, logs_provider=None, parent=None, *args, **kwargs) |
Initializator for the RtcOverview widget. More... | |
def | set_components (self, list components) |
def | components (self) |
Getter for the list of components. More... | |
RtcComponent | get_component_widget (self, str component_name) |
Returns the RtcComponent widget that corresponds to the component_name. More... | |
def | set_logs_provider (self, RtcLogs logs_provider) |
From now on, the RtcOverview will use logs_provider to return log URIs. More... | |
def | on_componentsListWidget_itemSelectionChanged (self) |
Handles the selection changes in the componentListWidget. More... | |
def | on_initPushButton_clicked (self) |
When the Init Button is clicked, this Slot is called. More... | |
def | on_stopPushButton_clicked (self) |
When the Stop Button is clicked, this Slot is called. More... | |
def | on_enablePushButton_clicked (self) |
When the Enable Button is clicked, this Slot is called. More... | |
def | on_disablePushButton_clicked (self) |
When the Disable Button is clicked, this Slot is called. More... | |
def | on_resetPushButton_clicked (self) |
When the Reset Button is clicked, this Slot is called. More... | |
def | on_exitPushButton_clicked (self) |
When the Exit Button is clicked, this Slot is called. More... | |
def | on_statePushButton_clicked (self) |
When the State Button is clicked, this Slot is called. More... | |
def | on_updatePushButton_clicked (self) |
When the Update Button is clicked, this Slot is called. More... | |
def | handle_oldbclient_connected (self) |
Handles the async response of the OldbClient.connected Signal. More... | |
Public Attributes | |
ui | |
Static Public Attributes | |
logs_requested = Signal(str) | |
Signal that indicates that the component is requesting logs to be shown. More... | |
start_requested = Signal(str) | |
Signal that indicates that the component is requesting its process to be started. More... | |
stop_requested = Signal(str) | |
Signal that indicates that the component is requesting its process to be stopped. More... | |
rr_connection_changed = Signal(bool) | |
Current Components's Reply Request connection state has changed. More... | |
components_changed = Signal(list) | |
Signal that indicates component list have changed. More... | |
components | |
Qt Property that holds the list of components. More... | |
RtcOverview Widget presents a list of RTC Components, based on the current deployment.
It is a specialization of a QListWidget, and uses the set_components() method to populate the list of RTC components.
def gui.rtc_overview.RtcOverview.__init__ | ( | self, | |
OldbClient | oldb, | ||
logs_provider = None , |
|||
parent = None , |
|||
* | args, | ||
** | kwargs | ||
) |
Initializator for the RtcOverview widget.
@param[in] logs_provider An RtcLogs implementation that provides log URIs @param[in] parent Parent widget reference, important when creating UIs
def gui.rtc_overview.RtcOverview.components | ( | self | ) |
Getter for the list of components.
RtcComponent gui.rtc_overview.RtcOverview.get_component_widget | ( | self, | |
str | component_name | ||
) |
Returns the RtcComponent widget that corresponds to the component_name.
@param[in] component_name String that identifies the component @return RtcComponent Widget of the component_name requested
def gui.rtc_overview.RtcOverview.handle_oldbclient_connected | ( | self | ) |
Handles the async response of the OldbClient.connected Signal.
def gui.rtc_overview.RtcOverview.on_componentsListWidget_itemSelectionChanged | ( | self | ) |
Handles the selection changes in the componentListWidget.
When the selection changes, the buttons for the RR methods need to be updated to indicate if they are available or not. Also, since connection to the RTC Component MAL RR interface is async, we need to connect the current component state to the same groupbox, and disconnect all other components from it.
def gui.rtc_overview.RtcOverview.on_disablePushButton_clicked | ( | self | ) |
When the Disable Button is clicked, this Slot is called.
It determines which is the RtcComponent on the OVerview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.on_enablePushButton_clicked | ( | self | ) |
When the Enable Button is clicked, this Slot is called.
It determines which is the RtcComponent on the OVerview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.on_exitPushButton_clicked | ( | self | ) |
When the Exit Button is clicked, this Slot is called.
It determines which is the RtcComponent on the OVerview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.on_initPushButton_clicked | ( | self | ) |
When the Init Button is clicked, this Slot is called.
It determines which is the RtcComponent on the Overview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.on_resetPushButton_clicked | ( | self | ) |
When the Reset Button is clicked, this Slot is called.
It determines which is the RtcComponent on the OVerview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.on_statePushButton_clicked | ( | self | ) |
When the State Button is clicked, this Slot is called.
It determines which is the RtcComponent on the Overview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.on_stopPushButton_clicked | ( | self | ) |
When the Stop Button is clicked, this Slot is called.
It determines which is the RtcComponent on the Overview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.on_updatePushButton_clicked | ( | self | ) |
When the Update Button is clicked, this Slot is called.
It determines which is the RtcComponent on the OVerview list that is currently selected, and requests the method to be executed.
def gui.rtc_overview.RtcOverview.set_components | ( | self, | |
list | components | ||
) |
def gui.rtc_overview.RtcOverview.set_logs_provider | ( | self, | |
RtcLogs | logs_provider | ||
) |
From now on, the RtcOverview will use logs_provider to return log URIs.
It updates all log_uri for the RtcComponent widgets in the RtcOverview.
[in] | logs_provider | An RtcLogs implementation that provides log URIs |
|
static |
Qt Property that holds the list of components.
|
static |
Signal that indicates component list have changed.
|
static |
Signal that indicates that the component is requesting logs to be shown.
|
static |
Current Components's Reply Request connection state has changed.
|
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.
gui.rtc_overview.RtcOverview.ui |