Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkXnatExperimentWidget.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 QMITKXNATEXPERIMENTWIDGET_H
18 #define QMITKXNATEXPERIMENTWIDGET_H
19 
20 // XNATUI
21 #include <MitkXNATExports.h>
22 #include <ui_QmitkXnatExperimentWidgetControls.h>
23 
24 // Qt
25 #include <QWidget>
26 
27 // CTK XNAT Core
28 class ctkXnatExperiment;
29 
31 {
32  Q_OBJECT
33 
34 public:
35  enum Mode
36  {
38  CREATE
39  };
40 
41  QmitkXnatExperimentWidget(QWidget *parent = nullptr);
42  QmitkXnatExperimentWidget(Mode mode, QWidget *parent = nullptr);
44 
45  void SetExperiment(ctkXnatExperiment *experiment);
46  ctkXnatExperiment *GetExperiment() const;
47 
48 protected:
49  Ui::QmitkXnatExperimentWidgetControls m_Controls;
50 
51 private:
52  void Init();
53  Mode m_Mode;
54  ctkXnatExperiment *m_Experiment;
55 };
56 
57 #endif // QMITKXNATEXPERIMENTWIDGET_H
Ui::QmitkXnatExperimentWidgetControls m_Controls
#define MITKXNAT_EXPORT