Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkXnatUploadFromDataStorageDialog.cpp
Go to the documentation of this file.
2 #include "ui_QmitkXnatUploadFromDataStorageDialog.h"
3 
4 #include <mitkDataStorage.h>
5 #include <mitkNodePredicateAnd.h>
6 #include <mitkNodePredicateNot.h>
8 
10  : QDialog(parent), ui(new Ui::QmitkXnatUploadFromDataStorageDialog), m_SelectedNode(0)
11 {
12  ui->setupUi(this);
13 
14  // Not yet implemented
15  ui->cbUploadMITKProject->hide();
16  ui->leMITKProjectFileName->hide();
17  //
18 
19  connect(ui->btnCancel, SIGNAL(clicked()), this, SLOT(OnCancel()));
20  connect(ui->btnUpload, SIGNAL(clicked()), this, SLOT(OnUpload()));
21  connect(ui->cbUploadMITKProject, SIGNAL(checked()), this, SLOT(OnUploadSceneChecked()));
22  connect(ui->leMITKProjectFileName,
23  SIGNAL(textEdited(const QString &)),
24  this,
25  SLOT(OnMITKProjectFileNameEntered(const QString &)));
26  connect(ui->cBDataSelection,
27  SIGNAL(OnSelectionChanged(const mitk::DataNode *)),
28  this,
29  SLOT(OnDataSelected(const mitk::DataNode *)));
30 
36  ui->cBDataSelection->SetPredicate(pred);
37 }
38 
40 {
41  delete ui;
42 }
43 
45 {
46  ui->cBDataSelection->SetDataStorage(ds);
47 }
48 
50 {
51  this->done(QDialog::Accepted);
52 }
53 
55 {
56 }
57 
59 {
60  this->done(QDialog::Rejected);
61 }
62 
64 {
65 }
66 
68 {
69  m_SelectedNode = const_cast<mitk::DataNode *>(node);
70  if (m_SelectedNode.IsNotNull())
71  ui->btnUpload->setEnabled(true);
72 }
73 
75 {
76  return m_SelectedNode;
77 }
Data management class that handles 'was created by' relations.
static Pointer New()
static Pointer New(const mitk::NodePredicateBase *_arg)
static Pointer New(const char *_arg)
Class for nodes of the DataTree.
Definition: mitkDataNode.h:66