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

Method restorePlotSweepConfig

app/src/UI/Dashboard.cpp:2509–2521  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2507 * @brief Re-applies saved sweep trigger settings onto freshly configured plot engines.
2508 */
2509void UI::Dashboard::restorePlotSweepConfig(const QMap<int, DSP::SweepEngine>& saved)
2510{
2511 for (auto it = saved.begin(); it != saved.end(); ++it) {
2512 auto live = m_plotSweep.find(it.key());
2513 if (live == m_plotSweep.end())
2514 continue;
2515
2516 const auto& src = it.value();
2517 live->setTrigger(src.level, src.edge, src.mode, src.holdoffSec, src.triggerCurve);
2518 live->setTimebase(src.timebaseSec);
2519 live->enabled = src.enabled;
2520 }
2521}
2522
2523/**
2524 * @brief Re-applies saved sweep trigger settings onto freshly configured multiplot engines.

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