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

Class AtomGroupModel

PyQt4.QtCore.QAbstractTableModel --+
                                   |
                                  AtomGroupModel

Class for storing the window table information.

Instance Methods [hide private]
 
__init__(self)
 
setRows(self, rows)
 
clear(self)
 
addOneRow(self, row)
 
removeOneRow(self, rownum)
 
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.