Trees | Indices | Help |
|
---|
|
object --+ | sip.simplewrapper --+ | sip.wrapper --+ | PyQt4.QtCore.QObject --+ | PyQt4.QtCore.QAbstractItemModel --+ | PyQt4.QtCore.QAbstractTableModel --+ | Qt.QtCore.QAbstractTableModel --+ | InputEntriesModel
The data model for the input entries table
|
|||
COLUMN Column constants for the selected entries table |
|||
ROW_CLASS A class for accessing data about a project table row and the associated structure |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
str or NoneType |
|
||
str |
|
||
str |
|
||
str |
|
||
|
|||
Basis |
|
||
Basis or str |
|
||
dict or NoneType |
|
||
bool |
|
||
|
|||
|
|||
bool |
|
||
list |
|
||
|
|||
list |
|
||
|
|||
str or NoneType |
|
||
bool |
|
||
|
|||
|
|||
Basis or str |
|
||
|
|||
UseFrom |
|
||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
|
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Connect this model to the per-atom basis set model from the Basis Set sub-tab.
|
Respond to the user changing a per-atom basis set for the specified entry ID. A per-atom basis set change could change the validity of the current basis set for the structure, so we emit dataChanged. This triggers the view to re-color the background of the cell.
|
If the workspace changed, update data in case the user changed the charge of a molecule.
Note: This function is called before the workspace changes have propagated to the project table. As such, we use a QTimer to wait until after the changes have propagated before updating. |
Update self.cur_table_rows so it reflects the currently selected or included project rows and inform the view of the changes.
Note: At the end of this function, self.cur_table_rows will be equal to [self.all_rows[row.entry_id] for row in proj.selected_rows] (or proj.included_rows). This function updates self.cur_table_rows such that the view is aware of which individual rows are being added and deleted by using beginInsertRow()/endInsertRow() and beginRemoveRow()/endRemoveRow(). This allows the view to properly update its current selection, current selected index, etc. If this function were implemented using beginResetModel()/endResetModel(), the table view would lose its selection and scroll back to the upper-left corner every time the user included/selected a new structure. |
Update the data in self.all_rows for all selected rows and inform the view of the changes.
|
|
|
|
Copy the charge, spin and basis set information from the given model to this model.
|
Return data for the display or sort role
|
Return data for the font or foreground role
|
Return data for the tool tip role
|
Return data for the basis column tool tip
|
Return the basis column tool tip for a structure without per-atom basis sets
|
Return the basis column tool tip for a structure with per-atom basis sets
|
Return data for the background or custom roles
|
Get the basis for the specified row |
Get the basis set for the specified row. If there are per-atom basis
sets for the specified row, return |
Get the per-atom basis for the specified row
|
Does the specified row have a valid basis set?
|
|
|
Set data for the specified index. The spin multiplicity tool tip will be shown if an invalid spin multiplicity is set, or if a charge is set that renders the spin multiplicity invalid. (The tool tip explains that the default spin multiplicity is being used because the user-specifed value is invalid.)
|
Make sure that all structure have a valid basis set selected
|
Set the default basis set
|
Get a list of all structures loaded into the table (i.e. all structures selected in the project table) and the associated settings.
|
Reset all charge, spin multiplicity, and basis settings
|
If all structures use the same basis set, return the basis set name. Otherwise, return None.
Note: The basis set returned here is not guaranteed to be the default basis set. The user may have specified identical per-structure basis sets for all structures. |
Determine if the user has specified any molecular charges
|
Get the basis set for the specified entry id. If there are per-atom
basis sets specified for the structure, the
|
Specify the row source, i.e., included entries or selected entries
|
Return the row source, i.e., included entries or selected entries
|
Return True if the tab is set to use selected entries. False if the tab is set to use included entries. |
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 00:59:45 2016 | http://epydoc.sourceforge.net |