MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / syncFlexControlDialog

Method syncFlexControlDialog

src/gui/MainWindow_Controllers.cpp:302–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300}
301
302void MainWindow::syncFlexControlDialog()
303{
304 if (!m_flexControlDialog)
305 return;
306
307 auto* s = activeSlice();
308 m_flexControlDialog->setSlice(s);
309#ifdef HAVE_SERIALPORT
310 m_flexControlDialog->setPhysicalReady(
311 m_flexControlConnected,
312 m_flexControlConnected && m_flexControl ? m_flexControl->portName() : QString());
313#else
314 m_flexControlDialog->setPhysicalReady(false);
315#endif
316 int stepHz = 100;
317 if (auto* sw = spectrumForSlice(s))
318 stepHz = sw->stepSize();
319 else if (s && s->stepHz() > 0)
320 stepHz = s->stepHz();
321 m_flexControlDialog->setStepSize(stepHz);
322 m_flexControlDialog->setActiveAuxButton(m_flexActiveLedButton);
323}
324
325void MainWindow::syncFlexControlIndicatorForSettings()
326{

Callers

nothing calls this directly

Calls 7

setPhysicalReadyMethod · 0.80
stepSizeMethod · 0.80
stepHzMethod · 0.80
setActiveAuxButtonMethod · 0.80
setSliceMethod · 0.45
portNameMethod · 0.45
setStepSizeMethod · 0.45

Tested by

no test coverage detected