Package schrodinger :: Package application :: Package phase :: Module phase_widgets :: Class HypothesisModel
[hide private]
[frames] | no frames]

Class HypothesisModel

                                 object --+        
                                          |        
ui.qt.table_helper.DataMethodDecoratorMixin --+    
                                              |    
                 object --+                   |    
                          |                   |    
          sip.simplewrapper --+               |    
                              |               |    
                    sip.wrapper --+           |    
                                  |           |    
               PyQt5.QtCore.QObject --+       |    
                                      |       |    
        PyQt5.QtCore.QAbstractItemModel --+   |    
                                          |   |    
           PyQt5.QtCore.QAbstractTableModel --+    
                                              |    
          ui.qt.table_helper.RowBasedTableModel --+
                                                  |
                                                 HypothesisModel

Hypotheses Model.

Nested Classes [hide private]
TableColumns Column
A class describing the table's columns.
type ROW_CLASS
A class that represents a single row of the table.

Inherited from PyQt5.QtCore.QAbstractItemModel: LayoutChangeHint

Instance Methods [hide private]
 
_getData(self, col, hypo_row, role)
object
_setData(self, col, hypo_row, value, role, row_num)
Set data for the specified index and role.
 
_comboBoxContents(self, col, data)
Data to show in the combo box menu when editing a cell.
list of hypothesis.PhaseHypothesis
getAllHypotheses(self)
Returns a list of all PhaseHypothesis objects in this model.
 
getAllHypoIDs(self)
Return a list of entry IDs of all hypotheses in the table.

Inherited from ui.qt.table_helper.RowBasedTableModel: __init__, af2SettingsGetValue, af2SettingsSetValue, appendRow, appendRowObject, columnChanged, columnCount, flags, formatFloat, headerData, loadData, removeRows, removeRowsByIndices, removeRowsByRowNumbers, replaceRows, reset, rowChanged, rowCount, setData

Inherited from ui.qt.table_helper.RowBasedTableModel (private): _checkEditableCols, _createTableColumnsObject, _genDataArgs, _getRowFromIndex, _rowObjectData, _textAlignmentData

Inherited from ui.qt.table_helper.DataMethodDecoratorMixin: data

Inherited from ui.qt.table_helper.DataMethodDecoratorMixin (private): _callDataMethod, _collectDataMethods

Inherited from PyQt5.QtCore.QAbstractTableModel: dropMimeData, hasChildren, index, parent, sibling

Inherited from PyQt5.QtCore.QAbstractItemModel: beginInsertColumns, beginInsertRows, beginMoveColumns, beginMoveRows, beginRemoveColumns, beginRemoveRows, beginResetModel, buddy, canDropMimeData, canFetchMore, changePersistentIndex, changePersistentIndexList, columnsAboutToBeInserted, columnsAboutToBeMoved, columnsAboutToBeRemoved, columnsInserted, columnsMoved, columnsRemoved, createIndex, dataChanged, decodeData, encodeData, endInsertColumns, endInsertRows, endMoveColumns, endMoveRows, endRemoveColumns, endRemoveRows, endResetModel, fetchMore, hasIndex, headerDataChanged, insertColumn, insertColumns, insertRow, insertRows, itemData, layoutAboutToBeChanged, layoutChanged, match, mimeData, mimeTypes, modelAboutToBeReset, modelReset, moveColumn, moveColumns, moveRow, moveRows, persistentIndexList, removeColumn, removeColumns, removeRow, resetInternalData, revert, roleNames, rowsAboutToBeInserted, rowsAboutToBeMoved, rowsAboutToBeRemoved, rowsInserted, rowsMoved, rowsRemoved, setHeaderData, setItemData, sort, span, submit, supportedDragActions, supportedDropActions

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

Inherited from sip.simplewrapper: __new__

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

Class Variables [hide private]

Inherited from ui.qt.table_helper.RowBasedTableModel: CHECKABLE_COLS, COLUMN, EDITABLE_COLS, ROW_LIST_OFFSET, SHOW_ROW_NUMBERS, UNEDITABLE_COLS

Inherited from PyQt5.QtCore.QAbstractItemModel: HorizontalSortHint, NoLayoutChangeHint, VerticalSortHint

Inherited from PyQt5.QtCore.QObject: staticMetaObject

Properties [hide private]

Inherited from ui.qt.table_helper.RowBasedTableModel: rows

Inherited from object: __class__

Method Details [hide private]

_getData(self, col, hypo_row, role)

 
Decorators:
  • @table_helper.data_method(Qt.DisplayRole, Qt.CheckStateRole, Qt.EditRole)

_setData(self, col, hypo_row, value, role, row_num)

 

Set data for the specified index and role. This method should be reimplemented in any subclasses that contain editable columns.

Parameters:
  • col - The column to set data for
  • row_data - The ROW_CLASS instance to modify
  • value - The value to set
  • value - object
  • role - The role to set data for
  • row_num - The row number
Returns: object
False if setting failed. All other values are considered successes.
Overrides: ui.qt.table_helper.RowBasedTableModel._setData
(inherited documentation)

_comboBoxContents(self, col, data)

 

Data to show in the combo box menu when editing a cell. See data_method for argument documentation

Decorators:
  • @table_helper.data_method(qt_delegates.ComboBoxDelegate.COMBOBOX_ROLE)

getAllHypotheses(self)

 

Returns a list of all PhaseHypothesis objects in this model.

Returns: list of hypothesis.PhaseHypothesis
All hypotheses