Pārlūkot izejas kodu

Added Legacy-advanced subproject (program for extracting, patching and modifying game data)

Ivan Arkhipov 6 gadi atpakaļ
vecāks
revīzija
ec51bb28ee
40 mainītis faili ar 4786 papildinājumiem un 0 dzēšanām
  1. 72 0
      src/Legacy-advanced/LICENSE
  2. 87 0
      src/Legacy-advanced/Legacy-advanced.pro
  3. 37 0
      src/Legacy-advanced/Legacy-advanced_resource.rc
  4. 3 0
      src/Legacy-advanced/README.md
  5. 26 0
      src/Legacy-advanced/build_res.pri
  6. 25 0
      src/Legacy-advanced/main.cpp
  7. 74 0
      src/Legacy-advanced/models/downloader.cpp
  8. 49 0
      src/Legacy-advanced/models/downloader.h
  9. 80 0
      src/Legacy-advanced/models/filesystem.cpp
  10. 26 0
      src/Legacy-advanced/models/filesystem.h
  11. 250 0
      src/Legacy-advanced/models/lotro.cpp
  12. 72 0
      src/Legacy-advanced/models/lotro.h
  13. 29 0
      src/Legacy-advanced/object_script.Legacy-advanced.Debug
  14. 29 0
      src/Legacy-advanced/object_script.Legacy-advanced.Release
  15. 15 0
      src/Legacy-advanced/widgets/browsewidget.cpp
  16. 26 0
      src/Legacy-advanced/widgets/browsewidget.h
  17. 246 0
      src/Legacy-advanced/widgets/browsewidget.ui
  18. 83 0
      src/Legacy-advanced/widgets/exportwidget.cpp
  19. 36 0
      src/Legacy-advanced/widgets/exportwidget.h
  20. 364 0
      src/Legacy-advanced/widgets/exportwidget.ui
  21. 43 0
      src/Legacy-advanced/widgets/importwidget.cpp
  22. 35 0
      src/Legacy-advanced/widgets/importwidget.h
  23. 633 0
      src/Legacy-advanced/widgets/importwidget.ui
  24. 280 0
      src/Legacy-advanced/widgets/mainwindow.cpp
  25. 104 0
      src/Legacy-advanced/widgets/mainwindow.h
  26. 399 0
      src/Legacy-advanced/widgets/mainwindow.ui
  27. 79 0
      src/Legacy-advanced/widgets/managewidget.cpp
  28. 38 0
      src/Legacy-advanced/widgets/managewidget.h
  29. 430 0
      src/Legacy-advanced/widgets/managewidget.ui
  30. 59 0
      src/Legacy-advanced/widgets/menuentry.cpp
  31. 39 0
      src/Legacy-advanced/widgets/menuentry.h
  32. 114 0
      src/Legacy-advanced/widgets/messagedialog.cpp
  33. 37 0
      src/Legacy-advanced/widgets/messagedialog.h
  34. 69 0
      src/Legacy-advanced/widgets/messagedialog.ui
  35. 114 0
      src/Legacy-advanced/widgets/processdialog.cpp
  36. 38 0
      src/Legacy-advanced/widgets/processdialog.h
  37. 89 0
      src/Legacy-advanced/widgets/processdialog.ui
  38. 15 0
      src/Legacy-advanced/widgets/statuswidget.cpp
  39. 34 0
      src/Legacy-advanced/widgets/statuswidget.h
  40. 508 0
      src/Legacy-advanced/widgets/statuswidget.ui

+ 72 - 0
src/Legacy-advanced/LICENSE

@@ -0,0 +1,72 @@
+Apache License 
+Version 2.0, January 2004 
+http://www.apache.org/licenses/
+TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+1. Definitions.
+
+"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
+
+"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
+
+"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
+
+"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
+
+"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
+
+"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
+
+"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
+
+"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
+
+"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
+
+"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
+
+2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
+
+3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
+
+4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
+
+(a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
+
+(b) You must cause any modified files to carry prominent notices stating that You changed the files; and
+
+(c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
+
+(d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
+
+You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
+
+5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
+
+6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
+
+7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
+
+8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
+
+9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
+
+END OF TERMS AND CONDITIONS
+
+APPENDIX: How to apply the Apache License to your work.
+
+To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
+
+Copyright [yyyy] [name of copyright owner]
+
+Licensed under the Apache License, Version 2.0 (the "License"); 
+you may not use this file except in compliance with the License. 
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software 
+distributed under the License is distributed on an "AS IS" BASIS, 
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 
+See the License for the specific language governing permissions and 
+limitations under the License.

+ 87 - 0
src/Legacy-advanced/Legacy-advanced.pro

@@ -0,0 +1,87 @@
+include( ../../common.pri )
+include( ../../app.pri )
+
+QT       += core gui network
+
+QMAKE_LFLAGS_RELEASE += -static -static-libgcc -static-libstdc++
+
+greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
+
+TARGET = Legacy-advanced
+TEMPLATE = app
+
+CXXFLAGS += -O2 -fno-stack-limit
+CONFIG += resources_big
+
+# The following define makes your compiler emit warnings if you use
+# any feature of Qt which has been marked as deprecated (the exact warnings
+# depend on your compiler). Please consult the documentation of the
+# deprecated API in order to know how to port your code away from it.
+DEFINES += QT_DEPRECATED_WARNINGS
+
+# You can also make your code fail to compile if you use deprecated APIs.
+# In order to do so, uncomment the following line.
+# You can also select to disable deprecated APIs only up to a certain version of Qt.
+#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0
+
+
+SOURCES += \
+    main.cpp \
+    models\downloader.cpp \
+    models\filesystem.cpp \
+    models\lotro.cpp \
+    widgets\browsewidget.cpp \
+    widgets\exportwidget.cpp \
+    widgets\importwidget.cpp \
+    widgets\mainwindow.cpp \
+    widgets\managewidget.cpp \
+    widgets\menuentry.cpp \
+    widgets\messagedialog.cpp \
+    widgets\processdialog.cpp \
+    widgets\statuswidget.cpp
+
+HEADERS += \
+    models\downloader.h \
+    models\filesystem.h \
+    models\lotro.h \
+    widgets\browsewidget.h \
+    widgets\exportwidget.h \
+    widgets\importwidget.h \
+    widgets\mainwindow.h \
+    widgets\managewidget.h \
+    widgets\menuentry.h \
+    widgets\messagedialog.h \
+    widgets\processdialog.h \
+    widgets\statuswidget.h
+
+FORMS += \
+    widgets\browsewidget.ui \
+    widgets\exportwidget.ui \
+    widgets\importwidget.ui \
+    widgets\mainwindow.ui \
+    widgets\managewidget.ui \
+    widgets\messagedialog.ui \
+    widgets\processdialog.ui \
+    widgets\statuswidget.ui
+
+RESOURCES += \
+    backgrounds.qrc \
+    common.qrc
+
+win32:RC_ICONS = $$PWD/resources/appicon.ico
+
+INCLUDEPATH += $$PWD/src
+INCLUDEPATH += $$PWD/widgets
+
+LIBS += -llibLotroDat_static
+LIBS += -llibyaml-cpp
+LIBS += -llibzlibstatic
+
+
+CONFIG(debug, debug|release) {
+        RESOURCES += \
+                resources/backgrounds.qrc \
+                resources/common.qrc
+} else {
+        include(build_res.pri)
+}

+ 37 - 0
src/Legacy-advanced/Legacy-advanced_resource.rc

@@ -0,0 +1,37 @@
+#include <windows.h>
+
+IDI_ICON1	ICON	DISCARDABLE	"D:\\Programming\\SourceRepos\\Legacy_v2\\src\\Legacy-advanced\\resources\\appicon.ico"
+
+VS_VERSION_INFO VERSIONINFO
+	FILEVERSION 0,0,0,0
+	PRODUCTVERSION 0,0,0,0
+	FILEFLAGSMASK 0x3fL
+#ifdef _DEBUG
+	FILEFLAGS VS_FF_DEBUG
+#else
+	FILEFLAGS 0x0L
+#endif
+	FILEOS VOS__WINDOWS32
+	FILETYPE VFT_DLL
+	FILESUBTYPE 0x0L
+	BEGIN
+		BLOCK "StringFileInfo"
+		BEGIN
+			BLOCK "040904b0"
+			BEGIN
+				VALUE "CompanyName", "\0"
+				VALUE "FileDescription", "\0"
+				VALUE "FileVersion", "0.0.0.0\0"
+				VALUE "LegalCopyright", "\0"
+				VALUE "OriginalFilename", "Legacy-advanced.exe\0"
+				VALUE "ProductName", "Legacy-advanced\0"
+				VALUE "ProductVersion", "0.0.0.0\0"
+			END
+		END
+		BLOCK "VarFileInfo"
+		BEGIN
+			VALUE "Translation", 0x0409, 1200
+		END
+	END
+/* End of Version info */
+

+ 3 - 0
src/Legacy-advanced/README.md

@@ -0,0 +1,3 @@
+# Legacy_v2
+
+Improved gui Legacy client

+ 26 - 0
src/Legacy-advanced/build_res.pri

@@ -0,0 +1,26 @@
+message(==========BUILDING EXTERNAL RES============)
+
+guiRes.target = BuildResources
+exists($$BIN_PATH/res) {
+    message("Directory $$BIN_PATH/res already exists")
+} else {
+    message("Directory $$BIN_PATH/res DOES NOT exist")
+    guiRes.commands += $(MKDIR) \"$$BIN_PATH/res\" $$escape_expand(\n\t)
+}
+
+EXT_RES =                                                                   \
+    "$$PWD/resources/backgrounds.qrc            -o $$BIN_PATH/data01.gtr"     \
+    "$$PWD/resources/common.qrc                 -o $$BIN_PATH/data02.gtr"     \
+
+for (RES, EXT_RES) {
+    win32 {
+        message(rcc.exe -binary $${RES})
+        guiRes.commands += rcc.exe -binary $${RES} $$escape_expand(\n\t)
+    }
+    unix {
+        guiRes.commands += rcc -binary $${RES} $$escape_expand(\n\t)
+    }
+}
+
+QMAKE_EXTRA_TARGETS += guiRes
+PRE_TARGETDEPS += BuildResources

+ 25 - 0
src/Legacy-advanced/main.cpp

@@ -0,0 +1,25 @@
+#include <QApplication>
+#include <QMessageBox>
+#include <QLockFile>
+#include <QDir>
+#include "legacyapp.h"
+#include <QTextCodec>
+
+int main(int argc, char *argv[])
+{
+    setlocale(LC_ALL,"Russian");
+
+    QApplication a(argc, argv);
+    QLockFile lockFile(QDir::temp().absoluteFilePath("rulotro.lock"));
+    if(!lockFile.tryLock(1)){
+        QMessageBox msgBox;
+        msgBox.setIcon(QMessageBox::Warning);
+        msgBox.setText("Приложение уже запущено.\nРазрешено запускать только один экземпляр приложения.");
+        msgBox.exec();
+        return 1;
+    }
+
+    LegacyApp app;
+    app.Init();
+    return a.exec();
+}

+ 74 - 0
src/Legacy-advanced/models/downloader.cpp

@@ -0,0 +1,74 @@
+#include "networkdownloader.h"
+#include <QEventLoop>
+#include <QApplication>
+
+NetworkDownloader::NetworkDownloader(QObject *parent) :QObject(parent), busy(false)
+{
+    connect(&m_WebCtrl, SIGNAL(finished(QNetworkReply*)), this, SLOT(onDownloadFinished(QNetworkReply*)));
+}
+
+NetworkDownloader::~NetworkDownloader() {
+}
+
+QUrl NetworkDownloader::getUrl()
+{
+    return url;
+}
+
+void NetworkDownloader::setUrl(const QUrl &_url)
+{
+    url = _url;
+}
+
+void NetworkDownloader::waitForDownloaded()
+{
+    QEventLoop loop;
+    connect(this, &NetworkDownloader::downloadFinished, &loop, &QEventLoop::quit);
+    loop.exec();
+}
+
+void NetworkDownloader::start()
+{
+    if (busy) {
+        qDebug() << "Cannot download " << url << ", downloader is busy!";
+        return;
+    }
+    qDebug() << "Starting download " << url;
+
+    busy = true;
+    QNetworkRequest request(url);
+    m_CurrentReply = m_WebCtrl.get(request);
+    m_CurrentReply->setReadBufferSize(download_speed_limit);
+    connect(m_CurrentReply, &QNetworkReply::readyRead, this, &NetworkDownloader::onReadyRead);
+    connect(m_CurrentReply, &QNetworkReply::downloadProgress, this, &NetworkDownloader::progressChanged);
+}
+
+void NetworkDownloader::updateDownloadSpeedLimit(int bytes_per_sec)
+{
+    download_speed_limit = bytes_per_sec;
+    if (m_CurrentReply)
+        m_CurrentReply->setReadBufferSize(bytes_per_sec);
+}
+
+void NetworkDownloader::stop()
+{
+    m_CurrentReply->abort();
+    busy = false;
+}
+
+void NetworkDownloader::onDownloadFinished(QNetworkReply*) {
+    if (m_CurrentReply)
+        m_CurrentReply->deleteLater();
+
+    busy = false;
+    emit downloadFinished();
+}
+
+void NetworkDownloader::onReadyRead()
+{
+    QByteArray readdata = m_CurrentReply->readAll();
+    if (targetFile && targetFile->isWritable())
+        targetFile->write(readdata);
+    if (targetBytearray)
+        targetBytearray->append(readdata);
+}

+ 49 - 0
src/Legacy-advanced/models/downloader.h

@@ -0,0 +1,49 @@
+#ifndef INCLUDEILEDOWNLOADER_H
+#define INCLUDEILEDOWNLOADER_H
+
+#include <QObject>
+#include <QNetworkAccessManager>
+#include <QNetworkRequest>
+#include <QNetworkReply>
+#include <QFile>
+#include <QByteArray>
+
+class NetworkDownloader : public QObject
+{
+    Q_OBJECT
+
+public:
+    explicit NetworkDownloader(QObject *parent = 0);
+    virtual ~NetworkDownloader();
+
+    QUrl getUrl();
+    void setUrl(const QUrl& _url);
+    void waitForDownloaded();
+
+signals:
+    void downloadFinished();
+    void progressChanged(qint64 bytesReceived, qint64 bytesTotal);
+
+public slots:
+    void start();
+    void updateDownloadSpeedLimit(int bytes_per_sec);
+    void stop();
+
+private slots:
+    void onDownloadFinished(QNetworkReply* pReply);
+    void onReadyRead();
+
+public:
+    QFile* targetFile {nullptr};
+    QByteArray* targetBytearray {nullptr};
+
+private:
+    bool busy;
+    QUrl url;
+    QNetworkReply* m_CurrentReply {nullptr};
+    QNetworkAccessManager m_WebCtrl;
+
+    unsigned download_speed_limit {0};
+};
+
+#endif // INCLUDEILEDOWNLOADER_H

+ 80 - 0
src/Legacy-advanced/models/filesystem.cpp

@@ -0,0 +1,80 @@
+#include "filesystem.h"
+#include <QDebug>
+#include <QSettings>
+
+bool FileSystem::fileExists(QString path) {
+    QFileInfo check_file(path);
+    bool exists = check_file.exists() && check_file.isFile();
+    if (exists == false)
+        qWarning("%s:%i: %s%s", __FILE__, __LINE__, "Файл не найден: ", path.toStdString().c_str());
+    else
+        qInfo("%s:%i: %s%s", __FILE__, __LINE__, "Файл найден: ", path.toStdString().c_str());
+    return exists;
+}
+
+QString FileSystem::fileHash(const QString &fileName, QCryptographicHash::Algorithm hashAlgorithm){
+    QFile file(fileName);
+    if (file.open(QIODevice::ReadOnly)) {
+        QByteArray fileData = file.readAll();
+        QByteArray hashData = QCryptographicHash::hash(fileData, hashAlgorithm);
+        return hashData.toHex();
+    }
+    return QByteArray();
+}
+
+void FileSystem::clearFolder(QDir &dir){
+    //Получаем список файлов
+    QStringList lstFiles = dir.entryList(QDir::Files);
+
+    //Удаляем файлы
+    foreach (QString entry, lstFiles){
+        QString entryAbsPath = dir.absolutePath() + "/" + entry;
+        //QFile::setPermissions(entryAbsPath, QFile::ReadOwner | QFile::WriteOwner);
+        qDebug() << dir.absolutePath();
+        QFile::remove(entryAbsPath);
+    }
+}
+
+QStringList FileSystem::recognizeRegistryLotroPath()
+{
+    QStringList paths;
+
+    #ifdef _WIN32
+        // Windows 8, 10
+        QSettings n("HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\12bbe590-c890-11d9-9669-0800200c9a66_is1", QSettings::NativeFormat);
+        foreach (QString key, n.allKeys()) {
+            qDebug() << key;
+            if(key.contains("InstallLocation") || key.contains("installlocation")){
+                QString folder = n.value(key).toString()
+                        .replace("\\", "/")
+                        .replace("/TurbineLauncher.exe", "")
+                        .replace("/LotroLauncher.exe", "")
+                        .replace("\"", "");
+
+                if(FileSystem::fileExists(folder + "/LotroLauncher.exe"))
+                    paths.append(folder);
+            }
+        }
+
+
+        // Windows 7
+        QSettings m("HKEY_CLASSES_ROOT\\Local Settings\\Software\\Microsoft\\Windows\\Shell\\MuiCache", QSettings::NativeFormat);
+        foreach (QString key, m.allKeys()) {
+          if((key.contains("TurbineLauncher.exe") || key.contains("LotroLauncher.exe")) && FileSystem::fileExists(key)){
+              QString folder = n.value(key).toString()
+                      .replace("\\", "/")
+                      .replace("/TurbineLauncher.exe", "")
+                      .replace("/LotroLauncher.exe", "")
+                      .replace("\"", "");
+
+              if(FileSystem::fileExists(folder + "/LotroLauncher.exe"))
+                  paths.append(folder);
+          }
+        }
+    #else
+        // Реализация под Linux
+    #endif
+
+    return paths;
+
+}

+ 26 - 0
src/Legacy-advanced/models/filesystem.h

@@ -0,0 +1,26 @@
+#ifndef FILESYSTEM_H
+#define FILESYSTEM_H
+
+#include <QObject>
+#include <QFile>
+#include <QDir>
+#include <QFileInfo>
+#include <QCryptographicHash>
+
+class FileSystem : public QObject
+{
+    Q_OBJECT
+private:
+    explicit FileSystem(QObject *parent = nullptr);
+
+public:
+    static bool fileExists(QString path);
+    static QString fileHash(const QString &fileName, QCryptographicHash::Algorithm hashAlgorithm);
+    static void clearFolder(QDir &dir);
+    static QStringList recognizeRegistryLotroPath();
+signals:
+
+public slots:
+};
+
+#endif // FILESYSTEM_H

+ 250 - 0
src/Legacy-advanced/models/lotro.cpp

@@ -0,0 +1,250 @@
+#include "lotro.h"
+#include "filesystem.h"
+
+#include <QtConcurrent/QtConcurrent>
+#include <QFontDatabase>
+#include <QMessageBox>
+
+Lotro::Lotro(QSettings& app_settings_, QObject *parent) : app_settings(app_settings_),
+    QObject(parent) {
+}
+
+void Lotro::initialiseDatFile(QString file_name) {
+    if (!tryToBlockFile())
+        return;
+
+    qDebug() << "Initialising file " << file_name;
+    emit processStarted("initialiseDatFile", {file_name});
+
+    if (!FileSystem::fileExists(file_path)) {
+        emit caughtError("initialiseDatFile", {QString("Ошибка инициализации"), QString("Файл " + file_path + " несуществует! Невозможно инициализировать файл ресурсов.")});
+        return;
+    }
+
+    file.Initialise((file_path).toStdString(), 0);
+    busy = false;
+    emit processFinished("initialiseDatFile", {QString("Success")});
+}
+
+void Lotro::changeLocale() {
+    if (!tryToBlockFile())
+        return;
+    qDebug() << "Changing locale of dat file...";
+
+    // Setting locale, opposite to current
+    auto current_locale = file.GetLocaleManager().GetCurrentLocale();
+    auto new_locale = current_locale == LOTRO_DAT::DatLocaleManager::PATCHED ?
+                LOTRO_DAT::DatLocaleManager::ORIGINAL :
+                LOTRO_DAT::DatLocaleManager::PATCHED;
+
+    QString old_locale_name = (current_locale == LOTRO_DAT::DatLocaleManager::PATCHED ? "Русифицированная" : "Оригинальная");
+    QString new_locale_name = (new_locale == LOTRO_DAT::DatLocaleManager::PATCHED ? "Русифицированная" : "Оригинальная");
+
+    emit processStarted("changeLocale", {current_locale, new_locale});
+
+    auto operation = file.GetLocaleManager().SetLocale(new_locale);
+
+    auto new_current_locale = file.GetLocaleManager().GetCurrentLocale();
+    QString new_current_locale_name = (new_current_locale == LOTRO_DAT::DatLocaleManager::PATCHED ? "Русифицированная" : "Оригинальная");
+
+    if (operation.result == LOTRO_DAT::SUCCESS) {
+        emit processFinished("changeLocale", {"Success", new_current_locale_name});
+    } else {
+        emit caughtError("changeLocale", {"Ошибка смены локали!", QString("Не удалось сменить локаль игры! Текущая локаль: ") + new_current_locale_name});
+        emit processFinished("changeLocale", {"Error", new_current_locale_name});
+    }
+    busy = false;
+}
+
+void Lotro::getLocaleFileContents(long long file_id, int locale) {
+    if (!tryToBlockFile())
+        return;
+    emit processStarted("getFileContents", {file_id, locale});
+
+    auto getfile_op = file.GetLocaleManager().GetLocaleFile(file_id, locale);
+    if (!getfile_op.result) {
+        emit caughtError("getOriginalFileContents", {"Файл не найден!", QString("Не удаётся найти файл с id ") + QString::number(file_id)});
+        emit processFinished("getOriginalFileContents", {"Error"});
+        return false;
+    }
+
+    LOTRO_DAT::SubFile subfile = getfile_op.value;
+
+    auto getfiledata_op = file.GetFileSystem().GetFileData(subfile, 8);
+
+    if (!getfile_op.result) {
+        emit caughtError("getOriginalFileContents", {"Ошибка извлечения!", QString("Обнаружены некорректные данные файла в словаре! Файл ресурсов мог быть повреждён!\nid = ") + QString::number(file_id) + ", locale_id = " + QString::number(locale)});
+        emit processFinished("getOriginalFileContents", {"Error"});
+        return false;
+    }
+
+    LOTRO_DAT::SubfileData result = subfile.PrepareForExport(getfiledata_op.value);
+    emit LocaleFileContentsReceived(locale, result);
+
+    emit processFinished("getFileContents", {"Success", file_id, locale});
+    busy = false;
+}
+
+void Lotro::importFilesFromDatabase(QString database_path) {
+    if (!tryToBlockFile())
+        return;
+
+    if (!FileSystem::fileExists(database_path)) {
+        emit caughtError("importFilesFromDatabase", {QString("Ошибка импорта!"), QString("Файл " + file_path + " несуществует! Невозможно инициализировать базу данных!")});
+        return;
+    }
+    emit processStarted("importFilesFromDatabase", {database_path});
+
+    LOTRO_DAT::Database db;
+    if (!db.InitDatabase(database_path.toStdString())) {
+        emit caughtError("importFilesFromDatabase", {QString("Ошибка импорта!"), QString("Внутренняя ошибка инициализации базы данных!")});
+        emit processFinished("importFilesFromDatabase", {QString("Error")});
+        return;
+    }
+
+    auto patch_operation = file.GetPatcher().PatchAllDatabase(&db);
+
+    if (patch_operation.result) {
+        emit processFinished("importFilesFromDatabase", {QString("Success"), patch_operation.value});
+    } else {
+        emit processFinished("importFilesFromDatabase", {QString("Error"), 0});
+    }
+    busy = false;
+}
+
+void Lotro::importFile(long long file_id, QString file_path) {
+
+}
+
+void Lotro::importTextFragment(long long file_id, long long fragment_id,
+                               QString fragment_contents, QString arguments) {
+
+}
+
+void Lotro::getTextFragment(long long file_id, long long fragment_id) {
+
+}
+
+void Lotro::createCoreStatusFile(QString output_filename) {
+
+}
+
+void Lotro::extractSingleFile(QString output_filename, long long file_id) {
+
+}
+
+void Lotro::extractSingleFileToDatabase(QString database_path, long long file_id) {
+
+}
+
+void Lotro::extractGrouppedFiles(QString output_foldername, LOTRO_DAT::FILE_TYPE type) {
+
+}
+
+void Lotro::extractGrouppedFilesToDatabase(QString database_path, LOTRO_DAT::FILE_TYPE type) {
+
+}
+
+void Lotro::getUnactiveCategories() {
+
+}
+
+void Lotro::startGame() {
+
+}
+
+bool Lotro::initialised() {
+
+}
+
+int Lotro::currentLocale() {
+
+}
+
+bool Lotro::patched() {
+
+}
+
+bool Lotro::tryToBlockFile()
+{
+    if (busy) {
+        emit caughtError("common", {QString("Ошибка инициализации!"), QString("Уже выполняется другой процесс с ресурсами игры! Невозможно инициализировать во время выполнения другого процесса!")});
+        return false;
+    }
+    busy = true;
+}
+
+
+
+
+void LegacyApp::ExtractFiles(QString folder_name, bool to_database, bool is_single_file, int file_id, LOTRO_DAT::FILE_TYPE type)
+{
+    qDebug() << "Extracting files with parameters " << folder_name << to_database << is_single_file << file_id << type;
+    QtConcurrent::run([this, folder_name, to_database, is_single_file, file_id, type](){
+        if (client_local_dat_busy == false) {
+            client_local_dat_busy = true;
+            if (is_single_file) {
+                auto operation = client_local_dat.GetExporter().ExtractFileById(file_id, std::string((folder_name + "/output").toLocal8Bit().constData()));
+
+                if (operation.result == LOTRO_DAT::SUCCESS)
+                    QMessageBox::information(nullptr, "Извлечение успешно!", "Файл " + QString::number(file_id) + " был успешно извлечён!\nПуть к файлу: " + folder_name + "/output.{расширение файла}");
+                else
+                    QMessageBox::critical(nullptr, "Ошибка извлечения!", "Файл " + QString::number(file_id) + " не был извлечён ввиду внутренней ошибки\nТекст ошибки: " + QString::fromStdString(operation.msg));
+            }
+
+            if (!is_single_file) {
+                if (to_database) {
+                    LOTRO_DAT::Database db;
+                    qint64 msecs = QDateTime::currentDateTime().toMSecsSinceEpoch();
+
+                    QString output_database_filename = folder_name + "/database_" + QString::number(msecs) + ".db";
+
+                    db.InitDatabase(std::string(output_database_filename.toStdString()));
+                    auto operation = client_local_dat.GetExporter().ExtractAllFilesByType(type, &db);
+                    db.CloseDatabase();
+
+                    if (operation.result == LOTRO_DAT::SUCCESS)
+                        QMessageBox::information(nullptr, "Извлечение успешно!", "Выбранные типы файлов были успешно извлечены в базу данных\nКол-во извлечённых файлов: " + QString::number(operation.value) + "\nПуть к извлечённой базе данных: " + output_database_filename);
+                    else
+                        QMessageBox::critical(nullptr, "Ошибка извлечения!", "Файлы не были извлечены ввиду внутренней ошибки\nТекст ошибки: " + QString::fromStdString(operation.msg));
+                } else {
+                    QString output_directory_path = folder_name + "/";
+                    auto operation = client_local_dat.GetExporter().ExtractAllFilesByType(type, std::string(output_directory_path.toLocal8Bit().constData()));
+
+                    if (operation.result == LOTRO_DAT::SUCCESS)
+                        QMessageBox::information(nullptr, "Извлечение успешно!", "Выбранные типы файлов были успешно извлечены в папку\nКол-во извлечённых файлов: " + QString::number(operation.value) + "\nПуть к папке: " + output_directory_path);
+                    else
+                        QMessageBox::critical(nullptr, "Ошибка извлечения!", "Файлы не были извлечены ввиду внутренней ошибки\nТекст ошибки: " + QString::fromStdString(operation.msg));
+                }
+            }
+
+            client_local_dat_busy = false;
+        }
+    });
+}
+
+void LegacyApp::ChangeLocale()
+{
+
+}
+
+void LegacyApp::CreateCoreStatusFile(QString output_folder)
+{
+    qDebug() << "Creating core status file to output folder " << output_folder;
+
+    QtConcurrent::run([this, output_folder](){
+        if (client_local_dat_busy == false) {
+            client_local_dat_busy = true;
+            qint64 msecs = QDateTime::currentDateTime().toMSecsSinceEpoch();
+            QString output_filename = output_folder + "/core_" + QString::number(msecs) + ".txt";
+            auto operation = client_local_dat.GatherInformation(std::string(output_filename.toLocal8Bit().constData()));
+            client_local_dat_busy = false;
+
+
+            if (operation.result == LOTRO_DAT::SUCCESS)
+                QMessageBox::information(nullptr, "Успех!", "Файл ядра успешно создан!\nПуть к файлу: " + output_filename);
+            else
+                QMessageBox::critical(nullptr, "Неудача!", "Ошибка создания файла ядра!\nТекст ошибки: " + QString::fromStdString(operation.msg));
+        }
+    });
+}

+ 72 - 0
src/Legacy-advanced/models/lotro.h

@@ -0,0 +1,72 @@
+#ifndef LEGACYAPP_H
+#define LEGACYAPP_H
+
+#include <QObject>
+#include <QSettings>
+#include <QApplication>
+
+#include <LotroDat/LotroDat.h>
+
+class Lotro : public QObject
+{
+    Q_OBJECT
+
+public:
+    explicit Lotro(QSettings& app_settings_, QObject *parent = nullptr);
+
+    bool initialised();
+
+    int currentLocale();
+
+    bool patched();
+
+public slots:
+    void initialiseDatFile(QString file_name);
+
+    void changeLocale();
+
+    void getLocaleFileContents(long long file_id, int locale);
+
+    void importFilesFromDatabase(QString database_path);
+
+    void importFile(long long file_id, QString file_path);
+
+    void importTextFragment(long long file_id, long long fragment_id, QString fragment_contents, QString arguments);
+
+    void getTextFragment(long long file_id, long long fragment_id);
+
+    void createCoreStatusFile(QString output_filename);
+
+    void extractSingleFile(QString output_filename, long long file_id);
+
+    void extractSingleFileToDatabase(QString database_path, long long file_id);
+
+    void extractGrouppedFiles(QString output_foldername, LOTRO_DAT::FILE_TYPE type);
+
+    void extractGrouppedFilesToDatabase(QString database_path, LOTRO_DAT::FILE_TYPE type);
+
+    void getUnactiveCategories();
+
+    void startGame();
+
+private:
+    bool tryToBlockFile();
+
+signals:
+    // general signals. First argument is process_name, second - processed values
+    void processStarted(QString, QList<QVariant>);
+    void processFinished(QString, QList<QVariant>);
+    void processUpdated(QString, QList<QVariant>);
+    void caughtError(QString, QList<QVariant>);
+
+    void TextFragmentReceived(QString, QString);
+    void UnactiveCategoriesReceived(QStringList);
+    void LocaleFileContentsReceived(int, LOTRO_DAT::SubfileData); // extention, contents
+
+private:
+    LOTRO_DAT::DatFile file;
+    bool busy;
+    QSettings& app_settings;
+};
+
+#endif // LEGACYAPP_H

+ 29 - 0
src/Legacy-advanced/object_script.Legacy-advanced.Debug

@@ -0,0 +1,29 @@
+INPUT(
+./..\..\build\debug\Legacy-advanced\rcc\qrc_backgrounds.o
+./..\..\build\debug\Legacy-advanced\rcc\qrc_common.o
+./..\..\build\debug\Legacy-advanced\obj\main.o
+./..\..\build\debug\Legacy-advanced\obj\downloader.o
+./..\..\build\debug\Legacy-advanced\obj\filesystem.o
+./..\..\build\debug\Legacy-advanced\obj\lotro.o
+./..\..\build\debug\Legacy-advanced\obj\browsewidget.o
+./..\..\build\debug\Legacy-advanced\obj\exportwidget.o
+./..\..\build\debug\Legacy-advanced\obj\importwidget.o
+./..\..\build\debug\Legacy-advanced\obj\mainwindow.o
+./..\..\build\debug\Legacy-advanced\obj\managewidget.o
+./..\..\build\debug\Legacy-advanced\obj\menuentry.o
+./..\..\build\debug\Legacy-advanced\obj\messagedialog.o
+./..\..\build\debug\Legacy-advanced\obj\processdialog.o
+./..\..\build\debug\Legacy-advanced\obj\statuswidget.o
+./..\..\build\debug\Legacy-advanced\obj\moc_downloader.o
+./..\..\build\debug\Legacy-advanced\obj\moc_filesystem.o
+./..\..\build\debug\Legacy-advanced\obj\moc_lotro.o
+./..\..\build\debug\Legacy-advanced\obj\moc_browsewidget.o
+./..\..\build\debug\Legacy-advanced\obj\moc_exportwidget.o
+./..\..\build\debug\Legacy-advanced\obj\moc_importwidget.o
+./..\..\build\debug\Legacy-advanced\obj\moc_mainwindow.o
+./..\..\build\debug\Legacy-advanced\obj\moc_managewidget.o
+./..\..\build\debug\Legacy-advanced\obj\moc_menuentry.o
+./..\..\build\debug\Legacy-advanced\obj\moc_messagedialog.o
+./..\..\build\debug\Legacy-advanced\obj\moc_processdialog.o
+./..\..\build\debug\Legacy-advanced\obj\moc_statuswidget.o
+);

+ 29 - 0
src/Legacy-advanced/object_script.Legacy-advanced.Release

@@ -0,0 +1,29 @@
+INPUT(
+./..\..\build\release\Legacy-advanced\rcc\qrc_backgrounds.o
+./..\..\build\release\Legacy-advanced\rcc\qrc_common.o
+./..\..\build\release\Legacy-advanced\obj\main.o
+./..\..\build\release\Legacy-advanced\obj\downloader.o
+./..\..\build\release\Legacy-advanced\obj\filesystem.o
+./..\..\build\release\Legacy-advanced\obj\lotro.o
+./..\..\build\release\Legacy-advanced\obj\browsewidget.o
+./..\..\build\release\Legacy-advanced\obj\exportwidget.o
+./..\..\build\release\Legacy-advanced\obj\importwidget.o
+./..\..\build\release\Legacy-advanced\obj\mainwindow.o
+./..\..\build\release\Legacy-advanced\obj\managewidget.o
+./..\..\build\release\Legacy-advanced\obj\menuentry.o
+./..\..\build\release\Legacy-advanced\obj\messagedialog.o
+./..\..\build\release\Legacy-advanced\obj\processdialog.o
+./..\..\build\release\Legacy-advanced\obj\statuswidget.o
+./..\..\build\release\Legacy-advanced\obj\moc_downloader.o
+./..\..\build\release\Legacy-advanced\obj\moc_filesystem.o
+./..\..\build\release\Legacy-advanced\obj\moc_lotro.o
+./..\..\build\release\Legacy-advanced\obj\moc_browsewidget.o
+./..\..\build\release\Legacy-advanced\obj\moc_exportwidget.o
+./..\..\build\release\Legacy-advanced\obj\moc_importwidget.o
+./..\..\build\release\Legacy-advanced\obj\moc_mainwindow.o
+./..\..\build\release\Legacy-advanced\obj\moc_managewidget.o
+./..\..\build\release\Legacy-advanced\obj\moc_menuentry.o
+./..\..\build\release\Legacy-advanced\obj\moc_messagedialog.o
+./..\..\build\release\Legacy-advanced\obj\moc_processdialog.o
+./..\..\build\release\Legacy-advanced\obj\moc_statuswidget.o
+);

+ 15 - 0
src/Legacy-advanced/widgets/browsewidget.cpp

@@ -0,0 +1,15 @@
+#include "browsewidget.h"
+#include "ui_browsewidget.h"
+#include "legacyapp.h"
+
+BrowseWidget::BrowseWidget(LegacyApp *_app, QWidget *parent) :
+    QWidget(parent), app(_app),
+    ui(new Ui::BrowseWidget)
+{
+    ui->setupUi(this);
+}
+
+BrowseWidget::~BrowseWidget()
+{
+    delete ui;
+}

+ 26 - 0
src/Legacy-advanced/widgets/browsewidget.h

@@ -0,0 +1,26 @@
+#ifndef BROWSEWIDGET_H
+#define BROWSEWIDGET_H
+
+#include <QWidget>
+
+namespace Ui {
+class BrowseWidget;
+}
+
+class LegacyApp;
+
+class BrowseWidget : public QWidget
+{
+    Q_OBJECT
+
+public:
+    explicit BrowseWidget(LegacyApp *_app, QWidget *parent = 0);
+    ~BrowseWidget();
+
+private:
+    LegacyApp *app;
+    Ui::BrowseWidget *ui;
+
+};
+
+#endif // BROWSEWIDGET_H

+ 246 - 0
src/Legacy-advanced/widgets/browsewidget.ui

@@ -0,0 +1,246 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>BrowseWidget</class>
+ <widget class="QWidget" name="BrowseWidget">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>1000</width>
+    <height>564</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">QLabel, QRadioButton, QCheckBox {
+	color: white;
+}</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout">
+   <item row="0" column="0" colspan="2">
+    <widget class="QWidget" name="file_info_widget" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">QWidget#file_info_widget{
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout_7">
+      <property name="topMargin">
+       <number>11</number>
+      </property>
+      <item>
+       <widget class="QWidget" name="widget_19" native="true">
+        <layout class="QHBoxLayout" name="horizontalLayout_12">
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item>
+          <widget class="QLabel" name="label_20">
+           <property name="text">
+            <string>ID файла:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_7">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="clearButtonEnabled">
+            <bool>true</bool>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer_12">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>447</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item>
+       <widget class="QWidget" name="widget_20" native="true">
+        <layout class="QHBoxLayout" name="horizontalLayout_13">
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item>
+          <widget class="QLabel" name="label_19">
+           <property name="text">
+            <string>ID фрагмента (необязательно):</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_6">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="clearButtonEnabled">
+            <bool>true</bool>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer_13">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>318</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item>
+       <widget class="QWidget" name="widget_18" native="true">
+        <layout class="QHBoxLayout" name="horizontalLayout_10">
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item>
+          <spacer name="horizontalSpacer_11">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>583</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item>
+          <widget class="QPushButton" name="pushButton_9">
+           <property name="text">
+            <string>Найти</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+     </layout>
+     <zorder>widget_20</zorder>
+     <zorder>widget_19</zorder>
+     <zorder>widget_18</zorder>
+    </widget>
+   </item>
+   <item row="1" column="0">
+    <widget class="QWidget" name="original_contents_widget" native="true">
+     <property name="styleSheet">
+      <string notr="true">QWidget#original_contents_widget{
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout_6">
+      <item>
+       <widget class="QLabel" name="label_17">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="text">
+         <string>Оригинальная версия</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignCenter</set>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="1" column="1">
+    <widget class="QWidget" name="patched_contents_widget" native="true">
+     <property name="styleSheet">
+      <string notr="true">QWidget#patched_contents_widget{
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout_5">
+      <item>
+       <widget class="QLabel" name="label_18">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="text">
+         <string>Русифицированная версия</string>
+        </property>
+        <property name="alignment">
+         <set>Qt::AlignCenter</set>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 83 - 0
src/Legacy-advanced/widgets/exportwidget.cpp

@@ -0,0 +1,83 @@
+#include "gui/exportwidget.h"
+#include "ui_exportwidget.h"
+#include "legacyapp.h"
+
+#include <QFileDialog>
+
+ExportWidget::ExportWidget(LegacyApp *_app, QWidget *parent) :
+    QWidget(parent), app(_app),
+    ui(new Ui::ExportWidget)
+{
+    ui->setupUi(this);
+    ui->singlefile_radio_common->click();
+    ui->folder_value_common->setText(app->properties.value("advanced/export_folder", "(не выбрана)").toString());
+    ui->folder_value_common->setToolTip(app->properties.value("advanced/export_folder", "Выберите папку, куда будут помещены извлечённые файлы").toString());
+}
+
+ExportWidget::~ExportWidget()
+{
+    delete ui;
+}
+
+void ExportWidget::on_singlefile_radio_common_clicked()
+{
+    ui->single_file_id_common->setEnabled(true);
+    ui->filetype_dds_common->setDisabled(true);
+    ui->filetype_fontbin_common->setDisabled(true);
+    ui->filetype_jpg_common->setDisabled(true);
+    ui->filetype_ogg_common->setDisabled(true);
+    ui->filetype_txt_common->setDisabled(true);
+    ui->filetype_unknown_common->setDisabled(true);
+    ui->filetype_wav_common->setDisabled(true);
+}
+
+void ExportWidget::on_filesbytype_radio_common_clicked()
+{
+    ui->single_file_id_common->setDisabled(true);
+    ui->filetype_dds_common->setEnabled(true);
+    ui->filetype_fontbin_common->setEnabled(true);
+    ui->filetype_jpg_common->setEnabled(true);
+    ui->filetype_ogg_common->setEnabled(true);
+    ui->filetype_txt_common->setEnabled(true);
+    ui->filetype_unknown_common->setEnabled(true);
+    ui->filetype_wav_common->setEnabled(true);
+}
+
+void ExportWidget::on_change_folder_button_clicked()
+{
+    QString path = QFileDialog::getExistingDirectory(0, ("Select Output Folder"), QDir::currentPath());
+    if (path.length() == 0)
+        return;
+
+    app->properties.setValue("advanced/export_folder", path);
+    app->properties.sync();
+    ui->folder_value_common->setText(path);
+    ui->folder_value_common->setToolTip(path);
+}
+
+void ExportWidget::on_extract_button_common_clicked()
+{
+    QString folder = ui->folder_value_common->text();
+    bool to_database = ui->target_database_radio_common->isChecked();
+    bool is_single_file = ui->singlefile_radio_common->isChecked();
+
+    LOTRO_DAT::FILE_TYPE file_type = LOTRO_DAT::FILE_TYPE::NO_TYPE;
+    if (ui->filetype_dds_common->isChecked())
+        file_type = LOTRO_DAT::FILE_TYPE(file_type | LOTRO_DAT::DDS);
+    if (ui->filetype_fontbin_common->isChecked())
+        file_type = LOTRO_DAT::FILE_TYPE(file_type | LOTRO_DAT::FONT);
+    if (ui->filetype_jpg_common->isChecked())
+        file_type = LOTRO_DAT::FILE_TYPE(file_type | LOTRO_DAT::JPG);
+    if (ui->filetype_ogg_common->isChecked())
+        file_type = LOTRO_DAT::FILE_TYPE(file_type | LOTRO_DAT::OGG);
+    if (ui->filetype_txt_common->isChecked())
+        file_type = LOTRO_DAT::FILE_TYPE(file_type | LOTRO_DAT::TEXT);
+    if (ui->filetype_unknown_common->isChecked())
+        file_type = LOTRO_DAT::FILE_TYPE(file_type | LOTRO_DAT::UNKNOWN);
+    if (ui->filetype_wav_common->isChecked())
+        file_type = LOTRO_DAT::FILE_TYPE(file_type | LOTRO_DAT::WAV);
+
+    int file_id = ui->single_file_id_common->text().toInt();
+
+    app->ExtractFiles(folder, to_database, is_single_file, file_id, file_type);
+}

+ 36 - 0
src/Legacy-advanced/widgets/exportwidget.h

@@ -0,0 +1,36 @@
+#ifndef EXPORTWIDGET_H
+#define EXPORTWIDGET_H
+
+#include <QWidget>
+
+namespace Ui {
+class ExportWidget;
+}
+
+class LegacyApp;
+
+class ExportWidget : public QWidget
+{
+    Q_OBJECT
+
+public:
+    explicit ExportWidget(LegacyApp *_app, QWidget *parent = 0);
+    ~ExportWidget();
+
+private slots:
+
+    void on_singlefile_radio_common_clicked();
+
+    void on_filesbytype_radio_common_clicked();
+
+    void on_change_folder_button_clicked();
+
+    void on_extract_button_common_clicked();
+
+private:
+    LegacyApp *app;
+    Ui::ExportWidget *ui;
+
+};
+
+#endif // EXPORTWIDGET_H

+ 364 - 0
src/Legacy-advanced/widgets/exportwidget.ui

@@ -0,0 +1,364 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ExportWidget</class>
+ <widget class="QWidget" name="ExportWidget">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>640</width>
+    <height>480</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">QLabel, QRadioButton, QCheckBox {
+	color: white;
+}</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout">
+   <item row="1" column="0">
+    <widget class="QWidget" name="output_type_widget" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">QWidget#output_type_widget{
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout_2">
+      <item>
+       <widget class="QRadioButton" name="target_database_radio_common">
+        <property name="text">
+         <string>В базу данных</string>
+        </property>
+        <property name="checked">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QRadioButton" name="target_files_radio_common">
+        <property name="text">
+         <string>В файлы</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="2" column="0">
+    <widget class="QWidget" name="export_type_widget" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">QWidget#export_type_widget{
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_8">
+      <property name="horizontalSpacing">
+       <number>30</number>
+      </property>
+      <item row="0" column="0">
+       <widget class="QRadioButton" name="singlefile_radio_common">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="text">
+         <string>Отдельного файла</string>
+        </property>
+        <property name="checked">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="1">
+       <widget class="QWidget" name="widget_13" native="true">
+        <layout class="QHBoxLayout" name="horizontalLayout_6">
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item>
+          <widget class="QLabel" name="label_11_common">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="text">
+            <string>ID файла:</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="single_file_id_common">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <spacer name="horizontalSpacer_9">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QRadioButton" name="filesbytype_radio_common">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="text">
+         <string>Всех файлов заданного типа</string>
+        </property>
+        <property name="checked">
+         <bool>false</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="1">
+       <widget class="QWidget" name="widget_14" native="true">
+        <layout class="QGridLayout" name="gridLayout_11">
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item row="1" column="1">
+          <widget class="QCheckBox" name="filetype_jpg_common">
+           <property name="text">
+            <string>JPG</string>
+           </property>
+          </widget>
+         </item>
+         <item row="2" column="1">
+          <widget class="QCheckBox" name="filetype_dds_common">
+           <property name="text">
+            <string>DDS</string>
+           </property>
+          </widget>
+         </item>
+         <item row="0" column="0">
+          <widget class="QLabel" name="label_13_common">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="text">
+            <string>Тип файлов:</string>
+           </property>
+          </widget>
+         </item>
+         <item row="3" column="1">
+          <widget class="QCheckBox" name="filetype_ogg_common">
+           <property name="text">
+            <string>OGG</string>
+           </property>
+          </widget>
+         </item>
+         <item row="0" column="3" rowspan="7">
+          <spacer name="horizontalSpacer_10">
+           <property name="orientation">
+            <enum>Qt::Horizontal</enum>
+           </property>
+           <property name="sizeHint" stdset="0">
+            <size>
+             <width>40</width>
+             <height>20</height>
+            </size>
+           </property>
+          </spacer>
+         </item>
+         <item row="0" column="1">
+          <widget class="QCheckBox" name="filetype_txt_common">
+           <property name="text">
+            <string>TXT</string>
+           </property>
+          </widget>
+         </item>
+         <item row="0" column="2">
+          <widget class="QCheckBox" name="filetype_wav_common">
+           <property name="text">
+            <string>WAV</string>
+           </property>
+          </widget>
+         </item>
+         <item row="1" column="2">
+          <widget class="QCheckBox" name="filetype_fontbin_common">
+           <property name="text">
+            <string>FONTBIN</string>
+           </property>
+          </widget>
+         </item>
+         <item row="2" column="2">
+          <widget class="QCheckBox" name="filetype_unknown_common">
+           <property name="text">
+            <string>UNKNOWN</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="4" column="0">
+    <widget class="QWidget" name="widget_7" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <layout class="QHBoxLayout" name="horizontalLayout_14">
+      <item>
+       <spacer name="horizontalSpacer_14">
+        <property name="orientation">
+         <enum>Qt::Horizontal</enum>
+        </property>
+        <property name="sizeHint" stdset="0">
+         <size>
+          <width>561</width>
+          <height>20</height>
+         </size>
+        </property>
+       </spacer>
+      </item>
+      <item>
+       <widget class="QPushButton" name="extract_button_common">
+        <property name="text">
+         <string>Извлечь</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="0" column="0">
+    <widget class="QWidget" name="export_folder_widget" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);</string>
+     </property>
+     <layout class="QHBoxLayout" name="horizontalLayout_11">
+      <item>
+       <widget class="QLabel" name="folder_label_common">
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string>Папка для извлечённых файлов:</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QLabel" name="folder_value_common">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string>D:\Programming\SourceRepos\Legacy_v2</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QPushButton" name="change_folder_button">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>36</width>
+          <height>32</height>
+         </size>
+        </property>
+        <property name="cursor">
+         <cursorShape>PointingHandCursor</cursorShape>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">border-image: url(:/assets/buttons/folder.png);
+
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string/>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 43 - 0
src/Legacy-advanced/widgets/importwidget.cpp

@@ -0,0 +1,43 @@
+#include "gui/importwidget.h"
+#include "ui_importwidget.h"
+#include "legacyapp.h"
+
+ImportWidget::ImportWidget(LegacyApp *_app, QWidget *parent) :
+    QWidget(parent), app(_app),
+    ui(new Ui::ImportWidget)
+{
+    ui->setupUi(this);
+    hideAllImportOptions();
+    ui->database_import_widget->show();
+}
+
+ImportWidget::~ImportWidget()
+{
+    delete ui;
+}
+
+void ImportWidget::hideAllImportOptions()
+{
+    ui->database_import_widget->hide();
+    ui->file_import_widget->hide();
+    ui->textfragment_import_widget->hide();
+}
+
+
+void ImportWidget::on_database_import_radiobutton_common_clicked()
+{
+    hideAllImportOptions();
+    ui->database_import_widget->show();
+}
+
+void ImportWidget::on_file_import_radiobutton_common_clicked()
+{
+    hideAllImportOptions();
+    ui->file_import_widget->show();
+}
+
+void ImportWidget::on_textfragment_import_radiobutton_common_clicked()
+{
+    hideAllImportOptions();
+    ui->textfragment_import_widget->show();
+}

+ 35 - 0
src/Legacy-advanced/widgets/importwidget.h

@@ -0,0 +1,35 @@
+#ifndef IMPORTWIDGET_H
+#define IMPORTWIDGET_H
+
+#include <QWidget>
+
+namespace Ui {
+class ImportWidget;
+}
+
+class LegacyApp;
+
+class ImportWidget : public QWidget
+{
+    Q_OBJECT
+
+public:
+    explicit ImportWidget(LegacyApp *_app, QWidget *parent = 0);
+    ~ImportWidget();
+
+    void hideAllImportOptions();
+
+private slots:
+    void on_database_import_radiobutton_common_clicked();
+
+    void on_file_import_radiobutton_common_clicked();
+
+    void on_textfragment_import_radiobutton_common_clicked();
+
+private:
+    LegacyApp *app;
+    Ui::ImportWidget *ui;
+
+};
+
+#endif // IMPORTWIDGET_H

+ 633 - 0
src/Legacy-advanced/widgets/importwidget.ui

@@ -0,0 +1,633 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ImportWidget</class>
+ <widget class="QWidget" name="ImportWidget">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>928</width>
+    <height>533</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">QLabel, QRadioButton, QCheckBox {
+	color: white;
+}</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout">
+   <item row="0" column="0">
+    <widget class="QWidget" name="widget_3" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_5">
+      <property name="leftMargin">
+       <number>0</number>
+      </property>
+      <property name="topMargin">
+       <number>0</number>
+      </property>
+      <property name="rightMargin">
+       <number>0</number>
+      </property>
+      <property name="bottomMargin">
+       <number>0</number>
+      </property>
+      <item row="3" column="0">
+       <widget class="QWidget" name="file_import_widget" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">QWidget#file_import_widget {
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+        </property>
+        <layout class="QGridLayout" name="gridLayout_6">
+         <item row="1" column="0">
+          <widget class="QLabel" name="label_8_common">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="text">
+            <string>Путь к файлу:</string>
+           </property>
+          </widget>
+         </item>
+         <item row="1" column="1">
+          <widget class="QLabel" name="file_path_common">
+           <property name="text">
+            <string>(не указан)</string>
+           </property>
+          </widget>
+         </item>
+         <item row="1" column="2">
+          <widget class="QPushButton" name="change_file_path_common">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>25</height>
+            </size>
+           </property>
+           <property name="maximumSize">
+            <size>
+             <width>30</width>
+             <height>25</height>
+            </size>
+           </property>
+           <property name="text">
+            <string>...</string>
+           </property>
+          </widget>
+         </item>
+         <item row="3" column="0" colspan="3">
+          <widget class="QWidget" name="widget_4" native="true">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>0</height>
+            </size>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_7">
+            <property name="spacing">
+             <number>0</number>
+            </property>
+            <property name="leftMargin">
+             <number>0</number>
+            </property>
+            <property name="topMargin">
+             <number>0</number>
+            </property>
+            <property name="rightMargin">
+             <number>0</number>
+            </property>
+            <property name="bottomMargin">
+             <number>0</number>
+            </property>
+            <item>
+             <spacer name="horizontalSpacer_6">
+              <property name="orientation">
+               <enum>Qt::Horizontal</enum>
+              </property>
+              <property name="sizeHint" stdset="0">
+               <size>
+                <width>561</width>
+                <height>20</height>
+               </size>
+              </property>
+             </spacer>
+            </item>
+            <item>
+             <widget class="QPushButton" name="apply_file_common">
+              <property name="text">
+               <string>Применить</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+         <item row="2" column="0" colspan="3">
+          <widget class="QWidget" name="widget_5" native="true">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>0</height>
+            </size>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_5">
+            <item>
+             <widget class="QLabel" name="label_4_common">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+              <property name="text">
+               <string>ID файла:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLineEdit" name="import_file_id_common">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLabel" name="label_7_common">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+              <property name="text">
+               <string>Тип файла:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QComboBox" name="comboBox_common">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+              <item>
+               <property name="text">
+                <string>TXT</string>
+               </property>
+              </item>
+              <item>
+               <property name="text">
+                <string>JPG</string>
+               </property>
+              </item>
+              <item>
+               <property name="text">
+                <string>DDS</string>
+               </property>
+              </item>
+              <item>
+               <property name="text">
+                <string>OGG</string>
+               </property>
+              </item>
+              <item>
+               <property name="text">
+                <string>WAV</string>
+               </property>
+              </item>
+              <item>
+               <property name="text">
+                <string>FONTBIN</string>
+               </property>
+              </item>
+              <item>
+               <property name="text">
+                <string>UNKNOWN</string>
+               </property>
+              </item>
+             </widget>
+            </item>
+            <item>
+             <spacer name="horizontalSpacer_2">
+              <property name="orientation">
+               <enum>Qt::Horizontal</enum>
+              </property>
+              <property name="sizeHint" stdset="0">
+               <size>
+                <width>40</width>
+                <height>20</height>
+               </size>
+              </property>
+             </spacer>
+            </item>
+           </layout>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QWidget" name="database_import_widget" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">QWidget#database_import_widget {
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+        </property>
+        <layout class="QGridLayout" name="gridLayout_7">
+         <item row="0" column="1">
+          <widget class="QLabel" name="database_path_common">
+           <property name="styleSheet">
+            <string notr="true"/>
+           </property>
+           <property name="text">
+            <string>(не указан)</string>
+           </property>
+          </widget>
+         </item>
+         <item row="0" column="2">
+          <widget class="QPushButton" name="change_database_path_common">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>25</height>
+            </size>
+           </property>
+           <property name="maximumSize">
+            <size>
+             <width>30</width>
+             <height>25</height>
+            </size>
+           </property>
+           <property name="text">
+            <string>...</string>
+           </property>
+          </widget>
+         </item>
+         <item row="0" column="0">
+          <widget class="QLabel" name="label_5_common">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="styleSheet">
+            <string notr="true"/>
+           </property>
+           <property name="text">
+            <string>Путь к базе данных:</string>
+           </property>
+          </widget>
+         </item>
+         <item row="1" column="0" colspan="3">
+          <widget class="QWidget" name="widget_6" native="true">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>0</width>
+             <height>0</height>
+            </size>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_9">
+            <property name="spacing">
+             <number>0</number>
+            </property>
+            <property name="leftMargin">
+             <number>0</number>
+            </property>
+            <property name="topMargin">
+             <number>0</number>
+            </property>
+            <property name="rightMargin">
+             <number>0</number>
+            </property>
+            <property name="bottomMargin">
+             <number>0</number>
+            </property>
+            <item>
+             <spacer name="horizontalSpacer_8">
+              <property name="orientation">
+               <enum>Qt::Horizontal</enum>
+              </property>
+              <property name="sizeHint" stdset="0">
+               <size>
+                <width>559</width>
+                <height>20</height>
+               </size>
+              </property>
+             </spacer>
+            </item>
+            <item>
+             <widget class="QPushButton" name="apply_database_common">
+              <property name="text">
+               <string>Применить</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item row="4" column="0">
+       <widget class="QRadioButton" name="textfragment_import_radiobutton_common">
+        <property name="text">
+         <string>Импорт текстового фрагмента</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="0" colspan="2">
+       <widget class="QRadioButton" name="database_import_radiobutton_common">
+        <property name="text">
+         <string>Импорт файлов из базы данных</string>
+        </property>
+        <property name="checked">
+         <bool>true</bool>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0">
+       <widget class="QRadioButton" name="file_import_radiobutton_common">
+        <property name="text">
+         <string>Импорт произвольного файла</string>
+        </property>
+       </widget>
+      </item>
+      <item row="5" column="0">
+       <widget class="QWidget" name="textfragment_import_widget" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>0</width>
+          <height>100</height>
+         </size>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">QWidget#textfragment_import_widget {
+border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);
+}</string>
+        </property>
+        <layout class="QVBoxLayout" name="verticalLayout_3">
+         <property name="spacing">
+          <number>0</number>
+         </property>
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item>
+          <widget class="QWidget" name="widget_10" native="true">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_3">
+            <item>
+             <widget class="QLabel" name="label_12_common">
+              <property name="text">
+               <string>ID файла:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLineEdit" name="lineEdit_2_common">
+              <property name="clearButtonEnabled">
+               <bool>true</bool>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLabel" name="label_14_common">
+              <property name="text">
+               <string>ID фрагмента:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLineEdit" name="lineEdit_3_common">
+              <property name="clearButtonEnabled">
+               <bool>true</bool>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QPushButton" name="pushButton_4_common">
+              <property name="text">
+               <string>Найти</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+         <item>
+          <widget class="QWidget" name="widget_9" native="true">
+           <layout class="QGridLayout" name="gridLayout_9">
+            <item row="1" column="0">
+             <spacer name="horizontalSpacer_3">
+              <property name="orientation">
+               <enum>Qt::Horizontal</enum>
+              </property>
+              <property name="sizeType">
+               <enum>QSizePolicy::Fixed</enum>
+              </property>
+              <property name="sizeHint" stdset="0">
+               <size>
+                <width>40</width>
+                <height>2</height>
+               </size>
+              </property>
+             </spacer>
+            </item>
+            <item row="0" column="0" colspan="3">
+             <widget class="QLabel" name="label_15_common">
+              <property name="text">
+               <string>Содержимое фрагмента:</string>
+              </property>
+             </widget>
+            </item>
+            <item row="1" column="1">
+             <widget class="QTextEdit" name="textEdit">
+              <property name="sizeAdjustPolicy">
+               <enum>QAbstractScrollArea::AdjustToContentsOnFirstShow</enum>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+         <item>
+          <widget class="QWidget" name="widget_8" native="true">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <layout class="QGridLayout" name="gridLayout_10">
+            <item row="0" column="0" colspan="2">
+             <widget class="QLabel" name="label_16_common">
+              <property name="text">
+               <string>Текстовые аргументы:</string>
+              </property>
+             </widget>
+            </item>
+            <item row="1" column="0">
+             <spacer name="horizontalSpacer_4">
+              <property name="orientation">
+               <enum>Qt::Horizontal</enum>
+              </property>
+              <property name="sizeType">
+               <enum>QSizePolicy::Fixed</enum>
+              </property>
+              <property name="sizeHint" stdset="0">
+               <size>
+                <width>40</width>
+                <height>2</height>
+               </size>
+              </property>
+             </spacer>
+            </item>
+            <item row="1" column="1">
+             <widget class="QLineEdit" name="lineEdit_4_common"/>
+            </item>
+           </layout>
+          </widget>
+         </item>
+         <item>
+          <widget class="QWidget" name="widget_11" native="true">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_4">
+            <item>
+             <spacer name="horizontalSpacer_5">
+              <property name="orientation">
+               <enum>Qt::Horizontal</enum>
+              </property>
+              <property name="sizeHint" stdset="0">
+               <size>
+                <width>554</width>
+                <height>14</height>
+               </size>
+              </property>
+             </spacer>
+            </item>
+            <item>
+             <widget class="QPushButton" name="pushButton_5_common">
+              <property name="text">
+               <string>Изменить</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+        </layout>
+        <zorder>widget_11</zorder>
+        <zorder>widget_10</zorder>
+        <zorder>widget_9</zorder>
+        <zorder>widget_8</zorder>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="1" column="0">
+    <spacer name="verticalSpacer">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 280 - 0
src/Legacy-advanced/widgets/mainwindow.cpp

@@ -0,0 +1,280 @@
+#include "mainwindow.h"
+#include "ui_mainwindow.h"
+#include "legacyapp.h"
+
+#include <QBitmap>
+#include <QPainter>
+#include <QPixmap>
+#include <QDebug>
+#include <QThread>
+#include <QMouseEvent>
+#include <QMessageBox>
+#include <QDesktopWidget>
+#include <QtConcurrent/QtConcurrent>
+
+MainWindow::MainWindow(LegacyApp *app, QWidget *parent) :
+    QMainWindow(parent, Qt::Window | Qt::FramelessWindowHint), app(app),
+    ui(new Ui::MainWindow), menuHoverWidget(nullptr), menuHoverWidgetAnimation(nullptr)
+{
+}
+
+void MainWindow::Init() {
+    ui->setupUi(this);
+
+    qDebug() << "Stage 1 beginnig: Initialising frames";
+
+    export_frame = new ExportWidget(app, this);
+    import_frame = new ImportWidget(app, this);
+    manage_frame = new ManageWidget(app, this);
+    browse_frame = new BrowseWidget(app, this);
+
+    ui->content_layout->addWidget(export_frame);
+    ui->content_layout->addWidget(import_frame);
+    ui->content_layout->addWidget(manage_frame);
+    ui->content_layout->addWidget(browse_frame);
+
+
+    hideAllContentWidgets();
+    manage_frame->show();
+
+    qDebug() << "Stage 1 completed: Initialised frames";
+
+    changeFontSizeRecursive(100, this);
+
+    qsrand(QTime(0,0,0).secsTo(QTime::currentTime()));
+    background = new QPixmap();
+    background->load(":/assets/backgrounds/bg" + QString::number(qrand() % MAX_PIXMAP_ID + 1) + ".png");
+    setupWindowBackgroundAndMask();
+    setupMenuHoverWidget();
+
+    updateGeometry();
+    repaint();
+
+    background_update_timer.setInterval(30 * 1000);
+    connect(&background_update_timer, &QTimer::timeout, this, &MainWindow::randomChangeBackground);
+    background_update_timer.start();
+    ui->centralWidget->setStyleSheet("");
+    show();
+}
+
+void MainWindow::mousePressEvent(QMouseEvent *event)
+{
+    if (event->button() == Qt::LeftButton) {
+        dragPosition = event->globalPos() - frameGeometry().topLeft();
+        event->accept();
+    }
+}
+
+void MainWindow::mouseMoveEvent(QMouseEvent *event)
+{
+    if (event->buttons() & Qt::LeftButton) {
+        move(event->globalPos() - dragPosition);
+        app->process_window->move(event->globalPos() - dragPosition +
+                                  QPoint((width() - app->process_window->width()) / 2, (height() - app->process_window->height()) / 2)
+                                  );
+        event->accept();
+    }
+}
+
+void MainWindow::resizeEvent(QResizeEvent * event)
+{
+    int width = event->size().width();
+    int height = event->size().height();
+
+    ui->menu_widget->move(width * 675 / 2000, height * 80 / 1296);
+    ui->menu_widget->resize(width * 1260 / 2000, height * 90 / 1296);
+
+    ui->content_area->move(width * 25 / 2000, height * 250 / 1296);
+    ui->content_area->resize(width * 1950 / 2000, height * 1000 / 1296);
+    setupWindowBackgroundAndMask();
+}
+
+void MainWindow::randomChangeBackground()
+{
+    if (!qApp)
+        return;
+
+    qDebug() << "Starting background update";
+
+    if (fade_animation_timer.isActive()) {
+        qDebug() << "MainWindow::startBackgroundUpdate() - cannot start, because update is still active";
+        return;
+    }
+
+    next_pixmap_opacity = 0;
+    int next_pixmap_id = qrand() % MAX_PIXMAP_ID + 1;
+
+    if (!next_pixmap)
+        next_pixmap = new QPixmap();
+
+    next_pixmap->load(":/assets/backgrounds/bg" + QString::number(next_pixmap_id) + ".png");
+    qDebug() << "Next pixmap id" << next_pixmap_id << "!";
+
+    if (next_pixmap->isNull()) {
+        qDebug() << "Incorrect pixmap id " << next_pixmap_id << "!";
+        return;
+    }
+
+    QtConcurrent::run([this](){
+        qDebug() << "Starting background update";
+        while (next_pixmap_opacity < 1 && qApp) {
+            if (!qApp)
+                return;
+
+            QPainter painter;
+            painter.begin(background);
+            painter.setOpacity(next_pixmap_opacity);
+            painter.setCompositionMode(QPainter::CompositionMode_SourceIn);
+            painter.drawPixmap(0,0, *next_pixmap);
+            painter.end();
+
+            setupWindowBackgroundAndMask();
+            next_pixmap_opacity += 0.005;
+            QThread::msleep(50);
+        }
+        qDebug() << "Background update finished";
+    });
+}
+
+
+MainWindow::~MainWindow()
+{
+    delete ui;
+}
+
+void MainWindow::on_menuentry_1_common_clicked()
+{
+    hideAllContentWidgets();
+    manage_frame->show();
+}
+
+void MainWindow::on_menuentry_2_common_clicked()
+{
+    hideAllContentWidgets();
+    export_frame->show();
+}
+
+void MainWindow::on_menuentry_3_common_clicked()
+{
+    hideAllContentWidgets();
+    import_frame->show();
+}
+
+void MainWindow::on_menuentry_4_common_clicked()
+{
+    hideAllContentWidgets();
+    browse_frame->show();
+}
+
+void MainWindow::onHoverMenuentry()
+{
+    moveMenuHoverWidget(MenuEntry::getHoverLabel());
+}
+
+void MainWindow::setupWindowBackgroundAndMask()
+{
+    current_bg = background->scaled(width(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
+    current_mask = current_bg.mask();
+    current_mask.save(QApplication::applicationDirPath() + "/abacaba.png");
+    setMask(current_mask);
+
+    QPalette palette;
+    palette.setBrush(QPalette::Window, current_bg);
+    setPalette(palette);
+}
+
+void MainWindow::setupMenuHoverWidget()
+{
+    menuHoverWidget = new QWidget(ui->menu_widget);
+    menuHoverWidget->setStyleSheet("background-color: rgba(55, 37, 31, 250);");
+    menuHoverWidget->resize(0, 0);
+
+    connect(ui->menuentry_1_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
+    connect(ui->menuentry_2_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
+    connect(ui->menuentry_3_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
+    connect(ui->menuentry_4_common, &MenuEntry::hover_label_changed, this, &MainWindow::onHoverMenuentry);
+
+    MenuEntry::setActiveLabel(ui->menuentry_1_common);
+    menu_hover_checker_timer.setInterval(500);
+    connect(&menu_hover_checker_timer, &QTimer::timeout, this, &MainWindow::checkMenuIsHovered);
+    menu_hover_checker_timer.start();
+}
+
+void MainWindow::moveMenuHoverWidget(MenuEntry *target)
+{
+    if (menuHoverWidget->size() == QSize(0, 0)) {
+        menuHoverWidget->resize(target->size() + QSize(10, 0));
+        menuHoverWidget->move(target->pos() + QPoint(-5, 0));
+    } else {
+        if (menuHoverWidgetAnimation == nullptr)
+            menuHoverWidgetAnimation = new QPropertyAnimation(menuHoverWidget, "geometry");
+        else
+            menuHoverWidgetAnimation->stop();
+
+        menuHoverWidgetAnimation->setDuration(200);
+        menuHoverWidgetAnimation->setStartValue(QRect(menuHoverWidget->pos(), menuHoverWidget->size()));
+        menuHoverWidgetAnimation->setEndValue(QRect(target->pos() + QPoint(-5, 0), target->size() + QSize(10, 0)));
+        menuHoverWidgetAnimation->start();
+    }
+
+    ui->menuentry_1_common->raise();
+    ui->menuentry_2_common->raise();
+    ui->menuentry_3_common->raise();
+    ui->menuentry_4_common->raise();
+}
+
+void MainWindow::checkMenuIsHovered()
+{
+    QPoint pos = QCursor::pos();
+    QWidget *hovered = qApp->widgetAt(pos);
+    if (!hovered || hovered->objectName().size() < 4 ||
+            (hovered->objectName().left(9) != "menuentry" && hovered->objectName() != "menu_widget")) {
+        moveMenuHoverWidget(MenuEntry::getActiveLabel());
+        MenuEntry::setHoverLabel(nullptr);
+    }
+}
+
+void MainWindow::hideAllContentWidgets()
+{
+    export_frame->hide();
+    import_frame->hide();
+    manage_frame->hide();
+    browse_frame->hide();
+}
+
+void MainWindow::changeFontSizeRecursive(size_t percent, QWidget *widget)
+{
+    if (!widget)
+        return;
+    QFont widget_font = widget->font();
+    QString widget_name = widget->objectName();
+
+    if (widget_name.contains("_common"))
+        widget_font.setPixelSize(common_font_size * percent / 100);
+    if (widget_name.contains("_title"))
+        widget_font.setPixelSize(title_font_size * percent / 100);
+    if (widget_name.contains("_supertitle"))
+        widget_font.setPixelSize(supertitle_font_size * percent / 100);
+    if (widget_name.contains("_bigbutton"))
+        widget_font.setPixelSize(bigbutton_font_size * percent / 100);
+
+    widget->setFont(widget_font);
+
+    for (QObject* child : widget->children())
+        if (child->isWidgetType()) {
+            QWidget* w = qobject_cast<QWidget *>(child);
+            changeFontSizeRecursive(percent, w);
+            w->resize(w->sizeHint());
+        }
+}
+
+void MainWindow::on_closeButton_clicked()
+{
+    hide();
+    qApp->quit();
+}
+
+void MainWindow::on_minimizeButton_clicked()
+{
+    setWindowState(Qt::WindowMinimized);
+}

+ 104 - 0
src/Legacy-advanced/widgets/mainwindow.h

@@ -0,0 +1,104 @@
+#ifndef MAINWINDOW_H
+#define MAINWINDOW_H
+
+#include <QMainWindow>
+#include <QPropertyAnimation>
+#include <QTimer>
+#include <QPixmap>
+#include <QBitmap>
+
+#include "exportwidget.h"
+#include "importwidget.h"
+#include "managewidget.h"
+#include "browsewidget.h"
+#include "processdialog.h"
+
+namespace Ui {
+class MainWindow;
+}
+
+class MenuEntry;
+class LegacyApp;
+
+class MainWindow : public QMainWindow
+{
+    Q_OBJECT
+    struct PixmapObertka{
+        QPixmap* pixmap;
+    };
+
+public:
+    explicit MainWindow(LegacyApp *app = 0, QWidget *parent = 0);
+    void Init();
+    void changeFontSizeRecursive(size_t percent, QWidget* widget);
+    ~MainWindow();
+
+protected:
+    void mouseMoveEvent(QMouseEvent *event) override;
+    void mousePressEvent(QMouseEvent *event) override;
+    void resizeEvent(QResizeEvent *event) override;
+
+private slots:
+    void randomChangeBackground();
+
+    void on_menuentry_1_common_clicked();
+
+    void on_menuentry_2_common_clicked();
+
+    void on_menuentry_3_common_clicked();
+
+    void on_menuentry_4_common_clicked();
+
+    void onHoverMenuentry();
+
+    void on_closeButton_clicked();
+
+    void on_minimizeButton_clicked();
+
+private:
+    void setupWindowBackgroundAndMask();
+
+    void setupMenuHoverWidget();
+
+    void moveMenuHoverWidget(MenuEntry* target);
+
+    void checkMenuIsHovered();
+
+    void hideAllContentWidgets();
+
+private:
+    LegacyApp *app;
+
+    Ui::MainWindow *ui;
+
+    QWidget* menuHoverWidget;
+    QPropertyAnimation* menuHoverWidgetAnimation;
+    QPropertyAnimation* menuHoverWidgetScaleAnimation;
+    QTimer menu_hover_checker_timer;
+
+    QPoint dragPosition;
+
+    ExportWidget *export_frame;
+    ImportWidget *import_frame;
+    ManageWidget *manage_frame;
+    BrowseWidget *browse_frame;
+
+    QPixmap *background;
+    QPixmap *next_pixmap {nullptr};
+
+    QPixmap current_bg;
+    QBitmap current_mask;
+
+    QTimer background_update_timer;
+    QTimer fade_animation_timer;
+    double next_pixmap_opacity;
+
+    const int MAX_PIXMAP_ID = 9;
+
+    const size_t common_font_size = 15;
+    const size_t title_font_size = 17;
+    const size_t supertitle_font_size = 32;
+    const size_t bigbutton_font_size = 22;
+};
+
+#endif // MAINWINDOW_H

+ 399 - 0
src/Legacy-advanced/widgets/mainwindow.ui

@@ -0,0 +1,399 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MainWindow</class>
+ <widget class="QMainWindow" name="MainWindow">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>900</width>
+    <height>650</height>
+   </rect>
+  </property>
+  <property name="sizePolicy">
+   <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+    <horstretch>0</horstretch>
+    <verstretch>0</verstretch>
+   </sizepolicy>
+  </property>
+  <property name="windowTitle">
+   <string>ВКО: Наследие</string>
+  </property>
+  <property name="autoFillBackground">
+   <bool>false</bool>
+  </property>
+  <property name="styleSheet">
+   <string notr="true"/>
+  </property>
+  <property name="animated">
+   <bool>false</bool>
+  </property>
+  <property name="tabShape">
+   <enum>QTabWidget::Triangular</enum>
+  </property>
+  <widget class="QWidget" name="centralWidget">
+   <property name="sizePolicy">
+    <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+     <horstretch>0</horstretch>
+     <verstretch>0</verstretch>
+    </sizepolicy>
+   </property>
+   <property name="autoFillBackground">
+    <bool>false</bool>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">border-image: url(:/assets/backgrounds/bg1.png);</string>
+   </property>
+   <widget class="QWidget" name="content_area" native="true">
+    <property name="geometry">
+     <rect>
+      <x>0</x>
+      <y>129</y>
+      <width>901</width>
+      <height>501</height>
+     </rect>
+    </property>
+    <property name="sizePolicy">
+     <sizepolicy hsizetype="Preferred" vsizetype="Expanding">
+      <horstretch>0</horstretch>
+      <verstretch>0</verstretch>
+     </sizepolicy>
+    </property>
+    <property name="autoFillBackground">
+     <bool>false</bool>
+    </property>
+    <property name="styleSheet">
+     <string notr="true">border-image:none;</string>
+    </property>
+    <layout class="QGridLayout" name="gridLayout_3">
+     <property name="leftMargin">
+      <number>20</number>
+     </property>
+     <property name="topMargin">
+      <number>10</number>
+     </property>
+     <property name="rightMargin">
+      <number>20</number>
+     </property>
+     <property name="bottomMargin">
+      <number>10</number>
+     </property>
+     <item row="0" column="0">
+      <layout class="QGridLayout" name="content_layout"/>
+     </item>
+    </layout>
+   </widget>
+   <widget class="QWidget" name="menu_widget" native="true">
+    <property name="geometry">
+     <rect>
+      <x>300</x>
+      <y>40</y>
+      <width>571</width>
+      <height>51</height>
+     </rect>
+    </property>
+    <property name="sizePolicy">
+     <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+      <horstretch>0</horstretch>
+      <verstretch>0</verstretch>
+     </sizepolicy>
+    </property>
+    <property name="autoFillBackground">
+     <bool>false</bool>
+    </property>
+    <property name="styleSheet">
+     <string notr="true">border-image:transparent;</string>
+    </property>
+    <layout class="QHBoxLayout" name="horizontalLayout" stretch="0,6,7,13,7,0,0">
+     <property name="spacing">
+      <number>10</number>
+     </property>
+     <property name="sizeConstraint">
+      <enum>QLayout::SetDefaultConstraint</enum>
+     </property>
+     <property name="leftMargin">
+      <number>0</number>
+     </property>
+     <property name="topMargin">
+      <number>0</number>
+     </property>
+     <property name="rightMargin">
+      <number>0</number>
+     </property>
+     <property name="bottomMargin">
+      <number>0</number>
+     </property>
+     <item>
+      <spacer name="horizontalSpacer">
+       <property name="orientation">
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="MenuEntry" name="menuentry_1_common">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="baseSize">
+        <size>
+         <width>0</width>
+         <height>0</height>
+        </size>
+       </property>
+       <property name="font">
+        <font>
+         <family>Constantia</family>
+         <pointsize>9</pointsize>
+         <weight>50</weight>
+         <bold>false</bold>
+        </font>
+       </property>
+       <property name="mouseTracking">
+        <bool>true</bool>
+       </property>
+       <property name="layoutDirection">
+        <enum>Qt::LeftToRight</enum>
+       </property>
+       <property name="styleSheet">
+        <string notr="true">color:rgb(255, 255, 255);</string>
+       </property>
+       <property name="text">
+        <string>  УПРАВЛЕНИЕ  </string>
+       </property>
+       <property name="scaledContents">
+        <bool>true</bool>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+       <property name="default" stdset="0">
+        <bool>false</bool>
+       </property>
+       <property name="flat" stdset="0">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="MenuEntry" name="menuentry_2_common">
+       <property name="enabled">
+        <bool>true</bool>
+       </property>
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="font">
+        <font>
+         <family>Constantia</family>
+        </font>
+       </property>
+       <property name="mouseTracking">
+        <bool>true</bool>
+       </property>
+       <property name="styleSheet">
+        <string notr="true">color:rgb(255, 255, 255);</string>
+       </property>
+       <property name="text">
+        <string>  ИЗВЛЕЧЕНИЕ  </string>
+       </property>
+       <property name="scaledContents">
+        <bool>true</bool>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+       <property name="flat" stdset="0">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="MenuEntry" name="menuentry_3_common">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Maximum" vsizetype="Minimum">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>0</width>
+         <height>0</height>
+        </size>
+       </property>
+       <property name="font">
+        <font>
+         <family>Constantia</family>
+        </font>
+       </property>
+       <property name="mouseTracking">
+        <bool>true</bool>
+       </property>
+       <property name="styleSheet">
+        <string notr="true">color:rgb(255, 255, 255)</string>
+       </property>
+       <property name="text">
+        <string notr="true">  УПАКОВКА  </string>
+       </property>
+       <property name="scaledContents">
+        <bool>true</bool>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+       <property name="flat" stdset="0">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <widget class="MenuEntry" name="menuentry_4_common">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Minimum" vsizetype="Minimum">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>0</width>
+         <height>0</height>
+        </size>
+       </property>
+       <property name="font">
+        <font>
+         <family>Constantia</family>
+        </font>
+       </property>
+       <property name="mouseTracking">
+        <bool>true</bool>
+       </property>
+       <property name="styleSheet">
+        <string notr="true">color:rgb(255, 255, 255);</string>
+       </property>
+       <property name="text">
+        <string>  ПРОСМОТР  </string>
+       </property>
+       <property name="scaledContents">
+        <bool>true</bool>
+       </property>
+       <property name="alignment">
+        <set>Qt::AlignCenter</set>
+       </property>
+       <property name="flat" stdset="0">
+        <bool>true</bool>
+       </property>
+      </widget>
+     </item>
+     <item>
+      <spacer name="horizontalSpacer_2">
+       <property name="orientation">
+        <enum>Qt::Horizontal</enum>
+       </property>
+       <property name="sizeHint" stdset="0">
+        <size>
+         <width>40</width>
+         <height>20</height>
+        </size>
+       </property>
+      </spacer>
+     </item>
+     <item>
+      <widget class="QWidget" name="widget" native="true">
+       <property name="sizePolicy">
+        <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+         <horstretch>0</horstretch>
+         <verstretch>0</verstretch>
+        </sizepolicy>
+       </property>
+       <property name="minimumSize">
+        <size>
+         <width>0</width>
+         <height>0</height>
+        </size>
+       </property>
+       <layout class="QHBoxLayout" name="horizontalLayout_2">
+        <property name="spacing">
+         <number>5</number>
+        </property>
+        <property name="leftMargin">
+         <number>0</number>
+        </property>
+        <property name="topMargin">
+         <number>0</number>
+        </property>
+        <property name="rightMargin">
+         <number>0</number>
+        </property>
+        <property name="bottomMargin">
+         <number>0</number>
+        </property>
+        <item>
+         <widget class="QPushButton" name="minimizeButton">
+          <property name="minimumSize">
+           <size>
+            <width>20</width>
+            <height>20</height>
+           </size>
+          </property>
+          <property name="styleSheet">
+           <string notr="true">QPushButton#minimizeButton {border-image: url(:/assets/buttons/minimize.png) 0 0 0 0 stretch stretch; border: 0px;}
+
+QPushButton#minimizeButton:hover {border-image: url(:/assets/buttons/minimize.png) 0 0 0 0 stretch stretch; border: 1px;}
+
+</string>
+          </property>
+          <property name="text">
+           <string>_</string>
+          </property>
+         </widget>
+        </item>
+        <item>
+         <widget class="QPushButton" name="closeButton">
+          <property name="minimumSize">
+           <size>
+            <width>20</width>
+            <height>20</height>
+           </size>
+          </property>
+          <property name="styleSheet">
+           <string notr="true">QPushButton#closeButton { border-image: url(:/assets/buttons/close.png) 0 0 0 0 stretch stretch; }
+
+QPushButton#closeButton:hover { border-image: url(:/assets/buttons/close.png) 0 0 0 0 stretch stretch; border:1px;}</string>
+          </property>
+          <property name="text">
+           <string>Х</string>
+          </property>
+         </widget>
+        </item>
+       </layout>
+      </widget>
+     </item>
+    </layout>
+   </widget>
+  </widget>
+ </widget>
+ <layoutdefault spacing="6" margin="11"/>
+ <customwidgets>
+  <customwidget>
+   <class>MenuEntry</class>
+   <extends>QLabel</extends>
+   <header>menuentry.h</header>
+  </customwidget>
+ </customwidgets>
+ <resources/>
+ <connections/>
+</ui>

+ 79 - 0
src/Legacy-advanced/widgets/managewidget.cpp

@@ -0,0 +1,79 @@
+#include "gui/managewidget.h"
+#include "ui_managewidget.h"
+#include "legacyapp.h"
+#include "filesystem.h"
+#include <QMessageBox>
+#include <QFileDialog>
+
+ManageWidget::ManageWidget(LegacyApp *_app, QWidget *parent) :
+    QWidget(parent), app(_app),
+    ui(new Ui::ManageWidget)
+{
+    ui->setupUi(this);
+
+    uiUpdateTimer.setInterval(30);
+    connect(&uiUpdateTimer, &QTimer::timeout, this, &ManageWidget::updateUI);
+    uiUpdateTimer.start();
+}
+
+ManageWidget::~ManageWidget()
+{
+    delete ui;
+}
+
+void ManageWidget::updateUI()
+{
+    auto res = app->client_local_dat.GetIO().GetFilename();
+    if (res.result == LOTRO_DAT::SUCCESS)
+        ui->datfile_name_common->setText(QString::fromStdString(res.value));
+    else
+        ui->datfile_name_common->setText("(файл не инициализирован)");
+
+    if (app->client_local_dat.Initialized()) {
+        ui->open_status_title->show();
+        ui->close_status_title->hide();
+
+        // Updating patched status label
+        if (app->client_local_dat.GetStatusModule().CheckIfNotPatched())
+            ui->not_patched_status_title->show();
+        else
+            ui->not_patched_status_title->hide();
+
+        // Updating current locale status label
+        if (app->client_local_dat.GetLocaleManager().GetCurrentLocale() == LOTRO_DAT::DatLocaleManager::PATCHED) {
+            ui->original_locale_title->hide();
+            ui->patched_locale_title->show();
+        } else {
+            ui->original_locale_title->show();
+            ui->patched_locale_title->hide();
+        }
+
+    } else {
+        ui->open_status_title->hide();
+        ui->close_status_title->show();
+        ui->not_patched_status_title->hide();
+    }
+
+}
+
+void ManageWidget::on_change_folder_button_clicked()
+{
+    QStringList known_paths = FileSystem::recognizeRegistryLotroPath();
+    QString template_path = known_paths.size() > 0 ? known_paths[0] : "";
+    QString str = QFileDialog::getOpenFileName(0, "Расположение файла .dat", template_path, "*.dat");
+
+    app->properties.setValue("advanced/dat_path", str);
+    app->properties.sync();
+
+    app->InitialiseDatFile();
+}
+
+void ManageWidget::on_changeLocaleButton_common_clicked()
+{
+    app->ChangeLocale();
+}
+
+void ManageWidget::on_createCoreStatusFile_button_common_clicked()
+{
+    app->CreateCoreStatusFile(app->properties.value("advanced/export_folder", "").toString());
+}

+ 38 - 0
src/Legacy-advanced/widgets/managewidget.h

@@ -0,0 +1,38 @@
+#ifndef MANAGEWIDGET_H
+#define MANAGEWIDGET_H
+
+#include <QWidget>
+#include <QTimer>
+
+namespace Ui {
+class ManageWidget;
+}
+
+class LegacyApp;
+
+class ManageWidget : public QWidget
+{
+    Q_OBJECT
+
+public:
+    explicit ManageWidget(LegacyApp *_app, QWidget *parent = 0);
+    ~ManageWidget();
+
+public slots:
+    void updateUI();
+
+private slots:
+    void on_change_folder_button_clicked();
+
+    void on_changeLocaleButton_common_clicked();
+
+    void on_createCoreStatusFile_button_common_clicked();
+
+private:
+    LegacyApp *app;
+    Ui::ManageWidget *ui;
+
+    QTimer uiUpdateTimer;
+};
+
+#endif // MANAGEWIDGET_H

+ 430 - 0
src/Legacy-advanced/widgets/managewidget.ui

@@ -0,0 +1,430 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ManageWidget</class>
+ <widget class="QWidget" name="ManageWidget">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>891</width>
+    <height>473</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <property name="styleSheet">
+   <string notr="true">QLabel, QRadioButton, QCheckBox {
+	color: white;
+}</string>
+  </property>
+  <layout class="QVBoxLayout" name="verticalLayout">
+   <item>
+    <widget class="QWidget" name="export_folder_widget_2" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);</string>
+     </property>
+     <layout class="QHBoxLayout" name="horizontalLayout_15">
+      <item>
+       <widget class="QLabel" name="folder_label_common_2">
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string>Путь к .dat файлу:</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QLabel" name="datfile_name_common">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string>D:\Programming\SourceRepos\Legacy_v2</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QPushButton" name="change_folder_button">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>36</width>
+          <height>32</height>
+         </size>
+        </property>
+        <property name="cursor">
+         <cursorShape>PointingHandCursor</cursorShape>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">border-image: url(:/assets/buttons/folder.png);
+
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string/>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QWidget" name="export_folder_widget_4" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout">
+      <item row="3" column="0">
+       <widget class="QLabel" name="open_status_title">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="font">
+         <font>
+          <weight>75</weight>
+          <bold>true</bold>
+         </font>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;color:green</string>
+        </property>
+        <property name="text">
+         <string>Инициализирован</string>
+        </property>
+       </widget>
+      </item>
+      <item row="1" column="0">
+       <widget class="QLabel" name="status_label_common">
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string>Статус:</string>
+        </property>
+       </widget>
+      </item>
+      <item row="5" column="0">
+       <widget class="QLabel" name="patched_locale_title">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="font">
+         <font>
+          <weight>75</weight>
+          <bold>true</bold>
+         </font>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none; 
+color:gold;</string>
+        </property>
+        <property name="text">
+         <string>Русская версия</string>
+        </property>
+       </widget>
+      </item>
+      <item row="4" column="0">
+       <widget class="QLabel" name="not_patched_status_title">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="font">
+         <font>
+          <weight>75</weight>
+          <bold>true</bold>
+         </font>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string>Отсутствуют патчи Наследия</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0">
+       <widget class="QLabel" name="close_status_title">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="font">
+         <font>
+          <weight>75</weight>
+          <bold>true</bold>
+         </font>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;color:red;</string>
+        </property>
+        <property name="text">
+         <string>Закрыт</string>
+        </property>
+       </widget>
+      </item>
+      <item row="6" column="0">
+       <widget class="QLabel" name="original_locale_title">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="font">
+         <font>
+          <weight>75</weight>
+          <bold>true</bold>
+         </font>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;
+color:gold;</string>
+        </property>
+        <property name="text">
+         <string>Оригинальная версия</string>
+        </property>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QWidget" name="export_folder_widget_3" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <property name="styleSheet">
+      <string notr="true">QWidget#export_folder_widget_3{
+	border-radius: 20px;
+	background-color: rgba(30, 0, 0, 100);
+}</string>
+     </property>
+     <layout class="QGridLayout" name="gridLayout_13">
+      <item row="0" column="1">
+       <widget class="QLabel" name="label">
+        <property name="text">
+         <string>(нет)</string>
+        </property>
+       </widget>
+      </item>
+      <item row="0" column="0">
+       <widget class="QLabel" name="folder_label_common_3">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">
+background-color: none;</string>
+        </property>
+        <property name="text">
+         <string>Неактивные категории:</string>
+        </property>
+       </widget>
+      </item>
+      <item row="2" column="0" colspan="2">
+       <widget class="QWidget" name="widget_12" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>0</width>
+          <height>40</height>
+         </size>
+        </property>
+        <layout class="QHBoxLayout" name="horizontalLayout_16">
+         <property name="spacing">
+          <number>7</number>
+         </property>
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item>
+          <widget class="QLabel" name="label_4_common_2">
+           <property name="text">
+            <string>Деактивировать категорию</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_2_common_2">
+           <property name="maxLength">
+            <number>9</number>
+           </property>
+           <property name="clearButtonEnabled">
+            <bool>true</bool>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QPushButton" name="deactivate_category_button">
+           <property name="text">
+            <string>Применить</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item row="1" column="0" colspan="2">
+       <widget class="QWidget" name="widget_15" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>0</width>
+          <height>40</height>
+         </size>
+        </property>
+        <layout class="QHBoxLayout" name="horizontalLayout_8">
+         <property name="spacing">
+          <number>7</number>
+         </property>
+         <property name="leftMargin">
+          <number>0</number>
+         </property>
+         <property name="topMargin">
+          <number>0</number>
+         </property>
+         <property name="rightMargin">
+          <number>0</number>
+         </property>
+         <property name="bottomMargin">
+          <number>0</number>
+         </property>
+         <item>
+          <widget class="QLabel" name="label_2_common">
+           <property name="text">
+            <string>Активировать категорию</string>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QLineEdit" name="lineEdit_common">
+           <property name="inputMask">
+            <string/>
+           </property>
+           <property name="text">
+            <string/>
+           </property>
+           <property name="maxLength">
+            <number>9</number>
+           </property>
+           <property name="clearButtonEnabled">
+            <bool>true</bool>
+           </property>
+          </widget>
+         </item>
+         <item>
+          <widget class="QPushButton" name="activate_category_button">
+           <property name="text">
+            <string>Применить</string>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item>
+    <widget class="QPushButton" name="changeLocaleButton_common">
+     <property name="text">
+      <string>Сменить локаль</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <widget class="QPushButton" name="createCoreStatusFile_button_common">
+     <property name="text">
+      <string>Создать файл статуса ядра</string>
+     </property>
+    </widget>
+   </item>
+   <item>
+    <spacer name="verticalSpacer">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 59 - 0
src/Legacy-advanced/widgets/menuentry.cpp

@@ -0,0 +1,59 @@
+#include "menuentry.h"
+#include <QApplication>
+#include <QTimer>
+
+MenuEntry *MenuEntry::active_label = nullptr;
+MenuEntry *MenuEntry::hover_label = nullptr;
+
+MenuEntry::MenuEntry(QWidget* parent, Qt::WindowFlags)
+    : QLabel(parent) {
+
+    connect(this, &MenuEntry::clicked, this, &MenuEntry::on_clicked);
+}
+
+MenuEntry::~MenuEntry() {}
+
+MenuEntry *MenuEntry::getActiveLabel()
+{
+    return active_label;
+}
+
+void MenuEntry::setActiveLabel(MenuEntry *label)
+{
+    active_label = label;
+}
+
+MenuEntry *MenuEntry::getHoverLabel()
+{
+    return hover_label;
+}
+
+void MenuEntry::setHoverLabel(MenuEntry *label)
+{
+    hover_label = label;
+}
+
+void MenuEntry::mousePressEvent(QMouseEvent* event) {
+    event->accept();
+    if (active_label != this) {
+        active_label = this;
+        emit active_label_changed();
+        emit clicked();
+    }
+}
+
+void MenuEntry::mouseMoveEvent(QMouseEvent *)
+{
+    if (hover_label != this) {
+        hover_label = this;
+        emit hover_label_changed();
+    }
+}
+
+void MenuEntry::on_clicked()
+{
+    setStyleSheet(active_stylesheet);
+    QTimer::singleShot(200, [this](){
+        setStyleSheet(default_stylesheet);
+    });
+}

+ 39 - 0
src/Legacy-advanced/widgets/menuentry.h

@@ -0,0 +1,39 @@
+#ifndef CLICKABLELABEL_H
+#define CLICKABLELABEL_H
+
+#include <QObject>
+#include <QWidget>
+#include <QLabel>
+#include <QMouseEvent>
+
+class MenuEntry : public QLabel {
+    Q_OBJECT
+
+public:
+    explicit MenuEntry(QWidget* parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
+    ~MenuEntry();
+    static MenuEntry *getActiveLabel();
+    static void setActiveLabel(MenuEntry *label);
+    static MenuEntry *getHoverLabel();
+    static void setHoverLabel(MenuEntry *label);
+
+signals:
+    void clicked();
+    void active_label_changed();
+    void hover_label_changed();
+
+protected:
+    void mousePressEvent(QMouseEvent* event);
+    void mouseMoveEvent(QMouseEvent *event) override;
+
+private slots:
+    void on_clicked();
+
+private:
+    static MenuEntry *active_label;
+    static MenuEntry *hover_label;
+    const QString default_stylesheet = "color:rgb(255, 255, 255);";
+    const QString active_stylesheet = "color:rgb(200, 200, 200);";
+};
+
+#endif // CLICKABLELABEL_H

+ 114 - 0
src/Legacy-advanced/widgets/messagedialog.cpp

@@ -0,0 +1,114 @@
+#include "gui\messagedialog.h"
+#include "ui_messagedialog.h"
+#include <QPixmap>
+#include <QBitmap>
+#include <QMouseEvent>
+#include "legacyapp.h"
+#include <QTextCodec>
+using namespace LOTRO_DAT;
+
+MessageDialog::MessageDialog(LegacyApp *app_, QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::MessageDialog), app(app_)
+{
+    ui->setupUi(this);
+    setModal(true);
+    setWindowTitle("Выполнение операции...");
+    QPixmap background(":/assets/backgrounds/process_dialog.png");
+
+    QPixmap current_bg = background.scaled(width(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
+    QBitmap current_mask = current_bg.mask();
+    setMask(current_mask);
+
+    QPalette palette;
+    palette.setBrush(QPalette::Window, current_bg);
+    setPalette(palette);
+
+    loader.setFileName(":/assets/backgrounds/loading-gear.gif");
+    ui->loader->setMovie(&loader);
+    loader.setScaledSize(ui->loader->size());
+    loader.start();
+
+    uiUpdateTimer.setInterval(30);
+    connect(&uiUpdateTimer, &QTimer::timeout, this, &MessageDialog::updateUI);
+    uiUpdateTimer.start();
+}
+
+void MessageDialog::mousePressEvent(QMouseEvent *event)
+{
+    if (event->button() == Qt::LeftButton) {
+        dragPosition = event->globalPos() - frameGeometry().topLeft();
+        event->accept();
+    }
+}
+
+void MessageDialog::updateUI()
+{
+    if (!qApp)
+        return;
+
+    std::string debug_msg = app->client_local_dat.GetStatusModule().GetDebugMessage();
+    QTextCodec *codec = QTextCodec::codecForName("UTF8");
+    QByteArray ba(debug_msg.c_str());
+    QString dmsg = codec->toUnicode(ba);
+
+    int percentage = app->client_local_dat.GetStatusModule().GetPercentage();
+
+    DatStatus::DAT_STATUS status = app->client_local_dat.GetStatusModule().GetStatus();
+    QString title = "";
+
+    switch (status) {
+    case DatStatus::E_INITIALISING:
+        title = "Инициализация";
+        break;
+    case DatStatus::E_EXTRACTING:
+        title = "Извлечение данных";
+        break;
+    case DatStatus::E_PATCHING:
+        title = "Применение патча";
+        break;
+    case DatStatus::E_COMMITING:
+        title = "Фиксация данных";
+        break;
+    case DatStatus::E_BACKUP_CREATING:
+        title = "Создание резервной копии";
+        break;
+    case DatStatus::E_BACKUP_REMOVING:
+        title = "Удаление резервной копии";
+        break;
+    case DatStatus::E_GATHERING_INFO:
+        title = "Сбор информации ядра";
+        break;
+    case DatStatus::E_FREE:
+        title = "Свободен";
+        break;
+    default:
+        title = "Неизвестная операция";
+        break;
+    }
+
+    if (status == DatStatus::E_FREE)
+        hide();
+    else
+        show();
+
+    ui->title->setText(title);
+    ui->progressBar->setValue(percentage);
+    ui->debug_info->setText(dmsg);
+}
+
+void MessageDialog::mouseMoveEvent(QMouseEvent *event)
+{
+    if (event->buttons() & Qt::LeftButton) {
+        move(event->globalPos() - dragPosition);
+        app->window.move(event->globalPos() - dragPosition +
+                         QPoint((width() - app->window.width()) / 2, (height() - app->window.height()) / 2)
+                         );
+        event->accept();
+    }
+}
+
+MessageDialog::~MessageDialog()
+{
+    delete ui;
+}

+ 37 - 0
src/Legacy-advanced/widgets/messagedialog.h

@@ -0,0 +1,37 @@
+#ifndef MESSAGEDIALOG_H
+#define MESSAGEDIALOG_H
+
+#include <QDialog>
+#include <QMovie>
+#include <QTimer>
+
+namespace Ui {
+class MessageDialog;
+}
+
+class LegacyApp;
+
+class MessageDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit MessageDialog(LegacyApp *app_, QWidget *parent = 0);
+    ~MessageDialog();
+    void setMessage(QString title, QString msg);
+
+protected:
+    void mouseMoveEvent(QMouseEvent *event) override;
+    void mousePressEvent(QMouseEvent *event) override;
+
+public slots:
+    void updateUI();
+
+private:
+    Ui::MessageDialog *ui;
+
+    LegacyApp* app;
+    QPoint dragPosition;
+};
+
+#endif // MESSAGEDIALOG_H

+ 69 - 0
src/Legacy-advanced/widgets/messagedialog.ui

@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>MessageDialog</class>
+ <widget class="QDialog" name="MessageDialog">
+  <property name="windowModality">
+   <enum>Qt::ApplicationModal</enum>
+  </property>
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>420</width>
+    <height>280</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <widget class="QLabel" name="title">
+   <property name="geometry">
+    <rect>
+     <x>50</x>
+     <y>70</y>
+     <width>311</width>
+     <height>40</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <family>a_AlgeriusNr</family>
+     <pointsize>14</pointsize>
+    </font>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">color:white</string>
+   </property>
+   <property name="text">
+    <string>Название</string>
+   </property>
+   <property name="alignment">
+    <set>Qt::AlignCenter</set>
+   </property>
+  </widget>
+  <widget class="QLabel" name="message">
+   <property name="geometry">
+    <rect>
+     <x>60</x>
+     <y>120</y>
+     <width>311</width>
+     <height>51</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <family>Trajan Pro 3</family>
+     <pointsize>9</pointsize>
+    </font>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">color: silver;</string>
+   </property>
+   <property name="text">
+    <string>Установка успешно завершена</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 114 - 0
src/Legacy-advanced/widgets/processdialog.cpp

@@ -0,0 +1,114 @@
+#include "gui\processdialog.h"
+#include "ui_processdialog.h"
+#include <QPixmap>
+#include <QBitmap>
+#include <QMouseEvent>
+#include "legacyapp.h"
+#include <QTextCodec>
+using namespace LOTRO_DAT;
+
+ProcessDialog::ProcessDialog(LegacyApp *app_, QWidget *parent) :
+    QDialog(parent),
+    ui(new Ui::ProcessDialog), app(app_)
+{
+    ui->setupUi(this);
+    setModal(true);
+    setWindowTitle("Выполнение операции...");
+    QPixmap background(":/assets/backgrounds/process_dialog.png");
+
+    QPixmap current_bg = background.scaled(width(), height(), Qt::IgnoreAspectRatio, Qt::SmoothTransformation);
+    QBitmap current_mask = current_bg.mask();
+    setMask(current_mask);
+
+    QPalette palette;
+    palette.setBrush(QPalette::Window, current_bg);
+    setPalette(palette);
+
+    loader.setFileName(":/assets/backgrounds/loading-gear.gif");
+    ui->loader->setMovie(&loader);
+    loader.setScaledSize(ui->loader->size());
+    loader.start();
+
+    uiUpdateTimer.setInterval(30);
+    connect(&uiUpdateTimer, &QTimer::timeout, this, &ProcessDialog::updateUI);
+    uiUpdateTimer.start();
+}
+
+void ProcessDialog::mousePressEvent(QMouseEvent *event)
+{
+    if (event->button() == Qt::LeftButton) {
+        dragPosition = event->globalPos() - frameGeometry().topLeft();
+        event->accept();
+    }
+}
+
+void ProcessDialog::updateUI()
+{
+    if (!qApp)
+        return;
+
+    std::string debug_msg = app->client_local_dat.GetStatusModule().GetDebugMessage();
+    QTextCodec *codec = QTextCodec::codecForName("UTF8");
+    QByteArray ba(debug_msg.c_str());
+    QString dmsg = codec->toUnicode(ba);
+
+    int percentage = app->client_local_dat.GetStatusModule().GetPercentage();
+
+    DatStatus::DAT_STATUS status = app->client_local_dat.GetStatusModule().GetStatus();
+    QString title = "";
+
+    switch (status) {
+    case DatStatus::E_INITIALISING:
+        title = "Инициализация";
+        break;
+    case DatStatus::E_EXTRACTING:
+        title = "Извлечение данных";
+        break;
+    case DatStatus::E_PATCHING:
+        title = "Применение патча";
+        break;
+    case DatStatus::E_COMMITING:
+        title = "Фиксация данных";
+        break;
+    case DatStatus::E_BACKUP_CREATING:
+        title = "Создание резервной копии";
+        break;
+    case DatStatus::E_BACKUP_REMOVING:
+        title = "Удаление резервной копии";
+        break;
+    case DatStatus::E_GATHERING_INFO:
+        title = "Сбор информации ядра";
+        break;
+    case DatStatus::E_FREE:
+        title = "Свободен";
+        break;
+    default:
+        title = "Неизвестная операция";
+        break;
+    }
+
+    if (status == DatStatus::E_FREE)
+        hide();
+    else
+        show();
+
+    ui->title->setText(title);
+    ui->progressBar->setValue(percentage);
+    ui->debug_info->setText(dmsg);
+}
+
+void ProcessDialog::mouseMoveEvent(QMouseEvent *event)
+{
+    if (event->buttons() & Qt::LeftButton) {
+        move(event->globalPos() - dragPosition);
+        app->window.move(event->globalPos() - dragPosition +
+                         QPoint((width() - app->window.width()) / 2, (height() - app->window.height()) / 2)
+                         );
+        event->accept();
+    }
+}
+
+ProcessDialog::~ProcessDialog()
+{
+    delete ui;
+}

+ 38 - 0
src/Legacy-advanced/widgets/processdialog.h

@@ -0,0 +1,38 @@
+#ifndef PROCESSDIALOG_H
+#define PROCESSDIALOG_H
+
+#include <QDialog>
+#include <QMovie>
+#include <QTimer>
+
+namespace Ui {
+class ProcessDialog;
+}
+
+class LegacyApp;
+
+class ProcessDialog : public QDialog
+{
+    Q_OBJECT
+
+public:
+    explicit ProcessDialog(LegacyApp *app_, QWidget *parent = 0);
+    ~ProcessDialog();
+
+protected:
+    void mouseMoveEvent(QMouseEvent *event) override;
+    void mousePressEvent(QMouseEvent *event) override;
+
+public slots:
+    void updateUI();
+
+private:
+    Ui::ProcessDialog *ui;
+    QMovie loader;
+
+    LegacyApp* app;
+    QPoint dragPosition;
+    QTimer uiUpdateTimer;
+};
+
+#endif // PROCESSDIALOG_H

+ 89 - 0
src/Legacy-advanced/widgets/processdialog.ui

@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>ProcessDialog</class>
+ <widget class="QDialog" name="ProcessDialog">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>420</width>
+    <height>280</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Dialog</string>
+  </property>
+  <widget class="QLabel" name="loader">
+   <property name="geometry">
+    <rect>
+     <x>190</x>
+     <y>15</y>
+     <width>40</width>
+     <height>40</height>
+    </rect>
+   </property>
+   <property name="text">
+    <string/>
+   </property>
+  </widget>
+  <widget class="QLabel" name="title">
+   <property name="geometry">
+    <rect>
+     <x>50</x>
+     <y>90</y>
+     <width>311</width>
+     <height>40</height>
+    </rect>
+   </property>
+   <property name="font">
+    <font>
+     <family>a_AlgeriusNr</family>
+     <pointsize>14</pointsize>
+    </font>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">color:white</string>
+   </property>
+   <property name="text">
+    <string>Название</string>
+   </property>
+   <property name="alignment">
+    <set>Qt::AlignCenter</set>
+   </property>
+  </widget>
+  <widget class="QProgressBar" name="progressBar">
+   <property name="geometry">
+    <rect>
+     <x>50</x>
+     <y>130</y>
+     <width>321</width>
+     <height>31</height>
+    </rect>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">color: white;</string>
+   </property>
+   <property name="value">
+    <number>0</number>
+   </property>
+  </widget>
+  <widget class="QLabel" name="debug_info">
+   <property name="geometry">
+    <rect>
+     <x>50</x>
+     <y>200</y>
+     <width>311</width>
+     <height>51</height>
+    </rect>
+   </property>
+   <property name="styleSheet">
+    <string notr="true">color: gray;</string>
+   </property>
+   <property name="text">
+    <string>TextLabel</string>
+   </property>
+  </widget>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>

+ 15 - 0
src/Legacy-advanced/widgets/statuswidget.cpp

@@ -0,0 +1,15 @@
+#include "statuswidget.h"
+#include "ui_statuswidget.h"
+
+StatusWidget::StatusWidget(LegacyApp *_app, QWidget *parent) :
+    QWidget(parent),
+    ui(new Ui::StatusWidget),
+    app(_app)
+{
+    ui->setupUi(this);
+}
+
+StatusWidget::~StatusWidget()
+{
+    delete ui;
+}

+ 34 - 0
src/Legacy-advanced/widgets/statuswidget.h

@@ -0,0 +1,34 @@
+#ifndef STATUSWIDGET_H
+#define STATUSWIDGET_H
+
+#include <QWidget>
+
+namespace Ui {
+class StatusWidget;
+}
+
+class LegacyApp;
+
+class StatusWidget : public QWidget
+{
+    Q_OBJECT
+
+public:
+    explicit StatusWidget(LegacyApp *_app, QWidget *parent = 0);
+    ~StatusWidget();
+
+private:
+    Ui::StatusWidget *ui;
+    LegacyApp *app;
+
+    const QColor inWorkColor = QColor(85, 170, 255);
+    const QColor readyColor = QColor(0, 170, 0);
+    const QColor errorColor = QColor(255, 85, 0);
+
+    const QString inWorkIconStyle = "image: url(:/assets/info.png);";
+    const QString readyIconStyle = "image: url(:/assets/ok.png);";
+    const QString criticalIconStyle = "image: url(:/assets/critical.png);";
+    const QString warningIconStyle = "image: url(:/assets/warning.png);";
+};
+
+#endif // STATUSWIDGET_H

+ 508 - 0
src/Legacy-advanced/widgets/statuswidget.ui

@@ -0,0 +1,508 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ui version="4.0">
+ <class>StatusWidget</class>
+ <widget class="QWidget" name="StatusWidget">
+  <property name="geometry">
+   <rect>
+    <x>0</x>
+    <y>0</y>
+    <width>860</width>
+    <height>491</height>
+   </rect>
+  </property>
+  <property name="windowTitle">
+   <string>Form</string>
+  </property>
+  <layout class="QGridLayout" name="gridLayout_3" rowstretch="1,0,4">
+   <item row="0" column="1">
+    <spacer name="verticalSpacer">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeType">
+      <enum>QSizePolicy::Expanding</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="2" column="1">
+    <spacer name="verticalSpacer_2">
+     <property name="orientation">
+      <enum>Qt::Vertical</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>20</width>
+       <height>40</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+   <item row="0" column="2" rowspan="3">
+    <widget class="QWidget" name="right_column_widget" native="true">
+     <layout class="QGridLayout" name="gridLayout_2">
+      <item row="1" column="0">
+       <spacer name="horizontalSpacer_3">
+        <property name="orientation">
+         <enum>Qt::Horizontal</enum>
+        </property>
+        <property name="sizeHint" stdset="0">
+         <size>
+          <width>219</width>
+          <height>20</height>
+         </size>
+        </property>
+       </spacer>
+      </item>
+      <item row="0" column="0" colspan="2">
+       <widget class="QWidget" name="common_status_widget" native="true">
+        <property name="styleSheet">
+         <string notr="true"/>
+        </property>
+        <layout class="QVBoxLayout" name="verticalLayout">
+         <item>
+          <widget class="QWidget" name="backup_status" native="true">
+           <property name="styleSheet">
+            <string notr="true">border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);</string>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_4">
+            <item>
+             <widget class="QLabel" name="label_4_common">
+              <property name="font">
+               <font>
+                <family>Trajan Pro 3</family>
+                <pointsize>8</pointsize>
+                <weight>50</weight>
+                <bold>false</bold>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>РЕЗЕРВНАЯ КОПИЯ:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLabel" name="label_5_common">
+              <property name="font">
+               <font>
+                <family>Trebuchet MS</family>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(85, 170, 255); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>Создание... 50%</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QWidget" name="backup_help" native="true">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+              <property name="minimumSize">
+               <size>
+                <width>30</width>
+                <height>30</height>
+               </size>
+              </property>
+              <property name="mouseTracking">
+               <bool>true</bool>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+         <item>
+          <widget class="QWidget" name="download_status" native="true">
+           <property name="styleSheet">
+            <string notr="true">border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);</string>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_5">
+            <item>
+             <widget class="QLabel" name="label_8_common">
+              <property name="font">
+               <font>
+                <family>Trajan Pro 3</family>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>ЗАГРУЗКА:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLabel" name="label_9_common">
+              <property name="font">
+               <font>
+                <family>Trebuchet MS</family>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(0, 170, 0); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>Все данные загружены</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QWidget" name="download_help" native="true">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+              <property name="minimumSize">
+               <size>
+                <width>30</width>
+                <height>30</height>
+               </size>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+         <item>
+          <widget class="QWidget" name="rusification_status" native="true">
+           <property name="styleSheet">
+            <string notr="true">border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);</string>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_6">
+            <item>
+             <widget class="QLabel" name="label_2_common">
+              <property name="font">
+               <font>
+                <family>Trajan Pro 3</family>
+                <pointsize>8</pointsize>
+                <weight>50</weight>
+                <bold>false</bold>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>РУСИФИКАЦИЯ:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLabel" name="label_3_common">
+              <property name="font">
+               <font>
+                <family>Trebuchet MS</family>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(85, 170, 255); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>Установка... (1/5) 50%</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QWidget" name="rusification_help" native="true">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+              <property name="minimumSize">
+               <size>
+                <width>30</width>
+                <height>30</height>
+               </size>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+         <item>
+          <widget class="QWidget" name="protection_status" native="true">
+           <property name="styleSheet">
+            <string notr="true">border-radius: 20px;
+background-color: rgba(30, 0, 0, 100);</string>
+           </property>
+           <layout class="QHBoxLayout" name="horizontalLayout_7">
+            <item>
+             <widget class="QLabel" name="label_6_common">
+              <property name="font">
+               <font>
+                <family>Trajan Pro 3</family>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>ЗАЩИТА ИГРОВЫХ ДАННЫХ:</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QLabel" name="label_7_common">
+              <property name="font">
+               <font>
+                <family>Trebuchet MS</family>
+               </font>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">color: rgb(255, 85, 0); background-color:none;</string>
+              </property>
+              <property name="text">
+               <string>Выключена</string>
+              </property>
+             </widget>
+            </item>
+            <item>
+             <widget class="QWidget" name="protection_help" native="true">
+              <property name="sizePolicy">
+               <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+                <horstretch>0</horstretch>
+                <verstretch>0</verstretch>
+               </sizepolicy>
+              </property>
+              <property name="minimumSize">
+               <size>
+                <width>30</width>
+                <height>30</height>
+               </size>
+              </property>
+              <property name="styleSheet">
+               <string notr="true">border-image: url(:/assets/question.png); color: rgb(255, 255, 255); background-color:none;</string>
+              </property>
+             </widget>
+            </item>
+           </layout>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+      <item row="1" column="1">
+       <widget class="QWidget" name="buttons_widget" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>0</width>
+          <height>80</height>
+         </size>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">background-color: rgb(0, 0, 84);</string>
+        </property>
+        <layout class="QHBoxLayout" name="horizontalLayout" stretch="1">
+         <property name="spacing">
+          <number>1</number>
+         </property>
+         <property name="leftMargin">
+          <number>1</number>
+         </property>
+         <property name="topMargin">
+          <number>1</number>
+         </property>
+         <property name="rightMargin">
+          <number>1</number>
+         </property>
+         <property name="bottomMargin">
+          <number>1</number>
+         </property>
+         <item>
+          <widget class="QPushButton" name="game_button">
+           <property name="sizePolicy">
+            <sizepolicy hsizetype="Fixed" vsizetype="Expanding">
+             <horstretch>0</horstretch>
+             <verstretch>0</verstretch>
+            </sizepolicy>
+           </property>
+           <property name="minimumSize">
+            <size>
+             <width>150</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="maximumSize">
+            <size>
+             <width>180</width>
+             <height>16777215</height>
+            </size>
+           </property>
+           <property name="font">
+            <font>
+             <family>Times New Roman</family>
+             <pointsize>-1</pointsize>
+             <weight>75</weight>
+             <italic>false</italic>
+             <bold>true</bold>
+            </font>
+           </property>
+           <property name="autoFillBackground">
+            <bool>false</bool>
+           </property>
+           <property name="styleSheet">
+            <string notr="true">border-image: url(:/assets/buttons/gray-button-hi.png);
+color: rgb(85, 0, 0);
+font: 24px &quot;Times New Roman&quot;;
+font-weight: bold;</string>
+           </property>
+           <property name="text">
+            <string notr="true">    ИГРАТЬ    </string>
+           </property>
+           <property name="iconSize">
+            <size>
+             <width>0</width>
+             <height>0</height>
+            </size>
+           </property>
+           <property name="default">
+            <bool>false</bool>
+           </property>
+           <property name="flat">
+            <bool>true</bool>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="1" column="1">
+    <widget class="QWidget" name="left_column_widget" native="true">
+     <property name="sizePolicy">
+      <sizepolicy hsizetype="Fixed" vsizetype="Preferred">
+       <horstretch>0</horstretch>
+       <verstretch>0</verstretch>
+      </sizepolicy>
+     </property>
+     <layout class="QVBoxLayout" name="verticalLayout_2">
+      <item>
+       <widget class="QWidget" name="status_image_widget" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>200</width>
+          <height>200</height>
+         </size>
+        </property>
+        <property name="baseSize">
+         <size>
+          <width>200</width>
+          <height>200</height>
+         </size>
+        </property>
+        <property name="styleSheet">
+         <string notr="true">image: url(:/assets/status/info.png);</string>
+        </property>
+       </widget>
+      </item>
+      <item>
+       <widget class="QWidget" name="status_label_widget" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
+          <horstretch>0</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
+        <property name="minimumSize">
+         <size>
+          <width>0</width>
+          <height>40</height>
+         </size>
+        </property>
+        <layout class="QHBoxLayout" name="horizontalLayout_3">
+         <item>
+          <widget class="QLabel" name="status_label_supertitle">
+           <property name="font">
+            <font>
+             <family>Times New Roman</family>
+             <pointsize>28</pointsize>
+             <weight>75</weight>
+             <italic>false</italic>
+             <bold>true</bold>
+            </font>
+           </property>
+           <property name="styleSheet">
+            <string notr="true">color: rgb(85, 170, 255);
+</string>
+           </property>
+           <property name="text">
+            <string>В РАБОТЕ</string>
+           </property>
+           <property name="alignment">
+            <set>Qt::AlignHCenter|Qt::AlignTop</set>
+           </property>
+          </widget>
+         </item>
+        </layout>
+       </widget>
+      </item>
+     </layout>
+    </widget>
+   </item>
+   <item row="1" column="0">
+    <spacer name="horizontalSpacer">
+     <property name="orientation">
+      <enum>Qt::Horizontal</enum>
+     </property>
+     <property name="sizeType">
+      <enum>QSizePolicy::Fixed</enum>
+     </property>
+     <property name="sizeHint" stdset="0">
+      <size>
+       <width>40</width>
+       <height>20</height>
+      </size>
+     </property>
+    </spacer>
+   </item>
+  </layout>
+ </widget>
+ <resources/>
+ <connections/>
+</ui>