19 #include <QDoubleValidator> 21 #include <ui_CurveAxisScaleConfigWidget.h> 37 ui_->lineEditAbsoluteMinimum->setEnabled(
false);
38 ui_->lineEditAbsoluteMaximum->setEnabled(
false);
39 ui_->lineEditRelativeMinimum->setEnabled(
false);
40 ui_->lineEditRelativeMaximum->setEnabled(
false);
42 ui_->lineEditAbsoluteMinimum->setValidator(
43 new QDoubleValidator(
ui_->lineEditAbsoluteMinimum));
44 ui_->lineEditAbsoluteMaximum->setValidator(
45 new QDoubleValidator(
ui_->lineEditAbsoluteMaximum));
46 ui_->lineEditRelativeMinimum->setValidator(
47 new QDoubleValidator(
ui_->lineEditRelativeMinimum));
48 ui_->lineEditRelativeMaximum->setValidator(
49 new QDoubleValidator(
ui_->lineEditRelativeMaximum));
51 connect(
ui_->radioButtonAbsolute, SIGNAL(toggled(
bool)),
this,
53 connect(
ui_->radioButtonRelative, SIGNAL(toggled(
bool)),
this,
55 connect(
ui_->radioButtonAuto, SIGNAL(toggled(
bool)),
this,
58 connect(
ui_->lineEditAbsoluteMinimum, SIGNAL(editingFinished()),
60 connect(
ui_->lineEditAbsoluteMaximum, SIGNAL(editingFinished()),
62 connect(
ui_->lineEditRelativeMinimum, SIGNAL(editingFinished()),
64 connect(
ui_->lineEditRelativeMaximum, SIGNAL(editingFinished()),
79 disconnect(
config_, SIGNAL(typeChanged(
int)),
this,
81 disconnect(
config_, SIGNAL(absoluteMinimumChanged(
double)),
this,
83 disconnect(
config_, SIGNAL(absoluteMaximumChanged(
double)),
this,
85 disconnect(
config_, SIGNAL(relativeMinimumChanged(
double)),
this,
87 disconnect(
config_, SIGNAL(relativeMaximumChanged(
double)),
this,
94 connect(config, SIGNAL(typeChanged(
int)),
this,
96 connect(config, SIGNAL(absoluteMinimumChanged(
double)),
this,
98 connect(config, SIGNAL(absoluteMaximumChanged(
double)),
this,
100 connect(config, SIGNAL(relativeMinimumChanged(
double)),
this,
102 connect(config, SIGNAL(relativeMaximumChanged(
double)),
this,
124 ui_->radioButtonAbsolute->setChecked(
true);
126 ui_->radioButtonRelative->setChecked(
true);
128 ui_->radioButtonAuto->setChecked(
true);
132 ui_->lineEditAbsoluteMinimum->setText(QString::number(minimum));
136 ui_->lineEditAbsoluteMaximum->setText(QString::number(maximum));
140 ui_->lineEditRelativeMinimum->setText(QString::number(minimum));
144 ui_->lineEditRelativeMaximum->setText(QString::number(maximum));
148 ui_->lineEditAbsoluteMinimum->setEnabled(checked);
149 ui_->lineEditAbsoluteMaximum->setEnabled(checked);
156 ui_->lineEditRelativeMinimum->setEnabled(checked);
157 ui_->lineEditRelativeMaximum->setEnabled(checked);
double getAbsoluteMinimum() const
double getAbsoluteMaximum() const
double getRelativeMinimum() const
void setAbsoluteMaximum(double maximum)
void setRelativeMinimum(double minimum)
void setRelativeMaximum(double maximum)
double getRelativeMaximum() const
void setAbsoluteMinimum(double minimum)