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

Class RulerDelegate

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

A delegate to draw the ruler, which counts by 5. Numbers in between are drawn as middle dots.

Nested Classes [hide private]

Inherited from PyQt4.QtGui.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
 
__init__(self, *args, **kwargs)
x.__init__(...) initializes x; see help(type(x)) for signature
basestr @return The text representation of the value or an empty string if None
_getText(self, index)
Return the default text for the cell
 
_paintDefault(self, painter, option, index)
Paints the default (non-selected) cell using the specified painter, option, and index

Inherited from BaseRowDelegate: clearCache, helpEvent, initStyleOption, paint, sizeHint

Inherited from PyQt4.QtGui.QStyledItemDelegate: createEditor, displayText, editorEvent, eventFilter, itemEditorFactory, setEditorData, setItemEditorFactory, setModelData, updateEditorGeometry

Inherited from PyQt4.QtGui.QAbstractItemDelegate: closeEditor, commitData, elidedText, 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]
  ANNOTATION_TYPE = <ANNOTATION_TYPES.indices: 1>
hash(x)

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

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from BaseRowDelegate: element_height

Inherited from object: __class__

Method Details [hide private]

__init__(self, *args, **kwargs)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

_getText(self, index)

 

Return the default text for the cell

Parameters:
  • index - The index in the model
Returns: basestr @return The text representation of the value or an empty string if None
Overrides: BaseRowDelegate._getText
(inherited documentation)

_paintDefault(self, painter, option, index)

 

Paints the default (non-selected) cell using the specified painter, option, and index

Note: This method is overridden in subclasses and should not be merged into paint().

Parameters:
  • painter - The painter for the cell
  • option - The option for the cell
  • index - The index in the table
  • selection_brush - The brush to use in painting
Overrides: BaseRowDelegate._paintDefault
(inherited documentation)