Package schrodinger :: Package application :: Package jaguar :: Package gui :: Module input_tab_widgets :: Class WorkspaceInclusionDelegate
[hide private]
[frames] | no frames]

Class WorkspaceInclusionDelegate

           object --+                    
                    |                    
    sip.simplewrapper --+                
                        |                
              sip.wrapper --+            
                            |            
         PyQt4.QtCore.QObject --+        
                                |        
PyQt4.QtGui.QAbstractItemDelegate --+    
                                    |    
      PyQt4.QtGui.QStyledItemDelegate --+
                                        |
                                       WorkspaceInclusionDelegate

A delegate for representing workspace inclusion as it is shown in the project table. This delegate allows an entry to be set as the only workspace entry by clicking, or allows workspace inclusion to be toggled by holding down Ctrl.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
__init__(self, parent)
x.__init__(...) initializes x; see help(type(x)) for signature
 
createEditor(self, parent, option, index)
This delegate does not have a separate editor widget, so we return None.
 
paint(self, painter, option, index)
Paint the appropriate icon
bool
editorEvent(self, event, model, option, index)
Handle mouse clicks and key presses

Inherited from PyQt4.QtGui.QStyledItemDelegate: displayText, eventFilter, initStyleOption, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, sizeHint, updateEditorGeometry

Inherited from PyQt4.QtGui.QAbstractItemDelegate: closeEditor, commitData, elidedText, helpEvent, sizeHintChanged

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

Inherited from sip.simplewrapper: __new__

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

Class Variables [hide private]

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt4.QtCore.QObject: staticMetaObject

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

Overrides: object.__init__
(inherited documentation)

createEditor(self, parent, option, index)

 

This delegate does not have a separate editor widget, so we return None. All arguments are ignored, but are present for Qt compatibility.

Overrides: PyQt4.QtGui.QAbstractItemDelegate.createEditor

paint(self, painter, option, index)

 

Paint the appropriate icon

Parameters:
  • painter (QPainter) - The painter being used to render the delegate
  • option (QStyleOptionViewItem) - The style options to use when painting
  • index (PyQt4.QtCore.QModelIndex) - The index being represented
Overrides: PyQt4.QtGui.QAbstractItemDelegate.paint

editorEvent(self, event, model, option, index)

 

Handle mouse clicks and key presses

Parameters:
  • event (PyQt4.QtCore.QEvent) - The event that occurred
  • model (QAbstractTableModel) - The data model
  • option - Ignored, but present for Qt compatibility
  • index (PyQt4.QtCore.QModelIndex) - The index being edited
Returns: bool
True if the event was handled. False otherwise.
Overrides: PyQt4.QtGui.QAbstractItemDelegate.editorEvent