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