Isis 3 Programmer Reference
MeasureTableModel.h
1 #ifndef MeasureTableModel_H
2 #define MeasureTableModel_H
3 
4 
5 #include "AbstractTableModel.h"
6 
7 
8 class QStringList;
9 template< class T > class QList;
10 
11 
12 namespace Isis {
13  class AbstractTreeItem;
14  class AbstractTreeModel;
15  class TableColumn;
16  class TableColumnList;
17 
36  Q_OBJECT
37 
38  public:
39  explicit MeasureTableModel(AbstractTreeModel *model);
40  virtual ~MeasureTableModel();
41 
42  virtual QList< AbstractTreeItem * > getItems(int, int);
45  virtual int getVisibleRowCount() const;
46  virtual QList< AbstractTreeItem * > getSelectedItems();
47  virtual QString getWarningMessage(AbstractTreeItem const *,
48  TableColumn const *, QString valueToSave) const;
49  virtual void setGlobalSelection(bool selected);
50  virtual int indexOfVisibleItem(AbstractTreeItem const *item) const;
51 
52  static QString getMeasureWarningMessage(AbstractTreeItem const *,
53  TableColumn const *, QString valueToSave);
54 
55 
56  public slots:
57  void handleTreeSelectionChanged(QList< AbstractTreeItem * >);
58 
59 
60  protected:
61  virtual TableColumnList *createColumns();
62 
63 
64  private slots:
65  void calculateFilterCounts();
66 
67 
68  private:
70  MeasureTableModel &operator=(MeasureTableModel const &);
71  };
72 }
73 
74 #endif
Base class for tree models.
Translates the tree model into a table model.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
Table model for control measures.
Base class for an item in the tree.