Package schrodinger :: Package application :: Package jaguar :: Package gui :: Package tabs :: Package sub_tab_widgets :: Module base_widgets :: Class SubTabProxyModel
[hide private]
[frames] | no frames]

Class SubTabProxyModel

         object --+                            
                  |                            
  sip.simplewrapper --+                        
                      |                        
            sip.wrapper --+                    
                          |                    
       PyQt4.QtCore.QObject --+                
                              |                
PyQt4.QtCore.QAbstractItemModel --+            
                                  |            
    PyQt4.QtGui.QAbstractProxyModel --+        
                                      |        
      PyQt4.QtGui.QSortFilterProxyModel --+    
                                          |    
            Qt.QtCore.QSortFilterProxyModel --+
                                              |
                                             SubTabProxyModel
Known Subclasses:

A proxy model that filters out rows related to entry ids that are no longer selected in the project table.

Instance Methods [hide private]
 
__init__(self, parent=None)
x.__init__(...) initializes x; see help(type(x)) for signature
 
setSourceModel(self, model)
When setting the source model, adopt its COLUMN constants if we don't have one defined.
 
setDisplayedEids(self, eids)
Set the entry ids to display in the table.
bool
isAcceptableEid(self, eid)
Is the specified entry ID currently included in the Input tab table? i.e., Would this entry ID be acceptable to display in the sub-tab table?
 
filterAcceptsRow(self, source_row, source_parent=None)
Accept a row only if the entry id is in self._displayed_eids or if the entry id is blank
 
lessThan(self, left, right)
Compare two indices for sorting.

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

Inherited from PyQt4.QtGui.QSortFilterProxyModel: buddy, canFetchMore, clear, columnCount, data, dropMimeData, dynamicSortFilter, fetchMore, filterAcceptsColumn, filterCaseSensitivity, filterChanged, filterKeyColumn, filterRegExp, filterRole, flags, hasChildren, headerData, index, insertColumns, insertRows, invalidate, invalidateFilter, isSortLocaleAware, mapFromSource, mapSelectionFromSource, mapSelectionToSource, mapToSource, match, mimeData, mimeTypes, parent, removeColumns, removeRows, rowCount, setData, 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, 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]
type COLUMN = None
A class containing column constants for the table.

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)

setSourceModel(self, model)

 

When setting the source model, adopt its COLUMN constants if we don't have one defined.

See Qt documentation for explanation of arguments.

Overrides: PyQt4.QtGui.QAbstractProxyModel.setSourceModel

setDisplayedEids(self, eids)

 

Set the entry ids to display in the table. This should correspond to the entry ids currently selected in the project table.

Parameters:
  • eids (list) - The entry ids to display

isAcceptableEid(self, eid)

 

Is the specified entry ID currently included in the Input tab table? i.e., Would this entry ID be acceptable to display in the sub-tab table?

Parameters:
  • eid (str) - The entry id
Returns: bool
True if the entry ID is acceptable. False otherwise.

filterAcceptsRow(self, source_row, source_parent=None)

 

Accept a row only if the entry id is in self._displayed_eids or if the entry id is blank

See Qt documentation for an explanation of the arguments and return value

Overrides: PyQt4.QtGui.QSortFilterProxyModel.filterAcceptsRow

lessThan(self, left, right)

 

Compare two indices for sorting. Assume that the ATOM column contains atom names. Assume that the ATOMS column contains either

  • a string of atom names separated by commas and white space
  • a list or tuple of atom names

Atom names are then sorted numerically. All other columns are sorted using Python's less than operator (which allows tuples to be sorted as expected).

See Qt documentation for an explanation of arguments and return value

Overrides: PyQt4.QtGui.QSortFilterProxyModel.lessThan