Isis Developer Reference
TableView.h
Go to the documentation of this file.
1#ifndef TableView_H
2#define TableView_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QWidget>
13
14#include "AbstractTableModel.h"
15
16class QLabel;
17template<typename T> class QList;
18class QString;
19
20namespace Isis {
21 class AbstractTableModel;
22 class AbstractTreeItem;
23 class ControlPoint;
24 class TableViewContent;
25 class TableViewHeader;
26 class TableColumnList;
27
43 class TableView : public QWidget {
44 Q_OBJECT
45
46 public:
48 QString pathForSettigs, QString objName);
49 virtual ~TableView();
50 // QSize sizeHint() const;
51 QFont getContentFont() const;
53
55 void setTitles(QStringList someTitle);
56
57 void setColumnVisible(QString, bool);
58
60 // void setModel(AbstractTableModel * newModel);
64
65
66 public slots:
69 void handleModelSelectionChanged(QList< AbstractTreeItem * >);
70
71
72 signals:
73 void activated();
74 void rebuildModels(QList< AbstractTreeItem * >);
77 void tableSelectionChanged(QList< AbstractTreeItem * >);
78 void filterCountsChanged(int visibleRows, int totalRows);
79
81
82 private:
83 // disable copying and assigning of this class
84 TableView(const TableView &);
85 TableView &operator=(const TableView &other);
86
87 // methods
88 void nullify();
89
90 // data
91 TableViewHeader *m_header;
92 TableViewContent *m_content;
93 TableColumnList *m_columns;
94 AbstractTableModel *m_model;
95 QString *m_settingsPath;
96 QLabel *m_warningLabel;
97 };
98}
99
100#endif
Translates the tree model into a table model.
Definition AbstractTableModel.h:48
Warning
Definition AbstractTableModel.h:54
A single control point.
Definition ControlPoint.h:356
Definition TableColumnList.h:30
Definition TableViewContent.h:60
Definition TableViewHeader.h:34
Definition TableView.h:43
void modelDataChanged()
TableViewHeader * getHorizontalHeader()
Returns the horizontal header.
Definition TableView.cpp:161
void filterCountsChanged(int visibleRows, int totalRows)
void editControlPoint(ControlPoint *, QString)
AbstractTableModel * getModel()
Returns the model.
Definition TableView.cpp:186
virtual ~TableView()
Destructor.
Definition TableView.cpp:125
void selectionChanged()
void setTitles(QStringList someTitle)
void writeSettings()
void handleModelSelectionChanged()
Handles refreshing the content when the model selection is changed.
Definition TableView.cpp:278
void rebuildModels(QList< AbstractTreeItem * >)
void displayWarning(AbstractTableModel::Warning)
Displays warnings for a table.
Definition TableView.cpp:252
QStringList getTitles() const
TableViewContent * content()
Returns the content of the table.
Definition TableView.cpp:196
void setColumnVisible(QString, bool)
Sets the specified column visible or invisible.
Definition TableView.cpp:172
void tableSelectionChanged(QList< AbstractTreeItem * >)
TableView(AbstractTableModel *someModel, QString pathForSettigs, QString objName)
Constructor.
Definition TableView.cpp:34
QFont getContentFont() const
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