Trees | Indices | Help |
|
---|
|
PyQt4.QtCore.QAbstractTableModel --+ | SubTabModel
A table model for storing sub-tab data. This class is not intended to be instantiated directly and should be subclassed. Subclasses must redefine COLUMN, UNEDITABLE, ROW_CLASS, MARKER_SETTINGS, and _displayAndSortData. Subclasses may also need to redefine addMarkerForRow and removeMarkerForRow if more than one marker per row is required.
|
|||
type |
ROW_CLASS The SubTabRow subclass that represents a row of data |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
int |
|
||
|
|||
|
|||
|
|||
list |
|
||
|
|||
|
|||
|
|||
object |
|
||
object |
|
||
object |
|
||
object |
|
||
object |
|
||
|
|||
object |
|
||
|
|
|||
type |
COLUMN = None A class containing column constants for the table. |
||
iterable |
UNEDITABLE = () A list of all column numbers that should be flagged as uneditable |
||
dict |
MARKER_SETTINGS = {} The settings for the workspace markers. |
||
PyQt4.QtGui.QBrush
|
ERROR_BACKGROUND_BRUSH = QtGui.QBrush(Qt.red) The brush used to paint the background of cells where the user has entered invalid data. |
|
|||
PyQt4.QtCore.pyqtSignal
|
addMarker = QtCore.pyqtSignal(list, dict) A signal emitted when a workspace marker should be added. |
||
PyQt4.QtCore.pyqtSignal
|
removeMarker = QtCore.pyqtSignal(list) A signal emitted when a workspace marker should be removed. |
|
Update the entry titles in case they have changed in the project table
|
Add a row to the table. All arguments are passed to ROW_CLASS initialization.
|
Add a workspace marker for the given row. Subclasses must override this class if they require more than one workspace marker per row. Note that any given set of atom(s) may only have one marker per sub-tab. The sub-tab is responsible for ensuring that a marker is not added to a set of atom(s) that already has a marker.
|
Remove the workspace marker for the given row. Subclasses must override this class if they create more than one workspace marker per row.
|
Get all rows that refer to the specified entry ID
|
Flag columns in UNEDITABLE as uneditable. See Qt documentation for an explanation of arguments and return value |
Retrieve data for the display and sort roles
|
Retrieve data for the background role
|
Retrieve data for the tool tip role
|
Retrieve data for custom roles that are defined for all sub tabs. Note that sub-classes should redefine _otherDataSubTab rather than this method.
|
Retrieve data for custom roles that are defined for the current sub-tab. Note that sub-classes should redefine this method rather than _otherDataSubTab.
|
Set data for the specified index and role. Whenever possible, sub- classes should redefine _setData rather than this method. See Qt documentation for an explanation of arguments and return value. |
Set data for the specified index and role. Note that sub-classes should redefine this method rather than setData whenever possible.
|
Clear all data related to the specified entry ID
|
|
COLUMNA class containing column constants for the table. This class must contain:
and should contain additional integer constants for all other columns.
|
MARKER_SETTINGSThe settings for the workspace markers. This dictionary will be passed to schrodinger.maestro.markers._BaseMarker. applySettings
|
|
addMarkerA signal emitted when a workspace marker should be added. Emitted with:
|
removeMarkerA signal emitted when a workspace marker should be removed. Emitted with:
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:37 2015 | http://epydoc.sourceforge.net |