This commit is contained in:
JF
2019-05-10 17:11:48 -04:00
parent 2423aa27c3
commit 110f96c536
23 changed files with 431 additions and 23 deletions
+10
View File
@@ -280,3 +280,13 @@ bool CAutomatedTestReport::IsAutomatedTestSuccess()
return true;
}
QString CAutomatedTestReport::GetPretestResult()
{
if(mPreTestResult)
{
return "Succès";
}
return "Échec";
}
+1
View File
@@ -38,6 +38,7 @@ public:
QString GetPinSecondTestResult(int PinNumber);
QString GetShortedPins(int PinNumber);
QString GetWrongPin(int PinNumber);
QString GetPretestResult();
int SetPreTestResult(bool PreTestPassed);
+1
View File
@@ -9,6 +9,7 @@ CCableTestBench::CCableTestBench(QObject *parent) :
mActualCable(CConnectorDefs::UNKNOWN_CONNECTOR_TYPE,&mIOInterface)
{
w = new MainWindow(0,this);
w->setWindowTitle("Cablotron");
}
CCableTestBench::~CCableTestBench()
-7
View File
@@ -14,13 +14,6 @@ CMainPage::CMainPage(QWidget *parent) :
ui->mMainTabWidget->clear();
// SM_HANDLE hndl;
// SM_Open(&hndl,"192.168.0.101");
}
CMainPage::~CMainPage()
-5
View File
@@ -8,11 +8,6 @@ MainWindow::MainWindow(QWidget *parent,CCableTestBench* ProgramHandle)
{
resize(1800,890);
// mMainPage = new CMainPage();
// mVisualInspPage = new CVisualInspectionPage(this);
// mVisualInspPage->hide();
// mCableTestPage = new CCableTestPage(this);
mMainPage = new CMainPage(this);
mVisualInspPage = new CVisualInspectionPage(this);
mVisualInspPage->hide();
+2
View File
@@ -120,6 +120,7 @@ int CTestReport::SaveReportToFile()
ReportStream << mVisualInspectionResultReport.mVerifNotesText << "\n\n";
ReportStream << "-----------------------------------------\n";
ReportStream << QString("Résultats du test automatique du câble:\n");
ReportStream << QString("Pré-test des modules d'I/O: ") << mAutomatedTestReport.GetPretestResult() << "\n";
ReportStream << QString("Lorsqu'applicable, les valeurs entre crochets [] correspondent aux contacts en défaut.\n\n");
ReportStream.setFieldWidth(15);
ReportStream.setFieldAlignment(QTextStream::AlignCenter);
@@ -144,6 +145,7 @@ int CTestReport::SaveReportToFile()
ReportStream << QString("\n\n\n Signature de l'opérateur de test: _________________________________________\n\n");
ReportStream << QString(" Date: _________________________________________\n\n");
ReportStream << "-----------------------------------------\n";
ReportStream << "Log du test:\n";
ReportStream << mTestLog;
+1
View File
@@ -23,6 +23,7 @@ public:
bool IsAutoTestReportReady();
bool GetGlobalAutoTestResult();
int SaveReportToFile();
QString GetLastReportFileName();
+3 -1
View File
@@ -6,7 +6,9 @@ int main(int argc, char *argv[])
{
QApplication a(argc, argv);
CCableTestBench CableTestBench;
QCoreApplication::setApplicationName("Testeur de cables");
QApplication::setApplicationName("Test");
CCableTestBench CableTestBench;
CableTestBench.Start();
return a.exec();