Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkConfirmSegmentationDialog.cpp
Go to the documentation of this file.
2 #include "ui_QmitkConfirmSegmentationDialog.h"
3 
5  : QDialog(parent), m_Controls(new Ui::QmitkConfirmSegmentationDialog)
6 {
7  m_Controls->setupUi(this);
8 
9  connect(m_Controls->m_btnOverwriteSegmentation, SIGNAL(clicked()), this, SLOT(OnOverwriteExistingSegmentation()));
10  connect(m_Controls->m_btnNewSegmentation, SIGNAL(clicked()), this, SLOT(OnCreateNewSegmentation()));
11  connect(m_Controls->m_btnCancel, SIGNAL(clicked()), this, SLOT(OnCancelSegmentation()));
12 }
13 
15 {
16  delete m_Controls;
17 }
18 
20 {
21  this->done(OVERWRITE_SEGMENTATION);
22 }
23 
25 {
26  this->done(CREATE_NEW_SEGMENTATION);
27 }
28 
30 {
31  this->done(CANCEL_SEGMENTATION);
32 }
33 
35 {
36  QString text("Do you really want to overwrite " + name + "?");
37  m_Controls->m_lblDialogText->setText(text);
38 }
QmitkConfirmSegmentationDialog(QWidget *parent=nullptr)