Package schrodinger :: Package ui :: Package qt :: Module appframework :: Class MultiHostTableModel
[hide private]
[frames] | no frames]

Class MultiHostTableModel

         object --+                    
                  |                    
  sip.simplewrapper --+                
                      |                
            sip.wrapper --+            
                          |            
       PyQt4.QtCore.QObject --+        
                              |        
PyQt4.QtCore.QAbstractItemModel --+    
                                  |    
   PyQt4.QtCore.QAbstractTableModel --+
                                      |
                                     MultiHostTableModel

Model for the hosts table.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
 
columnCount(self, parent=<PyQt4.QtCore.QModelIndex object at 0x2b21af017cf8>)
Returns number of columns.
 
data(self, index, role)
Given a cell index, return the string that should be displayed in that cell.
 
flags(self, index)
Returns flags for the specified cell.
 
getRowHost(self, row)
 
getRowUseProcs(self, row)
 
headerData(self, section, orientation, role)
Returns the string that should be displayed in the specified header cell.
 
rowCount(self, parent=<PyQt4.QtCore.QModelIndex object at 0x2b21af017c08>)
Returns number of rows.
 
setData(self, index, value, role)
Called by the Qt view when the user edits the "Use" value.
 
setHosts(self, hosts)
Populate the model based on the specified list of jobcontrol.Host objects.
 
setRowUseProcs(self, row, use)
Update the "Use" value for the given row.

Inherited from PyQt4.QtCore.QAbstractTableModel: dropMimeData, hasChildren, index, parent

Inherited from PyQt4.QtCore.QAbstractItemModel: beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, buddy, canFetchMore, changePersistentIndex, changePersistentIndexList, columnsAboutToBeInserted, columnsAboutToBeMoved, columnsAboutToBeRemoved, columnsInserted, columnsMoved, columnsRemoved, createIndex, dataChanged, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, fetchMore, hasIndex, headerDataChanged, insertColumn, insertColumns, insertRow, insertRows, itemData, layoutAboutToBeChanged, layoutChanged, match, mimeData, mimeTypes, modelAboutToBeReset, modelReset, persistentIndexList, removeColumn, removeColumns, removeRow, removeRows, reset, resetInternalData, revert, roleNames, rowsAboutToBeInserted, rowsAboutToBeMoved, rowsAboutToBeRemoved, rowsInserted, rowsMoved, rowsRemoved, setHeaderData, setItemData, setRoleNames, setSupportedDragActions, sibling, sort, span, submit, supportedDragActions, supportedDropActions

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]
  COL_HEADERS = ['Host name', 'Processors', 'Use']
  NAME_COL = 0
hash(x)
  PROCS_COL = 1
  USE_COL = 2

Inherited from PyQt4.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

 

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

Overrides: object.__init__
(inherited documentation)

columnCount(self, parent=<PyQt4.QtCore.QModelIndex object at 0x2b21af017cf8>)

 

Returns number of columns. Used by Qt view.

Overrides: PyQt4.QtCore.QAbstractItemModel.columnCount

data(self, index, role)

 

Given a cell index, return the string that should be displayed in that cell. Used by the Qt view.

Overrides: PyQt4.QtCore.QAbstractItemModel.data

flags(self, index)

 

Returns flags for the specified cell. Basically reports whether it is a checkbutton or not.

Overrides: PyQt4.QtCore.QAbstractItemModel.flags

headerData(self, section, orientation, role)

 

Returns the string that should be displayed in the specified header cell. Used by Qt view.

Overrides: PyQt4.QtCore.QAbstractItemModel.headerData

rowCount(self, parent=<PyQt4.QtCore.QModelIndex object at 0x2b21af017c08>)

 

Returns number of rows. Used by Qt view.

Overrides: PyQt4.QtCore.QAbstractItemModel.rowCount

setData(self, index, value, role)

 

Called by the Qt view when the user edits the "Use" value.

Overrides: PyQt4.QtCore.QAbstractItemModel.setData