MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / restoreMultiplotSweepConfig

Method restoreMultiplotSweepConfig

app/src/UI/Dashboard.cpp:2526–2538  ·  view source on GitHub ↗

* @brief Re-applies saved sweep trigger settings onto freshly configured multiplot engines. */

Source from the content-addressed store, hash-verified

2524 * @brief Re-applies saved sweep trigger settings onto freshly configured multiplot engines.
2525 */
2526void UI::Dashboard::restoreMultiplotSweepConfig(const QMap<int, DSP::SweepEngine>& saved)
2527{
2528 for (auto it = saved.begin(); it != saved.end(); ++it) {
2529 auto live = m_multiplotSweep.find(it.key());
2530 if (live == m_multiplotSweep.end())
2531 continue;
2532
2533 const auto& src = it.value();
2534 live->setTrigger(src.level, src.edge, src.mode, src.holdoffSec, src.triggerCurve);
2535 live->setTimebase(src.timebaseSec);
2536 live->enabled = src.enabled;
2537 }
2538}
2539
2540/**
2541 * @brief Configures the line series data structures for all dashboard plots.

Callers

nothing calls this directly

Calls 6

beginMethod · 0.80
findMethod · 0.80
keyMethod · 0.80
setTriggerMethod · 0.80
setTimebaseMethod · 0.80
valueMethod · 0.45

Tested by

no test coverage detected