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:
45
mainwindow.h
45
mainwindow.h
@@ -12,6 +12,8 @@
|
||||
#include <Core/sendsystem.h>
|
||||
#include <Core/hashcomparer.h>
|
||||
#include "Datas.h"
|
||||
#include "commonbuttongroupwidget.h"
|
||||
#include "instructorbuttongroupwidget.h"
|
||||
#include "mywinheader.h"
|
||||
#include "updatenotifywidget.h"
|
||||
|
||||
@@ -25,6 +27,8 @@ class RecognizeSystem;
|
||||
class ExternalExecuter;
|
||||
class UpdateNotifyWidget;
|
||||
class HashComparer;
|
||||
class CommonButtonGroupWidget;
|
||||
class InstructorButtonGroupWidget;
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
@@ -33,7 +37,8 @@ class MainWindow : public QMainWindow
|
||||
public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
void callUpdateList();
|
||||
void bindNotifyWidget(UpdateNotifyWidget *widget);
|
||||
void bindWidgets(UpdateNotifyWidget *widget,CommonButtonGroupWidget *commonButtonGroup,
|
||||
InstructorButtonGroupWidget *instructorButtonGroup);
|
||||
void checkUpdate();
|
||||
~MainWindow();
|
||||
|
||||
@@ -44,38 +49,42 @@ signals:
|
||||
ExternalExecuter *externalExecuter,
|
||||
SendSystem *sendSystem,
|
||||
QThread *thread);
|
||||
|
||||
void sigSendCommand(QString command);
|
||||
void sigUpdateFilesOnServer(QList<FileData> *fileSendList);
|
||||
void sigSetConnect(ServerSettings* serverSettings,QThread *thread);
|
||||
void sigCalculateHash();
|
||||
void sigSendCommand(QString message);
|
||||
void sigSendAutorization();
|
||||
bool sigGetConnected();
|
||||
|
||||
|
||||
public slots:
|
||||
void updateProgress();
|
||||
void loadComplete();
|
||||
void lostConnection();
|
||||
void serverBlocked();
|
||||
void checkLoginResult(ServerAuthorization * serverAuth);
|
||||
void setNeedUpdate(bool flag,quint64 size,quint64 fileCount);
|
||||
|
||||
|
||||
private slots:
|
||||
void on_loginButton_clicked();
|
||||
void on_updateButton_clicked();
|
||||
void on_startButton_clicked();
|
||||
void on_saveServerButton_clicked();
|
||||
void on_settingsButton_clicked();
|
||||
void on_connectButton_clicked();
|
||||
void on_languageComboBox_activated(const QString &arg1);
|
||||
void slotDisableNotify();
|
||||
void slotConnectionState(bool flag);
|
||||
void slotServerDisconnect();
|
||||
void on_updateListGuideLabel_linkActivated(const QString &link);
|
||||
void on_loadToServerButton_clicked();
|
||||
void on_undoChangesButton_clicked();
|
||||
void on_startWithCurrentChangesButton_clicked();
|
||||
|
||||
void on_exitButton_clicked();
|
||||
|
||||
void on_offlineStartButton_clicked();
|
||||
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
MyWinHeader *header;
|
||||
UpdateNotifyWidget *updateWidget;
|
||||
CommonButtonGroupWidget *commonButtonGroupWidget;
|
||||
InstructorButtonGroupWidget *instructorButtonGroupWidget;
|
||||
QTranslator translator;
|
||||
TCPClient *client;
|
||||
DataParser *dataParser;
|
||||
@@ -97,13 +106,6 @@ private:
|
||||
bool isRecovery;
|
||||
|
||||
void painting();
|
||||
void initialize();
|
||||
void updateProgress();
|
||||
void loadComplete();
|
||||
void setNeedUpdate(bool flag,quint64 size,quint64 fileCount);
|
||||
void lostConnection();
|
||||
void serverBlocked();
|
||||
void checkLoginResult(ServerAuthorization * serverAuth);
|
||||
void checkAppAvailable();
|
||||
void checkLanguage(QString language);
|
||||
void autoStart();
|
||||
@@ -114,9 +116,14 @@ private:
|
||||
void startLoadingAnim();
|
||||
void stopLoadingMovie();
|
||||
void showCompleteDialogBox();
|
||||
|
||||
void showConnectionEmpty();
|
||||
|
||||
public:
|
||||
void initialize();
|
||||
void loadToServer();
|
||||
void undoCurrentChanges();
|
||||
void startUnityClient();
|
||||
|
||||
protected:
|
||||
virtual void keyPressEvent(QKeyEvent *event);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user