Medical Imaging Interaction Toolkit  2024.06.00
Medical Imaging Interaction Toolkit
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 (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 QmitkXnatSubjectWidget_h
14 #define QmitkXnatSubjectWidget_h
15 
16 #include <MitkXNATExports.h>
17 #include <ui_QmitkXnatSubjectWidgetControls.h>
18 
19 // Qt
20 #include <QWidget>
21 
22 // CTK XNAT Core
23 class ctkXnatSubject;
24 
26 {
27  Q_OBJECT
28 
29 public:
30  enum Mode
31  {
33  CREATE
34  };
35 
36  QmitkXnatSubjectWidget(QWidget *parent = nullptr);
37  QmitkXnatSubjectWidget(Mode mode, QWidget *parent = nullptr);
38  ~QmitkXnatSubjectWidget() override;
39 
40  void SetSubject(ctkXnatSubject *subject);
41  ctkXnatSubject *GetSubject() const;
42 
43 protected:
44  Ui::QmitkXnatSubjectWidgetControls m_Controls;
45 
46 private:
47  void Init();
48  Mode m_Mode;
49  ctkXnatSubject *m_Subject;
50 };
51 
52 #endif
MitkXNATExports.h
QmitkXnatSubjectWidget::m_Controls
Ui::QmitkXnatSubjectWidgetControls m_Controls
Definition: QmitkXnatSubjectWidget.h:44
QmitkXnatSubjectWidget::INFO
@ INFO
Definition: QmitkXnatSubjectWidget.h:32
QmitkXnatSubjectWidget
Definition: QmitkXnatSubjectWidget.h:25
QmitkXnatSubjectWidget::Mode
Mode
Definition: QmitkXnatSubjectWidget.h:30
MITKXNAT_EXPORT
#define MITKXNAT_EXPORT
Definition: MitkXNATExports.h:15