Isis 3 Developer Reference
TableView.h
Go to the documentation of this file.
1 #ifndef TableView_H
2 #define TableView_H
3 
4 #include <QWidget>
5 
6 #include "AbstractTableModel.h"
7 
8 class QLabel;
9 template<typename T> class QList;
10 class QString;
11 
12 namespace Isis {
13  class AbstractTableModel;
14  class AbstractTreeItem;
15  class ControlPoint;
16  class TableViewContent;
17  class TableViewHeader;
18  class TableColumnList;
19 
35  class TableView : public QWidget {
36  Q_OBJECT
37 
38  public:
39  TableView(AbstractTableModel *someModel,
40  QString pathForSettigs, QString objName);
41  virtual ~TableView();
42  // QSize sizeHint() const;
43  QFont getContentFont() const;
45 
46  QStringList getTitles() const;
47  void setTitles(QStringList someTitle);
48 
49  void setColumnVisible(QString, bool);
50 
52  // void setModel(AbstractTableModel * newModel);
53  void readSettings();
54  void writeSettings();
56 
57 
58  public slots:
62 
63 
64  signals:
65  void activated();
67  void selectionChanged();
68  void modelDataChanged();
70  void filterCountsChanged(int visibleRows, int totalRows);
71 
72  void editControlPoint(ControlPoint *, QString);
73 
74  private:
75  // disable copying and assigning of this class
76  TableView(const TableView &);
77  TableView &operator=(const TableView &other);
78 
79  // methods
80  void nullify();
81 
82  // data
83  TableViewHeader *m_header;
84  TableViewContent *m_content;
85  TableColumnList *m_columns;
86  AbstractTableModel *m_model;
87  QString *m_settingsPath;
88  QLabel *m_warningLabel;
89  };
90 }
91 
92 #endif
void setTitles(QStringList someTitle)
TableViewContent * content()
Returns the content of the table.
Definition: TableView.cpp:191
void tableSelectionChanged(QList< AbstractTreeItem * >)
void writeSettings()
void editControlPoint(ControlPoint *, QString)
Definition: TableViewHeader.h:26
AbstractTableModel * getModel()
Returns the model.
Definition: TableView.cpp:181
void rebuildModels(QList< AbstractTreeItem * >)
TableViewHeader * getHorizontalHeader()
Returns the horizontal header.
Definition: TableView.cpp:156
Definition: TableViewContent.h:52
void modelDataChanged()
Translates the tree model into a table model.
Definition: AbstractTableModel.h:40
QFont getContentFont() const
Warning
Definition: AbstractTableModel.h:46
Definition: TableColumnList.h:22
A single control point.
Definition: ControlPoint.h:369
Definition: TableView.h:35
void setColumnVisible(QString, bool)
Sets the specified column visible or invisible.
Definition: TableView.cpp:167
void selectionChanged()
virtual ~TableView()
Destructor.
Definition: TableView.cpp:119
Definition: BoxcarCachingAlgorithm.h:29
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
void handleModelSelectionChanged()
Handles refreshing the content when the model selection is changed.
Definition: TableView.cpp:275
TableView(AbstractTableModel *someModel, QString pathForSettigs, QString objName)
Constructor.
Definition: TableView.cpp:28
void filterCountsChanged(int visibleRows, int totalRows)
QStringList getTitles() const
void displayWarning(AbstractTableModel::Warning)
Displays warnings for a table.
Definition: TableView.cpp:249