Package schrodinger :: Package application :: Package desmond :: Module fep_gui :: Class ResiduesModel
[hide private]
[frames] | no frames]

Class ResiduesModel

PyQt4.QtCore.QAbstractTableModel --+
                                   |
                                  ResiduesModel

Class for storing the residues table information.

Instance Methods [hide private]
 
__init__(self)
 
addRow(self, item)
 
removeRowNumbers(self, selected_rownums)
 
clear(self)
 
iterateRows(self)
 
getRow(self, rownum)
 
rowCount(self, parent=QtCore.QModelIndex())
Returns number of rows
 
columnCount(self, parent=QtCore.QModelIndex())
Returns number of columns
 
headerData(self, section, orientation, role)
Returns the string that should be displayed in the specified header cell.
 
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.
Method Details [hide private]

headerData(self, section, orientation, role)

 

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

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.