Package schrodinger :: Package application :: Package bioluminate :: Package antibody :: Module search_results_table :: Class SplitProxyModel
[hide private]
[frames] | no frames]

Class SplitProxyModel

         object --+                            
                  |                            
  sip.simplewrapper --+                        
                      |                        
            sip.wrapper --+                    
                          |                    
       PyQt4.QtCore.QObject --+                
                              |                
PyQt4.QtCore.QAbstractItemModel --+            
                                  |            
    PyQt4.QtGui.QAbstractProxyModel --+        
                                      |        
      PyQt4.QtGui.QSortFilterProxyModel --+    
                                          |    
                             FullProxyModel --+
                                              |
                                             SplitProxyModel

A proxy for the split search results (i.e. for a table that shows either the heavy templates or the light templates).

Instance Methods [hide private]
 
__init__(self, parent, is_heavy)
Initialize the proxy
PyQt4.QtCore.QModelIndex
mapFromSource(self, source_index)
Determine the proxy model index that corresponds to the specified source model index
PyQt4.QtCore.QModelIndex
mapToSource(self, proxy_index)
Determine the source model index that corresponds to the specified proxy model index
int
columnCount(self, parent=None)
Return the number of columns in the model

Inherited from FullProxyModel: data, lessThan, resetAcceptedRow, setData, setSourceModel

Inherited from PyQt4.QtGui.QSortFilterProxyModel: buddy, canFetchMore, clear, dropMimeData, dynamicSortFilter, fetchMore, filterAcceptsColumn, filterAcceptsRow, filterCaseSensitivity, filterChanged, filterKeyColumn, filterRegExp, filterRole, flags, hasChildren, headerData, index, insertColumns, insertRows, invalidate, invalidateFilter, isSortLocaleAware, mapSelectionFromSource, mapSelectionToSource, match, mimeData, mimeTypes, parent, removeColumns, removeRows, rowCount, setDynamicSortFilter, setFilterCaseSensitivity, setFilterFixedString, setFilterKeyColumn, setFilterRegExp, setFilterRole, setFilterWildcard, setHeaderData, setSortCaseSensitivity, setSortLocaleAware, setSortRole, sort, sortCaseSensitivity, sortColumn, sortOrder, sortRole, span, supportedDropActions

Inherited from PyQt4.QtGui.QAbstractProxyModel: itemData, revert, setItemData, sourceModel, submit

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, reset, resetInternalData, roleNames, rowsAboutToBeInserted, rowsAboutToBeMoved, rowsAboutToBeRemoved, rowsInserted, rowsMoved, rowsRemoved, setRoleNames, setSupportedDragActions, 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]
  COLUMN = SplitColumns()
int DEFAULT_SORT_COLUMN = 1
When new data is loaded into a table using this proxy, it will be initially sorted using this column.
  SECONDARY_SORT_COLUMNS = {1: 5, 2: 1, 3: 5, 4: 3}
When two rows contain identical values for a given sort column, those rows will be sorted using SECONDARY_SORT_COLUMNS[column]

Inherited from FullProxyModel: ACCEPTED_FRAMEWORK_COLOR, DEFAULT_SORT_ORDER

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Instance Variables [hide private]
dict col_from_source
A mapping of {column number in the source model: column number in this proxy model}
dict col_to_source
A mapping of {column number in this proxy model: column number in the source model}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, is_heavy)
(Constructor)

 

Initialize the proxy

Parameters:
  • parent (PyQt4.QtGui.QWidget) - The Qt parent widget
  • is_heavy (bool) - Does this proxy model represent the heavy chain (True) or the light chain (False)?
Overrides: object.__init__

mapFromSource(self, source_index)

 

Determine the proxy model index that corresponds to the specified source model index

Parameters:
  • source_index (PyQt4.QtCore.QModelIndex) - The source model index
Returns: PyQt4.QtCore.QModelIndex
The equivalent proxy model index
Overrides: PyQt4.QtGui.QAbstractProxyModel.mapFromSource

mapToSource(self, proxy_index)

 

Determine the source model index that corresponds to the specified proxy model index

Parameters:
  • proxy_index (PyQt4.QtCore.QModelIndex) - The proxy model index
Returns: PyQt4.QtCore.QModelIndex
The equivalent source model index
Overrides: PyQt4.QtGui.QAbstractProxyModel.mapToSource

columnCount(self, parent=None)

 

Return the number of columns in the model

Parameters:
  • parent - Unused, but present for PyQt compatibility.
Returns: int
The number of columns in the model
Overrides: PyQt4.QtCore.QAbstractItemModel.columnCount