Package schrodinger :: Package application :: Package msv :: Package gui :: Module viewmodel :: Class StyleProxyModel
[hide private]
[frames] | no frames]

Class StyleProxyModel

                         object --+            
                                  |            
                         ProxyMixin --+        
                                      |        
               PostReorderingProxyMixin --+    
                                          |    
             PostAnnotationFilterProxyMixin --+
                                              |
         object --+                           |
                  |                           |
  sip.simplewrapper --+                       |
                      |                       |
            sip.wrapper --+                   |
                          |                   |
       PyQt4.QtCore.QObject --+               |
                              |               |
PyQt4.QtCore.QAbstractItemModel --+           |
                                  |           |
    PyQt4.QtGui.QAbstractProxyModel --+       |
                                      |       |
        PyQt4.QtGui.QIdentityProxyModel --+   |
                                          |   |
              Qt.QtCore.QIdentityProxyModel --+
                                              |
                                             StyleProxyModel

A proxy model responsible for most styling options, including text size and color schemes

Nested Classes [hide private]

Inherited from ProxyMixin: __metaclass__

Instance Methods [hide private]
 
textSizeChanged(...)
 
__init__(self, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
_residueIndicesData(self, index, role)
 
_fontData(self, index)
 
_styleData(self, index, role)
 
data(self, index, role)
 
setTextSize(self, size)
Set the text size to the specified size
 
updateTextSize(self, change)
Increment the text size one point smaller or larger
 
updateColorScheme(self, row_type, scheme_type)
Used to set the color scheme of a specific row type.
dict
getColorScheme(self)
Returns: The color scheme currently in use

Inherited from PostAnnotationFilterProxyMixin: setSourceModel

Inherited from PostReorderingProxyMixin: reorderRow

Inherited from PostReorderingProxyMixin (private): _mapRowToSource

Inherited from ProxyMixin: emitResidueSelection, residueFormatChanged, sourceModel

Inherited from Qt.QtCore.QIdentityProxyModel: reset, setRoleNames, setSupportedDragActions

Inherited from PyQt4.QtGui.QIdentityProxyModel: columnCount, dropMimeData, index, insertColumns, insertRows, mapFromSource, mapSelectionFromSource, mapSelectionToSource, mapToSource, match, parent, removeColumns, removeRows, rowCount

Inherited from PyQt4.QtGui.QAbstractProxyModel: buddy, canFetchMore, fetchMore, flags, hasChildren, headerData, itemData, mimeData, mimeTypes, revert, setData, setHeaderData, setItemData, sort, span, submit, supportedDropActions

Inherited from PyQt4.QtCore.QAbstractItemModel: beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, changePersistentIndex, changePersistentIndexList, columnsAboutToBeInserted, columnsAboutToBeMoved, columnsAboutToBeRemoved, columnsInserted, columnsMoved, columnsRemoved, createIndex, dataChanged, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, hasIndex, headerDataChanged, insertColumn, insertRow, layoutAboutToBeChanged, layoutChanged, modelAboutToBeReset, modelReset, persistentIndexList, removeColumn, removeRow, resetInternalData, roleNames, rowsAboutToBeInserted, rowsAboutToBeMoved, rowsAboutToBeRemoved, rowsInserted, rowsMoved, rowsRemoved, sibling, supportedDragActions

Inherited from PyQt4.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connect, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, emit, event, eventFilter, findChild, findChildren, inherits, installEventFilter, isWidgetType, killTimer, metaObject, moveToThread, objectName, 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]
  residuesSelected = QtCore.pyqtSignal(list)

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent=None)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

data(self, index, role)

 
Overrides: PyQt4.QtCore.QAbstractItemModel.data

setTextSize(self, size)

 

Set the text size to the specified size

Parameters:
  • size (int) - The new point size for the text

updateTextSize(self, change)

 

Increment the text size one point smaller or larger

Note that requests to reduce the text size below MIN_TEXT_SIZE or increase it above MAX_TEXT_SIZE will have no effect.

Parameters:

updateColorScheme(self, row_type, scheme_type)

 

Used to set the color scheme of a specific row type.

Decorators:
  • @table_helper.model_reset_method

getColorScheme(self)

 
Returns: dict
The color scheme currently in use