Medical Imaging Interaction Toolkit  2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
QmitkSelectXnatUploadDestinationDialog.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 QmitkSelectXnatUploadDestinationDialog_h
14 #define QmitkSelectXnatUploadDestinationDialog_h
15 
16 #include <MitkXNATExports.h>
17 
18 #include <QDialog>
19 
20 namespace Ui
21 {
23 }
24 
25 class ctkXnatObject;
26 class ctkXnatSession;
27 class QModelIndex;
28 class QmitkXnatTreeModel;
29 
31 {
32  Q_OBJECT
33 
34 public:
35  explicit QmitkSelectXnatUploadDestinationDialog(ctkXnatSession *session, const QStringList &, QWidget *parent = nullptr);
37 
38  ctkXnatObject *GetUploadDestination();
39  void SetXnatResourceFolderUrl(const QString &url);
40 
41 protected slots:
42 
43  void OnUpload();
44  void OnSelectResource(bool selectResource);
45  void OnSelectFromTreeView(bool selectFromTreeView);
46  void OnResourceEntered(const QString &resourceEntered);
47  void OnResourceSelected(const QString &resource);
48  void OnXnatNodeSelected(const QModelIndex &);
49  void OnCancel();
50 
51 private:
52  QmitkXnatTreeModel *m_TreeModel;
53  QString m_Url;
54  QString m_ResourceName;
55  bool m_CreateNewFolder;
56  Ui::QmitkSelectXnatUploadDestinationDialog *ui;
57 };
58 
59 #endif
MitkXNATExports.h
Ui
Definition: BlueBerryExampleLauncherDialog.h:21
QmitkSelectXnatUploadDestinationDialog
Definition: QmitkSelectXnatUploadDestinationDialog.h:30
QmitkXnatTreeModel
Definition: QmitkXnatTreeModel.h:27
MITKXNAT_EXPORT
#define MITKXNAT_EXPORT
Definition: MitkXNATExports.h:15