

Public Member Functions | |
| def | __init__ (self, c, parent, name, f) |
| def | contentsMouseDoubleClickEvent (self, e) |
| def | contentsMousePressEvent (self, e) |
| def | selectItem (self, item) |
| def | selectObj (self, obj) |
| def | deselectObj (self, obj) |
| def | popup (self) |
| def | updateCanvas (self) |
| def | addNode (self) |
| def | zoomIn (self) |
| def | zoomOut (self) |
| def | clear (self) |
| def | connecting (self, obj) |
| def | contentsMouseMoveEvent (self, e) |
Public Attributes | |
| selectPen | |
| selectBrush | |
| selectStyle | |
| selected | |
| tooltip | |
Private Attributes | |
| __moving | |
| __connecting | |
| __moving_start | |
Definition at line 41 of file GraphViewer.py.
| def gui.GraphViewer.GraphViewer.__init__ | ( | self, | |
| c, | |||
| parent, | |||
| name, | |||
| f | |||
| ) |
Definition at line 42 of file GraphViewer.py.
| def gui.GraphViewer.GraphViewer.addNode | ( | self | ) |
Definition at line 164 of file GraphViewer.py.
Referenced by gui.GraphViewer.GraphViewer.popup().
| def gui.GraphViewer.GraphViewer.clear | ( | self | ) |
Definition at line 177 of file GraphViewer.py.
References gui.CItems.LinkItem.canvas, and gui.graph.Graph.canvas.
| def gui.GraphViewer.GraphViewer.connecting | ( | self, | |
| obj | |||
| ) |
Method called by an item to notify canvasView a connection has begun
Definition at line 185 of file GraphViewer.py.
References gui.GraphViewer.GraphViewer.__connecting.
| def gui.GraphViewer.GraphViewer.contentsMouseDoubleClickEvent | ( | self, | |
| e | |||
| ) |
Definition at line 54 of file GraphViewer.py.
References gui.CItems.LinkItem.canvas, and gui.graph.Graph.canvas.
| def gui.GraphViewer.GraphViewer.contentsMouseMoveEvent | ( | self, | |
| e | |||
| ) |
Definition at line 190 of file GraphViewer.py.
References gui.GraphViewer.GraphViewer.__moving, gui.GraphViewer.GraphViewer.__moving_start, gui.CItems.LinkItem.canvas, and gui.graph.Graph.canvas.
| def gui.GraphViewer.GraphViewer.contentsMousePressEvent | ( | self, | |
| e | |||
| ) |
Definition at line 68 of file GraphViewer.py.
References gui.GraphViewer.GraphViewer.__connecting, gui.GraphViewer.GraphViewer.__moving, gui.GraphViewer.GraphViewer.__moving_start, gui.CItems.LinkItem.canvas, gui.graph.Graph.canvas, gui.GraphViewer.GraphViewer.popup(), gui.CItems.LinkItem.popup(), gui.CItems.ControlItem.popup(), gui.CItems.PortItem.popup(), gui.CItems.Cell.popup(), gui.GraphViewer.LinkItem.popup(), gui.GraphViewer.PortItem.popup(), and gui.GraphViewer.Cell.popup().
| def gui.GraphViewer.GraphViewer.deselectObj | ( | self, | |
| obj | |||
| ) |
Definition at line 141 of file GraphViewer.py.
Referenced by gui.GraphViewer.GraphViewer.selectItem().
| def gui.GraphViewer.GraphViewer.popup | ( | self | ) |
Definition at line 146 of file GraphViewer.py.
References gui.GraphViewer.GraphViewer.addNode(), gui.cataitems.ItemService.addNode(), gui.cataitems.ItemNode.addNode(), gui.cataitems.ItemComposedNode.addNode(), gui.Tree.Node.addNode(), gui.Appli.Appli.addNode(), gui.Items.ItemComposedNode.addNode(), gui.Items.ItemForLoop.addNode(), gui.Items.ItemSwitch.addNode(), YACS::HMI::SubjectComposedNode.addNode(), YACS::HMI::SubjectBloc.addNode(), YACS::HMI::SubjectForLoop.addNode(), YACS::HMI::SubjectWhileLoop.addNode(), YACS::HMI::SubjectDynParaLoop.addNode(), and YACS::HMI::SubjectSwitch.addNode().
Referenced by gui.GraphViewer.GraphViewer.contentsMousePressEvent().
| def gui.GraphViewer.GraphViewer.selectItem | ( | self, | |
| item | |||
| ) |
Definition at line 117 of file GraphViewer.py.
References gui.CItems.LinkItem.canvas, gui.graph.Graph.canvas, gui.GraphViewer.GraphViewer.deselectObj(), gui.Appli.Browser.selected, gui.browser.Browser.selected, gui.cataitems.Obj.selected(), gui.cataitems.ItemService.selected(), gui.cataitems.ItemType.selected(), gui.cataitems.ItemCompo.selected(), gui.cataitems.ItemNode.selected(), gui.cataitems.ItemComposedNode.selected(), gui.CItems.TextItem.selected(), gui.CItems.PointItem.selected(), gui.CItems.LineItem.selected(), gui.CItems.LinkItem.selected(), gui.CItems.ControlItem.selected(), gui.CItems.PortItem.selected(), gui.CItems.Cell.selected(), gui.GraphViewer.GraphViewer.selected, gui.GraphViewer.Cell.selected(), gui.Item.Item.selected(), gui.Items.ItemComposedNode.selected(), gui.Items.ItemPort.selected(), gui.Items.ItemNode.selected(), gui.sessions.Sessions.selected(), gui.sessions.Session.selected(), and gui.GraphViewer.GraphViewer.selectObj().
Referenced by gui.Tree.Tree.additem().
| def gui.GraphViewer.GraphViewer.selectObj | ( | self, | |
| obj | |||
| ) |
Definition at line 133 of file GraphViewer.py.
References gui.GraphViewer.GraphViewer.selectPen.
Referenced by gui.GraphViewer.GraphViewer.selectItem().
| def gui.GraphViewer.GraphViewer.updateCanvas | ( | self | ) |
Definition at line 157 of file GraphViewer.py.
| def gui.GraphViewer.GraphViewer.zoomIn | ( | self | ) |
Definition at line 167 of file GraphViewer.py.
| def gui.GraphViewer.GraphViewer.zoomOut | ( | self | ) |
Definition at line 172 of file GraphViewer.py.
|
private |
Definition at line 45 of file GraphViewer.py.
Referenced by gui.GraphViewer.GraphViewer.connecting(), and gui.GraphViewer.GraphViewer.contentsMousePressEvent().
|
private |
Definition at line 44 of file GraphViewer.py.
Referenced by gui.GraphViewer.GraphViewer.contentsMouseMoveEvent(), and gui.GraphViewer.GraphViewer.contentsMousePressEvent().
|
private |
Definition at line 46 of file GraphViewer.py.
Referenced by gui.GraphViewer.GraphViewer.contentsMouseMoveEvent(), and gui.GraphViewer.GraphViewer.contentsMousePressEvent().
| gui.GraphViewer.GraphViewer.selectBrush |
Definition at line 49 of file GraphViewer.py.
| gui.GraphViewer.GraphViewer.selected |
Definition at line 51 of file GraphViewer.py.
Referenced by gui.browser_catalog.Browser.handleBut1(), and gui.GraphViewer.GraphViewer.selectItem().
| gui.GraphViewer.GraphViewer.selectPen |
Definition at line 48 of file GraphViewer.py.
Referenced by gui.GraphViewer.GraphViewer.selectObj().
| gui.GraphViewer.GraphViewer.selectStyle |
Definition at line 50 of file GraphViewer.py.
| gui.GraphViewer.GraphViewer.tooltip |
Definition at line 52 of file GraphViewer.py.