Isis 3 Programmer Reference
MeasureTableModel.h
1 #ifndef MeasureTableModel_H
2 #define MeasureTableModel_H
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include "AbstractTableModel.h"
13 
14 
15 class QStringList;
16 template< class T > class QList;
17 
18 
19 namespace 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);
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:
68  virtual TableColumnList *createColumns();
69 
70 
71  private slots:
72  void calculateFilterCounts();
73 
74 
75  private:
77  MeasureTableModel &operator=(MeasureTableModel const &);
78  };
79 }
80 
81 #endif
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::AbstractTreeModel
Base class for tree models.
Definition: AbstractTreeModel.h:47
Isis::TableColumn
Definition: TableColumn.h:26
Isis::AbstractTableModel
Translates the tree model into a table model.
Definition: AbstractTableModel.h:48
QStringList
Isis::TableColumnList
Definition: TableColumnList.h:30
Isis::MeasureTableModel
Table model for control measures.
Definition: MeasureTableModel.h:42
Isis::AbstractTreeItem
Base class for an item in the tree.
Definition: AbstractTreeItem.h:39
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16