Package schrodinger :: Package application :: Package jaguar :: Package gui :: Package tabs :: Package input_sub_tabs :: Module charge_constraints :: Class ChargeConstraintsSubTab
[hide private]
[frames] | no frames]

Class ChargeConstraintsSubTab

       object --+                    
                |                    
sip.simplewrapper --+                
                    |                
          sip.wrapper --+            
                        |            
     PyQt4.QtCore.QObject --+        
                            |        
           object --+       |        
                    |       |        
    sip.simplewrapper --+   |        
                        |   |        
 PyQt4.QtGui.QPaintDevice --+        
                            |        
          PyQt4.QtGui.QWidget --+    
                                |    
          base_sub_tab.BaseSubTab --+
                                    |
                                   ChargeConstraintsSubTab

An Input tab sub-tab for charge constraints.

See parent class for documentation on the class variables

Nested Classes [hide private]
type TABLE_MODEL_CLASS
The class of the table model.

Inherited from base_sub_tab.BaseSubTab: PROXY_MODEL_CLASS

Inherited from PyQt4.QtGui.QWidget: RenderFlag, RenderFlags

Inherited from PyQt4.QtGui.QPaintDevice: PaintDeviceMetric

Instance Methods [hide private]
 
setup(self)
Sub-tab-specific initialization.
 
addNewConstraint(self)
Add a blank row for a new constraint
 
saveSettings(self, jag_input, eid)
Save sub-tab settings for the specified entry into the given Jaguar handle.
 
loadSettings(self, jag_input, eid, title, struc)
Restore sub-tab settings from the Jaguar handle.
 
emitAddMarker(self, atoms, settings)
Pass along addJaguarMarker signals received from the table model or charge_constraints_widgets.AtomSelectionDelegate.
 
emitRemoveMarker(self, atoms)
Pass along removeJaguarMarker signals received from the table model or charge_constraints_widgets.AtomSelectionDelegate.
 
_getAtomHash(self, atom)
Convert the given atom into something hashable that depends on the atom entry id and index

Inherited from base_sub_tab.BaseSubTab: __init__, activate, deactivate, emitCountChanged, emitSetMarkerHighlighting, reset, setActive, setDisplayedEids, updateEntryTitles, validate, warning

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 = 'Charge Constraints'
The name of the tab.
module UI_MODULE
A module containing a Ui_Form for the sub tab

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_sub_tab.BaseSubTab: addJaguarMarker, countChanged, removeJaguarMarker, setMarkerHighlighting

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

setup(self)

 

Sub-tab-specific initialization. This function may be redefined in subclasses.

Overrides: base_sub_tab.BaseSubTab.setup
(inherited documentation)

saveSettings(self, jag_input, eid)

 

Save sub-tab settings for the specified entry into the given Jaguar handle. This function should be redefined in subclasses.

Parameters:
  • jag_input - The Jaguar handle to save settings into
  • eid - The entry id of the structure to save settings for
Overrides: base_sub_tab.BaseSubTab.saveSettings
(inherited documentation)

loadSettings(self, jag_input, eid, title, struc)

 

Restore sub-tab settings from the Jaguar handle. This function should be redefined in subclasses. Note that existing settings for the given entry id should be cleared before the new settings are loaded.

Parameters:
  • jag_input - The Jaguar handle to load settings from
  • eid - The entry id of the structure to load settings for
  • title - The title of the structure
  • struc - The structure that settings are being loaded for. Primarily intended for looking up atom names.
Overrides: base_sub_tab.BaseSubTab.loadSettings
(inherited documentation)

emitAddMarker(self, atoms, settings)

 

Pass along addJaguarMarker signals received from the table model or charge_constraints_widgets.AtomSelectionDelegate.

Since this sub-tab allows overlapping charge constraint groups, it's possible to have more than one marker for an atom. Since the panel code can't handle multiple markers per atom, we use "marker counting" to ensure that markers are created and deleted appropriately.

See parent class for argument documentation.

Parameters:
  • atoms - A list of atoms to add the marker for
  • settings - The marker settings
Overrides: base_sub_tab.BaseSubTab.emitAddMarker

emitRemoveMarker(self, atoms)

 

Pass along removeJaguarMarker signals received from the table model or charge_constraints_widgets.AtomSelectionDelegate.

Since this sub-tab allows overlapping charge constraint groups, it's possible to have more than one marker for an atom. Since the panel code can't handle multiple markers per atom, we use "marker counting" to ensure that markers are created and deleted appropriately.

See parent class for argument documentation.

Parameters:
  • atoms - A list of atoms to remove the marker for
Overrides: base_sub_tab.BaseSubTab.emitRemoveMarker

_getAtomHash(self, atom)

 

Convert the given atom into something hashable that depends on the atom
entry id and index

@param atom: The atom to convert
@type atom: L{schrodinger.structure._StructureAtom

@return: A hashable object.  (Specifically, a tuple of entry id and atom
index.)
@rtype: tuple


Class Variable Details [hide private]

UI_MODULE

A module containing a Ui_Form for the sub tab
Type:
module
Value:
schrodinger.application.jaguar.gui.ui.input_sub_tabs.charge_constraints_ui