diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-14 11:50:24 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-01-14 11:50:24 -0600 |
commit | 7d92c9326f68ed879bf34aa5be0507d7a18cc8d6 (patch) | |
tree | 43b52038eabdbc7ba7bcc1ee430d8d93dce864ee /clients/tde/src/part | |
parent | 1219c9b7a497d10cc4e898feddbdbbc840404522 (diff) | |
download | ulab-7d92c9326f68ed879bf34aa5be0507d7a18cc8d6.tar.gz ulab-7d92c9326f68ed879bf34aa5be0507d7a18cc8d6.zip |
Add trace zero indicators
Save and restore offsets
Diffstat (limited to 'clients/tde/src/part')
-rw-r--r-- | clients/tde/src/part/scope/part.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clients/tde/src/part/scope/part.cpp b/clients/tde/src/part/scope/part.cpp index c319891..da36f7a 100644 --- a/clients/tde/src/part/scope/part.cpp +++ b/clients/tde/src/part/scope/part.cpp @@ -1344,6 +1344,7 @@ void ScopePart::saveWaveforms() { ds << m_samplesInTrace[traceno]; ds << m_voltsDiv[traceno]; ds << m_secsDiv[traceno]; + ds << m_base->traceZoomWidget->traceOffset(traceno-1); ds << m_traceWidget->samples(traceno-1); ds << m_traceWidget->positions(traceno-1); } @@ -1375,14 +1376,18 @@ void ScopePart::recallWaveforms() { ds >> m_samplesInTrace[traceno]; ds >> m_voltsDiv[traceno]; ds >> m_secsDiv[traceno]; + double offset; TQDoubleArray values; TQDoubleArray positions; + ds >> offset; ds >> values; ds >> positions; m_traceWidget->setSamples(traceno-1, values); m_traceWidget->setPositions(traceno-1, positions); + m_traceWidget->setTraceOffset(traceno-1, offset); m_base->traceZoomWidget->setSamples(traceno-1, values); m_base->traceZoomWidget->setPositions(traceno-1, positions); + m_base->traceZoomWidget->setTraceOffset(traceno-1, offset); } for (int cursorno=0; cursorno<5; cursorno++) { double cursorPos; |