Package schrodinger :: Package application :: Package msv :: Package gui :: Module delegates :: Class AlignmentInfoDelegate
[hide private]
[frames] | no frames]

Class AlignmentInfoDelegate

               object --+                        
                        |                        
        sip.simplewrapper --+                    
                            |                    
                  sip.wrapper --+                
                                |                
             PyQt5.QtCore.QObject --+            
                                    |            
PyQt5.QtWidgets.QAbstractItemDelegate --+        
                                        |        
      PyQt5.QtWidgets.QStyledItemDelegate --+    
                                            |    
         ui.qt.table_speed_up.SpeedUpDelegate --+
                                                |
               object --+                       |
                        |                       |
        sip.simplewrapper --+                   |
                            |                   |
                  sip.wrapper --+               |
                                |               |
             PyQt5.QtCore.QObject --+           |
                                    |           |
PyQt5.QtWidgets.QAbstractItemDelegate --+       |
                                        |       |
      PyQt5.QtWidgets.QStyledItemDelegate --+   |
                                            |   |
                      AbstractBaseRowDelegate --+
                                                |
                                               AlignmentInfoDelegate

This is a delegate class that paints alignment info (e.g. identity, similarity, homology and score metrics or name and chain info).

Nested Classes [hide private]

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
__init__(self, parent, data_cache)
x.__init__(...) initializes x; see help(type(x)) for signature
 
setModel(self, model)
Specify the model that this delegate will be fetching data from.
 
paint(self, painter, option, index)
Paints the info
 
editorEvent(self, event, model, option, index)
 
sizeHint(self, option, index)

Inherited from ui.qt.table_speed_up.SpeedUpDelegate: initStyleOption

Inherited from AbstractBaseRowDelegate: heightHint

Inherited from PyQt5.QtWidgets.QStyledItemDelegate: createEditor, displayText, eventFilter, itemEditorFactory, 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 ui.qt.table_speed_up.SpeedUpDelegate: PAINT_ROLES

Inherited from AbstractBaseRowDelegate: ANNOTATION_TYPE, SAMPLE_DATA

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from AbstractBaseRowDelegate: element_height

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, data_cache)
(Constructor)

 

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

Parameters:
  • parent - The parent widget
  • data_cache - The object to use for caching model data. Note that this cache is shared amongst all delegates and that the view, not the delegate, is responsible for clearing the cache when the model data changes.
Overrides: object.__init__
(inherited documentation)

setModel(self, model)

 

Specify the model that this delegate will be fetching data from. This method must be called as soon as a model is set on the view. The model is cached because call model.data() is about four times faster than calling index.data().

Parameters:
  • model - The model
Overrides: ui.qt.table_speed_up.SpeedUpDelegate.setModel
(inherited documentation)

paint(self, painter, option, index)

 

Paints the info

Parameters:
  • option (QtWidgets.QStyleOptionViewItem) - The option to modify with cached information
  • index (QtCore.QModelIndex) - The index in the model
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.paint

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

 
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.editorEvent

sizeHint(self, option, index)

 
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.sizeHint