Isis Developer Reference
PointTableModel.h
Go to the documentation of this file.
1#ifndef PointTableModel_H
2#define PointTableModel_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
49 Q_OBJECT
50
51 public:
52 explicit PointTableModel(AbstractTreeModel *model);
53 virtual ~PointTableModel();
54
55 virtual QList< AbstractTreeItem * > getItems(int, int);
56 virtual QList< AbstractTreeItem * > getItems(AbstractTreeItem *,
58 virtual int getVisibleRowCount() const;
59 virtual QList< AbstractTreeItem * > getSelectedItems();
60 virtual QString getWarningMessage(AbstractTreeItem const *,
61 TableColumn const *, QString valueToSave) const;
62 virtual void setGlobalSelection(bool selected);
63 virtual int indexOfVisibleItem(AbstractTreeItem const *item) const;
64
65 static QString getPointWarningMessage(AbstractTreeItem const *,
66 TableColumn const *, QString valueToSave);
67
68 public slots:
69 void handleTreeSelectionChanged(QList< AbstractTreeItem * >);
70 void resetColumnHeaders();
71
72
73 protected:
75
76
77 private:
80 };
81}
82
83#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 points.
Definition PointTableModel.h:48
virtual int indexOfVisibleItem(AbstractTreeItem const *item) const
Definition PointTableModel.cpp:89
PointTableModel(AbstractTreeModel *model)
Definition PointTableModel.cpp:38
virtual TableColumnList * createColumns()
Definition PointTableModel.cpp:227
virtual QList< AbstractTreeItem * > getItems(int, int)
Definition PointTableModel.cpp:53
virtual void setGlobalSelection(bool selected)
Definition PointTableModel.cpp:83
static QString getPointWarningMessage(AbstractTreeItem const *, TableColumn const *, QString valueToSave)
Definition PointTableModel.cpp:103
virtual ~PointTableModel()
Definition PointTableModel.cpp:49
void resetColumnHeaders()
Definition PointTableModel.cpp:97
virtual QList< AbstractTreeItem * > getSelectedItems()
Definition PointTableModel.cpp:71
virtual int getVisibleRowCount() const
Definition PointTableModel.cpp:65
virtual QString getWarningMessage(AbstractTreeItem const *, TableColumn const *, QString valueToSave) const
Definition PointTableModel.cpp:77
void handleTreeSelectionChanged(QList< AbstractTreeItem * >)
Definition PointTableModel.cpp:208
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