Package schrodinger :: Package application :: Package bioluminate :: Package antibody :: Module management :: Class ActiveDatabaseTable
[hide private]
[frames] | no frames]

Class ActiveDatabaseTable

PyQt4.QtGui.QTableWidget --+
                           |
                          ActiveDatabaseTable

Table that is used to show and carry out actions on all databases loaded by user. The databases and whether they are "active" are all stored in the preferences.

Instance Methods [hide private]
 
__init__(self, parent)
Create a new DatabaseTable instance
 
setRows(self, rows)
Sets the rows of the table.
 
addRow(self, row)
Add a row to the table.
 
deleteRowAction(self)
Removes a row from the table.
 
cannotDeleteAction(self)
Callback that opens a messagebox that lets the user know that they cannot delete the builtin database row.
 
getRowData(self)
Returns a list of the paths and active state for all rows in the table.
Class Variables [hide private]
  HEADERS = ['Path', 'Active', 'Actions']
Method Details [hide private]

setRows(self, rows)

 

Sets the rows of the table. The rows argument should have the same format as the output from get_databases.

addRow(self, row)

 

Add a row to the table. The row argument should be a tuple of the database path and whether it's active.