NifTK  16.4.1 - 0798f20
CMIC's Translational Medical Imaging Platform
XnatBrowserView.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 XnatBrowserView_h
16 #define XnatBrowserView_h
17 
18 #include "ui_XnatBrowserView.h"
19 
20 #include <berryQtViewPart.h>
21 #include <QmitkAbstractView.h>
22 #include <mitkDataNode.h>
23 
24 class QWidget;
25 
27 
33 class XnatBrowserView : public QmitkAbstractView
34 {
35 
36  // this is needed for all Qt objects that should have a MOC object (everything that derives from QObject)
37  Q_OBJECT
38 
39 public:
40 
41  explicit XnatBrowserView();
42  virtual ~XnatBrowserView();
43 
45  static const QString VIEW_ID;
46 
47 protected:
48 
50  virtual void CreateQtPartControl(QWidget *parent) override;
51 
53  virtual void SetFocus() override;
54 
55 private:
56 
58  Ui::XnatBrowserView* m_Controls;
59 
60  // Store a reference to the parent widget of this view.
61  QWidget *m_Parent;
62 
64  QScopedPointer<XnatBrowserViewPrivate> d_ptr;
65 
66  Q_DECLARE_PRIVATE(XnatBrowserView);
67  Q_DISABLE_COPY(XnatBrowserView);
68 };
69 #endif // _XNATBROWSERVIEW_H_INCLUDED
virtual void SetFocus() override
Called by framework, sets the focus on a specific widget.
Definition: XnatBrowserView.cxx:79
static const QString VIEW_ID
Each view for a plugin has its own globally unique ID.
Definition: XnatBrowserView.h:45
virtual void CreateQtPartControl(QWidget *parent) override
Called by framework, this method creates all the controls for this view.
Definition: XnatBrowserView.cxx:52
XnatBrowserView()
Definition: XnatBrowserView.cxx:33
Definition: XnatBrowserView.cxx:26
Provides a simple GUI for browsing XNAT databases.
Definition: XnatBrowserView.h:33
virtual ~XnatBrowserView()
Definition: XnatBrowserView.cxx:40