Trees | Indices | Help |
|
---|
|
PyQt4.QtGui.QTableView --+ | utils.ProjTableLikeView --+ | SubTabTableView
A table view with a right click menu for removing selected rows. This class may be subclassed to configure delegates.
|
|||
|
|||
|
|||
|
|||
dict |
|
||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
type |
COLUMN = None A class containing column constants for the table. |
||
dict |
SAMPLE_DATA = {} A dictionary of {column number: sample cell contents}. |
||
dict |
_DEFAULT_SAMPLE_DATA = {"ID": "999", "TITLE": "This is a very A dictionary of {column name (attribute in the COLUMN class variable): sample cell contents}. |
||
int |
MARGIN = 20 The additional width to add to each column included in the sample data |
||
setMarkerHighlighting = QtCore.pyqtSignal(list, bool)
|
|
|
Combine _DEFAULT_SAMPLE_DATA and SAMPLE_DATA
|
After setting the model, resize the columns using the sample data and the header data provided by the model See Qt documentation for an explanation of arguments |
Provide a size hint for the specified column using the sample data.
Note that this method does not take header width into account as the
header width is already accounted for in See Qt documentation for an explanation of arguments and return value |
When the table selection changes, emit the appropriate signals to update marker highlighting.
|
Emit setMarkerHighlighting for all rows in the given table selection
|
Emit the setMarkerHighlighting signal to change the workspace marker highlighting for the specified atoms. Subclasses should override this function instead of _emitForSelection whenever possible.
|
|
SAMPLE_DATAA dictionary of {column number: sample cell contents}. The sample cell contents are used to set column widths appropriately. Note that sample data for columns COLUMN.ID, COLUMN.TITLE, COLUMN.ATOM, and/or COLUMN.ATOMS will be added automatically if not explicitly included. Any other columns that are not included here will be set to their default width.
|
_DEFAULT_SAMPLE_DATAA dictionary of {column name (attribute in the COLUMN class variable): sample cell contents}. The sample cell contents are used to set column widths appropriately. If no column of the specified name is found, the sample data will be ignored. Data found in SAMPLE_DATA takes precedence over data found in _DEFAULT_SAMPLE_DATA. Subclasses should alter SAMPLE_DATA rather than _DEFAULT_SAMPLE_DATA whenever possible (due to increased ease of debugging typos).
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Aug 6 04:50:37 2015 | http://epydoc.sourceforge.net |