SetupTabViewManager::SetupTabViewManager(QObject *parent,
                                          SetupTab& tab,
                                          SystemController& sysCtrl,
                                          Settings& config) :
     QObject(parent),
     m_setupTab(tab),
     m_systemController(sysCtrl)
 {
     WireMessages(config);
     WireSetupTabButtons(config);
     WireCallToOtherTabs(config);
     WireCallFromOtherTabs();
 }
    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));
    }