Package schrodinger :: Package ui :: Module ligfilter :: Class PatternModel
[hide private]
[frames] | no frames]

Class PatternModel

PyQt4.QtCore.QAbstractTableModel --+
                                   |
                                  PatternModel

Class for strring patterns (definitions) and their groups

Instance Methods [hide private]
 
__init__(self)
 
rowCount(self, parent=QtCore.QModelIndex())
Returns number of rows
 
columnCount(self, parent=QtCore.QModelIndex())
Returns number of columns
 
setItems(self, data_list)
Sets the internal data list to the specified list.
 
getRowText(self, row)
 
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).
 
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.
Method Details [hide private]

setItems(self, data_list)

 

Sets the internal data list to the specified list. NOTE: Will use the actual list passed to it (without making a copy)

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.

flags(self, index)

 

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