Package schrodinger :: Package application :: Package jaguar :: Package gui :: Package tabs :: Package sub_tab_widgets :: Module basis_set_widgets :: Class AtomBasisSetDelegate
[hide private]
[frames] | no frames]

Class AtomBasisSetDelegate

PyQt4.QtGui.QStyledItemDelegate --+    
                                  |    
 ui.qt.pop_up_widgets.PopUpDelegate --+
                                      |
 ui.qt.utils.DefaultMessageDelegate --+
                                      |
                                     AtomBasisSetDelegate

A delegate for selecting per-atom basis sets

Instance Methods [hide private]
 
__init__(self, parent)
 
_createEditor(self, parent, option, index)
Create and return the LineEditWithPopUp editor.

Inherited from ui.qt.pop_up_widgets.PopUpDelegate: createEditor, eventFilter, popUpClosed, setEditorData, setModelData

Instance Variables [hide private]

Inherited from ui.qt.pop_up_widgets.PopUpDelegate: commitDataToSelected

Method Details [hide private]

__init__(self, parent)
(Constructor)

 
Parameters:
  • parent - The Qt parent widget
  • pop_up_class - The class of the pop up widget. Should be a subclass of PopUp.
  • enable_accept_multi - Whether committing data to all selected cells at once is enabled. If True, commitDataToSelected will be emitted when the LineEditWithPopUp emits popUpClosing with ACCEPT_MULTI. If False, commitData will be emitted instead.
Overrides: ui.qt.pop_up_widgets.PopUpDelegate.__init__
(inherited documentation)

_createEditor(self, parent, option, index)

 

Create and return the LineEditWithPopUp editor. If a subclass needs to modify editor instantiation, this function should be reimplemented instead of createEditor to ensure that the popUpClosing signal is connected properly.

See Qt createEditor documentation for an explanation of the arguments and return value.

Overrides: ui.qt.pop_up_widgets.PopUpDelegate._createEditor
(inherited documentation)