Trees | Indices | Help |
|
---|
|
object --+ | sip.simplewrapper --+ | sip.wrapper --+ | PyQt4.QtCore.QObject --+ | PyQt4.QtGui.QAbstractItemDelegate --+ | PyQt4.QtGui.QStyledItemDelegate --+ | input_tab_widgets.CommitMultipleDelegate --+ | object --+ | | | sip.simplewrapper --+ | | | sip.wrapper --+ | | | PyQt4.QtCore.QObject --+ | | | PyQt4.QtGui.QAbstractItemDelegate --+ | | | PyQt4.QtGui.QStyledItemDelegate --+ | | | ui.qt.delegates.DefaultMessageDelegate --+ | input_tab_widgets_pka.AtomSelectionDelegate --+ | AtomSelectionDelegate
A delegate for selecting atoms for the charge constraint.
Note: We currently don't allow the user to type in atom names. If the user doesn't click on an atom in the workspace, then we have no way to determine which entry the constraint refers to. Invalid atoms names (i.e. those not in the form <element><index>) would also cause issues for the weights pop- up. Additionally, we'd have to add atom name validation to the model in order to color cells with errors and to give a tool tip explaining the problem, as is done for pKa atoms. We'd also have to implement validate() for the sub-tab. It would be possible to solve these issues, but for now we simply require that the user select atoms from the workspace.
|
|||
Inherited from |
|
|||
|
|||
|
|||
|
|||
tuple |
|
||
list |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
|
|||
MAESTRO_STATUS_MESSAGE =
|
|||
TOOL_TIP_INSTRUCTIONS =
|
|||
TOOL_TIP_WRONG_EID = "The atom you selected is not\n" "part of
|
|||
DEFAULT_DATA =
|
|||
Inherited from Inherited from Inherited from |
|
|||
|
|||
|
|||
Inherited from Inherited from |
|
|||
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Make sure that an entry is included in the workspace. If it isn't, include only that structure.
|
Respond to the user clicking an atom in the workspace. If the atom does not belong to this structure, display a warning. Otherwise, enter the Jaguar-ified atom name into the line edit and display a marker on the atom. If atom is already included in the list of charge constraint atoms we remove it from the list.
|
Get the entry id associated with a given model index
|
Get the atom objects for the specified atoms
|
Remove all markers associated with the specified model index
|
Remove all markers associated with the specified editor
|
Mark the specified atoms
|
When the editor closes, erase a row if it does not contain any atom names. Without any atom names, the row is meaningless. By clearing the rows immediately, we avoid the need to later warn the user about them.
|
Create an editor as in the super-class, but mark it as read-only. See the @note in the class documentation for an explanation of why. See Qt documentation for an explanation of arguments and return values
|
If a pKa atom was selected via the user clicking in the workspace, reset the currently marked atom to the table value.
|
Before setting the model data, clear any workspace markers we have created and restore the markers to the model values. This avoids having the model trying to clear a marker that no longer exists, which would raise an exception. See parent class and PyQt documentation for an explanation of arguments.
|
|
MAESTRO_STATUS_MESSAGE
|
TOOL_TIP_INSTRUCTIONS
|
TOOL_TIP_WRONG_EID
|
|
|
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Wed Oct 26 00:59:47 2016 | http://epydoc.sourceforge.net |