Isis 3 Developer Reference
ProjectItemTreeView.h
Go to the documentation of this file.
1 #ifndef ProjectItemTreeView_h
2 #define ProjectItemTreeView_h
3 
27 
28 class QEvent;
29 class QTreeView;
30 class QWidget;
31 
32 namespace Isis {
33 
34  class ProjectItem;
35  class ProjectItemModel;
36 
71 
72  Q_OBJECT
73 
74  public:
75  ProjectItemTreeView(QWidget *parent=0);
77 
78  virtual QSize sizeHint() const;
79 
81 
82  QTreeView *treeView();
83 
84  protected:
85  bool eventFilter(QObject *watched, QEvent *event);
86 
87  private slots:
88  void onItemAdded(ProjectItem *item);
89 
90  private:
91  QTreeView *m_treeView;
92  };
93 }
94 
95 #endif
QTreeView * treeView()
Returns the tree view.
Definition: ProjectItemTreeView.cpp:93
~ProjectItemTreeView()
Default destructor.
Definition: ProjectItemTreeView.cpp:85
virtual QSize sizeHint() const
Returns the suggested size.
Definition: ProjectItemTreeView.cpp:75
AbstractProjectItemView is a base class for views of a ProjectItemModel in Qt's model-view framework...
Definition: AbstractProjectItemView.h:93
Provides access to data stored in a Project through Qt's model-view framework.
Definition: ProjectItemModel.h:146
bool eventFilter(QObject *watched, QEvent *event)
Filters out drag and drop events so that they are handled by the ProjectItemTreeView.
Definition: ProjectItemTreeView.cpp:145
ProjectItemTreeView(QWidget *parent=0)
Constructs a ProjectItemTreeView.
Definition: ProjectItemTreeView.cpp:43
A ProjectItemTreeView displays items from a ProjectItemProxyModel in a tree structure.
Definition: ProjectItemTreeView.h:70
Represents an item of a ProjectItemModel in Qt's model-view framework.
Definition: ProjectItem.h:146
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
virtual void setInternalModel(ProjectItemModel *model)
Sets the model so that the internal proxy model exactly matches the source model. ...
Definition: ProjectItemTreeView.cpp:104
$Date$ $Revision$
virtual ProjectItemModel * model()
Returns the model used by the view.
Definition: AbstractProjectItemView.cpp:97