Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
QmitkXnatSubjectWidget.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 Informatics.
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 QMITKXNATSUBJECTWIDGET_H
18 #define QMITKXNATSUBJECTWIDGET_H
19 
20 #include <MitkXNATExports.h>
21 #include <ui_QmitkXnatSubjectWidgetControls.h>
22 
23 // Qt
24 #include <QWidget>
25 
26 // CTK XNAT Core
27 class ctkXnatSubject;
28 
30 {
31  Q_OBJECT
32 
33 public:
34  enum Mode
35  {
37  CREATE
38  };
39 
40  QmitkXnatSubjectWidget(QWidget *parent = nullptr);
41  QmitkXnatSubjectWidget(Mode mode, QWidget *parent = nullptr);
43 
44  void SetSubject(ctkXnatSubject *subject);
45  ctkXnatSubject *GetSubject() const;
46 
47 protected:
48  Ui::QmitkXnatSubjectWidgetControls m_Controls;
49 
50 private:
51  void Init();
52  Mode m_Mode;
53  ctkXnatSubject *m_Subject;
54 };
55 
56 #endif // QMITKXNATSUBJECTWIDGET_H
Ui::QmitkXnatSubjectWidgetControls m_Controls
#define MITKXNAT_EXPORT