23 #include <qpushbutton.h>
35 m_ChangingSlider(false),
36 m_ChangingSpinner(false)
39 QBoxLayout *mainLayout =
new QVBoxLayout(
this);
41 QLabel *label =
new QLabel(
"Threshold :",
this);
42 QFont f = label->font();
45 mainLayout->addWidget(label);
47 QBoxLayout *layout =
new QHBoxLayout();
49 m_Spinner =
new QDoubleSpinBox();
50 m_Spinner->setMaximum(20);
51 m_Spinner->setMinimum(5);
52 m_Spinner->setValue(1);
54 connect(m_Spinner, SIGNAL(valueChanged(
double)),
this, SLOT(OnSpinnerValueChanged()));
55 layout->addWidget(m_Spinner);
58 m_Slider =
new QSlider(Qt::Horizontal,
this);
59 m_Slider->setMinimum(5);
60 m_Slider->setMaximum(20);
61 m_Slider->setPageStep(1);
62 m_Slider->setValue(1);
63 connect(m_Slider, SIGNAL(valueChanged(
int)),
this, SLOT(OnSliderValueChanged(
int)));
64 layout->addWidget(m_Slider);
66 mainLayout->addLayout(layout);
68 QPushButton *okButton =
new QPushButton(
"Confirm Segmentation",
this);
69 connect(okButton, SIGNAL(clicked()),
this, SLOT(OnAcceptThresholdPreview()));
71 mainLayout->addWidget(okButton);
73 connect(
this, SIGNAL(NewToolAssociated(
mitk::Tool *)),
this, SLOT(OnNewToolAssociated(
mitk::Tool *)));
144 int result = dialog.exec();
174 m_Slider->setRange(
int(lower),
int(upper));
void SetSegmentationName(QString name)
#define MITKSEGMENTATIONUI_EXPORT