From 87db4d0ef4439a141a5812d97c48000cb8e503ad Mon Sep 17 00:00:00 2001 From: semenov Date: Fri, 15 Aug 2025 14:19:33 +0300 Subject: [PATCH] feat: fix entryWidget button behaviour --- Core/UpdateController.cpp | 24 +- Core/UpdateController.h | 2 + Core/dataparser.cpp | 27 +- Core/dataparseroutput.cpp | 4 +- Core/postprocessorsystem.cpp | 2 +- Core/recognizesystem.cpp | 3 +- Core/recognizesystem.h | 2 +- Core/tools.cpp | 8 +- Core/tools.h | 2 +- StaticData/clientHash.xml | 5141 ++++++++++++++------------- StaticData/serverHash.xml | 20 +- StaticData/settings.xml | 4 +- StaticData/streamingHash.xml | 5126 +++++++++++++------------- StaticData/temp.xml | 2 +- Widgets/commonbuttongroupwidget.cpp | 1 + Widgets/entrywidget.cpp | 9 +- Widgets/entrywidget.h | 5 +- Widgets/entrywidget.ui | 3 + bootstrap.cpp | 1 + coremanager.cpp | 52 +- coremanager.h | 3 + mainwindow.cpp | 36 +- mainwindow.h | 2 + mainwindow.ui | 6 +- widgetmanager.cpp | 24 +- widgetmanager.h | 2 +- 26 files changed, 5292 insertions(+), 5219 deletions(-) diff --git a/Core/UpdateController.cpp b/Core/UpdateController.cpp index 33ca9ef..ce1e7df 100644 --- a/Core/UpdateController.cpp +++ b/Core/UpdateController.cpp @@ -45,6 +45,8 @@ QList UpdateController::calculateHash(const QString& path,const QStrin } QList *hashes = new QList; + QString fullSize = Tools::convertFileSize(getDirectorySize(path),false); + quint64 currentSize = 0; QStringList filter; filter << "*"; @@ -78,6 +80,9 @@ QList UpdateController::calculateHash(const QString& path,const QStrin FileData currentFile; QFile file(fileInfo.absoluteFilePath()); + currentSize += fileInfo.size(); + + emit sigSendHashInfo(fullSize,Tools::convertFileSize(currentSize,false)); quint64 fileSize = file.size(); //буффер для хэширования крупных файлов const quint64 bufferSize = 10240; @@ -110,6 +115,24 @@ QList UpdateController::calculateHash(const QString& path,const QStrin return *hashes; } +quint64 UpdateController::getDirectorySize(const QString& path) +{ + quint64 totalSize = 0; + QDirIterator iterator(path, QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); + + while (iterator.hasNext()) + { + iterator.next(); + QFileInfo fileInfo = iterator.fileInfo(); + if (fileInfo.isFile()) + { + totalSize += fileInfo.size(); + } + } + + return totalSize; +} + void UpdateController::updateFilesOnServer(QList *fileSendList){ QListIterator serverIterator(*fileSendList); @@ -132,7 +155,6 @@ void UpdateController::updateFilesOnServer(QList *fileSendList){ } calculateCommonHash(); - sendSystem->sendFinish(); emit sigUpdateComplete(true); diff --git a/Core/UpdateController.h b/Core/UpdateController.h index dd6b34b..6727642 100644 --- a/Core/UpdateController.h +++ b/Core/UpdateController.h @@ -38,6 +38,7 @@ public: signals: void sigUpdateComplete(bool flag); + void sigSendHashInfo(QString fullSize,QString current); private: SendSystem *sendSystem; DataParserOutput * dataParserOut; @@ -47,6 +48,7 @@ private: QList streamingDataList; QList calculateHash(const QString& path,const QString& ignoreName); + quint64 getDirectorySize(const QString &path); }; diff --git a/Core/dataparser.cpp b/Core/dataparser.cpp index 1108633..617d3f8 100644 --- a/Core/dataparser.cpp +++ b/Core/dataparser.cpp @@ -132,27 +132,12 @@ void DataParser::xmlParser(const QByteArray& array) postProcessSystem->startCompare(); } -// if (value == "BASEDELETETRY") -// { -// emit sigNotify(tr("Нельзя удалять базовую версию")); -// } - -// if (value == "TRYACTIVEDELETE") -// { -// emit sigNotify(tr("Нельзя удалять активную версию")); -// } - -// if (value == "DUPLICATEVERNAME") -// { -// emit sigNotify(tr("Такое имя уже существет")); -// } - -// if (value == "UNCHANGEABLE") -// { -// emit sigNotify(tr("Нельзя выгружать в базовую версию")); -// postProcessSystem->showUpdateList(); -// //emit recognizeSystem->sigShowUpdateList(); -// } + if (value == "UNCHANGEABLE") + { + //emit sigNotify(tr("Нельзя выгружать в базовую версию")); + //postProcessSystem->showUpdateList(); + //emit recognizeSystem->sigShowUpdateList(); + } if (value == "CHANGEABLE") { diff --git a/Core/dataparseroutput.cpp b/Core/dataparseroutput.cpp index 1e9a531..9c099b4 100644 --- a/Core/dataparseroutput.cpp +++ b/Core/dataparseroutput.cpp @@ -153,14 +153,14 @@ void DataParserOutput::createServerSettings(ServerSettings* serverSettings) if(serverSettings->LocalVersionName == "") { xmlWriter.writeStartElement("VersionData"); - xmlWriter.writeAttribute("Version","NONE"); + xmlWriter.writeAttribute("Version","-----"); xmlWriter.writeAttribute("isChangable","0"); xmlWriter.writeEndElement(); } else { xmlWriter.writeStartElement("VersionData"); - xmlWriter.writeAttribute("Version",serverSettings->versionData.getViewName()); + xmlWriter.writeAttribute("Version",serverSettings->LocalVersionName); xmlWriter.writeAttribute("isChangable",QString::number(serverSettings->versionData.getIsChangeable())); } diff --git a/Core/postprocessorsystem.cpp b/Core/postprocessorsystem.cpp index 9f61214..6c60a2a 100644 --- a/Core/postprocessorsystem.cpp +++ b/Core/postprocessorsystem.cpp @@ -85,6 +85,6 @@ void PostProcessorSystem::calculateCommonHash() void UpdateController::checkCanUpdate() { - QByteArray checkUpdate = dataParserOut->xmlAnswer_notify("CANCHANGE"); + QByteArray checkUpdate = dataParserOut->xmlAnswer_notify("CANCHANGE"); //TODO: ПЕРЕВЕСТИ НА PACKAGETYPE sendSystem->sendXMLAnswer(checkUpdate); } diff --git a/Core/recognizesystem.cpp b/Core/recognizesystem.cpp index a80b216..1e51379 100644 --- a/Core/recognizesystem.cpp +++ b/Core/recognizesystem.cpp @@ -258,8 +258,7 @@ void RecognizeSystem::recognize(QTcpSocket *socket) if(packetType == PacketType::HASH_CALCULATE_START) { - emit sigSetInineDebug(tr("Пересчет хэша на сервере...")); - //mainWindow->setInlineDebug(); + emit sigdRecalculateHashOnServerState(); } if(packetType == PacketType::BUSY) diff --git a/Core/recognizesystem.h b/Core/recognizesystem.h index 8e3201f..9d4b362 100644 --- a/Core/recognizesystem.h +++ b/Core/recognizesystem.h @@ -35,7 +35,7 @@ signals: void sigSocketWaitForReadyRead(int waitTime); void sigAnimationActivated(bool flag); void sigCheckUpdate(); - void sigSetInineDebug(QString message); + void sigdRecalculateHashOnServerState(); private: QList *folderList; diff --git a/Core/tools.cpp b/Core/tools.cpp index 36de0b5..1a8d7be 100644 --- a/Core/tools.cpp +++ b/Core/tools.cpp @@ -70,7 +70,7 @@ QString Tools::createSendFullPath(QString path) return fullPath; } -QString Tools::convertFileSize(quint64 fileSize) +QString Tools::convertFileSize(quint64 fileSize, bool withName) { quint64 megaByte = fileSize / (1024 * 1024); QString resultSize; @@ -78,11 +78,13 @@ QString Tools::convertFileSize(quint64 fileSize) if (megaByte == 0) { auto kiloByte = fileSize / 1024; - resultSize = QString::number(kiloByte) + "кб. "; + resultSize = QString::number(kiloByte); + if(withName)resultSize.append("кб. "); } else { - resultSize = QString::number(megaByte) + "мб. "; + resultSize = QString::number(megaByte); + if(withName)resultSize.append("мб. "); } diff --git a/Core/tools.h b/Core/tools.h index e90ca20..acff260 100644 --- a/Core/tools.h +++ b/Core/tools.h @@ -65,7 +65,7 @@ public: static QString createLocalPath(QString path); static QString createSendFullPath(QString path); static QString createReceiveFullPath(QString path,StreamingVersionData *version); - static QString convertFileSize(quint64 fileSize); + static QString convertFileSize(quint64 fileSize, bool withName); }; #endif // GLOBAL_H diff --git a/StaticData/clientHash.xml b/StaticData/clientHash.xml index eb8a436..a0b0689 100644 --- a/StaticData/clientHash.xml +++ b/StaticData/clientHash.xml @@ -12,6 +12,10 @@ + + + + @@ -58,14 +62,15 @@ + - - + + - + @@ -188,11 +193,11 @@ - + - + @@ -212,11 +217,8 @@ - - - - + @@ -228,246 +230,252 @@ - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -480,264 +488,265 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + - + - + - - - - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -750,265 +759,265 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -1021,129 +1030,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -1156,129 +1165,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -1291,265 +1300,264 @@ - - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -1563,128 +1571,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + - - - + - + - - - + + + - + - + - + + + + + @@ -1698,128 +1706,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -1833,264 +1841,264 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -2104,128 +2112,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -2239,128 +2247,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -2374,264 +2382,266 @@ - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -2643,265 +2653,266 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + + - + - + - - - - + + + + - + - + - - - - - + + + + - + - + - - - - + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -2913,190 +2924,186 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + + + + + - - - - + + + + - + @@ -3104,75 +3111,79 @@ - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -3184,130 +3195,130 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -3319,130 +3330,130 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -3454,266 +3465,265 @@ - - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -3726,129 +3736,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -3861,129 +3871,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -3996,265 +4006,265 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -4267,129 +4277,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -4402,129 +4412,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -4537,11 +4547,7 @@ - - - - - + @@ -4549,16 +4555,16 @@ - - + + - - + + @@ -4566,16 +4572,16 @@ - - + + - - + + @@ -4583,16 +4589,16 @@ - - + + - - + + @@ -4600,16 +4606,16 @@ - - + + - - + + @@ -4617,16 +4623,16 @@ - - + + - - + + @@ -4634,16 +4640,16 @@ - - + + - - + + @@ -4651,16 +4657,16 @@ - - + + - - + + @@ -4668,16 +4674,16 @@ - - + + - - + + @@ -4685,16 +4691,16 @@ - - + + - - + + @@ -4702,16 +4708,16 @@ - - + + - - + + @@ -4719,16 +4725,16 @@ - - + + - - + + @@ -4736,16 +4742,16 @@ - - + + - - + + @@ -4753,16 +4759,16 @@ - - + + - - + + @@ -4770,16 +4776,16 @@ - - + + - - + + @@ -4787,15 +4793,17 @@ - - + + - + + + @@ -4810,9 +4818,7 @@ - - - + @@ -4820,16 +4826,16 @@ - - + + - - + + @@ -4837,16 +4843,16 @@ - - + + - - + + @@ -4854,16 +4860,16 @@ - - + + - - + + @@ -4871,16 +4877,16 @@ - - + + - - + + @@ -4888,16 +4894,16 @@ - - + + - - + + @@ -4905,16 +4911,16 @@ - - + + - - + + @@ -4922,16 +4928,16 @@ - - + + - - + + @@ -4939,16 +4945,16 @@ - - + + - - + + @@ -4956,16 +4962,16 @@ - - + + - - + + @@ -4973,16 +4979,16 @@ - - + + - - + + @@ -4990,16 +4996,16 @@ - - + + - - + + @@ -5007,16 +5013,16 @@ - - + + - - + + @@ -5024,16 +5030,16 @@ - - + + - - + + @@ -5041,16 +5047,16 @@ - - + + - - + + @@ -5058,15 +5064,17 @@ - - + + - + + + @@ -5081,9 +5089,7 @@ - - - + @@ -5091,16 +5097,16 @@ - - + + - - + + @@ -5108,16 +5114,16 @@ - - + + - - + + @@ -5125,16 +5131,16 @@ - - + + - - + + @@ -5142,16 +5148,16 @@ - - + + - - + + @@ -5159,16 +5165,16 @@ - - + + - - + + @@ -5176,16 +5182,16 @@ - - + + - - + + @@ -5193,16 +5199,16 @@ - - + + - - + + @@ -5210,16 +5216,16 @@ - - + + - - + + @@ -5227,16 +5233,16 @@ - - + + - - + + @@ -5244,16 +5250,16 @@ - - + + - - + + @@ -5261,16 +5267,16 @@ - - + + - - + + @@ -5278,16 +5284,16 @@ - - + + - - + + @@ -5295,16 +5301,16 @@ - - + + - - + + @@ -5312,16 +5318,16 @@ - - + + - - + + @@ -5329,15 +5335,17 @@ - - + + - + + + @@ -5352,9 +5360,7 @@ - - - + @@ -5362,16 +5368,16 @@ - - + + - - + + @@ -5379,16 +5385,16 @@ - - + + - - + + @@ -5396,16 +5402,16 @@ - - + + - - + + @@ -5413,16 +5419,16 @@ - - + + - - + + @@ -5430,16 +5436,16 @@ - - + + - - + + @@ -5447,16 +5453,16 @@ - - + + - - + + @@ -5464,15 +5470,17 @@ - - + + - + + + @@ -5487,9 +5495,7 @@ - - - + @@ -5497,16 +5503,16 @@ - - + + - - + + @@ -5514,16 +5520,16 @@ - - + + - - + + @@ -5531,16 +5537,16 @@ - - + + - - + + @@ -5548,16 +5554,16 @@ - - + + - - + + @@ -5565,16 +5571,16 @@ - - + + - - + + @@ -5582,16 +5588,16 @@ - - + + - - + + @@ -5599,15 +5605,17 @@ - - + + - + + + @@ -5622,9 +5630,7 @@ - - - + @@ -5632,16 +5638,16 @@ - - + + - - + + @@ -5649,16 +5655,16 @@ - - + + - - + + @@ -5666,16 +5672,16 @@ - - + + - - + + @@ -5683,16 +5689,16 @@ - - + + - - + + @@ -5700,16 +5706,16 @@ - - + + - - + + @@ -5717,16 +5723,16 @@ - - + + - - + + @@ -5734,16 +5740,16 @@ - - + + - - + + @@ -5751,16 +5757,16 @@ - - + + - - + + @@ -5768,16 +5774,16 @@ - - + + - - + + @@ -5785,16 +5791,16 @@ - - + + - - + + @@ -5802,16 +5808,16 @@ - - + + - - + + @@ -5819,16 +5825,16 @@ - - + + - - + + @@ -5836,16 +5842,16 @@ - - + + - - + + @@ -5853,16 +5859,16 @@ - - + + - - + + @@ -5870,15 +5876,17 @@ - - + + - + + + @@ -5893,9 +5901,7 @@ - - - + @@ -5903,16 +5909,16 @@ - - + + - - + + @@ -5920,16 +5926,16 @@ - - + + - - + + @@ -5937,16 +5943,16 @@ - - + + - - + + @@ -5954,14 +5960,15 @@ - - + + + @@ -5987,7 +5994,7 @@ - + @@ -5996,8 +6003,7 @@ - - + @@ -6005,32 +6011,33 @@ - - + + - - - - - - - + - - - - - - - - - + + + + + + + + + + + + + + + + @@ -6038,16 +6045,16 @@ - - + + - - + + @@ -6055,16 +6062,16 @@ - - + + - - + + @@ -6072,16 +6079,16 @@ - - + + - - + + @@ -6089,16 +6096,16 @@ - - + + - - + + @@ -6106,16 +6113,16 @@ - - + + - - + + @@ -6123,16 +6130,16 @@ - - + + - - + + @@ -6140,15 +6147,17 @@ - - + + - + + + @@ -6163,9 +6172,7 @@ - - - + @@ -6173,16 +6180,16 @@ - - + + - - + + @@ -6190,16 +6197,16 @@ - - + + - - + + @@ -6207,16 +6214,16 @@ - - + + - - + + @@ -6224,16 +6231,16 @@ - - + + - - + + @@ -6241,16 +6248,16 @@ - - + + - - + + @@ -6258,16 +6265,16 @@ - - + + - - + + @@ -6275,16 +6282,16 @@ - - + + - - + + @@ -6292,16 +6299,16 @@ - - + + - - + + @@ -6309,16 +6316,16 @@ - - + + - - + + @@ -6326,16 +6333,16 @@ - - + + - - + + @@ -6343,16 +6350,16 @@ - - + + - - + + @@ -6360,16 +6367,16 @@ - - + + - - + + @@ -6377,16 +6384,16 @@ - - + + - - + + @@ -6394,16 +6401,16 @@ - - + + - - + + @@ -6411,15 +6418,17 @@ - - + + - + + + @@ -6434,9 +6443,7 @@ - - - + @@ -6444,16 +6451,16 @@ - - + + - - + + @@ -6461,16 +6468,16 @@ - - + + - - + + @@ -6478,16 +6485,16 @@ - - + + - - + + @@ -6495,16 +6502,16 @@ - - + + - - + + @@ -6512,16 +6519,16 @@ - - + + - - + + @@ -6529,16 +6536,16 @@ - - + + - - + + @@ -6546,15 +6553,17 @@ - - + + - + + + @@ -6569,9 +6578,7 @@ - - - + @@ -6579,16 +6586,16 @@ - - + + - - + + @@ -6596,16 +6603,16 @@ - - + + - - + + @@ -6613,16 +6620,16 @@ - - + + - - + + @@ -6630,16 +6637,16 @@ - - + + - - + + @@ -6647,16 +6654,16 @@ - - + + - - + + @@ -6664,16 +6671,16 @@ - - + + - - + + @@ -6681,15 +6688,17 @@ - - + + - + + + @@ -6704,263 +6713,264 @@ - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -6974,78 +6984,75 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - + + + @@ -7053,16 +7060,16 @@ - - + + - - + + @@ -7070,167 +7077,171 @@ - - + + - - - + + - + - + - - - - - - + + - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7244,264 +7255,264 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7515,128 +7526,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7650,128 +7661,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7785,10 +7796,7 @@ - - - - + @@ -7796,16 +7804,16 @@ - - + + - - + + @@ -7813,16 +7821,16 @@ - - + + - - + + @@ -7830,16 +7838,16 @@ - - + + - - + + @@ -7847,16 +7855,16 @@ - - + + - - + + @@ -7864,16 +7872,16 @@ - - + + - - + + @@ -7881,16 +7889,16 @@ - - + + - - + + @@ -7898,16 +7906,16 @@ - - + + - - + + @@ -7915,16 +7923,16 @@ - - + + - - + + @@ -7932,16 +7940,16 @@ - - + + - - + + @@ -7949,16 +7957,16 @@ - - + + - - + + @@ -7966,16 +7974,16 @@ - - + + - - + + @@ -7983,16 +7991,16 @@ - - + + - - + + @@ -8000,16 +8008,16 @@ - - + + - - + + @@ -8017,16 +8025,16 @@ - - + + - - + + @@ -8034,15 +8042,17 @@ - - + + - + + + @@ -8057,9 +8067,7 @@ - - - + @@ -8067,16 +8075,16 @@ - - + + - - + + @@ -8084,16 +8092,16 @@ - - + + - - + + @@ -8101,16 +8109,16 @@ - - + + - - + + @@ -8118,16 +8126,16 @@ - - + + - - + + @@ -8135,16 +8143,16 @@ - - + + - - + + @@ -8152,16 +8160,16 @@ - - + + - - + + @@ -8169,15 +8177,17 @@ - - + + - + + + @@ -8192,9 +8202,7 @@ - - - + @@ -8202,16 +8210,16 @@ - - + + - - + + @@ -8219,16 +8227,16 @@ - - + + - - + + @@ -8236,16 +8244,16 @@ - - + + - - + + @@ -8253,16 +8261,16 @@ - - + + - - + + @@ -8270,16 +8278,16 @@ - - + + - - + + @@ -8287,16 +8295,16 @@ - - + + - - + + @@ -8304,15 +8312,17 @@ - - + + - + + + @@ -8327,9 +8337,7 @@ - - - + @@ -8337,16 +8345,16 @@ - - + + - - + + @@ -8354,16 +8362,16 @@ - - + + - - + + @@ -8371,16 +8379,16 @@ - - + + - - + + @@ -8388,16 +8396,16 @@ - - + + - - + + @@ -8405,16 +8413,16 @@ - - + + - - + + @@ -8422,16 +8430,16 @@ - - + + - - + + @@ -8439,16 +8447,16 @@ - - + + - - + + @@ -8456,16 +8464,16 @@ - - + + - - + + @@ -8473,16 +8481,16 @@ - - + + - - + + @@ -8490,16 +8498,16 @@ - - + + - - + + @@ -8507,16 +8515,16 @@ - - + + - - + + @@ -8524,16 +8532,16 @@ - - + + - - + + @@ -8541,16 +8549,16 @@ - - + + - - + + @@ -8558,16 +8566,16 @@ - - + + - - + + @@ -8575,15 +8583,17 @@ - - + + - + + + @@ -8598,9 +8608,7 @@ - - - + @@ -8608,16 +8616,16 @@ - - + + - - + + @@ -8625,16 +8633,16 @@ - - + + - - + + @@ -8642,16 +8650,16 @@ - - + + - - + + @@ -8659,16 +8667,16 @@ - - + + - - + + @@ -8676,16 +8684,16 @@ - - + + - - + + @@ -8693,16 +8701,16 @@ - - + + - - + + @@ -8710,15 +8718,17 @@ - - + + - + + + @@ -8733,9 +8743,7 @@ - - - + @@ -8743,16 +8751,16 @@ - - + + - - + + @@ -8760,16 +8768,16 @@ - - + + - - + + @@ -8777,16 +8785,16 @@ - - + + - - + + @@ -8794,16 +8802,16 @@ - - + + - - + + @@ -8811,16 +8819,16 @@ - - + + - - + + @@ -8828,16 +8836,16 @@ - - + + - - + + @@ -8845,15 +8853,17 @@ - - + + - + + + @@ -8868,5 +8878,4 @@ - diff --git a/StaticData/serverHash.xml b/StaticData/serverHash.xml index b2b799f..0380585 100644 --- a/StaticData/serverHash.xml +++ b/StaticData/serverHash.xml @@ -12,6 +12,10 @@ + + + + @@ -41,14 +45,15 @@ + - - + + - + @@ -171,11 +176,11 @@ - + - + @@ -203,7 +208,7 @@ - + @@ -8842,6 +8847,9 @@ + + + diff --git a/StaticData/settings.xml b/StaticData/settings.xml index 98ae85f..c5a18c4 100644 --- a/StaticData/settings.xml +++ b/StaticData/settings.xml @@ -1,5 +1,5 @@ - - + + diff --git a/StaticData/streamingHash.xml b/StaticData/streamingHash.xml index 1890952..1fc7421 100644 --- a/StaticData/streamingHash.xml +++ b/StaticData/streamingHash.xml @@ -15,11 +15,8 @@ - - - - + @@ -31,246 +28,252 @@ - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -283,264 +286,265 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + - + - + - - - - - + + + - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -553,265 +557,265 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -824,129 +828,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -959,129 +963,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -1094,265 +1098,264 @@ - - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -1366,128 +1369,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + - - - + - + - - - + + + - + - + - + + + + + @@ -1501,128 +1504,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -1636,264 +1639,264 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -1907,128 +1910,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -2042,128 +2045,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -2177,264 +2180,266 @@ - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -2446,265 +2451,266 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - + + + + + - + - + - - - - + + + + - + - + - - - - - + + + + - + - + - - - - + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -2716,190 +2722,186 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + + + + + - - - - + + + + - + @@ -2907,75 +2909,79 @@ - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -2987,130 +2993,130 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -3122,130 +3128,130 @@ - - - - - - - - - + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - - - - - + + + + + - + - + - + + + + + + + + + @@ -3257,266 +3263,265 @@ - - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -3529,129 +3534,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -3664,129 +3669,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -3799,265 +3804,265 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -4070,129 +4075,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -4205,129 +4210,129 @@ - - - - - - - + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - - - - + + + + - + - + - + + + + + + + @@ -4340,11 +4345,7 @@ - - - - - + @@ -4352,16 +4353,16 @@ - - + + - - + + @@ -4369,16 +4370,16 @@ - - + + - - + + @@ -4386,16 +4387,16 @@ - - + + - - + + @@ -4403,16 +4404,16 @@ - - + + - - + + @@ -4420,16 +4421,16 @@ - - + + - - + + @@ -4437,16 +4438,16 @@ - - + + - - + + @@ -4454,16 +4455,16 @@ - - + + - - + + @@ -4471,16 +4472,16 @@ - - + + - - + + @@ -4488,16 +4489,16 @@ - - + + - - + + @@ -4505,16 +4506,16 @@ - - + + - - + + @@ -4522,16 +4523,16 @@ - - + + - - + + @@ -4539,16 +4540,16 @@ - - + + - - + + @@ -4556,16 +4557,16 @@ - - + + - - + + @@ -4573,16 +4574,16 @@ - - + + - - + + @@ -4590,15 +4591,17 @@ - - + + - + + + @@ -4613,9 +4616,7 @@ - - - + @@ -4623,16 +4624,16 @@ - - + + - - + + @@ -4640,16 +4641,16 @@ - - + + - - + + @@ -4657,16 +4658,16 @@ - - + + - - + + @@ -4674,16 +4675,16 @@ - - + + - - + + @@ -4691,16 +4692,16 @@ - - + + - - + + @@ -4708,16 +4709,16 @@ - - + + - - + + @@ -4725,16 +4726,16 @@ - - + + - - + + @@ -4742,16 +4743,16 @@ - - + + - - + + @@ -4759,16 +4760,16 @@ - - + + - - + + @@ -4776,16 +4777,16 @@ - - + + - - + + @@ -4793,16 +4794,16 @@ - - + + - - + + @@ -4810,16 +4811,16 @@ - - + + - - + + @@ -4827,16 +4828,16 @@ - - + + - - + + @@ -4844,16 +4845,16 @@ - - + + - - + + @@ -4861,15 +4862,17 @@ - - + + - + + + @@ -4884,9 +4887,7 @@ - - - + @@ -4894,16 +4895,16 @@ - - + + - - + + @@ -4911,16 +4912,16 @@ - - + + - - + + @@ -4928,16 +4929,16 @@ - - + + - - + + @@ -4945,16 +4946,16 @@ - - + + - - + + @@ -4962,16 +4963,16 @@ - - + + - - + + @@ -4979,16 +4980,16 @@ - - + + - - + + @@ -4996,16 +4997,16 @@ - - + + - - + + @@ -5013,16 +5014,16 @@ - - + + - - + + @@ -5030,16 +5031,16 @@ - - + + - - + + @@ -5047,16 +5048,16 @@ - - + + - - + + @@ -5064,16 +5065,16 @@ - - + + - - + + @@ -5081,16 +5082,16 @@ - - + + - - + + @@ -5098,16 +5099,16 @@ - - + + - - + + @@ -5115,16 +5116,16 @@ - - + + - - + + @@ -5132,15 +5133,17 @@ - - + + - + + + @@ -5155,9 +5158,7 @@ - - - + @@ -5165,16 +5166,16 @@ - - + + - - + + @@ -5182,16 +5183,16 @@ - - + + - - + + @@ -5199,16 +5200,16 @@ - - + + - - + + @@ -5216,16 +5217,16 @@ - - + + - - + + @@ -5233,16 +5234,16 @@ - - + + - - + + @@ -5250,16 +5251,16 @@ - - + + - - + + @@ -5267,15 +5268,17 @@ - - + + - + + + @@ -5290,9 +5293,7 @@ - - - + @@ -5300,16 +5301,16 @@ - - + + - - + + @@ -5317,16 +5318,16 @@ - - + + - - + + @@ -5334,16 +5335,16 @@ - - + + - - + + @@ -5351,16 +5352,16 @@ - - + + - - + + @@ -5368,16 +5369,16 @@ - - + + - - + + @@ -5385,16 +5386,16 @@ - - + + - - + + @@ -5402,15 +5403,17 @@ - - + + - + + + @@ -5425,9 +5428,7 @@ - - - + @@ -5435,16 +5436,16 @@ - - + + - - + + @@ -5452,16 +5453,16 @@ - - + + - - + + @@ -5469,16 +5470,16 @@ - - + + - - + + @@ -5486,16 +5487,16 @@ - - + + - - + + @@ -5503,16 +5504,16 @@ - - + + - - + + @@ -5520,16 +5521,16 @@ - - + + - - + + @@ -5537,16 +5538,16 @@ - - + + - - + + @@ -5554,16 +5555,16 @@ - - + + - - + + @@ -5571,16 +5572,16 @@ - - + + - - + + @@ -5588,16 +5589,16 @@ - - + + - - + + @@ -5605,16 +5606,16 @@ - - + + - - + + @@ -5622,16 +5623,16 @@ - - + + - - + + @@ -5639,16 +5640,16 @@ - - + + - - + + @@ -5656,16 +5657,16 @@ - - + + - - + + @@ -5673,15 +5674,17 @@ - - + + - + + + @@ -5696,9 +5699,7 @@ - - - + @@ -5706,16 +5707,16 @@ - - + + - - + + @@ -5723,16 +5724,16 @@ - - + + - - + + @@ -5740,16 +5741,16 @@ - - + + - - + + @@ -5757,14 +5758,15 @@ - - + + + @@ -5790,7 +5792,7 @@ - + @@ -5799,8 +5801,7 @@ - - + @@ -5808,32 +5809,33 @@ - - + + - - - - - - - + - - - - - - - - - + + + + + + + + + + + + + + + + @@ -5841,16 +5843,16 @@ - - + + - - + + @@ -5858,16 +5860,16 @@ - - + + - - + + @@ -5875,16 +5877,16 @@ - - + + - - + + @@ -5892,16 +5894,16 @@ - - + + - - + + @@ -5909,16 +5911,16 @@ - - + + - - + + @@ -5926,16 +5928,16 @@ - - + + - - + + @@ -5943,15 +5945,17 @@ - - + + - + + + @@ -5966,9 +5970,7 @@ - - - + @@ -5976,16 +5978,16 @@ - - + + - - + + @@ -5993,16 +5995,16 @@ - - + + - - + + @@ -6010,16 +6012,16 @@ - - + + - - + + @@ -6027,16 +6029,16 @@ - - + + - - + + @@ -6044,16 +6046,16 @@ - - + + - - + + @@ -6061,16 +6063,16 @@ - - + + - - + + @@ -6078,16 +6080,16 @@ - - + + - - + + @@ -6095,16 +6097,16 @@ - - + + - - + + @@ -6112,16 +6114,16 @@ - - + + - - + + @@ -6129,16 +6131,16 @@ - - + + - - + + @@ -6146,16 +6148,16 @@ - - + + - - + + @@ -6163,16 +6165,16 @@ - - + + - - + + @@ -6180,16 +6182,16 @@ - - + + - - + + @@ -6197,16 +6199,16 @@ - - + + - - + + @@ -6214,15 +6216,17 @@ - - + + - + + + @@ -6237,9 +6241,7 @@ - - - + @@ -6247,16 +6249,16 @@ - - + + - - + + @@ -6264,16 +6266,16 @@ - - + + - - + + @@ -6281,16 +6283,16 @@ - - + + - - + + @@ -6298,16 +6300,16 @@ - - + + - - + + @@ -6315,16 +6317,16 @@ - - + + - - + + @@ -6332,16 +6334,16 @@ - - + + - - + + @@ -6349,15 +6351,17 @@ - - + + - + + + @@ -6372,9 +6376,7 @@ - - - + @@ -6382,16 +6384,16 @@ - - + + - - + + @@ -6399,16 +6401,16 @@ - - + + - - + + @@ -6416,16 +6418,16 @@ - - + + - - + + @@ -6433,16 +6435,16 @@ - - + + - - + + @@ -6450,16 +6452,16 @@ - - + + - - + + @@ -6467,16 +6469,16 @@ - - + + - - + + @@ -6484,15 +6486,17 @@ - - + + - + + + @@ -6507,263 +6511,264 @@ - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -6777,78 +6782,75 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - + + + @@ -6856,16 +6858,16 @@ - - + + - - + + @@ -6873,167 +6875,171 @@ - - + + - - - + + - + - + - - - - - - + + - - - - - - - - - - - + + + + + + + + + + + + + + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7047,264 +7053,264 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7318,128 +7324,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7453,128 +7459,128 @@ - - - - - + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - - - + + + - + - + - + + + + + @@ -7588,10 +7594,7 @@ - - - - + @@ -7599,16 +7602,16 @@ - - + + - - + + @@ -7616,16 +7619,16 @@ - - + + - - + + @@ -7633,16 +7636,16 @@ - - + + - - + + @@ -7650,16 +7653,16 @@ - - + + - - + + @@ -7667,16 +7670,16 @@ - - + + - - + + @@ -7684,16 +7687,16 @@ - - + + - - + + @@ -7701,16 +7704,16 @@ - - + + - - + + @@ -7718,16 +7721,16 @@ - - + + - - + + @@ -7735,16 +7738,16 @@ - - + + - - + + @@ -7752,16 +7755,16 @@ - - + + - - + + @@ -7769,16 +7772,16 @@ - - + + - - + + @@ -7786,16 +7789,16 @@ - - + + - - + + @@ -7803,16 +7806,16 @@ - - + + - - + + @@ -7820,16 +7823,16 @@ - - + + - - + + @@ -7837,15 +7840,17 @@ - - + + - + + + @@ -7860,9 +7865,7 @@ - - - + @@ -7870,16 +7873,16 @@ - - + + - - + + @@ -7887,16 +7890,16 @@ - - + + - - + + @@ -7904,16 +7907,16 @@ - - + + - - + + @@ -7921,16 +7924,16 @@ - - + + - - + + @@ -7938,16 +7941,16 @@ - - + + - - + + @@ -7955,16 +7958,16 @@ - - + + - - + + @@ -7972,15 +7975,17 @@ - - + + - + + + @@ -7995,9 +8000,7 @@ - - - + @@ -8005,16 +8008,16 @@ - - + + - - + + @@ -8022,16 +8025,16 @@ - - + + - - + + @@ -8039,16 +8042,16 @@ - - + + - - + + @@ -8056,16 +8059,16 @@ - - + + - - + + @@ -8073,16 +8076,16 @@ - - + + - - + + @@ -8090,16 +8093,16 @@ - - + + - - + + @@ -8107,15 +8110,17 @@ - - + + - + + + @@ -8130,9 +8135,7 @@ - - - + @@ -8140,16 +8143,16 @@ - - + + - - + + @@ -8157,16 +8160,16 @@ - - + + - - + + @@ -8174,16 +8177,16 @@ - - + + - - + + @@ -8191,16 +8194,16 @@ - - + + - - + + @@ -8208,16 +8211,16 @@ - - + + - - + + @@ -8225,16 +8228,16 @@ - - + + - - + + @@ -8242,16 +8245,16 @@ - - + + - - + + @@ -8259,16 +8262,16 @@ - - + + - - + + @@ -8276,16 +8279,16 @@ - - + + - - + + @@ -8293,16 +8296,16 @@ - - + + - - + + @@ -8310,16 +8313,16 @@ - - + + - - + + @@ -8327,16 +8330,16 @@ - - + + - - + + @@ -8344,16 +8347,16 @@ - - + + - - + + @@ -8361,16 +8364,16 @@ - - + + - - + + @@ -8378,15 +8381,17 @@ - - + + - + + + @@ -8401,9 +8406,7 @@ - - - + @@ -8411,16 +8414,16 @@ - - + + - - + + @@ -8428,16 +8431,16 @@ - - + + - - + + @@ -8445,16 +8448,16 @@ - - + + - - + + @@ -8462,16 +8465,16 @@ - - + + - - + + @@ -8479,16 +8482,16 @@ - - + + - - + + @@ -8496,16 +8499,16 @@ - - + + - - + + @@ -8513,15 +8516,17 @@ - - + + - + + + @@ -8536,9 +8541,7 @@ - - - + @@ -8546,16 +8549,16 @@ - - + + - - + + @@ -8563,16 +8566,16 @@ - - + + - - + + @@ -8580,16 +8583,16 @@ - - + + - - + + @@ -8597,16 +8600,16 @@ - - + + - - + + @@ -8614,16 +8617,16 @@ - - + + - - + + @@ -8631,16 +8634,16 @@ - - + + - - + + @@ -8648,15 +8651,17 @@ - - + + - + + + @@ -8671,5 +8676,4 @@ - diff --git a/StaticData/temp.xml b/StaticData/temp.xml index 021a729..d67ab92 100644 --- a/StaticData/temp.xml +++ b/StaticData/temp.xml @@ -1,2 +1,2 @@ - + diff --git a/Widgets/commonbuttongroupwidget.cpp b/Widgets/commonbuttongroupwidget.cpp index 6c30ae8..0fb0daa 100644 --- a/Widgets/commonbuttongroupwidget.cpp +++ b/Widgets/commonbuttongroupwidget.cpp @@ -25,6 +25,7 @@ void CommonButtonGroupWidget::updateProgressBar(float value) void CommonButtonGroupWidget::loadCompleteState() { + show(); ui->updateButton->setEnabled(false); ui->startButton->setEnabled(true); ui->loadingProgressBar->setValue(100); diff --git a/Widgets/entrywidget.cpp b/Widgets/entrywidget.cpp index 059e668..a92404c 100644 --- a/Widgets/entrywidget.cpp +++ b/Widgets/entrywidget.cpp @@ -15,7 +15,7 @@ void EntryWidget::initialize() ui->settingsWidget->hide(); } -void EntryWidget::connectionEmptyState() +void EntryWidget::disconnectState() { show(); ui->offlineWidget->show(); @@ -44,7 +44,7 @@ ClientAutorization* EntryWidget::getAuthData() return data; } -void EntryWidget::loginIsActive(bool flag) +void EntryWidget::showLoginWidget(bool flag) { if(flag) { @@ -91,6 +91,11 @@ void EntryWidget::isActive(bool flag) else ui->settingsWidget->hide(); } +bool EntryWidget::getLoginWidgetIsHidden() +{ + return ui->loginWidget->isHidden(); +} + EntryWidget::~EntryWidget() { diff --git a/Widgets/entrywidget.h b/Widgets/entrywidget.h index aa0ddb1..70eaa70 100644 --- a/Widgets/entrywidget.h +++ b/Widgets/entrywidget.h @@ -19,13 +19,14 @@ public: void settingsState(); bool isLoginFieldsFill(); ClientAutorization* getAuthData(); - void loginIsActive(bool flag); + void showLoginWidget(bool flag); ~EntryWidget(); - void connectionEmptyState(); + void disconnectState(); void fillSettings(ServerSettings *settings); ServerSettings *getServerSettings(); void isActive(bool flag); + bool getLoginWidgetIsHidden(); signals: void sigTryLogin(); diff --git a/Widgets/entrywidget.ui b/Widgets/entrywidget.ui index 45a61db..a576166 100644 --- a/Widgets/entrywidget.ui +++ b/Widgets/entrywidget.ui @@ -274,6 +274,9 @@ 0 + + QLineEdit::Password + Пароль diff --git a/bootstrap.cpp b/bootstrap.cpp index 41df1d8..a99f362 100644 --- a/bootstrap.cpp +++ b/bootstrap.cpp @@ -16,6 +16,7 @@ void Bootstrap::initialize() coreManager->initialize(widgetManager, workerThread); widgetManager->start(); + coreManager->start(); } diff --git a/coremanager.cpp b/coremanager.cpp index 844597c..0838348 100644 --- a/coremanager.cpp +++ b/coremanager.cpp @@ -31,8 +31,8 @@ void CoreManager::initialize(WidgetManager *widgetManager,QThread *workerThread) recognizeSystem->moveToThread(workerThread); postProcessorSystem->moveToThread(workerThread); hashComparer->moveToThread(workerThread); - versionContainer->moveToThread(workerThread); //проверить работоспособность - resourceManager->moveToThread(workerThread); //проверить работоспособность +// versionContainer->moveToThread(workerThread); //проверить работоспособность +// resourceManager->moveToThread(workerThread); //проверить работоспособность workerThread->start(); //workerThread->setPriority(QThread::HighestPriority); @@ -44,17 +44,24 @@ void CoreManager::initialize(WidgetManager *widgetManager,QThread *workerThread) loadStaticData(); } +void CoreManager::start() +{ + checkAppAvailable(); +} + void CoreManager::loadStaticData() { ServerSettings *currentSettings = dataParser->getClientSettings(); setLanguage(currentSettings->Language); - + setLocalVersion(); + externalExecuter->setIsAutoStart(currentSettings->isAutoStart); + bool appAvailable = externalExecuter->findApp(); + widgetManager->setAppAvailable(appAvailable); emit sigSetLoadSettings(currentSettings); } void CoreManager::binding() { - connect(recognizeSystem,&RecognizeSystem::sigSetInineDebug,widgetManager,&WidgetManager::slotInlineDebug,Qt::AutoConnection); connect(recognizeSystem,&RecognizeSystem::sigAnimationActivated,widgetManager,&WidgetManager::slotActivateLoadAnimation,Qt::AutoConnection); connect(this,&CoreManager::sigInitializeClient,client,&TCPClient::initialize,Qt::AutoConnection); @@ -63,7 +70,7 @@ void CoreManager::binding() connect(this,&CoreManager::sigSendCheckUpdate,sendSystem,&SendSystem::sendCheckHash,Qt::AutoConnection); connect(this,&CoreManager::sigSendXMLAnswer,sendSystem,&SendSystem::xmlAnswer,Qt::AutoConnection); connect(this,&CoreManager::sigSendAutorization,sendSystem,&SendSystem::sendClientAutorization); - connect(this,&CoreManager::sigSendCheckUpdate,updateController,&UpdateController::checkCanUpdate,Qt::AutoConnection); + connect(this,&CoreManager::sigSendUpdateToServer,updateController,&UpdateController::checkCanUpdate,Qt::AutoConnection); connect(this,&CoreManager::sigGetConnected,client,&TCPClient::getIsConnected); connect(this,&CoreManager::sigCalculateHash,updateController,&UpdateController::calculateCommonHash); @@ -76,22 +83,24 @@ void CoreManager::binding() connect(postProcessorSystem,&PostProcessorSystem::sigSaveLoginData,this,&CoreManager::checkLoginResult,Qt::AutoConnection); connect(postProcessorSystem,&PostProcessorSystem::sigShowUpdateList,this,&CoreManager::checkUpdateInfo,Qt::AutoConnection); - connect(versionContainer,&VersionContainer::sigSetServerVersion,this,&CoreManager::setServerVersion); + connect(versionContainer,&VersionContainer::sigSetServerVersion,this,&CoreManager::setServerVersion,Qt::AutoConnection); connect(recognizeSystem,&RecognizeSystem::sigUpdateBytesAvailable,this,&CoreManager::calcUpdateProgress,Qt::AutoConnection); - connect(recognizeSystem,&RecognizeSystem::sigLoadComplete,this,&CoreManager::loadComplete); - connect(recognizeSystem,&RecognizeSystem::sigNeedUpdate,this,&CoreManager::checkNeedUpdate); + connect(recognizeSystem,&RecognizeSystem::sigLoadComplete,this,&CoreManager::loadComplete,Qt::AutoConnection); + connect(recognizeSystem,&RecognizeSystem::sigNeedUpdate,this,&CoreManager::checkNeedUpdate,Qt::AutoConnection); connect(recognizeSystem,&RecognizeSystem::sigCheckUpdate,this,&CoreManager::checkUpdate,Qt::AutoConnection); + connect(recognizeSystem,&RecognizeSystem::sigdRecalculateHashOnServerState,this,&CoreManager::recalculateState,Qt::AutoConnection); connect(hashComparer,&HashComparer::sigCallCheck,this,&CoreManager::checkUpdate); connect(hashComparer,&HashComparer::sigHaveDelta,this,&CoreManager::checkUpdateInfo); - connect(updateController,&UpdateController::sigUpdateComplete,widgetManager,&WidgetManager::setCompeteState);//ОПАСНОСТЬ + connect(updateController,&UpdateController::sigUpdateComplete,widgetManager,&WidgetManager::setCompeteState,Qt::AutoConnection);//ОПАСНОСТЬ + connect(updateController,&UpdateController::sigSendHashInfo,widgetManager->getMainWindow(),&MainWindow::updateInitInformation,Qt::AutoConnection); connect(client,&TCPClient::sigConnectionState,widgetManager,&WidgetManager::setConnectionState,Qt::AutoConnection);//ОПАСНОСТЬ connect(client,&TCPClient::sigServerDisconnect,widgetManager,&WidgetManager::setServerDisconnectState,Qt::AutoConnection);//ОПАСНОСТЬ - connect(sendSystem,&SendSystem::sigSend,this,&CoreManager::calcUpdateProgress); + connect(sendSystem,&SendSystem::sigSend,this,&CoreManager::calcUpdateProgress,Qt::AutoConnection); connect(sendSystem,&SendSystem::sigGetXmlAnswer,dataParserOutput,&DataParserOutput::xmlAnswer_notify,Qt::DirectConnection);//ОПАСНОСТЬ connect(dataParser,&DataParser::sigNotify,widgetManager->getNotifyController(),&NotifyController::showWarning,Qt::AutoConnection);//ОПАСНОСТЬ @@ -184,6 +193,7 @@ void CoreManager::checkLoginResult(ServerAuthorization *auth) { if (auth->Result) { + widgetManager->activateLoadingAnimation(true); checkAccessType(auth->AccessType); dataParserOutput->createAuthData(auth); setLocalVersion(); @@ -194,7 +204,6 @@ void CoreManager::checkLoginResult(ServerAuthorization *auth) { widgetManager->setLoginFailed(); } - } void CoreManager::tryLogin() @@ -205,7 +214,7 @@ void CoreManager::tryLogin() return; } - widgetManager->getEntryWidget()->loginIsActive(false); + widgetManager->getEntryWidget()->showLoginWidget(false); ClientAutorization *auth = widgetManager->getEntryWidget()->getAuthData(); dataParserOutput->createAuthMessage(auth); emit sigSendAutorization(); @@ -213,10 +222,17 @@ void CoreManager::tryLogin() void CoreManager::checkUpdate() { + widgetManager->activateLoadingAnimation(true); emit sigSendCheckUpdate(); widgetManager->getMainWindow()->setInlineDebug(tr("Проверка обновлений...")); } +void CoreManager::recalculateState() +{ + widgetManager->activateLoadingAnimation(true); + widgetManager->getMainWindow()->setInlineDebug(tr("Пересчет хэша на сервере...")); +} + void CoreManager::checkAccessType(const QString& accessType) { if (accessType == traineeTypeName) @@ -257,6 +273,8 @@ void CoreManager::checkNeedUpdate(bool isNeedUpdate,quint64 size, quint64 fileCo dataParserOutput->changeVersion(versionContainer->getServerVersionData()); setLocalVersion(); } + + widgetManager->activateLoadingAnimation(false); } void CoreManager::calcUpdateProgress() @@ -293,19 +311,21 @@ void CoreManager::loadComplete() dataParserOutput->changeVersion(versionContainer->getServerVersionData()); setLocalVersion(); checkAutoStart(); + widgetManager->getMainWindow()->setClientVersionName(versionContainer->getLocalVersion()); } void CoreManager::loadToServer() { widgetManager->setSendFileToServerState(); - emit sigSendCheckUpdate(); + widgetManager->activateLoadingAnimation(true); + emit sigSendUpdateToServer(); } void CoreManager::undoCurrentChanges() { isRecovery = true; - emit sigSendCheckUpdate(); widgetManager->setUndoCurrentChangesState(); + emit sigSendCheckUpdate(); emit sigSendCommand(PacketType::TYPE_UPDATE); //тут был таймер isRecovery = false; @@ -334,7 +354,7 @@ void CoreManager::saveServerSettingsWithConnect() if(client->getIsConnected()) { - entryWidget->loginIsActive(true); + entryWidget->showLoginWidget(true); widgetManager->getMainWindow()->showOfflineButton(true); widgetManager->activateLoadingAnimation(false); } @@ -347,7 +367,7 @@ void CoreManager::saveServerSettingsWithConnect() void CoreManager::checkAppAvailable() { bool isAvailable = externalExecuter->findApp(); - widgetManager->activateStartButtons(isAvailable); + widgetManager->setAppAvailable(isAvailable); } void CoreManager::setLanguage(const QString& language) diff --git a/coremanager.h b/coremanager.h index df5cb0c..0c0bd59 100644 --- a/coremanager.h +++ b/coremanager.h @@ -24,6 +24,7 @@ public: explicit CoreManager(QObject *parent = nullptr); ~CoreManager(){} void initialize(WidgetManager *widgetManager,QThread *workerThread); + void start(); void checkUpdateInfo(); void checkAutoStart(); void setLanguage(const QString &language); @@ -46,6 +47,7 @@ public: void exit(); void initializeWidgets(); + void recalculateState(); signals: void sigInitializeClient(RecognizeSystem *recognize,SendSystem *sendSystem); void sigSendCommand(PacketType packetType); @@ -55,6 +57,7 @@ signals: void sigSendAutorization(); void sigSendCheckUpdate(); bool sigGetConnected(); + void sigSendUpdateToServer(); void sigSetLoadSettings(ServerSettings *serverSettings); diff --git a/mainwindow.cpp b/mainwindow.cpp index 4e3fe97..2142564 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -18,7 +18,7 @@ MainWindow::MainWindow(QWidget *parent) ui->setupUi(this); setAttribute(Qt::WA_TranslucentBackground); setWindowFlags(windowFlags() | Qt::FramelessWindowHint); - _background.load(":/resource/SSJ_backgroundDarkSM.png"); + background.load(":/resource/SSJ_backgroundDarkSM.png"); timer = new QTimer; } @@ -31,11 +31,11 @@ void MainWindow::paintEvent(QPaintEvent*) { path.addRoundedRect(rect(), 8, 8); painter.setClipPath(path); - if (!_background.isNull()) + if (!background.isNull()) { - int x = (width() - _background.width()) / 2; - int y = (height() - _background.height()) / 2; - painter.drawPixmap(x, y, _background); + int x = (width() - background.width()) / 2; + int y = (height() - background.height()) / 2; + painter.drawPixmap(x, y, background); } } @@ -57,6 +57,15 @@ void MainWindow::setStartState() setUpUi(); } +void MainWindow::updateInitInformation(QString fullSize,QString currentSize) +{ + QString info = tr("Инициализация..."); + info.append(currentSize); + info.append("/"); + info.append(fullSize); + setInlineDebug(info); +} + void MainWindow::bindConnection() { connect(timer,&QTimer::timeout,this,&MainWindow::slotDisableNotify); @@ -224,12 +233,6 @@ void MainWindow::undoCurrentChanges() { ui->mainFrame->show(); ui->offlineStartButton->setEnabled(false); - //delay - - QTime dieTime= QTime::currentTime().addSecs(10); - while (QTime::currentTime() < dieTime) - QCoreApplication::processEvents(QEventLoop::AllEvents, 100); - ui->unsafeChangingButton->hide(); } @@ -246,7 +249,7 @@ void MainWindow::on_exitButton_clicked() exit(0); } -void MainWindow::showUpdateInfo() +void MainWindow::slotShowUpdateInfo() { ui->unsafeChangingButton->show(); ui->offlineStartButton->setGeometry(bottomRightPosition); @@ -275,7 +278,7 @@ void MainWindow::setUpUi() ui->autostartCheckBox->hide(); } -void MainWindow::commonWidgetState() +void MainWindow::slotCommonWidgetState() { disableUnsaveButton(true); setInlineDebug(tr("Загрузка...")); @@ -285,8 +288,10 @@ void MainWindow::keyPressEvent(QKeyEvent *event) { if (event->key() == Qt::Key_Enter || event->key() == Qt::Key_Return) { - emit sigTryLogin(); - //if (entryWidget->isLoginFieldsFill()) return; + if (!entryWidget->getLoginWidgetIsHidden()) + { + emit sigTryLogin(); + } } } @@ -319,6 +324,7 @@ void MainWindow::addWidgetToChangeGroup(CommonButtonGroupWidget *commonWidgetGro void MainWindow::addWidgetToInteractiveGroup(EntryWidget *entryWidget) { ui->interactiveGroup->addWidget(entryWidget); + this->entryWidget = entryWidget; } void MainWindow::setLoadSettings(ServerSettings *serverSettings) diff --git a/mainwindow.h b/mainwindow.h index 14cadc9..74dbd61 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -57,6 +57,7 @@ public slots: void slotCommonWidgetState(); void setServerVersion(StreamingVersionData *version); + void updateInitInformation(QString fullSize, QString currentSize); signals: void sigShowSettings(bool isActive); void sigChangeLanguage(const QString& arg1); @@ -76,6 +77,7 @@ private slots: private: Ui::MainWindow *ui; ResourceManager *resourceManager; + EntryWidget *entryWidget; QTimer *timer; QPixmap background; diff --git a/mainwindow.ui b/mainwindow.ui index f299ede..9a82355 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -249,10 +249,10 @@ - 540 + 529 450 - 251 - 61 + 250 + 60 diff --git a/widgetmanager.cpp b/widgetmanager.cpp index 2a722b0..f86e664 100644 --- a/widgetmanager.cpp +++ b/widgetmanager.cpp @@ -12,7 +12,6 @@ WidgetManager::WidgetManager(QObject *parent) : QObject(parent) notifyController = new NotifyController; } - void WidgetManager::initialize() { updateWidget->setParent(mainWindow); @@ -33,7 +32,7 @@ void WidgetManager::initialize() void WidgetManager::binding() { connect(updateWidget,&UpdateNotifyWidget::sigShowMainFrame,this,&WidgetManager::showMainFrame,Qt::AutoConnection); - connect(commonButtonGroupWidget,&CommonButtonGroupWidget::sigUpdateCommonWidget,mainWindow,&MainWindow::commonWidgetState); + connect(commonButtonGroupWidget,&CommonButtonGroupWidget::sigUpdateCommonWidget,mainWindow,&MainWindow::slotCommonWidgetState); connect(mainWindow,&MainWindow::sigShowSettings,this,&WidgetManager::showSettings,Qt::AutoConnection); } void WidgetManager::slotSetLoadSettings(ServerSettings *settings) @@ -47,20 +46,20 @@ void WidgetManager::setLostConnectionState() commonButtonGroupWidget->updateProgressBar(0); mainWindow->slotConnectionState(false); waitAnimationWidget->hideWithStop(); - entryWidget->connectionEmptyState(); + entryWidget->disconnectState(); updateWidget->hide(); } void WidgetManager::setLoginSuccess() { - entryWidget->loginIsActive(false); + entryWidget->showLoginWidget(false); mainWindow->setLoginSuccessState(); activateLoadingAnimation(false); } void WidgetManager::setLoginFailed() { - entryWidget->loginIsActive(true); + entryWidget->showLoginWidget(true); mainWindow->setLoginFailedState(); activateLoadingAnimation(false); } @@ -70,8 +69,8 @@ void WidgetManager::showUpdateInfo() waitAnimationWidget->hideWithStop(); updateWidget->showWithFill(); - mainWindow->showMainFrame(true); - mainWindow->showUpdateInfo(); + mainWindow->showMainFrame(false); + mainWindow->slotShowUpdateInfo(); entryWidget->hide(); commonButtonGroupWidget->hide(); } @@ -99,7 +98,7 @@ void WidgetManager::setNeedUpdateState(quint64 size, quint64 fileCount,quint64 d QString result; if(fileCount > 0) { - result = tr("Доступно обновление: ") + Tools::convertFileSize(size); + result = tr("Доступно обновление: ") + Tools::convertFileSize(size,true); //result += tr("Количество файлов: ") + QString::number(fileCount); } else @@ -130,7 +129,7 @@ void WidgetManager::setConnectionState(bool isConnected) mainWindow->slotConnectionState(isConnected); if (isConnected) { - entryWidget->loginIsActive(true); + entryWidget->showLoginWidget(true); } waitAnimationWidget->hideWithStop(); } @@ -146,20 +145,21 @@ void WidgetManager::start() { waitAnimationWidget->showWithPlay(); mainWindow->setStartState(); - waitAnimationWidget->hideWithStop(); } void WidgetManager::setServerDisconnectState() { commonButtonGroupWidget->disconnectState(); mainWindow->slotServerDisconnect(); + entryWidget->disconnectState(); + waitAnimationWidget->hideWithStop(); } void WidgetManager::setUndoCurrentChangesState() { mainWindow->undoCurrentChanges(); - commonButtonGroupWidget->showProgressBar(false); updateWidget->hide(); + commonButtonGroupWidget->showProgressBar(false); waitAnimationWidget->showWithPlay(); } @@ -168,7 +168,7 @@ void WidgetManager::showMainFrame(bool flag) mainWindow->showMainFrame(flag); } -void WidgetManager::activateStartButtons(bool isAvailable) +void WidgetManager::setAppAvailable(bool isAvailable) { commonButtonGroupWidget->startButtonActive(isAvailable); mainWindow->setStartOfflineButton(isAvailable); diff --git a/widgetmanager.h b/widgetmanager.h index 17c7216..bcb4841 100644 --- a/widgetmanager.h +++ b/widgetmanager.h @@ -45,7 +45,7 @@ public: void setUndoCurrentChangesState(); void showMainFrame(bool flag); - void activateStartButtons(bool isAvailable); + void setAppAvailable(bool isAvailable); void slotInlineDebug(const QString &text); public slots: void showSettings(bool isActive);