Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkXnatProjectWidget.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological rmatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QMITKXNATPROJECTWIDGET_H
18 #define QMITKXNATPROJECTWIDGET_H
19 
20 // XNATUI
21 #include <MitkXNATExports.h>
22 #include <ui_QmitkXnatProjectWidgetControls.h>
23 
24 // Qt
25 #include <QWidget>
26 
27 // CTK XNAT Core
28 class ctkXnatProject;
29 
31 {
32  Q_OBJECT
33 
34 public:
35  enum Mode
36  {
38  CREATE
39  };
40 
41  QmitkXnatProjectWidget(QWidget *parent = nullptr);
42  QmitkXnatProjectWidget(Mode mode, QWidget *parent = nullptr);
44 
45  void SetProject(ctkXnatProject *project);
46  ctkXnatProject *GetProject() const;
47 
48 protected:
49  Ui::QmitkXnatProjectWidgetControls m_Controls;
50 
51 private:
52  void Init();
53  Mode m_Mode;
54  ctkXnatProject *m_Project;
55 };
56 
57 #endif // QMITKXNATPROJECTWIDGET_H
Ui::QmitkXnatProjectWidgetControls m_Controls
#define MITKXNAT_EXPORT