taurus.qt.qtgui.graphic
This package contains a collection of taurus Qt graphics view widgets
Classes
- class QGraphicsTextBoxing(parent=None, scene=None)[source]
Display a text inside a virtual box. Support horizontal and vertical alignment
- class TaurusGraphicsAttributeItem(name=None, parent=None)[source]
This class show value->text conversion in label widgets. Quality is shown in background
- class TaurusGraphicsItem(name=None, parent=None)[source]
Base class for all Taurus Graphics Items
- class TaurusGraphicsScene(parent=None, strt=True)[source]
This class encapsulates TaurusJDrawSynopticsView and TaurusGraphicsScene signals/slots
External events:
Slot selectGraphicItem(const QString &) displays a selection mark around the TaurusGraphicsItem that matches the argument passed.
Mouse Left-button events:
Signal graphicItemSelected(QString) is triggered, passing the selected TaurusGraphicsItem.name() as argument.
Mouse Right-button events:
TaurusGraphicsItem.setContextMenu([(ActionName,ActionMethod(device_name))] allows to configure custom context menus for graphic items using a list of tuples. Empty tuples will insert separators in the menu.
- class TaurusGraphicsStateItem(name=None, parent=None)[source]
In State Item the displayValue should not override the label This item will modify only foreground/background colors
- class TaurusJDrawSynopticsView(parent=None, designMode=False, updateMode=None, alias=None, resizable=True, panelClass=None)[source]
Taurus Class that visualizes Synoptics drawn with the JDraw tool (by ESRF). It is equivalent to ATK Synoptic Player (Java).
After initialization call setModel(‘/your/file.jdw’) to parse the synoptic file and connect to controlled objects.
Arguments to TaurusJDrawSynopticsView() creator are:
designMode; used by Qt Designer
updateMode; controls Qt Viewport refresh (disabled by default)
alias; a dictionary of name replacements to be applied on graphical objects
resizable: whether to allow resizing or not
panelClass: class object, class name or shell command to be shown when an object is clicked (None will show default panel, ‘’ or ‘noPanel’ will disable it)
TaurusJDrawSynopticsView and TaurusGraphicsScene signals/slots
External events:
Slot selectGraphicItem(const QString &) displays a selection mark around the TaurusGraphicsItem that matches the argument passed.
Mouse Left-button events:
Signal graphicItemSelected(QString) is triggered, passing the selected TaurusGraphicsItem.name() as argument.
Mouse Right-button events:
TaurusGraphicsItem.setContextMenu([(ActionName,ActionMethod(device_name))] allows to configure custom context menus for graphic items using a list of tuples. Empty tuples will insert separators in the menu.
- class TaurusTextAttributeItem(name=None, parent=None, scene=None)[source]
A QGraphicsItem that represents a text related to an attribute value
- class TaurusTextStateItem(name=None, parent=None, scene=None)[source]
A QGraphicsItem that represents a text related to a device state or attribute quality
Functions
Variables
- SynopticSelectionStyle
- TYPE_TO_GRAPHICS