Isis 3 Programmer Reference
TreeView.h
1 #ifndef TreeView_H
2 #define TreeView_H
3 
4 #include <QWidget>
5 
6 
7 template< typename t > class QList;
8 
9 
10 namespace Isis {
11  class AbstractTreeItem;
12  class AbstractTreeModel;
13  class TreeViewContent;
14  class TreeViewHeader;
15 
23  class TreeView : public QWidget {
24  Q_OBJECT
25 
26  signals:
27  void activated();
28  void selectionChanged();
29 
30 
31  public:
32  TreeView(QWidget *parent = 0);
33  virtual ~TreeView();
34 
35  QSize sizeHint() const;
36 
37  QFont getContentFont() const;
38  void setModel(AbstractTreeModel *someModel);
39  AbstractTreeModel *getModel() const;
40  bool isActive() const;
41  QString getTitle() const;
42  void setTitle(QString someTitle);
43 
44 
45  public slots:
46  void deactivate();
47  void activate();
48  void handleModelSelectionChanged();
49 
50 
51  private: // disable copying and assigning of this class
52  TreeView(const TreeView &);
53  TreeView &operator=(const TreeView &other);
54 
55 
56  private: // methods
57  void nullify();
58 
59 
60  private: // data
61  TreeViewHeader *m_header;
62  TreeViewContent *m_content;
63  bool m_active;
64  };
65 }
66 
67 #endif
Base class for tree models.
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31