mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
feat: change buttonsView
* add buttonsView common(complete) * add buttonsView instructor(notWorking) * BUGFIX sendSystem meth update files * BUGFIX updateController meth checkNeedUpdate
This commit is contained in:
48
commonbuttongroupwidget.h
Normal file
48
commonbuttongroupwidget.h
Normal file
@@ -0,0 +1,48 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user