mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJServer.git
synced 2026-03-28 19:55:48 +03:00
refact
This commit is contained in:
@@ -202,12 +202,16 @@ void CheckerTask::outReport(FIMReport report)
|
||||
ui->plainText->appendHtml(str);
|
||||
*/
|
||||
|
||||
//AMM/FIM
|
||||
str = QString("<p style=\"color:gray;\">%1</p>").arg(item.procedure.doc);
|
||||
ui->plainText->appendHtml(str);
|
||||
|
||||
//Title
|
||||
str = QString("<p style=\"color:blue;\">%1</p>").arg(item.procedure.title);
|
||||
ui->plainText->appendHtml(str);
|
||||
|
||||
//DMcode
|
||||
str = QString("<p>%1</p>").arg(item.procedure.dmCode);
|
||||
str = QString("<p style=\"color:gray;\">%1</p>").arg(item.procedure.dmCode);
|
||||
ui->plainText->appendHtml(str);
|
||||
|
||||
//Result
|
||||
@@ -220,10 +224,10 @@ void CheckerTask::outReport(FIMReport report)
|
||||
ui->plainText->appendHtml(str);
|
||||
|
||||
//Text
|
||||
str = QString("<p style=\"color:green;\">%1</p>").arg(item.text);
|
||||
str = QString("<p style=\"color:gray;\">%1 %2</p>").arg(tr("Comment:"), item.text);
|
||||
ui->plainText->appendHtml(str);
|
||||
|
||||
//ui->plainText->appendHtml("<br>");
|
||||
ui->plainText->appendHtml("<br>");
|
||||
}
|
||||
|
||||
//ui->plainText->appendHtml("<br>");
|
||||
@@ -248,8 +252,8 @@ void CheckerTask::outReport(FIMReport report)
|
||||
flNeedMMEL = true;
|
||||
|
||||
// имя GameObject-а в сцене
|
||||
str = QString("<p>%1</p>").arg(whItem.goName);
|
||||
ui->plainText->appendHtml(str);
|
||||
//str = QString("<p>%1</p>").arg(whItem.goName);
|
||||
//ui->plainText->appendHtml(str);
|
||||
|
||||
// человеческое название прибора
|
||||
str = QString("<p>%1</p>").arg(whItem.objName);
|
||||
@@ -259,7 +263,7 @@ void CheckerTask::outReport(FIMReport report)
|
||||
str = QString("<p>%1</p>").arg(whItem.code);
|
||||
ui->plainText->appendHtml(str);
|
||||
|
||||
//ui->plainText->appendHtml("<br>");
|
||||
ui->plainText->appendHtml("<br>");
|
||||
}
|
||||
|
||||
//ui->plainText->appendHtml("<br>");
|
||||
@@ -267,14 +271,21 @@ void CheckerTask::outReport(FIMReport report)
|
||||
if(flNeedMMEL)
|
||||
{
|
||||
QString strMMEL = tr("Trainee believes that:");
|
||||
|
||||
if(report.mmel)
|
||||
strMMEL += tr("The aircraft may operate with its equipment removed in accordance with the \"Master Minimum Equipment List\"");
|
||||
else
|
||||
strMMEL += tr("The aircraft cannot be flown with equipment removed in accordance with the \"Master Minimum Equipment List\"");
|
||||
|
||||
str = QString("<p style=\"color:gray;\">%1</p>").arg(strMMEL);
|
||||
ui->plainText->appendHtml(str);
|
||||
|
||||
if(report.mmel)
|
||||
{
|
||||
strMMEL = tr("The aircraft may operate with its equipment removed in accordance with the \"Master Minimum Equipment List\"");
|
||||
str = QString("<p style=\"color:green;\">%1</p>").arg(strMMEL);
|
||||
ui->plainText->appendHtml(str);
|
||||
}
|
||||
else
|
||||
{
|
||||
strMMEL = tr("The aircraft cannot be flown with equipment removed in accordance with the \"Master Minimum Equipment List\"");
|
||||
str = QString("<p style=\"color:orange;\">%1</p>").arg(strMMEL);
|
||||
ui->plainText->appendHtml(str);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user