Medical Imaging Interaction Toolkit  2016.11.0
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,
6 Division of Medical and Biological Informatics.
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 QMITKXNATCREATEOBJECTDIALOG_H
18 #define QMITKXNATCREATEOBJECTDIALOG_H
19 
20 #include <MitkXNATExports.h>
21 
22 // Qt
23 #include <QDialog>
24 #include <QWidget>
25 
26 class ctkXnatObject;
27 
29 {
30  Q_OBJECT
31 
32 public:
34  {
35  // PROJECT,
37  EXPERIMENT
38  };
39 
40  QmitkXnatCreateObjectDialog(SpecificType type, QWidget *parent = 0);
41  virtual ~QmitkXnatCreateObjectDialog();
42 
43  // Returns a specific xnat object like SpecificType
44  ctkXnatObject *GetXnatObject();
45 
46 protected slots:
47 
48  void OnAcceptClicked();
49  void OnCancelClicked();
50 
51 private:
52  SpecificType m_Type;
53  ctkXnatObject *m_Object;
54  QWidget *m_Widget;
55 };
56 
57 #endif // QMITKXNATCREATEOBJECTDIALOG_H
#define MITKXNAT_EXPORT