Package schrodinger :: Package application :: Package bioluminate :: Package ssv :: Module viewer :: Class ViewerWindow
[hide private]
[frames] | no frames]

Class ViewerWindow

       object --+                    
                |                    
sip.simplewrapper --+                
                    |                
          sip.wrapper --+            
                        |            
     PyQt4.QtCore.QObject --+        
                            |        
           object --+       |        
                    |       |        
    sip.simplewrapper --+   |        
                        |   |        
 PyQt4.QtGui.QPaintDevice --+        
                            |        
          PyQt4.QtGui.QWidget --+    
                                |    
          PyQt4.QtGui.QMainWindow --+
                                    |
                                   ViewerWindow

Provides the SimplifiedSequenceViewer with a window to occupy. This has the benefit of adding toolbars and allowing the sequence viewer (which is a QtWidgets.QSplitter) to be a stand-alone window.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QMainWindow: DockOption, DockOptions

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
__init__(self, parent)
x.__init__(...) initializes x; see help(type(x)) for signature
 
removeToolBar(self, objname=None)
Overrides the base class's QtWidgets.QMainWindow.removeToolBar method to allow for removal of a single toolbar based on the toolbar's object name or, if objname is None, removal of all the window's toolbars.
 
addToolBars(self, toolbars)
Add toolbars to the sequence viewer.
 
setToolBars(self, toolbars)
Deletes all window toolbars and sets them to the new toolbars
 
addImportToolBar(self, area=4)
Adds an ImportToolBar widget to the area indicated (default: top).
 
addUndoRedoToolBar(self, area=4)
Adds a widget that handles undo/redo operations to the area indicated (default: top).
 
addFindToolBar(self, area=4)
Adds a FindToolBar widget to the area indicated (default: top).
 
addAlignToolBar(self, area=8)
Adds a toolbar to the area indicated (default: bottom) that contains all of the actions for alignment.
 
addConsensusToolBar(self, area=8)
Adds a ConsensusToolBar widget to the area indicated (default: bottom) that contains all of the actions for consensus visualization.
 
addAntibodyNumberingToolBar(self, area=8)
Add a AntibodyNumberingToolBar widget to the area indicated (default: bottom).
 
setAntibodyNumberingToolBarVisible(self, show=True)

Inherited from PyQt4.QtGui.QMainWindow: addDockWidget, addToolBar, addToolBarBreak, centralWidget, contextMenuEvent, corner, createPopupMenu, dockOptions, dockWidgetArea, documentMode, event, iconSize, iconSizeChanged, insertToolBar, insertToolBarBreak, isAnimated, isDockNestingEnabled, isSeparator, menuBar, menuWidget, removeDockWidget, removeToolBarBreak, restoreDockWidget, restoreState, saveState, setAnimated, setCentralWidget, setCorner, setDockNestingEnabled, setDockOptions, setDocumentMode, setIconSize, setMenuBar, setMenuWidget, setStatusBar, setTabPosition, setTabShape, setToolButtonStyle, setUnifiedTitleAndToolBarOnMac, splitDockWidget, statusBar, tabPosition, tabShape, tabifiedDockWidgets, tabifyDockWidget, toolBarArea, toolBarBreak, toolButtonStyle, toolButtonStyleChanged, unifiedTitleAndToolBarOnMac

Inherited from PyQt4.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, closeEvent, contentsMargins, contentsRect, contextMenuPolicy, create, cursor, customContextMenuRequested, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, enabledChange, ensurePolished, enterEvent, find, focusInEvent, focusNextChild, focusNextPrevChild, focusOutEvent, 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, inputMethodEvent, inputMethodHints, inputMethodQuery, insertAction, insertActions, isActiveWindow, isAncestorOf, isEnabled, isEnabledTo, isEnabledToTLW, isFullScreen, isHidden, isLeftToRight, isMaximized, isMinimized, isModal, isRightToLeft, isTopLevel, isVisible, isVisibleTo, isWindow, isWindowModified, keyPressEvent, keyReleaseEvent, keyboardGrabber, languageChange, layout, layoutDirection, leaveEvent, locale, lower, mapFrom, mapFromGlobal, mapFromParent, mapTo, mapToGlobal, mapToParent, mask, maximumHeight, maximumSize, maximumWidth, metric, minimumHeight, minimumSize, minimumSizeHint, minimumWidth, mouseDoubleClickEvent, mouseGrabber, mouseMoveEvent, mousePressEvent, mouseReleaseEvent, move, moveEvent, nativeParentWidget, nextInFocusChain, normalGeometry, overrideWindowFlags, overrideWindowState, paintEngine, paintEvent, palette, paletteChange, parentWidget, pos, previousInFocusChain, raise_, rect, releaseKeyboard, releaseMouse, releaseShortcut, removeAction, render, repaint, resetInputContext, resize, resizeEvent, 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, showEvent, showFullScreen, showMaximized, showMinimized, showNormal, size, sizeHint, sizeIncrement, sizePolicy, stackUnder, statusTip, style, styleSheet, tabletEvent, testAttribute, toolTip, topLevelWidget, underMouse, ungrabGesture, unsetCursor, unsetLayoutDirection, unsetLocale, update, updateGeometry, updateMicroFocus, updatesEnabled, visibleRegion, whatsThis, wheelEvent, 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]
  WINDOW_TITLE = 'Sequence Viewer'
  IMPORT_TOOLBAR = 'import_toolbar'
  UNDO_REDO_TOOLBAR = 'undo_redo_toolbar'
  FIND_TOOLBAR = 'find_toolbar'
  ALIGN_TOOLBAR = 'align_toolbar'
  CONSENSUS_TOOLBAR = 'consensus_toolbar'
  ANTIBODY_NUM_TOOLBAR = 'antibody_numbering_toolbar'
  BREAK_TOOLBAR = 'break_toolbar'
  DEFAULT_TOOLBARS = ['import_toolbar', 'undo_redo_toolbar', 'fi...

Inherited from PyQt4.QtGui.QMainWindow: AllowNestedDocks, AllowTabbedDocks, AnimatedDocks, ForceTabbedDocks, VerticalTabs

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

Instance Variables [hide private]
  action_factory
The factory to use when creating actions.
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent)
(Constructor)

 

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

Parameters:
Raises:
  • RuntimeError - If parent is not correct type
Overrides: object.__init__

removeToolBar(self, objname=None)

 

Overrides the base class's QtWidgets.QMainWindow.removeToolBar method to allow for removal of a single toolbar based on the toolbar's object name or, if objname is None, removal of all the window's toolbars.

Overrides: PyQt4.QtGui.QMainWindow.removeToolBar

addToolBars(self, toolbars)

 

Add toolbars to the sequence viewer. The toolbars arg should be a list of items taken from the ViewerWindow properties:

addImportToolBar(self, area=4)

 

Adds an ImportToolBar widget to the area indicated (default: top).

Parameters:
  • area - The area to add the dock widget to

addUndoRedoToolBar(self, area=4)

 

Adds a widget that handles undo/redo operations to the area indicated (default: top).

Parameters:
  • area - The area to add the dock widget to

addFindToolBar(self, area=4)

 

Adds a FindToolBar widget to the area indicated (default: top).

Parameters:
  • area - The area to add the dock widget to

addAlignToolBar(self, area=8)

 

Adds a toolbar to the area indicated (default: bottom) that contains all of the actions for alignment.

Parameters:
  • area - The area to add the dock widget to

addConsensusToolBar(self, area=8)

 

Adds a ConsensusToolBar widget to the area indicated (default: bottom) that contains all of the actions for consensus visualization.

Parameters:
  • area - The area to add the dock widget to

addAntibodyNumberingToolBar(self, area=8)

 

Add a AntibodyNumberingToolBar widget to the area indicated (default: bottom).

Parameters:
  • area - The area to add the dock widget to

Class Variable Details [hide private]

DEFAULT_TOOLBARS

Value:
['import_toolbar',
 'undo_redo_toolbar',
 'find_toolbar',
 'align_toolbar']

Instance Variable Details [hide private]

action_factory

The factory to use when creating actions. We want to set all the action's parent to the passed in parent, which is a SequenceViewer. All of the actions associated with the viewer are the module, schrodinger.ui.sequencealignment.sequence_viewer.