ref: segregate systems, codestyle, busy message

This commit is contained in:
semenov
2024-12-27 15:41:41 +03:00
parent 2944f2d510
commit 98264fee7a
103 changed files with 4756 additions and 2763 deletions

View File

@@ -12,13 +12,14 @@
#include <Core/sendsystem.h>
#include <Core/hashcomparer.h>
#include <Core/versioncontainer.h>
#include "Datas.h"
#include "commonbuttongroupwidget.h"
#include "entrywidget.h"
#include "instructorbuttongroupwidget.h"
#include <Data/Datas.h>
#include <Widgets/commonbuttongroupwidget.h>
#include <Widgets/entrywidget.h>
#include <Widgets/instructorbuttongroupwidget.h>
#include <Widgets/updatenotifywidget.h>
#include <Widgets/versionselectwidget.h>
#include <UI/resourcemanager.h>
#include "mywinheader.h"
#include "updatenotifywidget.h"
#include "versionselectwidget.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
@@ -55,13 +56,14 @@ public:
void startUnityClient();
void setCurrentVersionName(StreamingVersionData *version);
void disableUnsaveButton(bool flag);
void activateLoadingAnimation(bool flag);
signals:
void sigInitializeClient(MainWindow* mainWindow,
RecognizeSystem *recognizeSystem,
ExternalExecuter *externalExecuter,
SendSystem *sendSystem,
QThread *thread);
ExternalExecuter *externalExecuter,
SendSystem *sendSystem,
QThread *thread);
void sigRecognize(UpdateController* updateController,
DataParser* dataParser,
MainWindow* mainWindow,
@@ -95,11 +97,8 @@ private slots:
void on_settingsButton_clicked();
void on_languageComboBox_activated(const QString &arg1);
void slotDisableNotify();
void on_updateListGuideLabel_linkActivated(const QString &link);
void on_exitButton_clicked();
void on_offlineStartButton_clicked();
void on_unsafeChangingButton_clicked();
private:
@@ -120,10 +119,10 @@ private:
SendSystem *sendSystem;
HashComparer *hashComparer;
VersionContainer *versionContainer;
ResourceManager *resourceManager;
QThread *workerThread;
QThread *animationThread;
QTimer *timer;
QMovie *movie;
QLabel *movieLabel;
QList<FileData> *updateList;
@@ -131,18 +130,15 @@ private:
int filesLoaded;
bool isRecovery;
void painting();
void checkAppAvailable();
void checkLanguage(QString language);
void autoStart();
void loadStaticData();
void bindClient();
void createObjects();
void startLoadingAnim();
void stopLoadingMovie();
void showConnectionEmpty();
void setTitle();
void setUpUi();
protected:
virtual void keyPressEvent(QKeyEvent *event);