RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
modecmdswidget.ModeCmdsWidget Class Reference

Provides controller for the widget declared in modecmdswidget_ui. More...

Inheritance diagram for modecmdswidget.ModeCmdsWidget:

Public Member Functions

 __init__ (self, parent=None, designMode=False)
 Initialises the Widget.
 
 on_refreshPushButton_clicked (self)
 This method invokes the GetAvailableModes, GetActiveModes and GetDeferredModes commands and fills the TableWidget.
 
 on_setModesPushButton_clicked (self)
 Collect data from TableWidget and prepares JSON payload for SetModes Command.
 
 on_setDeferredModesPushButton_clicked (self)
 Collect data from TableWidget and prepares JSON payload for SetDeferredModes Command.
 

Public Attributes

 ui = Ui_ModeCmdsWidget()
 

Detailed Description

Provides controller for the widget declared in modecmdswidget_ui.

It is a TaurusWidget implementation, that uses a TaurusDevice model. The initialise method sets all Taurus children models to the same one as this.

IMPORTANT   This widget does not use TaurusCommandButton intentionally.

Multiples invocations to different methods and the parsing of their replies are required. This is the reason it does not use RtctkBaseWidget.

Constructor & Destructor Documentation

◆ __init__()

modecmdswidget.ModeCmdsWidget.__init__ ( self,
parent = None,
designMode = False )

Initialises the Widget.

This widget takes its UI definition from a Qt UI file.

Parameters
[in]parentQWidget that will be the parent of this widget
[in]designModeUsed by the Qt Designer to avoid undesirable interactions.

Member Function Documentation

◆ on_refreshPushButton_clicked()

modecmdswidget.ModeCmdsWidget.on_refreshPushButton_clicked ( self)

This method invokes the GetAvailableModes, GetActiveModes and GetDeferredModes commands and fills the TableWidget.

This method is automatically connected to the matching button during the self.ui.setupUi(self) in the init method. This is called autoconnections.

◆ on_setDeferredModesPushButton_clicked()

modecmdswidget.ModeCmdsWidget.on_setDeferredModesPushButton_clicked ( self)

Collect data from TableWidget and prepares JSON payload for SetDeferredModes Command.

This method is automatically connected to the matching button during the self.ui.setupUi(self) in the init method. This is called autoconnections.

◆ on_setModesPushButton_clicked()

modecmdswidget.ModeCmdsWidget.on_setModesPushButton_clicked ( self)

Collect data from TableWidget and prepares JSON payload for SetModes Command.

This method is automatically connected to the matching button during the self.ui.setupUi(self) in the init method. This is called autoconnections.

Member Data Documentation

◆ ui

modecmdswidget.ModeCmdsWidget.ui = Ui_ModeCmdsWidget()

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