cut 3.3.0
Loading...
Searching...
No Matches
taurus.taurusdmslabel.TaurusDmsLabel Class Reference

Taurus widget for QeDmsLabel that implementes databinding. More...

Inheritance diagram for taurus.taurusdmslabel.TaurusDmsLabel:
QeDmsLabel

Public Member Functions

 __init__ (self, parent=None, designMode=False)
 Initializes the object with defaults values, and obtains the appropiate controller.
 
 controller (self)
 Returns the controller object for this widget.
 
 isReadOnly (self)
 This widget is only capable of displaying data, but not writing.
 
 setModel (self, str m)
 Setter for the model property.
 
 getModelIndexValue (self)
 Gets the value of the modelIndex property.
 
 getModelIndex (self)
 Getter for the modelIndex property.
 
 setModelIndex (self, modelIndex)
 Getter for the modelIndex property.
 
 resetModelIndex (self)
 Getter for the bgRole property.
 
 getBgRole (self)
 Getter for the bgRole property.
 
 setBgRole (self, bgRole)
 Setter for the bgRole property.
 
 resetBgRole (self)
 Resets to the default value the bgRole property.
 
 getFgRole (self)
 Getter for the fgRole property.
 
 setFgRole (self, fgRole)
 Setter for the fgRole property.
 
 resetFgRole (self)
 Resets to the default value the fgRole property.
 
 getQtDesignerPluginInfo (cls)
 Provides Qt Designer with widget information.
 

Static Public Attributes

 model = Qt.Property("QString", TaurusBaseWidget.getModel, setModel, TaurusBaseWidget.resetModel)
 This property holds the unique URI string representing the model name with which this widget will get its data from.
 
 modelIndex = Qt.Property("QString", getModelIndex, setModelIndex, resetModelIndex)
 This property holds the index inside the model value that should be displayed.
 
 fgRole = Qt.Property("QString", getFgRole, setFgRole, resetFgRole, doc="foreground role")
 This property holds the foreground role.
 
 bgRole = Qt.Property("QString", getBgRole, setBgRole, resetBgRole, doc="background role")
 This property holds the background role.
 

Additional Inherited Members

- Signals inherited from QeDmsLabel
void radiansChanged (double newValue)
 Indicates that the radians value has been changed.
 
void precisionChanged (int newValue)
 Indicates the precision configuration has been changed.
 
- Properties inherited from QeDmsLabel
double radians
 Value to represent in radians.
 
int precision
 Precision used in the subsecond section of the label.
 

Detailed Description

Taurus widget for QeDmsLabel that implementes databinding.

It is capable of presenting radians as DD:MM:SS.sss notation.

Attention
To use this class, please import with the following statement:
from elt.cut.widgets.taurus.taurusdmslabel import TaurusDmsLabel
taurusdmslabel python package

This widget presents a number in radians, as its notation in DD:MM:SS.sss. It uses its parent class QeDmsLabel for rendering, its parent class TaurusBaseWidget for data access.

The user may only need to set the model property of an object of this class to an appropiate URI that identifies a scalar float or double.

The bgRole (background color) is automatically assign to the quality of the attribute.

See also
TaurusBaseWidget https://taurus-scada.org/devel/api/taurus.qt.qtgui.base-TaurusBaseWidget.html

Constructor & Destructor Documentation

◆ __init__()

taurus.taurusdmslabel.TaurusDmsLabel.__init__ ( self,
parent = None,
designMode = False )

Initializes the object with defaults values, and obtains the appropiate controller.

Parameters
parentParent Widget.
designModeIndicates if the widget is started within the Qt Designer

Member Function Documentation

◆ controller()

taurus.taurusdmslabel.TaurusDmsLabel.controller ( self)

Returns the controller object for this widget.

See also
TaurusBaseController

◆ getQtDesignerPluginInfo()

taurus.taurusdmslabel.TaurusDmsLabel.getQtDesignerPluginInfo ( cls)

Provides Qt Designer with widget information.

Return: dict Dictionary with values for keys: icon, module, container, tool_tip and xml.

◆ setModel()

taurus.taurusdmslabel.TaurusDmsLabel.setModel ( self,
str m )

Setter for the model property.

Parameters
mNew URI for the model property

Member Data Documentation

◆ bgRole

taurus.taurusdmslabel.TaurusDmsLabel.bgRole = Qt.Property("QString", getBgRole, setBgRole, resetBgRole, doc="background role")
static

This property holds the background role.

Valid values are None, "quality", "state"

Access functions:

◆ fgRole

taurus.taurusdmslabel.TaurusDmsLabel.fgRole = Qt.Property("QString", getFgRole, setFgRole, resetFgRole, doc="foreground role")
static

This property holds the foreground role.

Valid values are:

  • None - no value is displayed
  • "value" - the value is displayed
  • "w_value" - the write value is displayed

Access functions:

◆ model

taurus.taurusdmslabel.TaurusDmsLabel.model = Qt.Property("QString", TaurusBaseWidget.getModel, setModel, TaurusBaseWidget.resetModel)
static

This property holds the unique URI string representing the model name with which this widget will get its data from.

Access functions:

◆ modelIndex

taurus.taurusdmslabel.TaurusDmsLabel.modelIndex = Qt.Property("QString", getModelIndex, setModelIndex, resetModelIndex)
static

This property holds the index inside the model value that should be displayed.

Access functions:


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