|
RTC Toolkit 6.0.0
|
Set of widgets for the RtcComponent entry on the TaurusForm widget. More...
Public Member Functions | |
| __init__ (self, parent=None, designMode=False) | |
| Initialises the class, which acts as a provider of the widgets for Label, Read, Write, Units and Extra columns of the TaurusForm. | |
| setModel (self, name, **kwargs) | |
| setModel is the main method to interacts with TaurusWidgets. | |
| setParent (self, parent) | |
| Sets the parent to the TaurusValue class and inserts itselfs into the layout. | |
| addLabelWidgetToLayout (self) | |
| Adds Label widget when parent had a QGridLayout. | |
| addReadWidgetToLayout (self) | |
| Adds Read widget when parent had a QGridLayout or a QStackedWidget. | |
| addWriteWidgetToLayout (self) | |
| Adds Write widget when parent had a QGridLayout. | |
| addUnitsWidgetToLayout (self) | |
| Adds Units widget when parent had a QGridLayout. | |
| addExtraWidgetToLayout (self) | |
| Adds Extra widget when parent had a QGridLayout. | |
Public Attributes | |
| parent_layout_type = QGridLayout | |
Protected Attributes | |
| # in design mode, no subwidgets are created | _designMode |
| _readWidget | |
Set of widgets for the RtcComponent entry on the TaurusForm widget.
This class is not a widget by itself. It provides the specific widgets for each column of the grid layout in the TaurusForm:
+-------+------+-------+-------+-------+ | Label | Read | Write | Units | Extra | +-------+------+-------+-------+-------+
| rtccomponentwidget.RtcComponentWidget.__init__ | ( | self, | |
| parent = None, | |||
| designMode = False ) |
Initialises the class, which acts as a provider of the widgets for Label, Read, Write, Units and Extra columns of the TaurusForm.
| [in] | parent | QWidget that will be the parent of this widget |
| [in] | designMode | Used by the Qt Designer to avoid undesirable interactions. |
| rtccomponentwidget.RtcComponentWidget.addExtraWidgetToLayout | ( | self | ) |
Adds Extra widget when parent had a QGridLayout.
| rtccomponentwidget.RtcComponentWidget.addLabelWidgetToLayout | ( | self | ) |
Adds Label widget when parent had a QGridLayout.
| rtccomponentwidget.RtcComponentWidget.addReadWidgetToLayout | ( | self | ) |
Adds Read widget when parent had a QGridLayout or a QStackedWidget.
| rtccomponentwidget.RtcComponentWidget.addUnitsWidgetToLayout | ( | self | ) |
Adds Units widget when parent had a QGridLayout.
| rtccomponentwidget.RtcComponentWidget.addWriteWidgetToLayout | ( | self | ) |
Adds Write widget when parent had a QGridLayout.
| rtccomponentwidget.RtcComponentWidget.setModel | ( | self, | |
| name, | |||
| ** | kwargs ) |
setModel is the main method to interacts with TaurusWidgets.
It carries the URI of the Component which we want to connect to. We call the default implementation.
| [in] | name | URI of the component. |
| [in] | kwargs | extra options for compatibility. |
| rtccomponentwidget.RtcComponentWidget.setParent | ( | self, | |
| parent ) |
Sets the parent to the TaurusValue class and inserts itselfs into the layout.
| [in] | parent | QWidget reference for the parent widget |
|
protected |
|
protected |
| rtccomponentwidget.RtcComponentWidget.parent_layout_type = QGridLayout |