cut 3.3.0
Loading...
Searching...
No Matches
tauruscommonmodel.TaurusCommonModel Class Reference

TaurusCommonModel class, it provides a quick way to set every children widget that is also a TaurusBaseWidget to a common OLDB URI prefix. More...

Public Member Functions

 __init__ (self, Qt.QWidget parent=None)
 Initializes the TaurusCommonModel object.
 
str getModel (self)
 Gets the current model.
 
 setModel (self, str model)
 Sets/unsets the model name TaurusCommonModel.
 
 resetModel (self)
 Sets the model property back to its default value: an empty string.
 

Static Public Attributes

 modelChanged = baseSignal("modelChanged", "QString")
 Signal that indicates the model has changed.
 
 model = Qt.Property("QString", getModel, setModel, resetModel, notify=modelChanged)
 This property holds the unique URI string representing the model name with which this widget will get its data from.
 

Detailed Description

TaurusCommonModel class, it provides a quick way to set every children widget that is also a TaurusBaseWidget to a common OLDB URI prefix.

This class inherits from TaurusBaseContainer as its provides the taurusChildren() method.

Warning
Every taurus children of this widget needs to have an objectName property set. This property is used to identify taurus children and saved their original models.
See also
TaurusBaseContainer

Constructor & Destructor Documentation

◆ __init__()

tauruscommonmodel.TaurusCommonModel.__init__ ( self,
Qt.QWidget parent = None )

Initializes the TaurusCommonModel object.

Parameters
[in]parentA reference to a parent QWidget

Member Function Documentation

◆ getModel()

str tauruscommonmodel.TaurusCommonModel.getModel ( self)

Gets the current model.

Returns
string with the model URI

◆ resetModel()

tauruscommonmodel.TaurusCommonModel.resetModel ( self)

Sets the model property back to its default value: an empty string.

Emits the modelChanged signal.

◆ setModel()

tauruscommonmodel.TaurusCommonModel.setModel ( self,
str model )

Sets/unsets the model name TaurusCommonModel.

Emits the modelChanged signal.

Parameters
modelstring with the new model name.
Note
Since at the moment cii.oldb plugin does not support creating devices, we simple do not call its base class method.
Todo
When OLDB devices are implemented, revisit this implementation

Member Data Documentation

◆ model

tauruscommonmodel.TaurusCommonModel.model = Qt.Property("QString", getModel, setModel, resetModel, notify=modelChanged)
static

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

Access functions:


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