22 #include <qpushbutton.h>
30 QBoxLayout *mainLayout =
new QVBoxLayout(
this);
32 QLabel *label =
new QLabel(
"Threshold :",
this);
33 QFont f = label->font();
36 mainLayout->addWidget(label);
38 QBoxLayout *layout =
new QHBoxLayout();
40 m_DoubleThresholdSlider =
new ctkRangeWidget();
42 m_DoubleThresholdSlider, SIGNAL(valuesChanged(
double,
double)),
this, SLOT(OnThresholdsChanged(
double,
double)));
43 layout->addWidget(m_DoubleThresholdSlider);
44 mainLayout->addLayout(layout);
45 m_DoubleThresholdSlider->setSingleStep(0.01);
47 QPushButton *okButton =
new QPushButton(
"Confirm Segmentation",
this);
48 connect(okButton, SIGNAL(clicked()),
this, SLOT(OnAcceptThresholdPreview()));
50 mainLayout->addWidget(okButton);
52 connect(
this, SIGNAL(NewToolAssociated(
mitk::Tool *)),
this, SLOT(OnNewToolAssociated(
mitk::Tool *)));
100 int result = dialog.exec();
void SetSegmentationName(QString name)
#define MITKSEGMENTATIONUI_EXPORT