Package schrodinger :: Package application :: Package jaguar :: Package gui :: Package tabs :: Module reaction_tab :: Class ParticipantView
[hide private]
[frames] | no frames]

Class ParticipantView

       object --+                                
                |                                
sip.simplewrapper --+                            
                    |                            
          sip.wrapper --+                        
                        |                        
     PyQt4.QtCore.QObject --+                    
                            |                    
           object --+       |                    
                    |       |                    
    sip.simplewrapper --+   |                    
                        |   |                    
 PyQt4.QtGui.QPaintDevice --+                    
                            |                    
          PyQt4.QtGui.QWidget --+                
                                |                
               PyQt4.QtGui.QFrame --+            
                                    |            
      PyQt4.QtGui.QAbstractScrollArea --+        
                                        |        
                PyQt4.QtGui.QGraphicsView --+    
                                            |    
             ui.qt.structure2d.structure_view --+
                                                |
                                               ParticipantView

This class is a subclass of a QGraphicsView that holds a single structure_item, to display a single 2D structure. This handles all interactions with the widget displayed in the panel.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QGraphicsView: CacheMode, CacheModeFlag, DragMode, OptimizationFlag, OptimizationFlags, ViewportAnchor, ViewportUpdateMode

Inherited from PyQt4.QtGui.QFrame: Shadow, Shape, StyleMask

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
structureChanged(...)
 
deleteParticipant(...)
 
error(...)
 
__init__(self, parent, scene, item)
x.__init__(...) initializes x; see help(type(x)) for signature
 
mousePressEvent(self, event)
Override default Qt function to show context menu
 
addToWorkspace(self)
This includes the entry for this participant, leaving other current entries in the workspace as well (used with tiling).
 
setAsWorkspace(self)
This replaces the current workspace with only the entry for this participant.
 
_setStructure(self, structure)
Set a Structure object for the structure_item and generate its picture.
 
_importStructureFromFile(self)
Load first structure from structure file
 
_importStructureFromPT(self)
Load currently current single selected PT entry
 
processContextAction(self, action)
This loads data from the context menu, if requested

Inherited from ui.qt.structure2d.structure_view: atom_clicked, bond_clicked, resizeEvent, wheelEvent

Inherited from PyQt4.QtGui.QGraphicsView: alignment, backgroundBrush, cacheMode, centerOn, contextMenuEvent, dragEnterEvent, dragLeaveEvent, dragMode, dragMoveEvent, drawBackground, drawForeground, drawItems, dropEvent, ensureVisible, event, fitInView, focusInEvent, focusNextPrevChild, focusOutEvent, foregroundBrush, inputMethodEvent, inputMethodQuery, invalidateScene, isInteractive, isTransformed, itemAt, items, keyPressEvent, keyReleaseEvent, mapFromScene, mapToScene, matrix, mouseDoubleClickEvent, mouseMoveEvent, mouseReleaseEvent, optimizationFlags, paintEvent, render, renderHints, resetCachedContent, resetMatrix, resetTransform, resizeAnchor, rotate, rubberBandSelectionMode, scale, scene, sceneRect, scrollContentsBy, setAlignment, setBackgroundBrush, setCacheMode, setDragMode, setForegroundBrush, setInteractive, setMatrix, setOptimizationFlag, setOptimizationFlags, setRenderHint, setRenderHints, setResizeAnchor, setRubberBandSelectionMode, setScene, setSceneRect, setTransform, setTransformationAnchor, setViewportUpdateMode, setupViewport, shear, showEvent, sizeHint, transform, transformationAnchor, translate, updateScene, updateSceneRect, viewportEvent, viewportTransform, viewportUpdateMode

Inherited from PyQt4.QtGui.QAbstractScrollArea: addScrollBarWidget, cornerWidget, horizontalScrollBar, horizontalScrollBarPolicy, maximumViewportSize, minimumSizeHint, scrollBarWidgets, setCornerWidget, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportMargins, verticalScrollBar, verticalScrollBarPolicy, viewport

Inherited from PyQt4.QtGui.QFrame: changeEvent, drawFrame, frameRect, frameShadow, frameShape, frameStyle, frameWidth, lineWidth, midLineWidth, setFrameRect, setFrameShadow, setFrameShape, setFrameStyle, setLineWidth, setMidLineWidth

Inherited from PyQt4.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuPolicy, create, cursor, customContextMenuRequested, destroy, devType, effectiveWinId, enabledChange, ensurePolished, enterEvent, find, focusNextChild, focusPolicy, focusPreviousChild, focusProxy, focusWidget, font, fontChange, fontInfo, fontMetrics, foregroundRole, frameGeometry, frameSize, geometry, getContentsMargins, grabGesture, grabKeyboard, grabMouse, grabShortcut, graphicsEffect, graphicsProxyWidget, handle, hasFocus, hasMouseTracking, height, heightForWidth, hide, hideEvent, inputContext, inputMethodHints, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyboardGrabber, languageChange, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumWidth, mouseGrabber, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, palette, paletteChange, parentWidget, pos, previousInFocusChain, raise_, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, repaint, resetInputContext, resize, restoreGeometry, saveGeometry, scroll, setAcceptDrops, setAccessibleDescription, setAccessibleName, setAttribute, setAutoFillBackground, setBackgroundRole, setBaseSize, setContentsMargins, setContextMenuPolicy, setCursor, setDisabled, setEnabled, setFixedHeight, setFixedSize, setFixedWidth, setFocus, setFocusPolicy, setFocusProxy, setFont, setForegroundRole, setGeometry, setGraphicsEffect, setHidden, setInputContext, setInputMethodHints, setLayout, setLayoutDirection, setLocale, setMask, setMaximumHeight, setMaximumSize, setMaximumWidth, setMinimumHeight, setMinimumSize, setMinimumWidth, setMouseTracking, setPalette, setParent, setShortcutAutoRepeat, setShortcutEnabled, setShown, setSizeIncrement, setSizePolicy, setStatusTip, setStyle, setStyleSheet, setTabOrder, setToolTip, setUpdatesEnabled, setVisible, setWhatsThis, setWindowFilePath, setWindowFlags, setWindowIcon, setWindowIconText, setWindowModality, setWindowModified, setWindowOpacity, setWindowRole, setWindowState, setWindowTitle, show, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, width, winId, window, windowActivationChange, windowFilePath, windowFlags, windowIcon, windowIconText, windowModality, windowOpacity, windowRole, windowState, windowTitle, windowType, x, x11Info, x11PictureHandle, y

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr, trUtf8

Inherited from PyQt4.QtGui.QPaintDevice: colorCount, depth, heightMM, logicalDpiX, logicalDpiY, numColors, paintingActive, physicalDpiX, physicalDpiY, widthMM

Inherited from sip.simplewrapper: __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  PT_IMPORT_TXT = 'Import from Project Table...'
  FILE_IMPORT_TXT = 'Import from file...'
  DRAW_TXT = 'Sketch...'
  DELETE_TXT = 'Delete structure'

Inherited from PyQt4.QtGui.QGraphicsView: AnchorUnderMouse, AnchorViewCenter, BoundingRectViewportUpdate, CacheBackground, CacheNone, DontAdjustForAntialiasing, DontClipPainter, DontSavePainterState, FullViewportUpdate, MinimalViewportUpdate, NoAnchor, NoDrag, NoViewportUpdate, RubberBandDrag, ScrollHandDrag, SmartViewportUpdate

Inherited from PyQt4.QtGui.QFrame: Box, HLine, NoFrame, Panel, Plain, Raised, Shadow_Mask, Shape_Mask, StyledPanel, Sunken, VLine, WinPanel

Inherited from PyQt4.QtGui.QWidget: DrawChildren, DrawWindowBackground, IgnoreMask

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Inherited from PyQt4.QtGui.QPaintDevice: PdmDepth, PdmDpiX, PdmDpiY, PdmHeight, PdmHeightMM, PdmNumColors, PdmPhysicalDpiX, PdmPhysicalDpiY, PdmWidth, PdmWidthMM

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, scene, item)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

mousePressEvent(self, event)

 

Override default Qt function to show context menu

Overrides: PyQt4.QtGui.QWidget.mousePressEvent

_setStructure(self, structure)

 

Set a Structure object for the structure_item and generate its picture.

Parameters:
  • structure (structure.Structure) - The structure to be loaded

processContextAction(self, action)

 

This loads data from the context menu, if requested

Parameters:
  • action (QAction) - The action clicked on from the menu