Package schrodinger :: Package application :: Package desmond :: Module gui :: Class TableModel
[hide private]
[frames] | no frames]

Class TableModel

PyQt4.QtCore.QAbstractTableModel --+
                                   |
                                  TableModel

Class for storing the window table information.

Instance Methods [hide private]
 
__init__(self, row_header)
 
update(self)
 
setColumns(self, columns)
 
clear(self)
 
rowCount(self, parent=QtCore.QModelIndex())
Returns number of rows
 
columnCount(self, parent=QtCore.QModelIndex())
Returns number of columns
 
flags(self, index)
Returns flags for the specified cell.
 
data(self, index, role=Qt.DisplayRole)
Given a cell index, returns the data that should be displayed in that cell (text or check button state).
 
setData(self, index, value, role=Qt.EditRole)
Called by the view to modify the model when the user changes the data in the table.
 
headerData(self, section, orientation, role)
Returns the string that should be displayed in the specified header cell.
Method Details [hide private]

flags(self, index)

 

Returns flags for the specified cell. Whether it is a checkbutton or not.

data(self, index, role=Qt.DisplayRole)

 

Given a cell index, returns the data that should be displayed in that cell (text or check button state). Used by the view.

headerData(self, section, orientation, role)

 

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