Isis Developer Reference
MeasureTableModel.h
Go to the documentation of this file.
1#ifndef MeasureTableModel_H
2#define MeasureTableModel_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include "AbstractTableModel.h"
13
14
15class QStringList;
16template< class T > class QList;
17
18
19namespace Isis {
20 class AbstractTreeItem;
21 class AbstractTreeModel;
22 class TableColumn;
23 class TableColumnList;
24
43 Q_OBJECT
44
45 public:
46 explicit MeasureTableModel(AbstractTreeModel *model);
47 virtual ~MeasureTableModel();
48
49 virtual QList< AbstractTreeItem * > getItems(int, int);
50 virtual QList< AbstractTreeItem * > getItems(AbstractTreeItem *,
52 virtual int getVisibleRowCount() const;
53 virtual QList< AbstractTreeItem * > getSelectedItems();
54 virtual QString getWarningMessage(AbstractTreeItem const *,
55 TableColumn const *, QString valueToSave) const;
56 virtual void setGlobalSelection(bool selected);
57 virtual int indexOfVisibleItem(AbstractTreeItem const *item) const;
58
59 static QString getMeasureWarningMessage(AbstractTreeItem const *,
60 TableColumn const *, QString valueToSave);
61
62
63 public slots:
64 void handleTreeSelectionChanged(QList< AbstractTreeItem * >);
65
66
67 protected:
69
70
71 private slots:
72 void calculateFilterCounts();
73
74
75 private:
77 MeasureTableModel &operator=(MeasureTableModel const &);
78 };
79}
80
81#endif
Translates the tree model into a table model.
Definition AbstractTableModel.h:48
Base class for an item in the tree.
Definition AbstractTreeItem.h:39
Base class for tree models.
Definition AbstractTreeModel.h:48
Table model for control measures.
Definition MeasureTableModel.h:42
MeasureTableModel(AbstractTreeModel *model)
Definition MeasureTableModel.cpp:37
void handleTreeSelectionChanged(QList< AbstractTreeItem * >)
Definition MeasureTableModel.cpp:128
virtual TableColumnList * createColumns()
Definition MeasureTableModel.cpp:135
virtual ~MeasureTableModel()
Definition MeasureTableModel.cpp:48
virtual QString getWarningMessage(AbstractTreeItem const *, TableColumn const *, QString valueToSave) const
Definition MeasureTableModel.cpp:76
virtual QList< AbstractTreeItem * > getSelectedItems()
Definition MeasureTableModel.cpp:70
virtual void setGlobalSelection(bool selected)
Definition MeasureTableModel.cpp:82
static QString getMeasureWarningMessage(AbstractTreeItem const *, TableColumn const *, QString valueToSave)
Definition MeasureTableModel.cpp:105
virtual QList< AbstractTreeItem * > getItems(int, int)
Definition MeasureTableModel.cpp:52
virtual int indexOfVisibleItem(AbstractTreeItem const *item) const
Definition MeasureTableModel.cpp:98
virtual int getVisibleRowCount() const
Definition MeasureTableModel.cpp:64
Definition TableColumn.h:26
Definition TableColumnList.h:30
This is free and unencumbered software released into the public domain.
Definition BoxcarCachingAlgorithm.h:13
This is free and unencumbered software released into the public domain.
Definition Apollo.h:16