mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/RRJClient.git
synced 2026-03-28 05:25:39 +03:00
ref: segregate systems, codestyle, busy message
This commit is contained in:
49
Widgets/commonbuttongroupwidget.h
Normal file
49
Widgets/commonbuttongroupwidget.h
Normal file
@@ -0,0 +1,49 @@
|
||||
#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(MainWindow *mainWindow,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);
|
||||
void sigSendXMLAnswer(QString answer);
|
||||
|
||||
private slots:
|
||||
void on_updateButton_clicked();
|
||||
void on_startButton_clicked();
|
||||
|
||||
public:
|
||||
void updateProgressBar(float value);
|
||||
|
||||
private:
|
||||
Ui::CommonButtonGroupWidget *ui;
|
||||
MainWindow *mainWindow;
|
||||
ExternalExecuter *externalExecuter;
|
||||
SendSystem *sendSystem;
|
||||
};
|
||||
|
||||
#endif // COMMONBUTTONGROUPWIDGET_H
|
||||
Reference in New Issue
Block a user