19 #include <qpushbutton.h> 31 m_ChangingSlider(false),
32 m_ChangingSpinner(false)
35 QBoxLayout *mainLayout =
new QVBoxLayout(
this);
37 QLabel *label =
new QLabel(
"Threshold :",
this);
38 QFont f = label->font();
41 mainLayout->addWidget(label);
43 QBoxLayout *layout =
new QHBoxLayout();
45 m_Spinner =
new QDoubleSpinBox();
46 m_Spinner->setMaximum(20);
47 m_Spinner->setMinimum(5);
48 m_Spinner->setValue(1);
50 connect(m_Spinner, SIGNAL(valueChanged(
double)),
this, SLOT(OnSpinnerValueChanged()));
51 layout->addWidget(m_Spinner);
54 m_Slider =
new QSlider(Qt::Horizontal,
this);
55 m_Slider->setMinimum(5);
56 m_Slider->setMaximum(20);
57 m_Slider->setPageStep(1);
58 m_Slider->setValue(1);
59 connect(m_Slider, SIGNAL(valueChanged(
int)),
this, SLOT(OnSliderValueChanged(
int)));
60 layout->addWidget(m_Slider);
62 mainLayout->addLayout(layout);
64 QPushButton *okButton =
new QPushButton(
"Confirm Segmentation",
this);
65 connect(okButton, SIGNAL(clicked()),
this, SLOT(OnAcceptThresholdPreview()));
67 mainLayout->addWidget(okButton);
69 connect(
this, SIGNAL(NewToolAssociated(
mitk::Tool *)),
this, SLOT(OnNewToolAssociated(
mitk::Tool *)));
98 if (m_BinaryThresholdTool.IsNotNull())
100 m_BinaryThresholdTool->IntervalBordersChanged +=
140 int result = dialog.exec();
170 m_Slider->setRange(
int(lower),
int(upper));
void SetSegmentationName(QString name)
#define MITKSEGMENTATIONUI_EXPORT