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

Class StructureViewerDelegate

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

Nested Classes [hide private]

Inherited from PyQt4.QtGui.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 PyQt4.QtGui.QItemDelegate: createEditor, drawBackground, drawCheck, drawDecoration, drawDisplay, drawFocus, editorEvent, eventFilter, hasClipping, itemEditorFactory, setClipping, setEditorData, setItemEditorFactory, setModelData, 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, 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.