mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
* add buttonsView common(complete) * add buttonsView instructor(notWorking) * BUGFIX sendSystem meth update files * BUGFIX updateController meth checkNeedUpdate
49 lines
1.0 KiB
C++
49 lines
1.0 KiB
C++
#ifndef COMMONBUTTONGROUPWIDGET_H
|
|
#define COMMONBUTTONGROUPWIDGET_H
|
|
|
|
#include <QWidget>
|
|
|
|
#include <Core/tcpclient.h>
|
|
|
|
namespace Ui {
|
|
class CommonButtonGroupWidget;
|
|
}
|
|
|
|
class TCPClient;
|
|
class ExternalExecuter;
|
|
class SendSystem;
|
|
|
|
class CommonButtonGroupWidget : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit CommonButtonGroupWidget(QWidget *parent = nullptr);
|
|
void initialize(ExternalExecuter *extExec,SendSystem *sendSystem,TCPClient *client);
|
|
void loadCompleteState();
|
|
void lastVerInstalledState();
|
|
void disconnectState();
|
|
void startUpdateState();
|
|
void showProgressBar(bool flag);
|
|
void needUpdateState(bool flag);
|
|
void startButtonActive(bool flag);
|
|
~CommonButtonGroupWidget();
|
|
|
|
signals:
|
|
void sigSendCommand(QString command);
|
|
|
|
private slots:
|
|
void on_updateButton_clicked();
|
|
void on_startButton_clicked();
|
|
|
|
public:
|
|
void updateProgressBar(float value);
|
|
|
|
private:
|
|
Ui::CommonButtonGroupWidget *ui;
|
|
ExternalExecuter *externalExecuter;
|
|
SendSystem *sendSystem;
|
|
};
|
|
|
|
#endif // COMMONBUTTONGROUPWIDGET_H
|