Medical Imaging Interaction Toolkit  2026.06.00
Medical Imaging Interaction Toolkit
QmitkXnatCreateObjectDialog.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 QmitkXnatCreateObjectDialog_h
14 #define QmitkXnatCreateObjectDialog_h
15 
16 #include <MitkXNATExports.h>
17 
18 #include <QDialog>
19 
20 class ctkXnatObject;
21 
34 {
35  Q_OBJECT
36 
37 public:
42  {
43  // PROJECT, ///< Project creation (not yet implemented).
45  EXPERIMENT
46  };
47 
58  QmitkXnatCreateObjectDialog(SpecificType type, QWidget *parent = nullptr);
59 
64 
75  ctkXnatObject *GetXnatObject();
76 
77 protected slots:
78 
87 
92 
93 private:
94  SpecificType m_Type;
95  ctkXnatObject *m_Object;
96  QWidget *m_Widget;
97 };
98 
99 #endif
#define MITKXNAT_EXPORT
Dialog for creating new XNAT objects (subjects or experiments).
void OnAcceptClicked()
Slot called when the Create button is clicked.
~QmitkXnatCreateObjectDialog() override
Destructor. Cleans up the embedded property widget.
void OnCancelClicked()
Slot called when the Cancel button is clicked. Rejects the dialog.
ctkXnatObject * GetXnatObject()
Retrieve the XNAT object populated with user-entered properties.
SpecificType
Enumeration of XNAT object types that can be created.
@ SUBJECT
Create a new XNAT subject.
QmitkXnatCreateObjectDialog(SpecificType type, QWidget *parent=nullptr)
Construct the create-object dialog for the given XNAT type.