Package schrodinger :: Package ui :: Package qt :: Module structtable :: Class StructureViewerDelegate
[hide private]
[frames] | no frames]

Class StructureViewerDelegate

               object --+                        
                        |                        
        sip.simplewrapper --+                    
                            |                    
                  sip.wrapper --+                
                                |                
             PyQt5.QtCore.QObject --+            
                                    |            
PyQt5.QtWidgets.QAbstractItemDelegate --+        
                                        |        
            PyQt5.QtWidgets.QItemDelegate --+    
                                            |    
                       _GenericViewerDelegate --+
                                                |
                                               StructureViewerDelegate
Known Subclasses:

Nested Classes [hide private]

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
__init__(self, tableview, tablemodel, filename=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_paint(self, painter, option, index, passive=False)
Reimplement this to draw what you want in the cell.
 
_paint_passive(self, painter, option, index)
This function paints a temporary cell if we're moving too fast for real content to be drawn.
 
generatePicture(self, index)
Overwrite this method.
 
clearCache(self)
Will clear all QPictures that are cached.
 
paintCell(self, painter, option, index, pic)
Overwrite this method for custom cell drawing

Inherited from _GenericViewerDelegate: autoResizeCells, paint, paintWait, setCellSize, setPaintWait, sizeHint

Inherited from PyQt5.QtWidgets.QItemDelegate: createEditor, drawBackground, drawCheck, drawDecoration, drawDisplay, drawFocus, editorEvent, eventFilter, hasClipping, itemEditorFactory, setClipping, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: closeEditor, commitData, destroyEditor, helpEvent, sizeHintChanged

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

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 PyQt5.QtWidgets.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, tableview, tablemodel, filename=None)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

_paint(self, painter, option, index, passive=False)

 

Reimplement this to draw what you want in the cell.

Overrides: _GenericViewerDelegate._paint
(inherited documentation)

_paint_passive(self, painter, option, index)

 

This function paints a temporary cell if we're moving too fast for real content to be drawn. By default this is just a primitive hourglass, though you can implement to draw real info if you desire.

Overrides: _GenericViewerDelegate._paint_passive
(inherited documentation)

generatePicture(self, index)

 

Overwrite this method. It should return a QPicture object for item index.