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

Class ReactionTab

       object --+                    
                |                    
sip.simplewrapper --+                
                    |                
          sip.wrapper --+            
                        |            
     PyQt4.QtCore.QObject --+        
                            |        
           object --+       |        
                    |       |        
    sip.simplewrapper --+   |        
                        |   |        
 PyQt4.QtGui.QPaintDevice --+        
                            |        
          PyQt4.QtGui.QWidget --+    
                                |    
 base_tab.ProvidesStructuresMixin --+
                                    |
       object --+                   |
                |                   |
sip.simplewrapper --+               |
                    |               |
          sip.wrapper --+           |
                        |           |
     PyQt4.QtCore.QObject --+       |
                            |       |
           object --+       |       |
                    |       |       |
    sip.simplewrapper --+   |       |
                        |   |       |
 PyQt4.QtGui.QPaintDevice --+       |
                            |       |
          PyQt4.QtGui.QWidget --+   |
                                |   |
                 base_tab.BaseTab --+
                                    |
                                   ReactionTab

Nested Classes [hide private]

Inherited from base_tab.ProvidesStructuresMixin: __metaclass__

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
reactionParticipantAdded(...)
 
reactionParticipantRemoved(...)
 
reactionParticipantStructChanged(...)
 
setup(self)
Perform tab specific initialization.
 
_reactionParticipantStructChanged(self, participant, struct)
This is used to bubble up ReactionParticipantView structure changed signals.
 
_addParticipant(self, name, participant_list, layout)
This adds a new participant to the GUI, either as a reactant or product, which is determined based on the passed in list/layout
 
addReactant(self)
 
addProduct(self)
 
_removeParticipantSpecific(self, participant, participant_list, layout)
This does the actual work for removing a participant, be it in the reactants or products.
 
removeParticipant(self, participant)
This removes a participant from the GUI
 
tileParticipants(self)
This places all current participants in the workspace in tiles
 
workspaceChanged(self, change, pt)
This function is called when changes are made to the workspace.
 
projectClosed(self)
This function is called when the project is closed.
 
error(self, err)
Display an error dialog with the specified message
 
reset(self)
Reset the tab to its original state.
str or NoneType
validate(self)
Make sure that the tab settings will allow a job to be run successfully.
str or NoneType
getStructureTitleForJobname(self)
Get the structure title to be used in the job name.
 
structureChanged(...)

Inherited from base_tab.BaseTab: __init__, activate, deactivate, getDefaultKeywords, getMmJagKeywords, loadPerAtomSettings, loadSettings, saveSettings, warning

Inherited from base_tab.BaseTab (private): _populateUi

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, 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, 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]
str NAME = 'Reaction'
The name of the tab
str HELP_TOPIC = 'JAGUAR_REACTION_TAB'
The help topic for the tab
tuple UI_MODULES = (<module 'schrodinger.application.jaguar.gui.ui.r...
A tuple of ui modules defining the tab widgets.

Inherited from base_tab.ProvidesStructuresMixin: MULTIPLE_STRUC_JOB_TITLE

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 base_tab.BaseTab: input_selector, task_name, ui

Properties [hide private]
  participants

Inherited from object: __class__

Method Details [hide private]

setup(self)

 

Perform tab specific initialization. This function should be defined in subclasses if initialization is needed.

Overrides: base_tab.BaseTab.setup
(inherited documentation)

_reactionParticipantStructChanged(self, participant, struct)

 

This is used to bubble up ReactionParticipantView structure changed signals.

Parameters:
  • participant (ReactionParticipant) - Participant with changed structure
  • struct (structure.Structure) - New structure for participant

_addParticipant(self, name, participant_list, layout)

 

This adds a new participant to the GUI, either as a reactant or product, which is determined based on the passed in list/layout

Parameters:
  • participant_list (list of ReactionParticipant instances) - reactants or products list
  • layout (QHBoxLayout) - reactants or products layout

_removeParticipantSpecific(self, participant, participant_list, layout)

 

This does the actual work for removing a participant, be it in the reactants or products.

Parameters:
  • participant (ReactionParticipant) - The participant to remove from the list/layout
  • participant_list (list of ReactionParticipant instances) - reactants or products list
  • layout (QHBoxLayout) - reactants or products layout

workspaceChanged(self, change, pt)

 

This function is called when changes are made to the workspace.

Parameters:

projectClosed(self)

 

This function is called when the project is closed. In this case we reset tab since we don't know whether participants came from the project table or were imported from file.

error(self, err)

 

Display an error dialog with the specified message

Parameters:
  • msg - The message to include in the error dialog
Overrides: base_tab.BaseTab.error
(inherited documentation)

reset(self)

 

Reset the tab to its original state. Note that this function is only necessary for settings that are not stored in the mmjag handle. For mmjag settings, reset will be carried out using loadSettings with a default schrodinger.application.jaguar.input.JaguarInput object. This function should only be defined in subclasses if there are any settings that cannot be reset via loadSettings.

Overrides: base_tab.BaseTab.reset
(inherited documentation)

validate(self)

 

Make sure that the tab settings will allow a job to be run successfully. Note that this validation should not be redundant with that performed in getMmJagKeywords. Any tab setting that prevents valid mmjag keywords from being generated should cause getMmJagKeywords to raise a JaguarSettingError. Any tab setting that allows mmjag keywords to be successfully generated but will result in a job failure should cause a validate fail. This function should be defined in subclasses if validation is needed.

Returns: str or NoneType
If the validation passes, None is returned. If the validation fails, a string that describes the error is returned.
Overrides: base_tab.BaseTab.validate
(inherited documentation)

getStructureTitleForJobname(self)

 

Get the structure title to be used in the job name. If the tab includes multiple structures, then MULTIPLE_STRUC_JOB_TITLE should be returned. If no structures have been specified yet, then None should be returned.

Returns: str or NoneType
The structure title
Overrides: base_tab.ProvidesStructuresMixin.getStructureTitleForJobname
(inherited documentation)

structureChanged(...)

 
Overrides: base_tab.ProvidesStructuresMixin.structureChanged

Class Variable Details [hide private]

UI_MODULES

A tuple of ui modules defining the tab widgets. These ui modules should be listed top to bottom. Optionally, a tuple of (tab class, attribute name) may be listed instead of a ui file to include a subtab.
Type:
tuple
Value:
(<module 'schrodinger.application.jaguar.gui.ui.reaction_tab_ui' from \
'/scr/buildbot/savedbuilds/NB/2016-4/build-126/mmshare-v3.6/lib/Linux-\
x86_64/lib/python2.7/site-packages/schrodinger/application/jaguar/gui/\
ui/reaction_tab_ui.pyc'>)

Property Details [hide private]

participants

Get Method:
unreachable.participants(self)