Package schrodinger :: Package application :: Package msv :: Package gui :: Module msv_gui :: Class MSVPanel
[hide private]
[frames] | no frames]

Class MSVPanel

                                                       object --+            
                                                                |            
ui.qt.appframework2.maestro_callback.AbstractMaestroCallbackMixin --+        
                                                                    |        
            ui.qt.appframework2.maestro_callback.MaestroCallbackMixin --+    
                                                                        |    
                                                           object --+   |    
                                                                    |   |    
                              ui.qt.appframework2.markers.MarkerMixin --+    
                                                                        |    
                                                           object --+   |    
                                                                    |   |    
                           ui.qt.appframework2.settings.SettingsMixin --+    
                                                                        |    
                                       object --+                       |    
                                                |                       |    
                                sip.simplewrapper --+                   |    
                                                    |                   |    
                                          sip.wrapper --+               |    
                                                        |               |    
                                     PyQt4.QtCore.QObject --+           |    
                                                            |           |    
                                           object --+       |           |    
                                                    |       |           |    
                                    sip.simplewrapper --+   |           |    
                                                        |   |           |    
                                 PyQt4.QtGui.QPaintDevice --+           |    
                                                            |           |    
                                          PyQt4.QtGui.QWidget --+       |    
                                                                |       |    
                            ui.qt.appframework2.baseapp.BasePanel --+   |    
                                                                    |   |    
                   ui.qt.appframework2.validation.ValidationMixin --+   |    
                                                                    |   |    
                           ui.qt.appframework2.baseapp.ValidatedPanel --+    
                                                                        |    
                                              ui.qt.appframework2.af2.App --+
                                                                            |
                                                                           MSVPanel

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
colorSchemeChanged(...)
 
show(self)
We call raise here so that the panel comes to the front on all platforms when running in standalone mode.
 
setup(self)
 
updateOptions(self)
Update shared ui elements to fit the current widget
 
addTab(self, title='Query', make_active=True)
Add a tab to the query tabs
 
duplicateTab(self, index)
Duplicate the tab at the given index
schrodinger.application.msv.gui.menu.MsvMenuBar
_makeMenu(self)
Return a menu of the appropriate kind
dict
_makeMenuMap(self)
Returns: A mapping of menu actions to callbacks
 
setUpMenu(self)
Instantiate and set the application menu, wiring up all signals
callable
makeToggleAnnotationCallbackForAction(self, ann)
Return a callback that toggles the specified annotation on the top widget
 
makeTopWidgetCallbackForAction(self, meth_name)
Returns a callback that executes the specified method on the top level widget
 
makeTopWidgetCallbackForSort(self, sort_by, order)
Returns a callback that sets the specified sorting on the top level widget
 
setPanelOptions(self)
Configure the panel by setting instance variables here.
 
setDefaults(self)
 
layOut(self)
schrodinger.application.msv.gui.msv_widget.AbstractMsvWidget or None
currentWidget(self)
Return the widget belonging to the currently active tab, or None if all tabs are closed
 
showDebugGui(self)
 
showColorSchemeEditor(self)
 
updateColorScheme(self, info)
 
workspaceChanged(self, what_changed)
Notify the current tab of a workspace change
 
canUndoChanged(self, canUndo)
 
canRedoChanged(self, canRedo)
 
undo(self)
 
redo(self)
 
syncMaestro(self)

Inherited from ui.qt.appframework2.af2.App: __init__, addMainTaskRunner, cleanup, closeEvent, createBottomBar, createInputSelector, definePanelSettings, getPanelState, getWorkspaceStructure, loadPanelState, processSettings, processTaskMessage, setCurrentTask, setPanelState, setupTaskRunner, showEvent, showProgressBarForJob, writePanelState

Inherited from ui.qt.appframework2.af2.App (private): _applySettingsFromGroup, _close, _configurePanelSettings, _getSettingsForGroup, _help, _prestart, _prewrite, _read, _reset, _start, _statusShrunk, _updateProgressBar

Inherited from ui.qt.appframework2.maestro_callback.AbstractMaestroCallbackMixin: buildCallbackDicts

Inherited from ui.qt.appframework2.maestro_callback.AbstractMaestroCallbackMixin (private): _addCallbacks, _closeEvent, _delayedCallbacks, _removeCallbacks, _showEvent

Inherited from ui.qt.appframework2.markers.MarkerMixin: addJaguarMarker, addMarker, getAllJaguarMarkers, getAllMarkers, getJaguarMarker, hideAllJaguarMarkers, hideAllMarkers, removeAllJaguarMarkers, removeAllJaguarMarkersForEntry, removeAllMarkers, removeJaguarMarker, removeJaguarMarkerForAtoms, removeMarker, showAllJaguarMarkers, showAllMarkers

Inherited from ui.qt.appframework2.markers.MarkerMixin (private): _calcEntryAtomTotal, _canonicalizeAtomOrder, _clearInvalidatedJaguarMarkers, _createAtomAsl, _createJaguarMarker, _createMarker, _eidsFromHashable, _genMarkerHash, _setMarkerHash, _updateMarkers

Inherited from ui.qt.appframework2.settings.SettingsMixin: __getitem__, __setitem__, applyAliasedSettings, applySettings, getAliasedSettings, getAliasedValue, getObjValue, getSettings, setAlias, setAliasedValue, setAliases, setObjValue

Inherited from ui.qt.appframework2.baseapp.ValidatedPanel: reportValidation

Inherited from ui.qt.appframework2.baseapp.BasePanel: __str__, error, getOpenFileName, getOpenFileNames, info, keyPressEvent, parent, question, restoreCursor, run, runCanvas, runMaestro, runMode, runStandalone, runSubpanel, setWaitCursor, startUp, warning

Inherited from ui.qt.appframework2.baseapp.BasePanel (private): _layOutDockWidget

Inherited from PyQt4.QtGui.QWidget: acceptDrops, accessibleDescription, accessibleName, actionEvent, actions, activateWindow, addAction, addActions, adjustSize, autoFillBackground, backgroundRole, baseSize, changeEvent, childAt, childrenRect, childrenRegion, clearFocus, clearMask, close, contentsMargins, contentsRect, contextMenuEvent, contextMenuPolicy, create, cursor, customContextMenuRequested, destroy, devType, dragEnterEvent, dragLeaveEvent, dragMoveEvent, dropEvent, effectiveWinId, enabledChange, ensurePolished, enterEvent, event, 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, 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, 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, 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__, __subclasshook__

Inherited from ui.qt.appframework2.validation.ValidationMixin: runValidation, validationEnabled

Inherited from ui.qt.appframework2.validation.ValidationMixin (private): _validate, _validateAdded, _validateChildren, _validateOwn

Class Methods [hide private]

Inherited from ui.qt.appframework2.af2.App: panel

Class Variables [hide private]

Inherited from ui.qt.appframework2.af2.App (private): _singleton

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]

Inherited from ui.qt.appframework2.markers.MarkerMixin: MARKER_ICONS

Inherited from ui.qt.appframework2.markers.MarkerMixin (private): _marked_eid_lengths, _markers, _multi_atom_markers

Properties [hide private]

Inherited from ui.qt.appframework2.baseapp.BasePanel: title

Inherited from object: __class__

Method Details [hide private]

show(self)

 

We call raise here so that the panel comes to the front on all platforms when running in standalone mode.

Overrides: PyQt4.QtGui.QWidget.show

setup(self)

 
Overrides: ui.qt.appframework2.baseapp.BasePanel.setup

duplicateTab(self, index)

 

Duplicate the tab at the given index

Parameters:
  • index (int) - The index of the tab to rename

_makeMenu(self)

 

Return a menu of the appropriate kind

Returns: schrodinger.application.msv.gui.menu.MsvMenuBar
A menu bar

_makeMenuMap(self)

 
Returns: dict
A mapping of menu actions to callbacks

makeToggleAnnotationCallbackForAction(self, ann)

 

Return a callback that toggles the specified annotation on the top widget

Parameters:
Returns: callable
A function that takes a bool indicating check state and sets the visibility of the annotation accordingly

makeTopWidgetCallbackForAction(self, meth_name)

 

Returns a callback that executes the specified method on the top level widget

Parameters:
  • meth_name (str) - The name of the method to call on the top level widget

makeTopWidgetCallbackForSort(self, sort_by, order)

 

Returns a callback that sets the specified sorting on the top level widget

Parameters:
  • sort_by (viewmodel.SortBy) - The criterion to sort on.
  • order (int) - Whether the data should be sorted in ascending (Qt.AscendingOrder) or descending (Qt.DescendingOrder) order.

setPanelOptions(self)

 

Configure the panel by setting instance variables here. Always call the
parent method. Panel options:

self.maestro_dockable - whether this panel should be dockable in the
    Maestro main window. Setting to true will automatically dock the
    panel on the right-hand side of the main window. Default False.

self.title - string to display in the window title bar

self.ui - a Ui_Form instance defining the main ui, default None

self.allowed_run_modes - subset of [MODE_MAESTRO, MODE_STANDALONE,
    MODE_SUBPANEL, MODE_CANVAS] defining how the panel may be run.
    Default is all.

self.help_topic - string defining the help topic. Default ''

self.help_product - string defining help product. Default 'maestro'

self.input_selector_options - dict of options for the common input
    selector widget. Default is an empty dict, meaning do not add an
    input selector

self.add_main_layout_stretch - bool of whether to add a stretch to the
    main layout under the main ui (if self.ui exists). Default is True

Overrides: ui.qt.appframework2.baseapp.BasePanel.setPanelOptions

setDefaults(self)

 
Overrides: ui.qt.appframework2.baseapp.BasePanel.setDefaults

layOut(self)

 
Overrides: ui.qt.appframework2.baseapp.BasePanel.layOut

currentWidget(self)

 

Return the widget belonging to the currently active tab, or None if all tabs are closed

Returns: schrodinger.application.msv.gui.msv_widget.AbstractMsvWidget or None
The current msv widget or None

workspaceChanged(self, what_changed)

 

Notify the current tab of a workspace change

Parameters:
  • what_changed (str) - A flag indicating what changed in the workspace
Decorators:
  • @af2.maestro_callback.workspace_changed

syncMaestro(self)

 
Decorators:
  • @af2.appmethods.custom('SyncMaestro')