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 
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;
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:
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
Isis::AbstractTableModel::getDataModel
AbstractTreeModel * getDataModel()
Definition: AbstractTableModel.cpp:207
Isis::AbstractMeasureItem::createColumns
static TableColumnList * createColumns()
Definition: AbstractMeasureItem.cpp:97
TableColumn.h
Isis::AbstractMeasureItem::getColumnName
static QString getColumnName(Column)
Definition: AbstractMeasureItem.cpp:29
Isis::AbstractMeasureItem::EditLock
@ EditLock
Definition: AbstractMeasureItem.h:46
Isis::AbstractMeasureItem::Column
Column
Definition: AbstractMeasureItem.h:41
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::AbstractTreeModel::getItemCount
int getItemCount(InterestingItemsFlag) const
Definition: AbstractTreeModel.cpp:261
Isis::AbstractTreeModel::setGlobalSelection
void setGlobalSelection(bool selected, InterestingItemsFlag=AllItems)
Definition: AbstractTreeModel.cpp:483
Isis::MeasureTableDelegate
Delegate for creating, reading, and saving data in the measure table.
Definition: MeasureTableDelegate.h:33
Isis::MeasureTableModel::createColumns
virtual TableColumnList * createColumns()
Definition: MeasureTableModel.cpp:137
Isis::AbstractTreeModel
Base class for tree models.
Definition: AbstractTreeModel.h:47
SpecialPixel.h
Isis::AbstractTableModel::handleTreeSelectionChanged
void handleTreeSelectionChanged(QList< AbstractTreeItem * > newlySelectedItems, AbstractTreeItem::InternalPointerType)
Definition: AbstractTableModel.cpp:303
Isis::AbstractTreeItem::Measure
@ Measure
Definition: AbstractTreeItem.h:47
Isis::MeasureTableModel::getVisibleRowCount
virtual int getVisibleRowCount() const
Definition: MeasureTableModel.cpp:66
Isis::AbstractTableModel::getSortedItems
virtual QList< AbstractTreeItem * > getSortedItems(int, int, AbstractTreeModel::InterestingItems)
Definition: AbstractTableModel.cpp:219
Isis::MeasureTableModel::~MeasureTableModel
virtual ~MeasureTableModel()
Definition: MeasureTableModel.cpp:50
AbstractTableModel.h
Isis::MeasureTableModel::indexOfVisibleItem
virtual int indexOfVisibleItem(AbstractTreeItem const *item) const
Definition: MeasureTableModel.cpp:100
Longitude.h
Isis::AbstractTableModel::treeSelectionChanged
void treeSelectionChanged(QList< AbstractTreeItem * >)
AbstractTableDelegate.h
Isis::TableColumn
Definition: TableColumn.h:26
Isis::AbstractTableModel
Translates the tree model into a table model.
Definition: AbstractTableModel.h:48
QStringList
IString.h
Isis::MeasureTableModel::getSelectedItems
virtual QList< AbstractTreeItem * > getSelectedItems()
Definition: MeasureTableModel.cpp:72
Latitude.h
Isis::TableColumnList
Definition: TableColumnList.h:30
Isis::AbstractTreeModel::getSelectedItems
QList< AbstractTreeItem * > getSelectedItems(InterestingItemsFlag=AllItems, bool=false)
Definition: AbstractTreeModel.cpp:232
Isis::MeasureTableModel::handleTreeSelectionChanged
void handleTreeSelectionChanged(QList< AbstractTreeItem * >)
Definition: MeasureTableModel.cpp:130
Isis::MeasureTableModel::setGlobalSelection
virtual void setGlobalSelection(bool selected)
Definition: MeasureTableModel.cpp:84
Isis::TableColumn::getTitle
QString getTitle() const
Definition: TableColumn.cpp:49
Isis::AbstractMeasureItem::PointId
@ PointId
Definition: AbstractMeasureItem.h:42
Isis::AbstractTreeItem::getFormattedData
virtual QString getFormattedData() const
Definition: AbstractTreeItem.cpp:66
Isis::AbstractTreeModel::MeasureItems
@ MeasureItems
Definition: AbstractTreeModel.h:53
Isis::MeasureTableModel::getWarningMessage
virtual QString getWarningMessage(AbstractTreeItem const *, TableColumn const *, QString valueToSave) const
Definition: MeasureTableModel.cpp:78
IException.h
Isis::MeasureTableModel::getMeasureWarningMessage
static QString getMeasureWarningMessage(AbstractTreeItem const *, TableColumn const *, QString valueToSave)
Definition: MeasureTableModel.cpp:107
Isis::AbstractTableModel::filterCountsChanged
void filterCountsChanged(int visibleRows, int totalRows)
MeasureTableDelegate.h
AbstractTreeModel.h
Isis::AbstractMeasureItem::getColumn
static Column getColumn(QString)
Definition: AbstractMeasureItem.cpp:84
Isis::MeasureTableModel::MeasureTableModel
MeasureTableModel(AbstractTreeModel *model)
Definition: MeasureTableModel.cpp:39
Distance.h
Isis::MeasureTableModel::getItems
virtual QList< AbstractTreeItem * > getItems(int, int)
Definition: MeasureTableModel.cpp:54
IsisDebug.h
Isis::MeasureTableModel
Table model for control measures.
Definition: MeasureTableModel.h:42
TableColumnList.h
MeasureTableModel.h
Isis::AbstractTreeItem
Base class for an item in the tree.
Definition: AbstractTreeItem.h:39
Isis::AbstractTreeModel::indexOfVisibleItem
int indexOfVisibleItem(AbstractTreeItem const *item, InterestingItemsFlag=AllItems, bool=false) const
Definition: AbstractTreeModel.cpp:308
Isis::AbstractTreeModel::getVisibleItemCount
int getVisibleItemCount(InterestingItemsFlag, bool) const
Definition: AbstractTreeModel.cpp:270
ControlMeasure.h
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16
AbstractMeasureItem.h