Medical Imaging Interaction Toolkit  2024.06.99-60d9b802
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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QmitkXnatExperimentWidget_h
14 #define QmitkXnatExperimentWidget_h
15 
16 // XNATUI
17 #include <MitkXNATExports.h>
18 #include <ui_QmitkXnatExperimentWidgetControls.h>
19 
20 // Qt
21 #include <QWidget>
22 
23 // CTK XNAT Core
24 class ctkXnatExperiment;
25 
27 {
28  Q_OBJECT
29 
30 public:
31  enum Mode
32  {
34  CREATE
35  };
36 
37  QmitkXnatExperimentWidget(QWidget *parent = nullptr);
38  QmitkXnatExperimentWidget(Mode mode, QWidget *parent = nullptr);
39  ~QmitkXnatExperimentWidget() override;
40 
41  void SetExperiment(ctkXnatExperiment *experiment);
42  ctkXnatExperiment *GetExperiment() const;
43 
44 protected:
45  Ui::QmitkXnatExperimentWidgetControls m_Controls;
46 
47 private:
48  void Init();
49  Mode m_Mode;
50  ctkXnatExperiment *m_Experiment;
51 };
52 
53 #endif
MitkXNATExports.h
QmitkXnatExperimentWidget
Definition: QmitkXnatExperimentWidget.h:26
QmitkXnatExperimentWidget::Mode
Mode
Definition: QmitkXnatExperimentWidget.h:31
MITKXNAT_EXPORT
#define MITKXNAT_EXPORT
Definition: MitkXNATExports.h:15
QmitkXnatExperimentWidget::INFO
@ INFO
Definition: QmitkXnatExperimentWidget.h:33
QmitkXnatExperimentWidget::m_Controls
Ui::QmitkXnatExperimentWidgetControls m_Controls
Definition: QmitkXnatExperimentWidget.h:45