Esempio n. 1
0
CSettings::CSettings()
{
	m_pInstance = this;
	m_lLastChange = 0;
	Reset();
	ResetCalibration();
}
Esempio n. 2
0
//--------------------------------------------------------------------------------------
//! Defines the work for constructor
//--------------------------------------------------------------------------------------
void tTrimTabConfigurePage::AddConfigInfo()
{
    Connect(m_pTrimTabSensorProxy, SIGNAL(DeviceTrimTabConfigurationInfoChanged(const SystemData::tcPgn130576Data &)),
            this, SLOT(ConfigStatus(const SystemData::tcPgn130576Data &)));

    m_pDefaultsPushButton->hide();

    m_pResetCalibrationButton = new tPushButton( tr("Reset Calibration"), this);
    Connect( m_pResetCalibrationButton, SIGNAL( clicked() ), this, SLOT( ResetCalibration() ) );

    m_pAdvancedLayout->setVerticalSpacing(50);
    m_pAdvancedLayout->addWidget(m_pResetCalibrationButton, 0, 2);

    tGlobal<tNDP2k>::Instance()->DeviceManager().PingDeviceName(m_pDevice);

    //setTabOrder(pNameEdit, m_pInstanceEdit);
    setTabOrder(m_pInstanceEdit, m_pResetCalibrationButton);
    setTabOrder(m_pResetCalibrationButton, m_pSerialNumberEdit);
    setTabOrder(m_pSerialNumberEdit, m_pSendSerialPushButton);
}