Isis Developer Reference
TreeView.h
Go to the documentation of this file.
1#ifndef TreeView_H
2#define TreeView_H
3
10/* SPDX-License-Identifier: CC0-1.0 */
11
12#include <QWidget>
13
14
15template< typename t > class QList;
16
17
18namespace Isis {
19 class AbstractTreeItem;
20 class AbstractTreeModel;
21 class TreeViewContent;
22 class TreeViewHeader;
23
31 class TreeView : public QWidget {
32 Q_OBJECT
33
34 signals:
35 void activated();
37
38
39 public:
40 TreeView(QWidget *parent = 0);
41 virtual ~TreeView();
42
43 QSize sizeHint() const;
44
45 QFont getContentFont() const;
46 void setModel(AbstractTreeModel *someModel);
48 bool isActive() const;
49 QString getTitle() const;
50 void setTitle(QString someTitle);
51
52
53 public slots:
54 void deactivate();
55 void activate();
57
58
59 private: // disable copying and assigning of this class
60 TreeView(const TreeView &);
61 TreeView &operator=(const TreeView &other);
62
63
64 private: // methods
65 void nullify();
66
67
68 private: // data
69 TreeViewHeader *m_header;
70 TreeViewContent *m_content;
71 bool m_active;
72 };
73}
74
75#endif
Base class for tree models.
Definition AbstractTreeModel.h:48
Definition TreeViewContent.h:36
Definition TreeViewHeader.h:30
Definition TreeView.h:31
TreeView(QWidget *parent=0)
Definition TreeView.cpp:21
void handleModelSelectionChanged()
Definition TreeView.cpp:117
QFont getContentFont() const
Definition TreeView.cpp:55
QString getTitle() const
Definition TreeView.cpp:89
void deactivate()
Definition TreeView.cpp:99
void setModel(AbstractTreeModel *someModel)
Definition TreeView.cpp:60
bool isActive() const
Definition TreeView.cpp:84
void setTitle(QString someTitle)
Definition TreeView.cpp:94
virtual ~TreeView()
Definition TreeView.cpp:43
QSize sizeHint() const
Definition TreeView.cpp:47
AbstractTreeModel * getModel() const
Definition TreeView.cpp:79
void selectionChanged()
void activate()
Definition TreeView.cpp:108
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