![]() |
![]() |
Public Member Functions | |
def | deleteSelectedConnections (self) |
def | getWidgetByName (self, name) |
def | hideMenuWidgets (self) |
def | portConnection (self, port1, port2=None) |
def | propagateEventUnderConnectionWidget (self, connection, event) |
def | updateConnections (self) |
![]() | |
def | deselectAllWidgets (self, exception=None) |
def | enableMultiSelect (self, multiSelect=True) |
def | initWidgetMovement (self, widget) |
def | keyPressEvent (self, event) |
def | lastMovedWidgets (self) |
def | mouseMoveEvent (self, event) |
def | mousePressEvent (self, event) |
def | mouseReleaseEvent (self, event) |
def | multiSelectEnabled (self) |
def | selectedWidgets (self) |
def | widgetAboutToDelete (self, widget) |
def | widgetDoubleClicked (self, widget) |
def | widgetDragged (self, widget) |
def | widgetSelected (self, widget, multiSelect=False) |
Interface for classes containing ConnectableWidgets Only makes sense if implementing class also inherits QWidget or class inheriting QWidget.
Definition at line 11 of file ConnectableWidgetOwner.py.
def Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.deleteSelectedConnections | ( | self | ) |
Deletes all selected connections.
Definition at line 35 of file ConnectableWidgetOwner.py.
References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().
def Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.getWidgetByName | ( | self, | |
name | |||
) |
Returns module with given name or None if there is no such one.
Definition at line 17 of file ConnectableWidgetOwner.py.
References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().
def Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.hideMenuWidgets | ( | self | ) |
Definition at line 91 of file ConnectableWidgetOwner.py.
References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().
def Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.portConnection | ( | self, | |
port1, | |||
port2 = None |
|||
) |
Returns the PortConnection if there is a connection in this ConnectableWidgetOwner that is attached to the given port. Otherwise None will be returned.
Definition at line 42 of file ConnectableWidgetOwner.py.
References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().
def Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.propagateEventUnderConnectionWidget | ( | self, | |
connection, | |||
event | |||
) |
This function propagates an event to one of it's children. If a connection widget is clicked in an area where it does not draw the connection line, the event should be forwarded to the underlying widget if there is such one. However the default behavior of Qt is to propagate the event to the connection's parent. This should be an ConnectableWidgetOwner object. This function is a workaround searching for any child widget at event.pos() which is not the initial connection. If it finds such a widget a new event with correct position in the new widget's own frame is created and sent to the widget. This function calls grabMouse() on the found child. The child should make sure releaseMouse() will be called e.g. in mouseReleaseEvent(). Currently supported events: QEvent.MouseButtonPress, QEvent.MouseButtonDblClick.
Definition at line 52 of file ConnectableWidgetOwner.py.
References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), Vispa.Views.LineDecayView.LineDecayContainer.children(), edm.contains(), and str.
def Vispa.Gui.ConnectableWidgetOwner.ConnectableWidgetOwner.updateConnections | ( | self | ) |
Updates all connection.
Definition at line 25 of file ConnectableWidgetOwner.py.
References Vispa.Share.BasicDataAccessor.BasicDataAccessor.children(), Vispa.Plugins.EdmBrowser.EventContentDataAccessor.EventContentDataAccessor.children(), data_sources.node.children(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.children(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.children(), geometry.Structure.children, Folder.children(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.children(), and Vispa.Views.LineDecayView.LineDecayContainer.children().
Referenced by Vispa.Views.BoxDecayView.BoxDecayContainer.autolayoutAlgorithm(), Vispa.Gui.WidgetContainer.WidgetContainer.autosize(), and Vispa.Gui.ZoomableScrollableWidgetOwner.ZoomableScrollableWidgetOwner.setZoom().