NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
XnatTreeView.h
Go to the documentation of this file.
1 /*=============================================================================
2 
3  NifTK: A software platform for medical image computing.
4 
5  Copyright (c) University College London (UCL). All rights reserved.
6 
7  This software is distributed WITHOUT ANY WARRANTY; without even
8  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
9  PURPOSE.
10 
11  See LICENSE.txt in the top level directory for details.
12 
13 =============================================================================*/
14 
15 #ifndef XnatTreeView_h
16 #define XnatTreeView_h
17 
18 #include <QTreeView>
19 #include <QModelIndex>
20 
21 #include "ctkXnatObject.h"
22 
23 
24 class ctkXnatConnection;
25 class ctkXnatTreeModel;
27 
28 class XnatTreeView : public QTreeView
29 {
30  Q_OBJECT
31 
32 public:
33  explicit XnatTreeView(QWidget* parent = 0);
34  virtual ~XnatTreeView();
35 
36  void initialize(ctkXnatSession* connection);
37 
38  ctkXnatTreeModel* xnatModel();
39 
40  const ctkXnatObject* xnatObject(const QModelIndex& index);
41  const ctkXnatObject* currentObject();
42 
43 public slots:
44  void refreshRows();
45 
46 private:
48  QScopedPointer<XnatTreeViewPrivate> d_ptr;
49 
50  Q_DECLARE_PRIVATE(XnatTreeView);
51 };
52 
53 #endif /* XnatTreeView_h */
Definition: XnatTreeView.h:28
void initialize(ctkXnatSession *connection)
Definition: XnatTreeView.cxx:42
const ctkXnatObject * xnatObject(const QModelIndex &index)
Definition: XnatTreeView.cxx:73
Definition: XnatTreeView.cxx:12
void refreshRows()
Definition: XnatTreeView.cxx:78
GLuint index
Definition: glew.h:1798
ctkXnatTreeModel * xnatModel()
Definition: XnatTreeView.cxx:63
const ctkXnatObject * currentObject()
Definition: XnatTreeView.cxx:68
virtual ~XnatTreeView()
Definition: XnatTreeView.cxx:26
XnatTreeView(QWidget *parent=0)
Definition: XnatTreeView.cxx:18