Package schrodinger :: Package application :: Package jaguar :: Package gui :: Package tabs :: Module optimization_tab :: Class ConstraintCoordinatesDelegate
[hide private]
[frames] | no frames]

Class ConstraintCoordinatesDelegate

               object --+                    
                        |                    
        sip.simplewrapper --+                
                            |                
                  sip.wrapper --+            
                                |            
             PyQt5.QtCore.QObject --+        
                                    |        
PyQt5.QtWidgets.QAbstractItemDelegate --+    
                                        |    
            PyQt5.QtWidgets.QItemDelegate --+
                                            |
                                           ConstraintCoordinatesDelegate

This delegate is used to validate values entered in 'target value' column.

Nested Classes [hide private]

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EndEditHint

Instance Methods [hide private]
QtWidgets.QLineEdit
createEditor(self, parent, option, index)
This function returns an editor widget (QLineEdit) for 'target value' column.
 
setEditorData(self, editor, index)
This function read data from model, converts it to text and sets it in the editor widget.
 
setModelData(self, editor, model, index)
This function reads text from QLineEdit and writes it to the model

Inherited from PyQt5.QtWidgets.QItemDelegate: drawBackground, drawCheck, drawDecoration, drawDisplay, drawFocus, editorEvent, eventFilter, hasClipping, itemEditorFactory, paint, setClipping, setItemEditorFactory, sizeHint, updateEditorGeometry

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: closeEditor, commitData, destroyEditor, helpEvent, sizeHintChanged

Inherited from PyQt5.QtCore.QObject: __getattr__, blockSignals, childEvent, children, connectNotify, customEvent, deleteLater, destroyed, disconnect, disconnectNotify, dumpObjectInfo, dumpObjectTree, dynamicPropertyNames, event, findChild, findChildren, inherits, installEventFilter, isSignalConnected, isWidgetType, isWindowType, killTimer, metaObject, moveToThread, objectName, objectNameChanged, parent, property, pyqtConfigure, receivers, removeEventFilter, sender, senderSignalIndex, setObjectName, setParent, setProperty, signalsBlocked, startTimer, thread, timerEvent, tr

Inherited from sip.simplewrapper: __init__, __new__

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  COLUMN = ConstraintCoordinateColumns()

Inherited from PyQt5.QtWidgets.QAbstractItemDelegate: EditNextItem, EditPreviousItem, NoHint, RevertModelCache, SubmitModelCache

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

createEditor(self, parent, option, index)

 

This function returns an editor widget (QLineEdit) for 'target value' column.

Parameters:
  • parent (QtWidgets.QWidget) - parent widget
  • option (QtWidgets.QStyleOptionViewItem) - not used, but kept for compatibility
  • index (QtCore.QModelIndex) - model index
Returns: QtWidgets.QLineEdit
QLineEdit editor widget
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.createEditor

setEditorData(self, editor, index)

 

This function read data from model, converts it to text and sets it in the editor widget.

Parameters:
  • editor (QtWidgets.QLineEdit) - editor widget
  • index (QtCore.QModelIndex) - model index
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.setEditorData

setModelData(self, editor, model, index)

 

This function reads text from QLineEdit and writes it to the model

Parameters:
  • editor (QtWidgets.QLineEdit) - editor widget
  • model (QtCore.QAbstractItemModel) - data model
  • index (QtCore.QModelIndex) - model index
Overrides: PyQt5.QtWidgets.QAbstractItemDelegate.setModelData