Isis 3 Programmer Reference
TreeView.h
1 #ifndef TreeView_H
2 #define TreeView_H
3 
10 /* SPDX-License-Identifier: CC0-1.0 */
11 
12 #include <QWidget>
13 
14 
15 template< typename t > class QList;
16 
17 
18 namespace 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();
36  void selectionChanged();
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);
47  AbstractTreeModel *getModel() const;
48  bool isActive() const;
49  QString getTitle() const;
50  void setTitle(QString someTitle);
51 
52 
53  public slots:
54  void deactivate();
55  void activate();
56  void handleModelSelectionChanged();
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
QWidget
QList
This is free and unencumbered software released into the public domain.
Definition: BoxcarCachingAlgorithm.h:13
Isis::AbstractTreeModel
Base class for tree models.
Definition: AbstractTreeModel.h:47
Isis::TreeViewHeader
Definition: TreeViewHeader.h:30
Isis::TreeViewContent
Definition: TreeViewContent.h:36
Isis::TreeView
Definition: TreeView.h:31
Isis
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16