|
ParaView
|
pqSpreadSheetViewWidget is a QTableView subclass that is used by pqSpreadSheetView as the widget showing the data. More...
#include <pqSpreadSheetViewWidget.h>
Public Member Functions | |
| pqSpreadSheetViewWidget (QWidget *parent=0) | |
| virtual | ~pqSpreadSheetViewWidget () |
| virtual void | setModel (QAbstractItemModel *model) |
| Overridden to ensure that the model is a pqSpreadSheetViewModel. | |
| pqSpreadSheetViewModel * | spreadSheetViewModel () const |
| Returns the spread sheetview model for this view. | |
Protected Slots | |
| void | onSectionDoubleClicked (int) |
| called when a header section is double-clicked. | |
| void | onSortIndicatorChanged (int section, Qt::SortOrder order) |
| called when a header section is clicked in order to be sorted. | |
| void | onHeaderDataChanged () |
| called when header data changes. | |
Protected Member Functions | |
| virtual void | paintEvent (QPaintEvent *event) |
| Overridden to tell the pqSpreadSheetViewModel about the active viewport. | |
Protected Attributes | |
| bool | SingleColumnMode |
pqSpreadSheetViewWidget is a QTableView subclass that is used by pqSpreadSheetView as the widget showing the data.
Although it's called a 'Widget' it's not a QTableWidget but a QTableView subclass. It works with a pqSpreadSheetViewModel to show raw data delivered by the vtkSMSpreadSheetRepresentationProxy.
pqSpreadSheetViewWidget uses an internal QItemDelegate subclass to handle determining of the active viewport as well as showing multi-component arrays. Users are advised not to change the item delegate on the view.
Definition at line 49 of file pqSpreadSheetViewWidget.h.
| pqSpreadSheetViewWidget::pqSpreadSheetViewWidget | ( | QWidget * | parent = 0 | ) |
| virtual pqSpreadSheetViewWidget::~pqSpreadSheetViewWidget | ( | ) | [virtual] |
| virtual void pqSpreadSheetViewWidget::setModel | ( | QAbstractItemModel * | model | ) | [virtual] |
Overridden to ensure that the model is a pqSpreadSheetViewModel.
| pqSpreadSheetViewModel* pqSpreadSheetViewWidget::spreadSheetViewModel | ( | ) | const |
Returns the spread sheetview model for this view.
| void pqSpreadSheetViewWidget::onSectionDoubleClicked | ( | int | ) | [protected, slot] |
called when a header section is double-clicked.
It results in that column being stretched over the full view for better viewing.
| void pqSpreadSheetViewWidget::onSortIndicatorChanged | ( | int | section, |
| Qt::SortOrder | order | ||
| ) | [protected, slot] |
called when a header section is clicked in order to be sorted.
It results in that column being sorted if possible.
| void pqSpreadSheetViewWidget::onHeaderDataChanged | ( | ) | [protected, slot] |
called when header data changes.
We ensure that internal columns stay hidden.
| virtual void pqSpreadSheetViewWidget::paintEvent | ( | QPaintEvent * | event | ) | [protected, virtual] |
Overridden to tell the pqSpreadSheetViewModel about the active viewport.
bool pqSpreadSheetViewWidget::SingleColumnMode [protected] |
Definition at line 80 of file pqSpreadSheetViewWidget.h.
1.7.5.1