CUcontent_sysTests::~CUcontent_sysTests()
{
	if (_SSMPdev)
		_SSMPdev->stopActuatorTesting();	// ActuatorTestDlg already stops test on delete...
	disconnect( startActuatorTest_pushButton, SIGNAL( released() ), this, SLOT( startActuatorTest() ) );
	disconnect( testImmoLine_pushButton, SIGNAL( released() ), this, SLOT( testImmobilizerLine() ) );
}
CUcontent_sysTests::CUcontent_sysTests(QWidget *parent) : QWidget(parent)
{
	_SSMPdev = NULL;
	_actuatorTestTitles.clear();
	// Setup GUI:
	setupUi(this);
	setupUiFonts();
	// Disable GUI-elements:
	actuatorlistTitle_label->setEnabled(false);
	actuators_listWidget->setEnabled(false);
	actuatorTest_arrow_label->setEnabled(false);
	startActuatorTest_pushButton->setEnabled(false);
	actuatorTestInfo_label->setEnabled(false);
	testImmoLine_pushButton->setEnabled(false);
	testImmoLineTitel_label->setEnabled(false);
	// Connect signals and slots:
	connect( startActuatorTest_pushButton, SIGNAL( released() ), this, SLOT( startActuatorTest() ) );
	connect( testImmoLine_pushButton, SIGNAL( released() ), this, SLOT( testImmobilizerLine() ) );
	// NOTE: using released() instead of pressed() as workaround for a Qt-Bug occuring under MS Windows
}
Beispiel #3
0
bool SSMprotocol::restartActuatorTest()
{
	return startActuatorTest(_selectedActuatorTestIndex);
}