hlcc 2.0.0-beta2+pre1
|
Taurus based widget for QeAngleLabel, that uses Taurus to get the Radian value and convert it to a DMS/HMS/Sexagecimal/Radian value. More...
Public Member Functions | |
def | __init__ (self, parent=None) |
Initializer for TaurusAngleLabel. | |
def | setHandleEventBlocker (self, bool value) |
def | controller (self) |
Returns controller object for this widget. | |
def | controllerUpdate (self) |
def | handleEvent (self, evt_src, evt_type, evt_value) |
Overwritting Taurus Methods ###. | |
def | isReadOnly (self) |
Overrides TaurusBaseComponent.isReadOnly method. | |
def | setModel (self, uri, index) |
Setter for model property, which is the URI to the datapoint to be read This should point to a Taurus Model that is an array or a single value datapoint. | |
def | getModelIndexValue (self) |
Overwritting QT Methods ###. | |
def | getModelIndex (self) |
Getter for the modelIndex property. | |
def | setModelIndex (self, modelIndex) |
Getter for the modelIndex property. | |
def | resetModelIndex (self) |
Getter for the bgRole property. | |
def | getBgRole (self) |
def | setBgRole (self, bgRole) |
Set the background role. | |
def | resetBgRole (self) |
Reset the background role to its default value. | |
def | getFgRole (self) |
def | setFgRole (self, fgRole) |
Set what is shown as the foreground (the text) of the label Valid Roles are: | |
def | resetFgRole (self) |
Reset the foreground role to its default value. | |
Static Public Attributes | |
str | DefaultBgRole = "quality" |
str | DefaultFgRole = "value" |
bool | DefaultShowText = True |
None | DefaultModelIndex = None |
Qt | model |
Defining QT Properties ###. | |
Qt | modelIndex |
This property holds the index inside the model value that should be displayed. | |
Qt | fgRole |
Qt | bgRole |
Protected Member Functions | |
def | _calculate_controller_class (self) |
Overwritting Controlling Methods ###. | |
Protected Attributes | |
_bgRole | |
_fgRole | |
_blocked | |
_modelIndex | |
_controller | |
_modelIndexStr | |
Taurus based widget for QeAngleLabel, that uses Taurus to get the Radian value and convert it to a DMS/HMS/Sexagecimal/Radian value.
TaurusAngleLabel allows to show or hide printed unit and set precision of displayed value This representation is used for Declination coordinates. It uses ptk library for conversions.
The angle values may be displayed with unit that has been selected for conversion. Both positive and negative values may be an input
TaurusAngleLabel allows to adjust precision of the displayed angle value. By default, the precision is set to 3, initial radian value is set to 0.00, and unit of conversion is DMS.
def taurusanglelabel.TaurusAngleLabel.__init__ | ( | self, | |
parent = None |
|||
) |
Initializer for TaurusAngleLabel.
parent | Widget that holds this TaurusAngleLabel instance |
|
protected |
Overwritting Controlling Methods ###.
def taurusanglelabel.TaurusAngleLabel.controller | ( | self | ) |
Returns controller object for this widget.
def taurusanglelabel.TaurusAngleLabel.controllerUpdate | ( | self | ) |
def taurusanglelabel.TaurusAngleLabel.getBgRole | ( | self | ) |
def taurusanglelabel.TaurusAngleLabel.getFgRole | ( | self | ) |
def taurusanglelabel.TaurusAngleLabel.getModelIndex | ( | self | ) |
Getter for the modelIndex property.
def taurusanglelabel.TaurusAngleLabel.getModelIndexValue | ( | self | ) |
Overwritting QT Methods ###.
def taurusanglelabel.TaurusAngleLabel.handleEvent | ( | self, | |
evt_src, | |||
evt_type, | |||
evt_value | |||
) |
Overwritting Taurus Methods ###.
Overrides TaurusBaseComponent.handleEvent method. Grab the the event value and based on the index set the radians values to be converted by the QeAngleLabel
evt_src | Name of the Attribute that generates the event |
evt_type | Type of Event according to taurus.core.taurusbasetypes.TaurusEventType |
evt_value | Value of the event |
def taurusanglelabel.TaurusAngleLabel.isReadOnly | ( | self | ) |
Overrides TaurusBaseComponent.isReadOnly method.
Indicates that the widget is a read only widget.
def taurusanglelabel.TaurusAngleLabel.resetBgRole | ( | self | ) |
Reset the background role to its default value.
def taurusanglelabel.TaurusAngleLabel.resetFgRole | ( | self | ) |
Reset the foreground role to its default value.
def taurusanglelabel.TaurusAngleLabel.resetModelIndex | ( | self | ) |
Getter for the bgRole property.
def taurusanglelabel.TaurusAngleLabel.setBgRole | ( | self, | |
bgRole | |||
) |
Set the background role.
The label background will be set according to the current palette and the role. Valid roles are:
.. warning:: the <arbitrary member name> support is still experimental and its API may change in future versions
def taurusanglelabel.TaurusAngleLabel.setFgRole | ( | self, | |
fgRole | |||
) |
Set what is shown as the foreground (the text) of the label Valid Roles are:
def taurusanglelabel.TaurusAngleLabel.setHandleEventBlocker | ( | self, | |
bool | value | ||
) |
def taurusanglelabel.TaurusAngleLabel.setModel | ( | self, | |
uri, | |||
index | |||
) |
Setter for model property, which is the URI to the datapoint to be read This should point to a Taurus Model that is an array or a single value datapoint.
uri | String that contains a URI for the Taurus Model. |
index | Element number to be read in case it is an array datapoint value. |
def taurusanglelabel.TaurusAngleLabel.setModelIndex | ( | self, | |
modelIndex | |||
) |
Getter for the modelIndex property.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
Defining QT Properties ###.
|
static |
This property holds the index inside the model value that should be displayed.