spinetoolbox.spine_db_editor.widgets.pivot_table_header_view
Contains custom QHeaderView for the pivot table.
Module Contents
Classes
Header view for the pivot table. |
|
Header view for the pivot table in parameter value and index expansion mode. |
|
Header view for the pivot table in parameter value and index expansion mode. |
- class spinetoolbox.spine_db_editor.widgets.pivot_table_header_view.PivotTableHeaderView(orientation, area, pivot_table_view)[source]
Bases:
PySide6.QtWidgets.QHeaderView
Header view for the pivot table.
- Parameters
orientation (Qt.Orientation) – Qt.Orientation.Horizontal or Qt.Orientation.Vertical
area (str) – which pivot area the header represents: “columns”, “rows” or “frozen”
pivot_table_view (PivotTableView) – parent view
- class spinetoolbox.spine_db_editor.widgets.pivot_table_header_view.ParameterValuePivotHeaderView(orientation, area, pivot_table_view)[source]
Bases:
PivotTableHeaderView
Header view for the pivot table in parameter value and index expansion mode.
- Parameters
orientation (Qt.Orientation) – Qt.Orientation.Horizontal or Qt.Orientation.Vertical
area (str) – which pivot area the header represents: “columns”, “rows” or “frozen”
pivot_table_view (PivotTableView) – parent view
- _column_selection()[source]
Lists current column’s indexes that contain some data.
- Returns
column indexes
- Return type
list of QModelIndex
- class spinetoolbox.spine_db_editor.widgets.pivot_table_header_view.ScenarioAlternativePivotHeaderView(orientation, area, pivot_table_view)[source]
Bases:
PivotTableHeaderView
Header view for the pivot table in parameter value and index expansion mode.
- Parameters
orientation (Qt.Orientation) – Qt.Orientation.Horizontal or Qt.Orientation.Vertical
area (str) – which pivot area the header represents: “columns”, “rows” or “frozen”
pivot_table_view (PivotTableView) – parent view
Requests a header context menu be shown at given global position.