RTC Toolkit
2.0.0
|
Widget that represent an RTC component. More...
Public Member Functions | |
def | __init__ (self, str component_name, parent=None) |
def | component_name (self) |
Getter for component name. More... | |
def | log_uri (self) |
Getter for log_uri Qt Property. More... | |
def | set_log_uri (self, str uri) |
Setter for log_uri Qt Property. More... | |
def | rr_uri (self) |
Getter for rr_uri Qt Property. More... | |
def | set_rr_uri (self, str uri) |
Setter for rr_uri Qt Property. More... | |
def | oldb_uri (self) |
Getter for oldb_uri Qt Property. More... | |
def | set_oldb_uri (self, str uri) |
Setter for oldb_uri Qt Property. More... | |
def | on_startButton_clicked (self, checked) |
Slot that reacts to the the startButton being clicked. More... | |
def | on_stopButton_clicked (self, checked) |
Slot that reacts to the the stopButton being clicked. More... | |
def | on_logsButton_clicked (self, checked) |
Slot that reacts to the the logsButton being clicked. More... | |
def | focusInEvent (self, QFocusEvent event) |
Overrides QWidget.focusInEvent. More... | |
def | is_rr_connected (self) |
Indicates if BOTH interfaces are connected. More... | |
def | init_pressed (self) |
Check connection and forwards an init command to the Facade. More... | |
def | stop_pressed (self) |
Check connection and forwards an stop command to the Facade. More... | |
def | enable_pressed (self) |
Check connection and forwards an enable command to the Facade. More... | |
def | disable_pressed (self) |
Check connection and forwards an disable command to the Facade. More... | |
def | reset_pressed (self) |
Check connection and forwards an reset command to the Facade. More... | |
def | exit_pressed (self) |
Check connection and forwards an exit command to the Facade. More... | |
def | state_pressed (self) |
Check connection and forwards an exit command to the Facade. More... | |
def | update_pressed (self) |
Check connection and forwards an update command to the Facade. More... | |
def | on_connection_changed (self, bool new_value) |
Captures connection event, and emits only when both interfaces are connected. More... | |
def | handle_state_result (self, str result) |
Handles the result from the getState() method in the StdCmds Interface. More... | |
def | start_poll_state (self) |
Starts polling from the StdCmds Interface. More... | |
def | stop_poll_state (self) |
Stops polling from the StdCmds Interface. More... | |
def | start_subscription_state (self, int retry=0) |
Subscribe to datapoints changes from OLD. More... | |
def | stop_subscription_state (self) |
Unsubscribe from datapoints changes from OLD. More... | |
def | try_subscribe_or_poll_state (self) |
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... | |
log_uri_changed = Signal(str) | |
Log URI signal emitted when property changes value. More... | |
log_uri | |
rr_uri_changed = Signal(str) | |
Request Reply URI signal emitted when property changes value. More... | |
rr_uri | |
oldb_uri_changed = Signal(str) | |
OLDB URI signal emitted when property changes value. More... | |
oldb_uri | |
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:
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.
def gui.rtc_component.RtcComponent.__init__ | ( | self, | |
str | component_name, | ||
parent = None |
|||
) |
def gui.rtc_component.RtcComponent.component_name | ( | self | ) |
Getter for component name.
def gui.rtc_component.RtcComponent.disable_pressed | ( | self | ) |
Check connection and forwards an disable command to the Facade.
def gui.rtc_component.RtcComponent.enable_pressed | ( | self | ) |
Check connection and forwards an enable command to the Facade.
def gui.rtc_component.RtcComponent.exit_pressed | ( | self | ) |
Check connection and forwards an exit command to the Facade.
def 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 |
def gui.rtc_component.RtcComponent.handle_state_result | ( | self, | |
str | result | ||
) |
Handles the result from the getState() method in the StdCmds Interface.
def gui.rtc_component.RtcComponent.init_pressed | ( | self | ) |
Check connection and forwards an init command to the Facade.
def gui.rtc_component.RtcComponent.is_rr_connected | ( | self | ) |
Indicates if BOTH interfaces are connected.
def gui.rtc_component.RtcComponent.log_uri | ( | self | ) |
Getter for log_uri Qt Property.
def gui.rtc_component.RtcComponent.oldb_uri | ( | self | ) |
Getter for oldb_uri Qt Property.
def gui.rtc_component.RtcComponent.on_connection_changed | ( | self, | |
bool | new_value | ||
) |
Captures connection event, and emits only when both interfaces are connected.
[in] | new_value | Boolean that indicates the new state of connection |
def gui.rtc_component.RtcComponent.on_logsButton_clicked | ( | self, | |
checked | |||
) |
Slot that reacts to the the logsButton being clicked.
@param[in] checked state of the button being pressed
def gui.rtc_component.RtcComponent.on_startButton_clicked | ( | self, | |
checked | |||
) |
Slot that reacts to the the startButton being clicked.
@param[in] checked state of the button being pressed
def gui.rtc_component.RtcComponent.on_stopButton_clicked | ( | self, | |
checked | |||
) |
Slot that reacts to the the stopButton being clicked.
@param[in] checked state of the button being pressed
def gui.rtc_component.RtcComponent.reset_pressed | ( | self | ) |
Check connection and forwards an reset command to the Facade.
def gui.rtc_component.RtcComponent.rr_uri | ( | self | ) |
Getter for rr_uri Qt Property.
def gui.rtc_component.RtcComponent.set_log_uri | ( | self, | |
str | uri | ||
) |
Setter for log_uri Qt Property.
It also enables or disables the logsButton when appropiate
[in] | uri | URI String that locates logs for the component |
def gui.rtc_component.RtcComponent.set_oldb_uri | ( | self, | |
str | uri | ||
) |
Setter for oldb_uri Qt Property.
@param[in] uri URI String that locates OLDB entries for the component
def gui.rtc_component.RtcComponent.set_rr_uri | ( | self, | |
str | uri | ||
) |
Setter for rr_uri Qt Property.
@param[in] uri URI String that identifies the RR StdIf
def gui.rtc_component.RtcComponent.start_poll_state | ( | self | ) |
Starts polling from the StdCmds Interface.
def gui.rtc_component.RtcComponent.start_subscription_state | ( | self, | |
int | retry = 0 |
||
) |
Subscribe to datapoints changes from OLD.
def gui.rtc_component.RtcComponent.state_pressed | ( | self | ) |
Check connection and forwards an exit command to the Facade.
def gui.rtc_component.RtcComponent.stop_poll_state | ( | self | ) |
Stops polling from the StdCmds Interface.
def gui.rtc_component.RtcComponent.stop_pressed | ( | self | ) |
Check connection and forwards an stop command to the Facade.
def gui.rtc_component.RtcComponent.stop_subscription_state | ( | self | ) |
Unsubscribe from datapoints changes from OLD.
def gui.rtc_component.RtcComponent.try_subscribe_or_poll_state | ( | self | ) |
def gui.rtc_component.RtcComponent.update_pressed | ( | self | ) |
Check connection and forwards an update command to the Facade.
|
static |
|
static |
Log URI signal emitted when property changes value.
|
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.
gui.rtc_component.RtcComponent.ui |