Bases: PyQt4.QtGui.QGraphicsView, taurus.qt.qtgui.base.taurusbase.TaurusBaseWidget
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:
TaurusGraphicItem.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.
emit signal which is used to refresh the tree and colors of icons depend of the current status in jdrawSynoptic
Parent size is the size of the bigger panel (desn’t keep ratio) Rect size never changes (fixed by the graphics objects) Size and SizeHint move one around the other
the method works well until an object is clicked, then the whole reference changes and doesn’t work again.
Used for drag events
Records last event position to use it for DragEvents
It has been needed to reimplent size policies
Assigning a dictionary like {‘Tag’:’Value’} with tags to be replaced in object names while parsing.
This method triggers item.setModel(item._name) in all internal items.