lsamples.push_back(convert_a2l_threshold(threshold, asamples[j]));
lsegment->append_payload(lsamples.data(), lsamples.size());
delete[] asamples;
+
+ samples_added(lsegment, start_sample, end_sample);
}
if (conversion_type_ == A2LConversionBySchmittTrigger) {
lsamples.push_back(convert_a2l_schmitt_trigger(lo_thr, hi_thr, asamples[j], state));
lsegment->append_payload(lsamples.data(), lsamples.size());
delete[] asamples;
+
+ samples_added(lsegment, start_sample, end_sample);
}
}
}
{
if (converted_data_)
converted_data_->clear();
+
+ samples_cleared();
}
void SignalBase::on_samples_added(QObject* segment, uint64_t start_sample,
&SignalBase::conversion_thread_proc, this,
segment, start_sample, end_sample);
}
+
+ samples_added(segment, start_sample, end_sample);
}
void SignalBase::on_capture_state_changed(int state)
void conversion_type_changed(const ConversionType t);
+ void samples_cleared();
+
+ void samples_added(QObject* segment, uint64_t start_sample,
+ uint64_t end_sample);
+
private Q_SLOTS:
void on_samples_cleared();