feat: add version container

This commit is contained in:
semenov
2024-12-27 10:43:26 +03:00
parent 9ac5b46030
commit 2944f2d510
85 changed files with 1875 additions and 632 deletions

View File

@@ -8,16 +8,17 @@ CommonButtonGroupWidget::CommonButtonGroupWidget(QWidget *parent) :
ui->setupUi(this);
}
void CommonButtonGroupWidget::initialize(ExternalExecuter *extExec,SendSystem *sendSystem,TCPClient *client)
void CommonButtonGroupWidget::initialize(MainWindow *mainWindow,ExternalExecuter *extExec,SendSystem *sendSystem,TCPClient *client)
{
externalExecuter = extExec;
this->sendSystem = sendSystem;
this->mainWindow = mainWindow;
ui->loadingProgressBar->setValue(0);
ui->loadingProgressBar->hide();
ui->updateButton->hide();
ui->startButton->hide();
ui->startButton->setEnabled(false);
ui->startButton->setEnabled(false);
connect(this,&CommonButtonGroupWidget::sigSendCommand,client,&TCPClient::slotSendCommand,Qt::AutoConnection);
connect(this,&CommonButtonGroupWidget::sigSendXMLAnswer,sendSystem,&SendSystem::xmlAnswer,Qt::DirectConnection);
@@ -40,6 +41,7 @@ void CommonButtonGroupWidget::loadCompleteState()
void CommonButtonGroupWidget::lastVerInstalledState()
{
show();
ui->updateButton->hide();
ui->loadingProgressBar->hide();
ui->startButton->show();
}
@@ -83,6 +85,7 @@ void CommonButtonGroupWidget::on_updateButton_clicked()
{
emit sigSendCommand("update");
startUpdateState();
mainWindow->disableUnsaveButton(true);
}
void CommonButtonGroupWidget::on_startButton_clicked()