Corrections & développement (suite)
This commit is contained in:
@@ -51,11 +51,24 @@
|
||||
<rect>
|
||||
<x>1190</x>
|
||||
<y>60</y>
|
||||
<width>501</width>
|
||||
<width>451</width>
|
||||
<height>411</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QPushButton" name="mCopyJSonToClipboardBtn">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>1210</x>
|
||||
<y>480</y>
|
||||
<width>80</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Copier</string>
|
||||
</property>
|
||||
</widget>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
@@ -16,6 +16,9 @@ CGeneralStatusPage::CGeneralStatusPage(QWidget *parent) :
|
||||
|
||||
ui->mCANModuleStatusTableWdgt->setColumnCount(3);
|
||||
ui->mCANModuleStatusTableWdgt->setHorizontalHeaderLabels(QStringList() << "Nom" << "Statut" << "Buffer");
|
||||
|
||||
ui->mPuckCANConStatLbl->setVisible(false);
|
||||
ui->mPuckCANLbl->setVisible(false);
|
||||
}
|
||||
|
||||
CGeneralStatusPage::~CGeneralStatusPage()
|
||||
@@ -142,6 +145,13 @@ int CGeneralStatusPage::SetCANConnectionStatus(bool Connected)
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
int CGeneralStatusPage::ClearCANModuleStatusTable()
|
||||
{
|
||||
ui->mCANModuleStatusTableWdgt->clearContents();
|
||||
ui->mCANModuleStatusTableWdgt->setRowCount(0);
|
||||
return RET_OK;
|
||||
}
|
||||
|
||||
int CGeneralStatusPage::UpdateCANModuleStatus(QString ModuleName, QString ModuleStatus, QString Buffer)
|
||||
{
|
||||
QList<QTableWidgetItem *> Items = ui->mCANModuleStatusTableWdgt->findItems(ModuleName,Qt::MatchFixedString);
|
||||
|
||||
@@ -33,6 +33,7 @@ public:
|
||||
int SetMQTTConnectionStatus(bool Connected);
|
||||
int SetCANConnectionStatus(bool Connected);
|
||||
int UpdateCANModuleStatus(QString ModuleName, QString ModuleStatus, QString Buffer);
|
||||
int ClearCANModuleStatusTable();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user