19 #include <ui_CurveDataConfigWidget.h> 35 ui_->spinBoxCircularBufferCapacity->setEnabled(
false);
36 ui_->doubleSpinBoxTimeFrameLength->setEnabled(
false);
38 connect(
ui_->radioButtonVector, SIGNAL(toggled(
bool)),
this,
40 connect(
ui_->radioButtonList, SIGNAL(toggled(
bool)),
this,
42 connect(
ui_->radioButtonCircularBuffer, SIGNAL(toggled(
bool)),
this,
44 connect(
ui_->radioButtonTimeFrame, SIGNAL(toggled(
bool)),
this,
47 connect(
ui_->spinBoxCircularBufferCapacity, SIGNAL(valueChanged(
int)),
49 connect(
ui_->doubleSpinBoxTimeFrameLength, SIGNAL(valueChanged(
double)),
64 disconnect(
config_, SIGNAL(typeChanged(
int)),
this,
66 disconnect(
config_, SIGNAL(circularBufferCapacityChanged(
size_t)),
68 disconnect(
config_, SIGNAL(timeFrameLengthChanged(
double)),
75 connect(config, SIGNAL(typeChanged(
int)),
this,
77 connect(config, SIGNAL(circularBufferCapacityChanged(
size_t)),
79 connect(config, SIGNAL(timeFrameLengthChanged(
double)),
84 getCircularBufferCapacity());
100 ui_->radioButtonList->setChecked(
true);
102 ui_->radioButtonCircularBuffer->setChecked(
true);
104 ui_->radioButtonTimeFrame->setChecked(
true);
106 ui_->radioButtonVector->setChecked(
true);
111 ui_->spinBoxCircularBufferCapacity->setValue(capacity);
115 ui_->doubleSpinBoxTimeFrameLength->setValue(length);
129 ui_->spinBoxCircularBufferCapacity->setEnabled(checked);
136 ui_->doubleSpinBoxTimeFrameLength->setEnabled(checked);
double getTimeFrameLength() const
void setCircularBufferCapacity(size_t capacity)
void setTimeFrameLength(double length)