Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkSelectXnatUploadDestinationDialog.h
Go to the documentation of this file.
1 #ifndef QMITKSELECTXNATUPLOADDESTINATIONDIALOG_H
2 #define QMITKSELECTXNATUPLOADDESTINATIONDIALOG_H
3 
4 #include <MitkXNATExports.h>
5 
6 #include <QDialog>
7 
8 namespace Ui
9 {
11 }
12 
13 class ctkXnatObject;
14 class ctkXnatSession;
15 class QModelIndex;
16 class QmitkXnatTreeModel;
17 
19 {
20  Q_OBJECT
21 
22 public:
23  explicit QmitkSelectXnatUploadDestinationDialog(ctkXnatSession *session, const QStringList &, QWidget *parent = 0);
25 
26  ctkXnatObject *GetUploadDestination();
27  void SetXnatResourceFolderUrl(const QString &url);
28 
29 protected slots:
30 
31  void OnUpload();
32  void OnSelectResource(bool selectResource);
33  void OnSelectFromTreeView(bool selectFromTreeView);
34  void OnResourceEntered(const QString &resourceEntered);
35  void OnResourceSelected(const QString &resource);
36  void OnXnatNodeSelected(const QModelIndex &);
37  void OnCancel();
38 
39 private:
40  QmitkXnatTreeModel *m_TreeModel;
41  QString m_Url;
42  QString m_ResourceName;
43  bool m_CreateNewFolder;
44  Ui::QmitkSelectXnatUploadDestinationDialog *ui;
45 };
46 
47 #endif // QMITKSELECTXNATUPLOADDESTINATIONDIALOG_H
#define MITKXNAT_EXPORT