33 #include <QHBoxLayout>
44 setLayout(
new QHBoxLayout(
this));
46 this->layout()->setMargin(0);
47 this->layout()->setContentsMargins(0, 0, 0, 0);
50 mp_daltonValueSpinBox =
new QDoubleSpinBox();
51 this->layout()->addWidget(mp_daltonValueSpinBox);
53 mp_ppmValueSpinBox =
new QDoubleSpinBox();
54 this->layout()->addWidget(mp_ppmValueSpinBox);
56 mp_resValueSpinBox =
new QDoubleSpinBox();
57 this->layout()->addWidget(mp_resValueSpinBox);
59 mp_unitComboBox =
new QComboBox();
60 this->layout()->addWidget(mp_unitComboBox);
62 mp_unitComboBox->addItem(
"dalton", QString(
"dalton"));
63 mp_unitComboBox->addItem(
"ppm", QString(
"ppm"));
64 mp_unitComboBox->addItem(
"res", QString(
"res"));
70 mp_daltonValueSpinBox->setDecimals(3);
71 mp_daltonValueSpinBox->setSingleStep(0.01);
72 mp_daltonValueSpinBox->setRange(0, 30);
74 mp_ppmValueSpinBox->setDecimals(4);
75 mp_ppmValueSpinBox->setSingleStep(10);
76 mp_ppmValueSpinBox->setRange(0.0001, 300);
78 mp_resValueSpinBox->setDecimals(0);
79 mp_resValueSpinBox->setSingleStep(1000);
80 mp_resValueSpinBox->setRange(1, 2000000);
83 setPrecision(mp_precisionDalton);
85 connect(mp_unitComboBox,
86 SIGNAL(currentIndexChanged(
int)),
88 SLOT(setCurrentIndex(
int)));
90 connect(mp_daltonValueSpinBox,
91 SIGNAL(valueChanged(
double)),
93 SLOT(setDaltonValueChanged(
double)));
95 connect(mp_ppmValueSpinBox,
96 SIGNAL(valueChanged(
double)),
98 SLOT(setPpmValueChanged(
double)));
100 connect(mp_resValueSpinBox,
101 SIGNAL(valueChanged(
double)),
103 SLOT(setResValueChanged(
double)));
155 "Fatal error at %s@%d -- %s(). "
226 "Fatal error at %s@%d -- %s(). "
278 "Fatal error at %s@%d -- %s(). "