HybridTestViewManager::HybridTestViewManager(QObject *parent, HybridTestTab& hybridTab, HybridTest& hybridTest) : QObject(parent), m_hybridTestTab(hybridTab), m_hybridTest(hybridTest) { WireButtons(); WireExternalCalls(); }
SetupViewManager::SetupViewManager(QObject *parent, SetupTab &setup, Instrument &inst, Settings &config) : QObject(parent), setupTab(setup), instrument(inst) { WireSettings(config); config.ParseJsonData(); WireHostAndPort(); WireMessages(); WireButtons(); WireDisplayUpdate(); setupTab.SetHostName(config.GetHostName()); setupTab.SetPort(config.GetPortNumber()); setupTab.SetCommands(config.GetCommandsAsModel()); auto longWait = config.GetLongWaitMs(); auto shortWait = config.GetShortWaitMs(); instrument.SetLongWaitMs(longWait); instrument.SetShortWaitMs(shortWait); emit NotifyStatusUpdated(tr("Long Wait Ms: %1").arg(longWait)); emit NotifyStatusUpdated(tr("Short Wait Ms: %1").arg(shortWait)); }