Forráskód Böngészése

Merge branch 'restructure' of LotRO_Legacy/Legacy_v2 into master

Ivan Arkhipov 5 éve
szülő
commit
e8ed744080
100 módosított fájl, 1312 hozzáadás és 2180 törlés
  1. 9 0
      .gitignore
  2. 9 136
      Legacy_v2.pro
  3. 7 1
      README.md
  4. 2 0
      app.pri
  5. 0 13
      backgrounds.qrc
  6. 9 0
      bin/README.md
  7. 9 0
      build/README.md
  8. 46 0
      common.pri
  9. 0 33
      common.qrc
  10. 0 1943
      gui/rusificationwidget.ui
  11. 0 0
      import/EasyLogging++/easylogging++.cc
  12. 0 0
      import/EasyLogging++/easylogging++.h
  13. 0 0
      import/LotroDat/BinaryData.h
  14. 8 7
      import/LotroDat/DatFile.h
  15. 1 1
      import/LotroDat/DatOperationResult.h
  16. 1 1
      import/LotroDat/DatSubsystems/DatBackupManager.h
  17. 4 2
      import/LotroDat/DatSubsystems/DatExporter.h
  18. 11 8
      import/LotroDat/DatSubsystems/DatFileSystem.h
  19. 3 2
      import/LotroDat/DatSubsystems/DatIO.h
  20. 6 1
      import/LotroDat/DatSubsystems/DatLocaleManager.h
  21. 2 2
      import/LotroDat/DatSubsystems/DatPatcher.h
  22. 21 12
      import/LotroDat/DatSubsystems/DatStatus.h
  23. 0 0
      import/LotroDat/Database.h
  24. 2 2
      import/LotroDat/LotroDat.h
  25. 0 0
      import/LotroDat/SubDirectory.h
  26. 0 0
      import/LotroDat/SubFile.h
  27. 0 0
      import/LotroDat/SubfileData.h
  28. 0 0
      import/LotroDat/Subfiles/DdsSubFile.h
  29. 0 0
      import/LotroDat/Subfiles/FontSubFile.h
  30. 0 0
      import/LotroDat/Subfiles/JpgSubFile.h
  31. 0 0
      import/LotroDat/Subfiles/OggSubFile.h
  32. 3 3
      import/LotroDat/Subfiles/TextSubFile.h
  33. 0 0
      import/LotroDat/Subfiles/UnknownSubFile.h
  34. 0 0
      import/LotroDat/Subfiles/WavSubFile.h
  35. 9 0
      import/README.md
  36. 0 0
      import/SQLite/shell.c
  37. 0 0
      import/SQLite/sqlite3.c
  38. 0 0
      import/SQLite/sqlite3.h
  39. 0 0
      import/ZLib/zconf.h
  40. 0 0
      import/ZLib/zlib.h
  41. 0 0
      import/yaml-cpp/anchor.h
  42. 0 0
      import/yaml-cpp/binary.h
  43. 0 0
      import/yaml-cpp/contrib/anchordict.h
  44. 0 0
      import/yaml-cpp/contrib/graphbuilder.h
  45. 0 0
      import/yaml-cpp/dll.h
  46. 0 0
      import/yaml-cpp/emitfromevents.h
  47. 0 0
      import/yaml-cpp/emitter.h
  48. 0 0
      import/yaml-cpp/emitterdef.h
  49. 0 0
      import/yaml-cpp/emittermanip.h
  50. 0 0
      import/yaml-cpp/emitterstyle.h
  51. 0 0
      import/yaml-cpp/eventhandler.h
  52. 0 0
      import/yaml-cpp/exceptions.h
  53. 0 0
      import/yaml-cpp/mark.h
  54. 0 0
      import/yaml-cpp/node/convert.h
  55. 0 0
      import/yaml-cpp/node/detail/bool_type.h
  56. 0 0
      import/yaml-cpp/node/detail/impl.h
  57. 0 0
      import/yaml-cpp/node/detail/iterator.h
  58. 0 0
      import/yaml-cpp/node/detail/iterator_fwd.h
  59. 0 0
      import/yaml-cpp/node/detail/memory.h
  60. 0 0
      import/yaml-cpp/node/detail/node.h
  61. 0 0
      import/yaml-cpp/node/detail/node_data.h
  62. 0 0
      import/yaml-cpp/node/detail/node_iterator.h
  63. 0 0
      import/yaml-cpp/node/detail/node_ref.h
  64. 0 0
      import/yaml-cpp/node/emit.h
  65. 0 0
      import/yaml-cpp/node/impl.h
  66. 0 0
      import/yaml-cpp/node/iterator.h
  67. 0 0
      import/yaml-cpp/node/node.h
  68. 0 0
      import/yaml-cpp/node/parse.h
  69. 0 0
      import/yaml-cpp/node/ptr.h
  70. 0 0
      import/yaml-cpp/node/type.h
  71. 0 0
      import/yaml-cpp/noncopyable.h
  72. 0 0
      import/yaml-cpp/null.h
  73. 0 0
      import/yaml-cpp/ostream_wrapper.h
  74. 0 0
      import/yaml-cpp/parser.h
  75. 0 0
      import/yaml-cpp/stlemitter.h
  76. 0 0
      import/yaml-cpp/traits.h
  77. 0 0
      import/yaml-cpp/yaml.h
  78. 4 0
      lib.pri
  79. 9 0
      lib.win32/README.md
  80. 0 13
      res.qrc
  81. 32 0
      src/Launcher/Launcher.pro
  82. 23 0
      src/Launcher/launcher_plugin_import.cpp
  83. 8 0
      src/Launcher/launcher_qml_plugin_import.cpp
  84. 16 0
      src/Launcher/main.cpp
  85. 31 0
      src/Launcher/main.qml
  86. 5 0
      src/Launcher/qml.qrc
  87. 72 0
      src/Legacy-advanced/LICENSE
  88. 84 0
      src/Legacy-advanced/Legacy-advanced.pro
  89. 37 0
      src/Legacy-advanced/Legacy-advanced_resource.rc
  90. 3 0
      src/Legacy-advanced/README.md
  91. 26 0
      src/Legacy-advanced/build_res.pri
  92. 14 0
      src/Legacy-advanced/legacy-advanced_plugin_import.cpp
  93. 50 0
      src/Legacy-advanced/main.cpp
  94. 75 0
      src/Legacy-advanced/models/downloader.cpp
  95. 49 0
      src/Legacy-advanced/models/downloader.h
  96. 0 0
      src/Legacy-advanced/models/filesystem.cpp
  97. 0 0
      src/Legacy-advanced/models/filesystem.h
  98. 507 0
      src/Legacy-advanced/models/lotromanager.cpp
  99. 77 0
      src/Legacy-advanced/models/lotromanager.h
  100. 28 0
      src/Legacy-advanced/object_script.Legacy-advanced.Debug

+ 9 - 0
.gitignore

@@ -63,11 +63,20 @@ qrc_*.cpp
 ui_*.h
 Makefile*
 *-build-*
+build/*
+bin/*
+
+*resource*
+
+!*README*
+
+
 
 # QtCreator
 
 *.autosave
 
+
 #QtCtreator Qml
 *.qmlproject.user
 *.qmlproject.user.*

+ 9 - 136
Legacy_v2.pro

@@ -6,143 +6,16 @@
 
 QT       += core gui network
 
-QMAKE_LFLAGS_RELEASE += -static -static-libgcc -static-libstdc++
+# QMAKE_LFLAGS_RELEASE += -static -static-libgcc -static-libstdc++
 
 greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 
 TARGET = Legacy_v2
-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
-
-
-# ================================================== #
-message(================QT INFO====================)
-message(Qt version: $$[QT_VERSION])
-message(Qt is installed in $$[QT_INSTALL_PREFIX])
-# ================================================== #
-
-message(==========BUILDING EXTERNAL RES============)
-win32 {
-    build_pass: CONFIG(debug, debug|release) {
-        DESTDIR = $$OUT_PWD/debug
-    }
-    else: build_pass {
-        DESTDIR = $$OUT_PWD/release
-    }
-}
-
-unix {
-    DESTDIR = $$OUT_PWD
-}
-
-guiRes.target = BuildResources
-exists($$DESTDIR/res) {
-    message("Directory $$DESTDIR/res already exists")
-} else {
-    guiRes.commands += $(MKDIR) \"$$DESTDIR/res\" $$escape_expand(\n\t)
-    }
-
-EXT_RES =                                                                   \
-    "$$PWD/backgrounds.qrc            -o $$DESTDIR/data01.gtr"     \
-    "$$PWD/common.qrc                 -o $$DESTDIR/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
-
-# ================================================== #
-
-
-
-SOURCES += \
-        src/main.cpp \
-        gui/mainwindow.cpp \
-        src/menuentry.cpp \
-        src/legacyapp.cpp \
-        src/filesystem.cpp \
-    gui/statuswidget.cpp \
-    gui/rusificationwidget.cpp \
-    gui/settingswidget.cpp \
-    gui/newswidget.cpp \
-    gui/helpwidget.cpp \
-    src/networkdownloader.cpp \
-    src/rusificationtreeitem.cpp
-
-HEADERS += \
-        gui/mainwindow.h \
-        include/menuentry.h \
-        include/legacyapp.h \
-        include/filesystem.h \
-    gui/statuswidget.h \
-    gui/rusificationwidget.h \
-    gui/settingswidget.h \
-    gui/newswidget.h \
-    gui/helpwidget.h \
-    include/networkdownloader.h \
-    include/rusificationtreeitem.h
-
-FORMS += \
-        gui/mainwindow.ui \
-    gui/statuswidget.ui \
-    gui/rusificationwidget.ui \
-    gui/settingswidget.ui \
-    gui/newswidget.ui \
-    gui/helpwidget.ui
-
-RESOURCES += \
-    backgrounds.qrc \
-    common.qrc
-
-win32:RC_ICONS = $$PWD/assets/appicon.ico
-
-unix:!macx|win32: LIBS += -L$$PWD/lib/lib/ -lLotroDat_static
-
-INCLUDEPATH += $$PWD/lib/include
-INCLUDEPATH += $$PWD/include
-INCLUDEPATH += $$PWD/gui
-
-DEPENDPATH += $$PWD/lib/include
-
-win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/lib/LotroDat_static.lib
-else:unix:!macx|win32-g++: PRE_TARGETDEPS += $$PWD/lib/lib/libLotroDat_static.a
-
-unix:!macx|win32: LIBS += -L$$PWD/lib/Third_party/lib/ -lyaml-cpp
-
-INCLUDEPATH += $$PWD/lib/Third_party
-DEPENDPATH += $$PWD/lib/Third_party
-
-win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/yaml-cpp.lib
-else:unix:!macx|win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/libyaml-cpp.a
-
-unix:!macx|win32: LIBS += -L$$PWD/lib/Third_party/lib/ -lzlibstatic
-
-INCLUDEPATH += $$PWD/lib/Third_party
-DEPENDPATH += $$PWD/lib/Third_party
-
-win32:!win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/zlibstatic.lib
-else:unix:!macx|win32-g++: PRE_TARGETDEPS += $$PWD/lib/Third_party/lib/libzlibstatic.a
-
-DISTFILES +=
-
+TEMPLATE = subdirs
+
+SUBDIRS += \
+    src/Launcher \
+    src/Legacy \ 
+    src/Legacy-advanced \
+    src/Legacy-advanced \
+    src/Launcher

+ 7 - 1
README.md

@@ -1,3 +1,9 @@
 # Legacy_v2
 
-Improved gui Legacy client
+Improved gui Legacy client
+
+Dependencies: 
+	LotroDat, yaml-cpp, zlib, Easylogging++, SQLite
+	
+	
+Prebuild components are build with Qt 5.11.2, MinGW 5.3.0 32 bit

+ 2 - 0
app.pri

@@ -0,0 +1,2 @@
+DESTDIR = $${BIN_PATH}/
+linux-g++: QMAKE_LFLAGS += -Wl,--rpath=\\\$\$ORIGIN/../../lib.$${OS_SUFFIX}/

+ 0 - 13
backgrounds.qrc

@@ -1,13 +0,0 @@
-<RCC>
-    <qresource prefix="/">
-        <file>assets/backgrounds/bg1.png</file>
-        <file>assets/backgrounds/bg2.png</file>
-        <file>assets/backgrounds/bg3.png</file>
-        <file>assets/backgrounds/bg4.png</file>
-        <file>assets/backgrounds/bg5.png</file>
-        <file>assets/backgrounds/bg6.png</file>
-        <file>assets/backgrounds/bg7.png</file>
-        <file>assets/backgrounds/bg8.png</file>
-        <file>assets/backgrounds/bg9.png</file>
-    </qresource>
-</RCC>

+ 9 - 0
bin/README.md

@@ -0,0 +1,9 @@
+# Legacy_v2
+
+Improved gui Legacy client
+
+Dependencies: 
+	LotroDat, yaml-cpp, zlib, Easylogging++, SQLite
+	
+	
+Prebuild components are build with Qt 5.11.2, MinGW 5.3.0 32 bit

+ 9 - 0
build/README.md

@@ -0,0 +1,9 @@
+# Legacy_v2
+
+Improved gui Legacy client
+
+Dependencies: 
+	LotroDat, yaml-cpp, zlib, Easylogging++, SQLite
+	
+	
+Prebuild components are build with Qt 5.11.2, MinGW 5.3.0 32 bit

+ 46 - 0
common.pri

@@ -0,0 +1,46 @@
+# ================================================== #
+message(================QT INFO====================)
+message(Qt version: $$[QT_VERSION])
+message(Qt is installed in $$[QT_INSTALL_PREFIX])
+# ================================================== #
+
+PROJECT_ROOT_PATH = $${PWD}/
+
+win32: OS_SUFFIX = win32
+linux-g++: OS_SUFFIX = linux
+
+CONFIG(debug, debug|release) {
+    BUILD_FLAG = debug
+    LIB_SUFFIX = d
+} else {
+    BUILD_FLAG = release
+}
+
+LIBS_PATH = $${PROJECT_ROOT_PATH}/lib.$${OS_SUFFIX}/
+INC_PATH = $${PROJECT_ROOT_PATH}/include/
+IMPORT_PATH = $${PROJECT_ROOT_PATH}/import/
+BIN_PATH = $${PROJECT_ROOT_PATH}/bin/$${BUILD_FLAG}/
+
+BUILD_PATH = $${PROJECT_ROOT_PATH}/build/$${BUILD_FLAG}/$${TARGET}/
+RCC_DIR = $${BUILD_PATH}/rcc/
+UI_DIR = $${BUILD_PATH}/ui/
+MOC_DIR = $${BUILD_PATH}/moc/
+OBJECTS_DIR = $${BUILD_PATH}/obj/
+
+LIBS += -L$${LIBS_PATH}/
+INCLUDEPATH += $${INC_PATH}/
+INCLUDEPATH += $${IMPORT_PATH}/
+
+QMAKE_CXXFLAGS += -O2 -std=c++14
+
+# 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
+

+ 0 - 33
common.qrc

@@ -1,33 +0,0 @@
-<RCC>
-    <qresource prefix="/">
-        <file>assets/fonts/trajan.ttf</file>
-        <file>assets/fonts/viking.ttf</file>
-        <file>assets/status/critical.png</file>
-        <file>assets/status/error.png</file>
-        <file>assets/status/info.png</file>
-        <file>assets/status/ok.png</file>
-        <file>assets/status/warning.png</file>
-        <file>assets/buttons/close.png</file>
-        <file>assets/buttons/folder.png</file>
-        <file>assets/buttons/gray-button-hi.png</file>
-        <file>assets/buttons/green-button-hi.png</file>
-        <file>assets/buttons/minimize.png</file>
-        <file>assets/buttons/off.png</file>
-        <file>assets/buttons/on.png</file>
-        <file>assets/buttons/onoff.png</file>
-        <file>assets/buttons/onoff1.png</file>
-        <file>assets/buttons/orange-button-hi.png</file>
-        <file>assets/buttons/question.png</file>
-        <file>assets/appicon.ico</file>
-        <file>assets/teksty-photo-normal.png</file>
-        <file>assets/fonts/title.TTF</file>
-        <file>assets/buttons/white_btn.png</file>
-        <file>assets/buttons/white_btn_pressed.png</file>
-        <file>assets/buttons/gray_btn.png</file>
-        <file>assets/patch_icons/karty-photo-small.png</file>
-        <file>assets/patch_icons/shrifty-photo-small.png</file>
-        <file>assets/patch_icons/teksty-photo-small.png</file>
-        <file>assets/patch_icons/zagruzochnye-ekrany-photo-small.png</file>
-        <file>assets/patch_icons/zvuki-photo-small.png</file>
-    </qresource>
-</RCC>

+ 0 - 1943
gui/rusificationwidget.ui

@@ -1,1943 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<ui version="4.0">
- <class>RusificationWidget</class>
- <widget class="QWidget" name="RusificationWidget">
-  <property name="geometry">
-   <rect>
-    <x>0</x>
-    <y>0</y>
-    <width>860</width>
-    <height>491</height>
-   </rect>
-  </property>
-  <property name="sizePolicy">
-   <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
-    <horstretch>0</horstretch>
-    <verstretch>0</verstretch>
-   </sizepolicy>
-  </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_8">
-   <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="QTabWidget" name="tabWidget_common">
-     <property name="sizePolicy">
-      <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
-       <horstretch>0</horstretch>
-       <verstretch>0</verstretch>
-      </sizepolicy>
-     </property>
-     <property name="styleSheet">
-      <string notr="true">QTabWidget::pane {
-    border: 0px solid black;
-    background: none;
-	margin: 10px;
-}
-
-QTabBar::tab {
-    border: 1px solid black;
-	border-radius: 10px;
-}
-
-QTabBar::tab:selected {
-    background: black;
-	color: white;
-	font-weight: bold;
-
-}
-
-QTabBar::tab:!selected {   
- background: silver;
-border-radius: 10px;
-background-color: rgba(30, 0, 0, 100);
-	color: white;
-}
-
-QTabBar::tab:!selected:hover {
-    background: #999;
-}
-
-QTabBar::tab:top:!selected {
-    margin-top: 3px;
-}
-
-QTabBar::tab:bottom:!selected {
-    margin-bottom: 3px;
-}
-
-QTabBar::tab:top, QTabBar::tab:bottom {
-    min-width: 8px;
-    margin-right: 10px;
-    padding: 0px 10px 5px 10px;
-}
-
-QPushButton, QGroupBox, QComboBox {
-	color: black;
-}</string>
-     </property>
-     <property name="tabPosition">
-      <enum>QTabWidget::North</enum>
-     </property>
-     <property name="tabShape">
-      <enum>QTabWidget::Triangular</enum>
-     </property>
-     <property name="currentIndex">
-      <number>0</number>
-     </property>
-     <property name="usesScrollButtons">
-      <bool>false</bool>
-     </property>
-     <widget class="QWidget" name="patches_tab">
-      <property name="styleSheet">
-       <string notr="true">background-color:none;</string>
-      </property>
-      <attribute name="title">
-       <string>  Русификация  </string>
-      </attribute>
-      <layout class="QHBoxLayout" name="horizontalLayout">
-       <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="left_column_widget" native="true">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Fixed" vsizetype="Ignored">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <property name="minimumSize">
-          <size>
-           <width>350</width>
-           <height>0</height>
-          </size>
-         </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="0" column="0">
-           <widget class="QTreeWidget" name="treeWidget_title">
-            <property name="sizePolicy">
-             <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
-              <horstretch>0</horstretch>
-              <verstretch>0</verstretch>
-             </sizepolicy>
-            </property>
-            <property name="mouseTracking">
-             <bool>true</bool>
-            </property>
-            <property name="styleSheet">
-             <string notr="true">QTreeWidget{
-border-radius: 20px;
-color: rgb(255, 255, 255);
-background-color: rgba(255, 255, 255, 0);
-}
-QScrollBar:vertical {
-     border: 0px solid grey;
-     background: transparent;
-     width: 10px;
-     margin: 22px 0 22px 0;
- }
-
- QScrollBar::handle:vertical {
-	background-color: rgba(129, 129, 129, 150);	
-    min-height: 10px;
-	border-radius: 5px;
- }
- QScrollBar::add-line:vertical {
-     border: 0px solid grey;
-     background: transparent;
-     height: 1px;
-     subcontrol-position: bottom;
-     subcontrol-origin: margin;
- }
-
- QScrollBar::sub-line:vertical {
-     border: 0px solid grey;
-     background: transparent;
-     height: 1px;
-     subcontrol-position: top;
-     subcontrol-origin: margin;
- }
- QScrollBar::up-arrow:vertical, QScrollBar::down-arrow:vertical {
-     border: 0px;
-     width: 3px;
-     height: 3px;
-     background: transparent;
- }
-
- QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
-     background: none;
- }
-
-QTreeView::branch:closed:has-children{
-        background: pink;
-}
-
-QTreeView::branch:open:has-children{
-        background: magenta;
-}
-</string>
-            </property>
-            <property name="frameShape">
-             <enum>QFrame::NoFrame</enum>
-            </property>
-            <property name="verticalScrollBarPolicy">
-             <enum>Qt::ScrollBarAsNeeded</enum>
-            </property>
-            <property name="editTriggers">
-             <set>QAbstractItemView::EditKeyPressed</set>
-            </property>
-            <property name="showDropIndicator" stdset="0">
-             <bool>false</bool>
-            </property>
-            <property name="alternatingRowColors">
-             <bool>false</bool>
-            </property>
-            <property name="selectionMode">
-             <enum>QAbstractItemView::NoSelection</enum>
-            </property>
-            <property name="verticalScrollMode">
-             <enum>QAbstractItemView::ScrollPerItem</enum>
-            </property>
-            <property name="autoExpandDelay">
-             <number>0</number>
-            </property>
-            <property name="indentation">
-             <number>20</number>
-            </property>
-            <property name="rootIsDecorated">
-             <bool>false</bool>
-            </property>
-            <property name="uniformRowHeights">
-             <bool>false</bool>
-            </property>
-            <property name="itemsExpandable">
-             <bool>true</bool>
-            </property>
-            <property name="animated">
-             <bool>true</bool>
-            </property>
-            <property name="allColumnsShowFocus">
-             <bool>false</bool>
-            </property>
-            <property name="headerHidden">
-             <bool>true</bool>
-            </property>
-            <property name="expandsOnDoubleClick">
-             <bool>false</bool>
-            </property>
-            <attribute name="headerVisible">
-             <bool>false</bool>
-            </attribute>
-            <column>
-             <property name="text">
-              <string>Устанавливаемые элементы</string>
-             </property>
-             <property name="background">
-              <color alpha="0">
-               <red>0</red>
-               <green>0</green>
-               <blue>0</blue>
-              </color>
-             </property>
-             <property name="foreground">
-              <brush brushstyle="NoBrush">
-               <color alpha="0">
-                <red>0</red>
-                <green>0</green>
-                <blue>0</blue>
-               </color>
-              </brush>
-             </property>
-            </column>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-       <item>
-        <widget class="QWidget" name="right_column_widget" native="true">
-         <property name="sizePolicy">
-          <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
-           <horstretch>0</horstretch>
-           <verstretch>0</verstretch>
-          </sizepolicy>
-         </property>
-         <layout class="QGridLayout" name="gridLayout_2">
-          <item row="0" column="1" colspan="2">
-           <widget class="QWidget" name="widget_2" native="true">
-            <property name="sizePolicy">
-             <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-              <horstretch>0</horstretch>
-              <verstretch>0</verstretch>
-             </sizepolicy>
-            </property>
-            <property name="styleSheet">
-             <string notr="true">QWidget#widget_2 {
-border-radius: 20px;
-background-color: rgba(30, 0, 0, 100);
-color:rgb(255,255,255);
-}</string>
-            </property>
-            <layout class="QGridLayout" name="gridLayout_3">
-             <item row="0" column="0">
-              <widget class="QLabel" name="label_2_title">
-               <property name="font">
-                <font>
-                 <family>Times New Roman</family>
-                 <pointsize>12</pointsize>
-                 <weight>75</weight>
-                 <bold>true</bold>
-                </font>
-               </property>
-               <property name="styleSheet">
-                <string notr="true">background:none</string>
-               </property>
-               <property name="text">
-                <string>Подсказка</string>
-               </property>
-               <property name="alignment">
-                <set>Qt::AlignCenter</set>
-               </property>
-              </widget>
-             </item>
-             <item row="1" column="0">
-              <widget class="QLabel" name="label_3">
-               <property name="minimumSize">
-                <size>
-                 <width>100</width>
-                 <height>100</height>
-                </size>
-               </property>
-               <property name="styleSheet">
-                <string notr="true">background-color:none;</string>
-               </property>
-               <property name="text">
-                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;img src=&quot;:/assets/teksty-photo-normal.png&quot; width=&quot;100&quot; height=&quot;100&quot;/&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
-               </property>
-               <property name="alignment">
-                <set>Qt::AlignCenter</set>
-               </property>
-              </widget>
-             </item>
-             <item row="2" column="0">
-              <widget class="QTextBrowser" name="patch_hint">
-               <property name="styleSheet">
-                <string notr="true">border-radius: 20px;
-background-color: rgba(30, 0, 0, 0);
-color:rgb(255,255,255);
-</string>
-               </property>
-               <property name="html">
-                <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
-&lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
-p, li { white-space: pre-wrap; }
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'MS Shell Dlg 2'; font-size:7.8pt; font-weight:400; font-style:normal;&quot;&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Ставьте или убирайте галочки в пунктах меню слева, чтобы включить или отключить фрагмент русификации.&lt;/span&gt;&lt;/p&gt;
-&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Для включения некоторых фрагментов потребуется дополнительная загрузка данных&lt;/span&gt;&lt;/p&gt;
-&lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-size:8pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-size:8pt;&quot;&gt;Чтобы применить изменения, нажмите кнопку &amp;quot;Применить&amp;quot;. &lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-          <item row="1" column="1" colspan="2">
-           <spacer name="verticalSpacer_2">
-            <property name="orientation">
-             <enum>Qt::Vertical</enum>
-            </property>
-            <property name="sizeHint" stdset="0">
-             <size>
-              <width>321</width>
-              <height>18</height>
-             </size>
-            </property>
-           </spacer>
-          </item>
-          <item row="2" column="1" colspan="2">
-           <widget class="QWidget" name="widget" native="true">
-            <property name="sizePolicy">
-             <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
-              <horstretch>0</horstretch>
-              <verstretch>0</verstretch>
-             </sizepolicy>
-            </property>
-            <layout class="QHBoxLayout" name="horizontalLayout_2">
-             <item>
-              <spacer name="horizontalSpacer">
-               <property name="orientation">
-                <enum>Qt::Horizontal</enum>
-               </property>
-               <property name="sizeHint" stdset="0">
-                <size>
-                 <width>132</width>
-                 <height>57</height>
-                </size>
-               </property>
-              </spacer>
-             </item>
-             <item>
-              <widget class="QPushButton" name="pushButton">
-               <property name="sizePolicy">
-                <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
-                 <horstretch>0</horstretch>
-                 <verstretch>0</verstretch>
-                </sizepolicy>
-               </property>
-               <property name="minimumSize">
-                <size>
-                 <width>160</width>
-                 <height>60</height>
-                </size>
-               </property>
-               <property name="text">
-                <string>ПРИМЕНИТЬ</string>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-      </layout>
-     </widget>
-     <widget class="QWidget" name="import_tab">
-      <attribute name="title">
-       <string>  Импорт  </string>
-      </attribute>
-      <layout class="QVBoxLayout" name="verticalLayout">
-       <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_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>
-        <spacer name="verticalSpacer_3">
-         <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>
-     <widget class="QWidget" name="modify_tab">
-      <attribute name="title">
-       <string>  Просмотр  </string>
-      </attribute>
-      <layout class="QGridLayout" name="gridLayout_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>
-       <property name="spacing">
-        <number>7</number>
-       </property>
-       <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>
-     <widget class="QWidget" name="export_tab">
-      <attribute name="title">
-       <string>  Извлечение </string>
-      </attribute>
-      <layout class="QVBoxLayout" name="verticalLayout_4">
-       <property name="leftMargin">
-        <number>11</number>
-       </property>
-       <property name="topMargin">
-        <number>11</number>
-       </property>
-       <property name="rightMargin">
-        <number>11</number>
-       </property>
-       <property name="bottomMargin">
-        <number>11</number>
-       </property>
-       <item>
-        <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="radioButton_common">
-            <property name="text">
-             <string>В базу данных</string>
-            </property>
-            <property name="checked">
-             <bool>true</bool>
-            </property>
-           </widget>
-          </item>
-          <item>
-           <widget class="QRadioButton" name="radioButton_2_common">
-            <property name="text">
-             <string>В файлы</string>
-            </property>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-       <item>
-        <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="radioButton_3_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="lineEdit_5_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="radioButton_4_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="checkBox_5_common">
-               <property name="text">
-                <string>JPG</string>
-               </property>
-              </widget>
-             </item>
-             <item row="2" column="1">
-              <widget class="QCheckBox" name="checkBox_6_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="checkBox_4_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="checkBox_common">
-               <property name="text">
-                <string>TXT</string>
-               </property>
-              </widget>
-             </item>
-             <item row="0" column="2">
-              <widget class="QCheckBox" name="checkBox_3_common">
-               <property name="text">
-                <string>WAV</string>
-               </property>
-              </widget>
-             </item>
-             <item row="1" column="2">
-              <widget class="QCheckBox" name="checkBox_2_common">
-               <property name="text">
-                <string>FONTBIN</string>
-               </property>
-              </widget>
-             </item>
-             <item row="2" column="2">
-              <widget class="QCheckBox" name="checkBox_7_common">
-               <property name="text">
-                <string>UNKNOWN</string>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-       <item>
-        <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="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="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="pushButton_10">
-            <property name="text">
-             <string>Извлечь</string>
-            </property>
-           </widget>
-          </item>
-         </layout>
-        </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>
-     <widget class="QWidget" name="management_tab">
-      <attribute name="title">
-       <string>  Управление  </string>
-      </attribute>
-      <layout class="QVBoxLayout" name="verticalLayout_9">
-       <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_2">
-            <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="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_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="pushButton_4_common_2">
-               <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="pushButton_3_common">
-               <property name="text">
-                <string>Применить</string>
-               </property>
-              </widget>
-             </item>
-            </layout>
-           </widget>
-          </item>
-         </layout>
-        </widget>
-       </item>
-       <item>
-        <widget class="QPushButton" name="pushButton_2_common">
-         <property name="text">
-          <string>Создать файл статуса ядра</string>
-         </property>
-        </widget>
-       </item>
-       <item>
-        <spacer name="verticalSpacer_4">
-         <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>
-    </widget>
-   </item>
-  </layout>
- </widget>
- <resources/>
- <connections/>
-</ui>

+ 0 - 0
lib/Third_party/EasyLogging++/easylogging++.cc → import/EasyLogging++/easylogging++.cc


+ 0 - 0
lib/Third_party/EasyLogging++/easylogging++.h → import/EasyLogging++/easylogging++.h


+ 0 - 0
lib/include/BinaryData.h → import/LotroDat/BinaryData.h


+ 8 - 7
lib/include/DatFile.h → import/LotroDat/DatFile.h

@@ -26,13 +26,14 @@ extern "C++"
 {
 namespace LOTRO_DAT {
     enum FILE_TYPE : int {
-        TEXT = 0,
-        JPG = 1,
-        DDS = 2,
-        WAV = 3,
-        OGG = 4,
-        FONT = 5,
-        UNKNOWN = 6
+        NO_TYPE = 0,
+        TEXT = 1,
+        JPG = 2,
+        DDS = 4,
+        WAV = 8,
+        OGG = 16,
+        FONT = 32,
+        UNKNOWN = 64
     };
 
     class DatFile {

+ 1 - 1
lib/include/DatOperationResult.h → import/LotroDat/DatOperationResult.h

@@ -8,7 +8,7 @@
 #include <string>
 #include <memory>
 #include <utility>
-#include <BinaryData.h>
+#include "BinaryData.h"
 #include <EasyLogging++/easylogging++.h>
 
 extern "C++"

+ 1 - 1
lib/include/DatSubsystems/DatBackupManager.h → import/LotroDat/DatSubsystems/DatBackupManager.h

@@ -6,7 +6,7 @@
 #define LOTRO_DAT_LIBRARY_DATBACKUP_H
 
 #include <string>
-#include <DatOperationResult.h>
+#include "../DatOperationResult.h"
 
 extern "C++" {
 namespace LOTRO_DAT {

+ 4 - 2
lib/include/DatSubsystems/DatExporter.h → import/LotroDat/DatSubsystems/DatExporter.h

@@ -1,8 +1,8 @@
 #ifndef LOTRO_DAT_LIBRARY_DATEXPORTER_H
 #define LOTRO_DAT_LIBRARY_DATEXPORTER_H
 
-#include <DatOperationResult.h>
-#include <Database.h>
+#include "../DatOperationResult.h"
+#include "../Database.h"
 
 extern "C++" {
 namespace LOTRO_DAT {
@@ -36,6 +36,8 @@ namespace LOTRO_DAT {
 
         DatOperationResult<int> ExtractAllFilesByType(const FILE_TYPE &type, Database *db);
 
+        DatOperationResult<> ExtractFileById(long long file_id, Database *db);
+
     private:
         DatOperationResult<> WriteStringToFile(const std::u16string &str, const std::string &path);
 

+ 11 - 8
lib/include/DatSubsystems/DatFileSystem.h → import/LotroDat/DatSubsystems/DatFileSystem.h

@@ -12,9 +12,9 @@
 #include <utility>
 #include <memory>
 
-#include <DatOperationResult.h>
-#include <SubFile.h>
-#include <SubDirectory.h>
+#include "../DatOperationResult.h"
+#include "../SubFile.h"
+#include "../SubDirectory.h"
 
 extern "C++" {
 namespace LOTRO_DAT {
@@ -48,28 +48,29 @@ namespace LOTRO_DAT {
 
         DatOperationResult<> InitAllFiles();
 
-        DatOperationResult<BinaryData> GetFileData(long long file_id, long long int offset);
+        DatOperationResult<BinaryData> GetFileData(const SubFile& file, long long int offset);
 
         DatOperationResult<std::shared_ptr<SubFile>> GetFile(long long file_id);
 
-        DatOperationResult<bool> CheckCorrectSubfile(const std::shared_ptr<SubFile> &file);
+        DatOperationResult<bool> CheckCorrectSubfile(const SubFile& file);
 
         DatOperationResult<> UpdateFileInfo(const SubFile& file);
 
+        int GetInitialisedFilesNumber() const;
+
         void PrintInformaion(FILE* file);
 
         DatOperationResult<> DeInit();
 
         DatOperationResult<> PerformOperationOnAllFiles(const std::function<void (std::shared_ptr<SubFile>&)>& function);
 
-    private:
+        DatOperationResult<> CommitDirectories();
 
+    private:
         DatOperationResult<> InitSubFile(long long file_id);
 
         DatOperationResult<> InitSubDirectory(SubDirectory dir);
 
-        DatOperationResult<> CommitDirectories();
-
     private:
         DatFile *dat;
         std::set<long long> subfile_pending_update;
@@ -82,6 +83,8 @@ namespace LOTRO_DAT {
         std::set<SubDirectory, SubDirectory::SubDirectoryOffsetComparator> subdir_init_queue_;
         std::unordered_map<long long, SubFile> subfile_init_map_;
         std::set<SubFile, SubFile::SubFileOffsetComparator> subfile_init_queue_;
+    public:
+        long long patched_file_end;
     };
 }
 };

+ 3 - 2
lib/include/DatSubsystems/DatIO.h → import/LotroDat/DatSubsystems/DatIO.h

@@ -6,7 +6,7 @@
 #define LOTRO_DAT_LIBRARY_DATIO_H
 
 #include <utility>
-#include "DatOperationResult.h"
+#include "../DatOperationResult.h"
 
 extern "C++" {
 namespace LOTRO_DAT {
@@ -50,6 +50,7 @@ namespace LOTRO_DAT {
 
         DatOperationResult<> DeInit();
 
+        unsigned int getHeaderHash();
     private:
 
         //------------------------------------------------//
@@ -80,6 +81,7 @@ namespace LOTRO_DAT {
         std::string filename_;
 
     public:
+        /// Header values
         long long constant1;
         long long constant2;
         long long file_size;
@@ -93,7 +95,6 @@ namespace LOTRO_DAT {
 
     private:
         long long actual_dat_size_;
-        long long elapsed_eof_buffer_;
         const unsigned MAX_EOF_BUFFER = 15 * 1024 * 1024; /// Maximal size of buffer, which is written to the end of dat file to improve write speed of small fragments
     };
 }

+ 6 - 1
lib/include/DatSubsystems/DatLocaleManager.h → import/LotroDat/DatSubsystems/DatLocaleManager.h

@@ -3,9 +3,10 @@
 
 #include <memory>
 #include <map>
-#include <DatOperationResult.h>
 #include <set>
 
+#include "../DatOperationResult.h"
+
 extern "C++" {
 namespace LOTRO_DAT {
     class DatFile;
@@ -50,6 +51,8 @@ namespace LOTRO_DAT {
 
         DatOperationResult<> DeInit();
 
+        DatOperationResult<> CommitLocales();
+
         LOCALE GetCurrentLocale();
 
         bool CheckLocaleCorrect();
@@ -64,6 +67,8 @@ namespace LOTRO_DAT {
 
         void UpdateCategory(long long file_id, long long category);
 
+        const std::set<long long>& GetInactiveCategories();
+
     private:
         std::map<long long, SubFile> &GetLocaleDictReference(LOCALE locale);
 

+ 2 - 2
lib/include/DatSubsystems/DatPatcher.h → import/LotroDat/DatSubsystems/DatPatcher.h

@@ -6,7 +6,7 @@
 #define LOTRO_DAT_LIBRARY_DATPATCHER_H
 
 #include "yaml-cpp/yaml.h"
-#include <DatOperationResult.h>
+#include "../DatOperationResult.h"
 
 extern "C++"
 {
@@ -35,7 +35,7 @@ namespace LOTRO_DAT {
 
         explicit DatPatcher(DatFile *datFilePtr);
 
-        DatOperationResult<> PatchFile(const SubfileData &data);
+        DatOperationResult<> PatchFile(const SubfileData &data, bool single_file = true);
 
         DatOperationResult<int> PatchAllDatabase(Database *db);
 

+ 21 - 12
lib/include/DatSubsystems/DatStatus.h → import/LotroDat/DatSubsystems/DatStatus.h

@@ -19,6 +19,18 @@ namespace LOTRO_DAT {
 
     class DatStatus {
     public:
+        enum DAT_STATUS: int {
+            E_INITIALISING,
+            E_EXTRACTING,
+            E_PATCHING,
+            E_COMMITING,
+            E_BACKUP_CREATING,
+            E_BACKUP_RESTORING,
+            E_BACKUP_REMOVING,
+            E_GATHERING_INFO,
+            E_FREE
+        };
+
         DatStatus() = delete;
 
         DatStatus(const DatStatus &other) = delete;
@@ -29,21 +41,17 @@ namespace LOTRO_DAT {
 
         explicit DatStatus(DatFile *datFilePtr);
 
-        void UpdatePercentage(unsigned percent);
+        void SetPercentage(unsigned percent);
 
         unsigned GetPercentage();
 
-        void UpdateStatusText(const std::string &message);
-
-        void RemoveStatusText();
+        void SetDebugMessage(const std::string &message);
 
-        std::string GetStatusText();
+        std::string GetDebugMessage();
 
-        void UpdateAdditionalMessage(const std::string &message);
+        void SetStatus(DAT_STATUS status);
 
-        void RemoveAdditionalMessage();
-
-        std::string GetAdditionalMessage();
+        DAT_STATUS GetStatus();
 
         bool CheckIfNotPatched();
 
@@ -51,9 +59,10 @@ namespace LOTRO_DAT {
 
     private:
         DatFile *dat;
-        unsigned percentage;
-        std::string status_text;
-        std::string additional_message;
+        unsigned percentage_;
+        DAT_STATUS status_;
+
+        std::string debug_message;
     };
 }
 

+ 0 - 0
lib/include/Database.h → import/LotroDat/Database.h


+ 2 - 2
lib/include/LotroDat.h → import/LotroDat/LotroDat.h

@@ -7,5 +7,5 @@
 #include "SubfileData.h"
 #include "DatOperationResult.h"
 
-#include "yaml-cpp/yaml.h"
-#include "ZLib/zlib.h"
+#include <yaml-cpp/yaml.h>
+#include <ZLib/zlib.h>

+ 0 - 0
lib/include/SubDirectory.h → import/LotroDat/SubDirectory.h


+ 0 - 0
lib/include/SubFile.h → import/LotroDat/SubFile.h


+ 0 - 0
lib/include/SubfileData.h → import/LotroDat/SubfileData.h


+ 0 - 0
lib/include/Subfiles/DdsSubFile.h → import/LotroDat/Subfiles/DdsSubFile.h


+ 0 - 0
lib/include/Subfiles/FontSubFile.h → import/LotroDat/Subfiles/FontSubFile.h


+ 0 - 0
lib/include/Subfiles/JpgSubFile.h → import/LotroDat/Subfiles/JpgSubFile.h


+ 0 - 0
lib/include/Subfiles/OggSubFile.h → import/LotroDat/Subfiles/OggSubFile.h


+ 3 - 3
lib/include/Subfiles/TextSubFile.h → import/LotroDat/Subfiles/TextSubFile.h

@@ -5,9 +5,9 @@
 #ifndef LOTRO_DAT_LIBRARY_TEXTSUBFILE_H
 #define LOTRO_DAT_LIBRARY_TEXTSUBFILE_H
 
-#include "SubFile.h"
-#include "SubfileData.h"
-#include "BinaryData.h"
+#include "../SubFile.h"
+#include "../SubfileData.h"
+#include "../BinaryData.h"
 
 #include <vector>
 #include <unordered_map>

+ 0 - 0
lib/include/Subfiles/UnknownSubFile.h → import/LotroDat/Subfiles/UnknownSubFile.h


+ 0 - 0
lib/include/Subfiles/WavSubFile.h → import/LotroDat/Subfiles/WavSubFile.h


+ 9 - 0
import/README.md

@@ -0,0 +1,9 @@
+# Legacy_v2
+
+Improved gui Legacy client
+
+Dependencies: 
+	LotroDat, yaml-cpp, zlib, Easylogging++, SQLite
+	
+	
+Prebuild components are build with Qt 5.11.2, MinGW 5.3.0 32 bit

+ 0 - 0
lib/Third_party/SQLite/shell.c → import/SQLite/shell.c


+ 0 - 0
lib/Third_party/SQLite/sqlite3.c → import/SQLite/sqlite3.c


+ 0 - 0
lib/Third_party/SQLite/sqlite3.h → import/SQLite/sqlite3.h


+ 0 - 0
lib/Third_party/ZLib/zconf.h → import/ZLib/zconf.h


+ 0 - 0
lib/Third_party/ZLib/zlib.h → import/ZLib/zlib.h


+ 0 - 0
lib/Third_party/yaml-cpp/anchor.h → import/yaml-cpp/anchor.h


+ 0 - 0
lib/Third_party/yaml-cpp/binary.h → import/yaml-cpp/binary.h


+ 0 - 0
lib/Third_party/yaml-cpp/contrib/anchordict.h → import/yaml-cpp/contrib/anchordict.h


+ 0 - 0
lib/Third_party/yaml-cpp/contrib/graphbuilder.h → import/yaml-cpp/contrib/graphbuilder.h


+ 0 - 0
lib/Third_party/yaml-cpp/dll.h → import/yaml-cpp/dll.h


+ 0 - 0
lib/Third_party/yaml-cpp/emitfromevents.h → import/yaml-cpp/emitfromevents.h


+ 0 - 0
lib/Third_party/yaml-cpp/emitter.h → import/yaml-cpp/emitter.h


+ 0 - 0
lib/Third_party/yaml-cpp/emitterdef.h → import/yaml-cpp/emitterdef.h


+ 0 - 0
lib/Third_party/yaml-cpp/emittermanip.h → import/yaml-cpp/emittermanip.h


+ 0 - 0
lib/Third_party/yaml-cpp/emitterstyle.h → import/yaml-cpp/emitterstyle.h


+ 0 - 0
lib/Third_party/yaml-cpp/eventhandler.h → import/yaml-cpp/eventhandler.h


+ 0 - 0
lib/Third_party/yaml-cpp/exceptions.h → import/yaml-cpp/exceptions.h


+ 0 - 0
lib/Third_party/yaml-cpp/mark.h → import/yaml-cpp/mark.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/convert.h → import/yaml-cpp/node/convert.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/bool_type.h → import/yaml-cpp/node/detail/bool_type.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/impl.h → import/yaml-cpp/node/detail/impl.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/iterator.h → import/yaml-cpp/node/detail/iterator.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/iterator_fwd.h → import/yaml-cpp/node/detail/iterator_fwd.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/memory.h → import/yaml-cpp/node/detail/memory.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/node.h → import/yaml-cpp/node/detail/node.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/node_data.h → import/yaml-cpp/node/detail/node_data.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/node_iterator.h → import/yaml-cpp/node/detail/node_iterator.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/detail/node_ref.h → import/yaml-cpp/node/detail/node_ref.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/emit.h → import/yaml-cpp/node/emit.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/impl.h → import/yaml-cpp/node/impl.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/iterator.h → import/yaml-cpp/node/iterator.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/node.h → import/yaml-cpp/node/node.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/parse.h → import/yaml-cpp/node/parse.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/ptr.h → import/yaml-cpp/node/ptr.h


+ 0 - 0
lib/Third_party/yaml-cpp/node/type.h → import/yaml-cpp/node/type.h


+ 0 - 0
lib/Third_party/yaml-cpp/noncopyable.h → import/yaml-cpp/noncopyable.h


+ 0 - 0
lib/Third_party/yaml-cpp/null.h → import/yaml-cpp/null.h


+ 0 - 0
lib/Third_party/yaml-cpp/ostream_wrapper.h → import/yaml-cpp/ostream_wrapper.h


+ 0 - 0
lib/Third_party/yaml-cpp/parser.h → import/yaml-cpp/parser.h


+ 0 - 0
lib/Third_party/yaml-cpp/stlemitter.h → import/yaml-cpp/stlemitter.h


+ 0 - 0
lib/Third_party/yaml-cpp/traits.h → import/yaml-cpp/traits.h


+ 0 - 0
lib/Third_party/yaml-cpp/yaml.h → import/yaml-cpp/yaml.h


+ 4 - 0
lib.pri

@@ -0,0 +1,4 @@
+DESTDIR = $${LIBS_PATH}/
+win32: DLLDESTDIR = $${BIN_PATH}/
+VERSION = 1.0.0
+QMAKE_TARGET_COPYRIGHT = (c) Arkhipov Ivan aka Gi1dor aka Endevir

+ 9 - 0
lib.win32/README.md

@@ -0,0 +1,9 @@
+# Legacy_v2
+
+Improved gui Legacy client
+
+Dependencies: 
+	LotroDat, yaml-cpp, zlib, Easylogging++, SQLite
+	
+	
+Prebuild components are build with Qt 5.11.2, MinGW 5.3.0 32 bit

+ 0 - 13
res.qrc

@@ -1,13 +0,0 @@
-<RCC>
-    <qresource prefix="/">
-        <file>assets/close.png</file>
-        <file>assets/minimize.png</file>
-        <file>assets/appicon.ico</file>
-        <file>assets/orange-button-hi.png</file>
-        <file>assets/green-button-hi.png</file>
-        <file>assets/folder.png</file>
-        <file>assets/question.png</file>
-        <file>assets/gray-button-hi.png</file>
-        <file>assets/teksty-photo-normal.png</file>
-    </qresource>
-</RCC>

+ 32 - 0
src/Launcher/Launcher.pro

@@ -0,0 +1,32 @@
+include( ../../common.pri )
+include( ../../app.pri )
+
+QT += quick
+CONFIG += c++11
+
+# The following define makes your compiler emit warnings if you use
+# any feature of Qt which as been marked 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
+
+RESOURCES += qml.qrc
+
+# Additional import path used to resolve QML modules in Qt Creator's code model
+QML_IMPORT_PATH =
+
+# Additional import path used to resolve QML modules just for Qt Quick Designer
+QML_DESIGNER_IMPORT_PATH =
+
+# Default rules for deployment.
+qnx: target.path = /tmp/$${TARGET}/bin
+else: unix:!android: target.path = /opt/$${TARGET}/bin
+!isEmpty(target.path): INSTALLS += target

+ 23 - 0
src/Launcher/launcher_plugin_import.cpp

@@ -0,0 +1,23 @@
+// This file is autogenerated by qmake. It imports static plugin classes for
+// static plugins specified using QTPLUGIN and QT_PLUGIN_CLASS.<plugin> variables.
+#include <QtPlugin>
+Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
+Q_IMPORT_PLUGIN(QGifPlugin)
+Q_IMPORT_PLUGIN(QICNSPlugin)
+Q_IMPORT_PLUGIN(QICOPlugin)
+Q_IMPORT_PLUGIN(QJpegPlugin)
+Q_IMPORT_PLUGIN(QTgaPlugin)
+Q_IMPORT_PLUGIN(QTiffPlugin)
+Q_IMPORT_PLUGIN(QWbmpPlugin)
+Q_IMPORT_PLUGIN(QWebpPlugin)
+Q_IMPORT_PLUGIN(QQmlDebuggerServiceFactory)
+Q_IMPORT_PLUGIN(QQmlInspectorServiceFactory)
+Q_IMPORT_PLUGIN(QLocalClientConnectionFactory)
+Q_IMPORT_PLUGIN(QDebugMessageServiceFactory)
+Q_IMPORT_PLUGIN(QQmlNativeDebugConnectorFactory)
+Q_IMPORT_PLUGIN(QQmlNativeDebugServiceFactory)
+Q_IMPORT_PLUGIN(QQmlProfilerServiceFactory)
+Q_IMPORT_PLUGIN(QQuickProfilerAdapterFactory)
+Q_IMPORT_PLUGIN(QQmlDebugServerFactory)
+Q_IMPORT_PLUGIN(QTcpServerConnectionFactory)
+Q_IMPORT_PLUGIN(QGenericEnginePlugin)

+ 8 - 0
src/Launcher/launcher_qml_plugin_import.cpp

@@ -0,0 +1,8 @@
+// This file is autogenerated by qmake. It imports static plugin classes for
+// static plugins used by QML imports.
+#include <QtPlugin>
+Q_IMPORT_PLUGIN(QtQuick2Plugin)
+Q_IMPORT_PLUGIN(QtQuick2WindowPlugin)
+Q_IMPORT_PLUGIN(QtQuickControls1Plugin)
+Q_IMPORT_PLUGIN(QtQuickExtrasPlugin)
+Q_IMPORT_PLUGIN(QtQuickLayoutsPlugin)

+ 16 - 0
src/Launcher/main.cpp

@@ -0,0 +1,16 @@
+#include <QGuiApplication>
+#include <QQmlApplicationEngine>
+
+int main(int argc, char *argv[])
+{
+    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+
+    QGuiApplication app(argc, argv);
+
+    QQmlApplicationEngine engine;
+    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
+    if (engine.rootObjects().isEmpty())
+        return -1;
+
+    return app.exec();
+}

+ 31 - 0
src/Launcher/main.qml

@@ -0,0 +1,31 @@
+import QtQuick 2.10
+import QtQuick.Window 2.10
+import QtQuick.Controls 1.6
+import QtQuick.Extras 1.4
+import QtGraphicalEffects 1.0
+import QtQuick.Layouts 1.3
+
+Window {
+    width: 640
+    height: 480
+    flags: Qt.FramelessWindowHint
+    color: "transparent"
+
+    Timer {
+        interval: 500; running: true; repeat: true
+        onTriggered: background.change()
+    }
+
+    Image {
+        id: background
+        source: "qrc:/backgrounds/bg1.png"
+        anchors.fill: parent
+    }
+
+    DelayButton {
+        id: delayButton
+        x: 256
+        y: 176
+        text: qsTr("Button")
+    }
+}

+ 5 - 0
src/Launcher/qml.qrc

@@ -0,0 +1,5 @@
+<RCC>
+    <qresource prefix="/">
+        <file>main.qml</file>
+    </qresource>
+</RCC>

+ 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.

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

@@ -0,0 +1,84 @@
+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\lotromanager.cpp \
+    widgets\browsewidget.cpp \
+    widgets\exportwidget.cpp \
+    widgets\importwidget.cpp \
+    widgets\mainwindow.cpp \
+    widgets\managewidget.cpp \
+    widgets\menuentry.cpp \
+    widgets\messagedialog.cpp \
+    widgets\lotroprogresswidget.cpp
+
+HEADERS += \
+    models\downloader.h \
+    models\filesystem.h \
+    models\lotromanager.h \
+    widgets\browsewidget.h \
+    widgets\exportwidget.h \
+    widgets\importwidget.h \
+    widgets\mainwindow.h \
+    widgets\managewidget.h \
+    widgets\menuentry.h \
+    widgets\messagedialog.h \
+    widgets\lotroprogresswidget.h
+
+FORMS += \
+    widgets\browsewidget.ui \
+    widgets\exportwidget.ui \
+    widgets\importwidget.ui \
+    widgets\mainwindow.ui \
+    widgets\managewidget.ui \
+    widgets\messagedialog.ui \
+    widgets\lotroprogresswidget.ui
+
+RESOURCES += \
+    resources\backgrounds.qrc \
+    resources\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_APP
+	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

+ 14 - 0
src/Legacy-advanced/legacy-advanced_plugin_import.cpp

@@ -0,0 +1,14 @@
+// This file is autogenerated by qmake. It imports static plugin classes for
+// static plugins specified using QTPLUGIN and QT_PLUGIN_CLASS.<plugin> variables.
+#include <QtPlugin>
+Q_IMPORT_PLUGIN(QWindowsVistaStylePlugin)
+Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin)
+Q_IMPORT_PLUGIN(QGifPlugin)
+Q_IMPORT_PLUGIN(QICNSPlugin)
+Q_IMPORT_PLUGIN(QICOPlugin)
+Q_IMPORT_PLUGIN(QJpegPlugin)
+Q_IMPORT_PLUGIN(QTgaPlugin)
+Q_IMPORT_PLUGIN(QTiffPlugin)
+Q_IMPORT_PLUGIN(QWbmpPlugin)
+Q_IMPORT_PLUGIN(QWebpPlugin)
+Q_IMPORT_PLUGIN(QGenericEnginePlugin)

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

@@ -0,0 +1,50 @@
+#include <QApplication>
+#include <QMessageBox>
+#include <QLockFile>
+#include <QDir>
+
+#include "models/lotromanager.h"
+
+#include "widgets/browsewidget.h"
+#include "widgets/exportwidget.h"
+#include "widgets/importwidget.h"
+#include "widgets/mainwindow.h"
+#include "widgets/managewidget.h"
+
+#include <QTextCodec>
+#include <QDebug>
+#include <QResource>
+#include <QFontDatabase>
+
+int main(int argc, char *argv[])
+{
+    setlocale(LC_ALL,"Russian");
+    QApplication a(argc, argv);
+
+    qDebug() << "Checking if there's another instance of Legacy";
+
+    QLockFile lockFile(QDir::temp().absoluteFilePath("rulotro.lock"));
+    if(!lockFile.tryLock(1)){
+        QMessageBox msgBox;
+        msgBox.setIcon(QMessageBox::Warning);
+        msgBox.setText("Приложение уже запущено.\nРазрешено запускать только один экземпляр приложения.");
+        msgBox.exec();
+        return 1;
+    }
+
+    qDebug() << "Registering resources";
+    QResource::registerResource(QApplication::applicationDirPath() + "/data01.gtr");
+    QResource::registerResource(QApplication::applicationDirPath() + "/data02.gtr");
+
+    QFontDatabase::addApplicationFont(":/assets/fonts/trajan.ttf");
+    QFontDatabase::addApplicationFont(":/assets/fonts/viking.ttf");
+    QFontDatabase::addApplicationFont(":/assets/fonts/title.ttf");
+
+    qDebug() << "Starting main frame initialisation...";
+
+    MainWindow* main_window = new MainWindow(nullptr);
+    main_window->setAttribute(Qt::WA_DeleteOnClose);
+
+    qDebug() << "Finished initialisation, starting application...";
+    return a.exec();
+}

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

@@ -0,0 +1,75 @@
+#include "downloader.h"
+#include <QEventLoop>
+#include <QApplication>
+#include <QDebug>
+
+Downloader::Downloader(QObject *parent) :QObject(parent), busy(false)
+{
+    connect(&m_WebCtrl, SIGNAL(finished(QNetworkReply*)), this, SLOT(onDownloadFinished(QNetworkReply*)));
+}
+
+Downloader::~Downloader() {
+}
+
+QUrl Downloader::getUrl()
+{
+    return url;
+}
+
+void Downloader::setUrl(const QUrl &_url)
+{
+    url = _url;
+}
+
+void Downloader::waitForDownloaded()
+{
+    QEventLoop loop;
+    connect(this, &Downloader::downloadFinished, &loop, &QEventLoop::quit);
+    loop.exec();
+}
+
+void Downloader::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, &Downloader::onReadyRead);
+    connect(m_CurrentReply, &QNetworkReply::downloadProgress, this, &Downloader::progressChanged);
+}
+
+void Downloader::updateDownloadSpeedLimit(int bytes_per_sec)
+{
+    download_speed_limit = bytes_per_sec;
+    if (m_CurrentReply)
+        m_CurrentReply->setReadBufferSize(bytes_per_sec);
+}
+
+void Downloader::stop()
+{
+    m_CurrentReply->abort();
+    busy = false;
+}
+
+void Downloader::onDownloadFinished(QNetworkReply*) {
+    if (m_CurrentReply)
+        m_CurrentReply->deleteLater();
+
+    busy = false;
+    emit downloadFinished();
+}
+
+void Downloader::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 Downloader : public QObject
+{
+    Q_OBJECT
+
+public:
+    explicit Downloader(QObject *parent = 0);
+    virtual ~Downloader();
+
+    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

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


+ 0 - 0
include/filesystem.h → src/Legacy-advanced/models/filesystem.h


+ 507 - 0
src/Legacy-advanced/models/lotromanager.cpp

@@ -0,0 +1,507 @@
+#include "lotromanager.h"
+#include "filesystem.h"
+#include "LotroDat/Subfiles/TextSubFile.h"
+
+#include <QtConcurrent/QtConcurrent>
+#include <QFontDatabase>
+#include <QMessageBox>
+
+#include <string>
+#include <iostream>
+#include <fstream>
+
+Q_DECLARE_METATYPE(LOTRO_DAT::FILE_TYPE)
+Q_DECLARE_METATYPE(LOTRO_DAT::SubfileData)
+
+LotroManager::LotroManager(QSettings* app_settings_, QObject *parent) :
+    QObject(parent), app_settings(app_settings_) {
+
+    qRegisterMetaType<LOTRO_DAT::FILE_TYPE>();
+    qRegisterMetaType<LOTRO_DAT::SubfileData>();
+}
+
+void LotroManager::initialiseDatFile(QString file_path) {
+    emit processStarted("initialiseDatFile", {file_path});
+
+    qDebug() << "Initialising file " << file_path;
+
+    if (!FileSystem::fileExists(file_path)) {
+        emit caughtError(QString("initialiseDatFile"), {QString("Ошибка инициализации"), QString("Файл " + file_path + " несуществует! Невозможно инициализировать файл ресурсов.")});
+        emit processFinished("initialiseDatFile", {QString("Error"), file_path});
+        return;
+    }
+
+    file.Initialise((file_path).toStdString(), 0);
+    emit processFinished("initialiseDatFile", {QString("Success"), file_path});
+}
+
+void LotroManager::deinitialiseDatFile()
+{
+    emit processStarted("deintialiseDatFile", {});
+    qDebug() << "Deinitialising file...";
+    file.Deinitialize();
+    emit processFinished("deinitialiseDatFile", {});
+}
+
+void LotroManager::changeLocale() {
+    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", {old_locale_name, new_locale_name});
+
+
+    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});
+    }
+}
+
+void LotroManager::getLocaleFileContents(long long file_id, int locale) {
+    emit processStarted("getLocaleFileContents", {file_id, locale});
+
+    auto getfile_op = file.GetLocaleManager().GetLocaleFile(file_id, (LOTRO_DAT::DatLocaleManager::LOCALE)locale);
+    if (!getfile_op.result) {
+        emit caughtError("getLocaleFileContents", {"Файл не найден!", QString("Не удаётся найти файл с id ") + QString::number(file_id)});
+        emit processFinished("getLocaleFileContents", {"Error"});
+        return;
+    }
+
+    LOTRO_DAT::SubFile subfile = getfile_op.value;
+
+    auto getrealfile_op = file.GetFileSystem().GetFile(file_id);
+    if (!getfile_op.result) {
+        emit caughtError("getLocaleFileContents", {"Файл не найден!", QString("Не удаётся найти в словаре файл с id ") + QString::number(file_id)});
+        emit processFinished("getLocaleFileContents", {"Error"});
+        return;
+    }
+
+    if (getrealfile_op.value->FileType() != LOTRO_DAT::TEXT) {
+        emit caughtError("getLocaleFileContents", {"Некорректный формат!", QString("Получение данных локали доступно только для текстовых файлов!")});
+        emit processFinished("getLocaleFileContents", {"Error"});
+        return;
+    }
+
+    LOTRO_DAT::TextSubFile text_subfile(subfile);
+
+    auto getfiledata_op = file.GetFileSystem().GetFileData(subfile, 8);
+
+    if (getfile_op.result == LOTRO_DAT::ERROR) {
+        emit caughtError("getLocaleFileContents", {"Ошибка извлечения!", QString("Обнаружены некорректные данные файла в словаре! Файл ресурсов мог быть повреждён!\nid = ") + QString::number(file_id) + ", locale_id = " + QString::number(locale)});
+        emit processFinished("getLocaleFileContents", {"Error"});
+        return;
+    }
+
+    LOTRO_DAT::SubfileData result = text_subfile.PrepareForExport(getfiledata_op.value);
+    emit localeFileContentsReceived(locale, result);
+    emit processFinished("getLocaleFileContents", {"Success", file_id, locale});
+}
+
+void LotroManager::importFilesFromDatabase(QString database_path) {
+    emit processStarted("importFilesFromDatabase", {database_path});
+
+    if (!FileSystem::fileExists(database_path)) {
+        emit caughtError(QString("importFilesFromDatabase"), {QString("Ошибка импорта!"), QString("Файл " + database_path + " не существует! Невозможно инициализировать базу данных!")});
+        emit processFinished("importFilesFromDatabase", {QString("Error")});
+        return;
+    }
+
+    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 == LOTRO_DAT::SUCCESS) {
+        file.GetFileSystem().CommitDirectories();
+        file.GetLocaleManager().CommitLocales();
+        emit processFinished("importFilesFromDatabase", {QString("Success"), patch_operation.value});
+    } else {
+        emit processFinished("importFilesFromDatabase", {QString("Error"), 0});
+    }
+}
+
+void LotroManager::importFile(long long file_id, QString file_path) {
+    emit processStarted("importFile", {file_id, file_path});
+
+    if (!FileSystem::fileExists(file_path)) {
+        emit caughtError("importFile", {QString("Ошибка импорта!"), QString("Файл ") + file_path + QString(" не существует!")});
+        emit processFinished("importFile", {QString("Error")});
+        return;
+    }
+
+    LOTRO_DAT::SubfileData data;
+
+    data.options["fid"] = file_id;
+
+    auto getfile_op = file.GetFileSystem().GetFile(file_id);
+    if (getfile_op.result == LOTRO_DAT::ERROR) {
+        emit caughtError("importFile", {QString("Ошибка импорта!"), QString("Файл с id ") + QString::number(file_id) + QString(" не существует в ресурсах игры! Невозможно импортировать :/")});
+        emit processFinished("importFile", {QString("Error")});
+        return;
+    }
+
+    LOTRO_DAT::SubFile subfile = *(getfile_op.value);
+    data.options["ext"] = subfile.Extension();
+    data.options["cat"] = subfile.category;
+
+    if (subfile.FileType() == LOTRO_DAT::TEXT) {
+        std::basic_ifstream<char16_t> input_stream(file_path.toStdString(), std::ios::in);
+        if (!input_stream.is_open()) {
+            emit caughtError("importFile", {QString("Ошибка импорта!"), QString("Текстовый файл ") + file_path + QString(" не удаётся открыть!")});
+            emit processFinished("importFile", {QString("Error")});
+            return;
+        }
+
+        std::basic_stringstream<char16_t>  strStream;
+        strStream << input_stream.rdbuf();//read the file
+        data.text_data = strStream.str();//str holds the content of the file
+
+        input_stream.close();
+    } else {
+        QFile data_file(file_path);
+        data_file.open(QIODevice::ReadOnly);
+
+        if (!data_file.isOpen()) {
+            emit caughtError("importFile", {QString("Ошибка импорта!"), QString("Файл ") + file_path + QString(" не удаётся открыть!")});
+            emit processFinished("importFile", {QString("Error")});
+            return;
+        }
+
+        QByteArray contents = data_file.readAll();
+        data.binary_data = LOTRO_DAT::BinaryData(contents.constData(), contents.size());
+    }
+
+
+    auto patchfile_op = file.GetPatcher().PatchFile(data);
+
+    if (patchfile_op.result == LOTRO_DAT::SUCCESS) {
+        file.GetFileSystem().CommitDirectories();
+        file.GetLocaleManager().CommitLocales();
+        emit processFinished("importFile", {QString("Success")});
+    } else {
+        emit caughtError("importFile", {QString("Ошибка импорта!"), QString("Возникла внутренняя ошибка применения патча. Импорт завершился с ошибкой")});
+        emit processFinished("importFile", {QString("Error")});
+    }
+    return;
+}
+
+void LotroManager::importTextFragment(long long file_id, long long fragment_id,
+                               QString fragment_contents, QString arguments) {
+    emit processStarted("importTextFragment", {file_id, fragment_id});
+
+    if (fragment_contents.contains("DO_NOT_TOUCH-1!")) {
+        emit caughtError("importTextFragment", {"Ошибка формата!", QString("Текстовые данные содержат указатели на аргументы DO_NOT_TOUCH! с встроенным указанием порядка аргументов (как на сайте) Такого быть не должно! Пользуйтесь порядком перечисления аргументов внизу")});
+        emit processFinished("importTextFragment", {"Error"});
+        return;
+    }
+
+    auto getfile_op = file.GetFileSystem().GetFile(file_id);
+    if (!getfile_op.result) {
+        emit caughtError("importTextFragment", {"Файл не найден!", QString("Не удаётся найти в ресурсах файл с id ") + QString::number(file_id)});
+        emit processFinished("importTextFragment", {"Error"});
+        return;
+    }
+
+    auto subfile = getfile_op.value;
+
+    auto getfiledata_op = file.GetFileSystem().GetFileData(*subfile, 8);
+
+    if (getfile_op.result == LOTRO_DAT::ERROR) {
+        emit caughtError("importTextFragment", {"Ошибка импорта!", QString("Обнаружены некорректные данные файла в словаре! Файл ресурсов мог быть повреждён!\nid = ") + QString::number(file_id)});
+        emit processFinished("importTextFragment", {"Error"});
+        return;
+    }
+
+    LOTRO_DAT::SubfileData data = subfile->PrepareForExport(getfiledata_op.value);
+    if (data.Empty()) {
+        emit caughtError("importTextFragment", {"Ошибка импорта!", QString("Не удалось подготовить файл к изменению фрагмента!\nid = ") + QString::number(file_id)});
+        emit processFinished("importTextFragment", {"Error"});
+        return;
+    }
+
+    unsigned beginning = data.text_data.find(QString::number(fragment_id).toStdU16String(), 0);
+    if (beginning == std::u16string::npos) {
+        emit caughtError("importTextFragment", {"Ошибка импорта!", QString("Не удалось найти фрагмент в файле!\nid = ") + QString::number(file_id) + "\nfragment_id = " + QString::number(fragment_id)});
+        emit processFinished("importTextFragment", {"Error"});
+        return;
+    }
+
+    unsigned ending = data.text_data.find(QString("|||").toStdU16String(), beginning);
+
+    QString new_fragment = QString::number(fragment_id) + ":::" + arguments + ":::" + fragment_contents;
+    std::u16string new_text =  data.text_data.substr(0, beginning) + new_fragment.toStdU16String() + data.text_data.substr(ending);
+    data.text_data = new_text;
+
+    auto patchfile_op = file.GetPatcher().PatchFile(data);
+
+    if (patchfile_op.result == LOTRO_DAT::SUCCESS) {
+        file.GetFileSystem().CommitDirectories();
+        file.GetLocaleManager().CommitLocales();
+        emit processFinished("importTextFragment", {QString("Success")});
+    } else {
+        emit caughtError("importTextFragment", {QString("Ошибка импорта!"), QString("Возникла внутренняя ошибка применения патча. Импорт завершился с ошибкой")});
+        emit processFinished("importTextFragment", {QString("Error")});
+    }
+}
+
+void LotroManager::getTextFragment(long long file_id, long long fragment_id) {
+    emit processStarted("getTextFragment", {file_id, fragment_id});
+
+    auto getfile_op = file.GetFileSystem().GetFile(file_id);
+    if (!getfile_op.result) {
+        emit caughtError("getTextFragment", {"Файл не найден!", QString("Не удаётся найти в ресурсах файл с id ") + QString::number(file_id)});
+        emit processFinished("getTextFragment", {"Error"});
+        return;
+    }
+
+    auto subfile = getfile_op.value;
+
+    auto getfiledata_op = file.GetFileSystem().GetFileData(*subfile, 8);
+
+    if (getfile_op.result == LOTRO_DAT::ERROR) {
+        emit caughtError("getTextFragment", {"Ошибка импорта!", QString("Обнаружены некорректные данные файла в словаре! Файл ресурсов мог быть повреждён!\nid = ") + QString::number(file_id)});
+        emit processFinished("getTextFragment", {"Error"});
+        return;
+    }
+
+    LOTRO_DAT::SubfileData data = subfile->PrepareForExport(getfiledata_op.value);
+    if (data.Empty()) {
+        emit caughtError("getTextFragment", {"Ошибка импорта!", QString("Не удалось подготовить файл к изменению фрагмента!\nid = ") + QString::number(file_id)});
+        emit processFinished("getTextFragment", {"Error"});
+        return;
+    }
+
+    unsigned beginning = data.text_data.find(QString::number(fragment_id).toStdU16String(), 0);
+    if (beginning == std::u16string::npos) {
+        emit caughtError("getTextFragment", {"Ошибка импорта!", QString("Не удалось найти фрагмент в файле!\nid = ") + QString::number(file_id) + "\nfragment_id = " + QString::number(fragment_id)});
+        emit processFinished("getTextFragment", {"Error"});
+        return;
+    }
+
+    unsigned ending = data.text_data.find(QString("|||").toStdU16String(), beginning);
+
+    unsigned size = std::u16string::npos;
+
+    if (ending != std::u16string::npos)
+        size = ending - beginning;
+
+    std::u16string str = data.text_data.substr(beginning, size);
+
+    QStringList splitted_fragment = QString::fromStdU16String(str).split(":::");
+    if (splitted_fragment.size() != 3) {
+        emit caughtError("getTextFragment", {"Ошибка импорта!", QString("Получены некорректные данные фрагмента!\nДанные:") + QString::fromStdU16String(str)});
+        emit processFinished("getTextFragment", {"Error"});
+        return;
+    }
+
+    emit textFragmentReceived(splitted_fragment.at(1), splitted_fragment.at(2));
+    emit processFinished("getTextFragment", {"Success"});
+}
+
+void LotroManager::createCoreStatusFile(QString output_filename) {
+    emit processStarted("createCoreStatusFile", {output_filename});
+    auto gatherinfo_op = file.GatherInformation(output_filename.toStdString());
+
+    if (gatherinfo_op.result == LOTRO_DAT::SUCCESS) {
+        emit processFinished("createCoreStatusFile", {"Success", output_filename});
+    } else {
+        emit caughtError("createCoreStatusFile", {"Ошибка сбора информации!", QString("Не удаётся создать файл информации ядра")});
+        emit processFinished("createCoreStatusFile", {"Error", output_filename});
+    }
+}
+
+void LotroManager::extractSingleFile(QString output_filename, long long file_id) {
+    emit processStarted("extractSingleFile", {output_filename, file_id});
+    auto extractfile_op = file.GetExporter().ExtractFileById(file_id, output_filename.toStdString());
+    if (extractfile_op.result == LOTRO_DAT::SUCCESS) {
+        emit processFinished("extractSingleFile", {"Success", output_filename, file_id});
+    } else {
+        emit caughtError("extractSingleFile", {"Ошибка экспорта!", QString("Не удаётся экспортировать файл " + QString::number(file_id) + " в файл " + output_filename)});
+        emit processFinished("extractSingleFile", {"Error", output_filename});
+    }
+}
+
+void LotroManager::extractSingleFileToDatabase(QString database_path, long long file_id) {
+    emit processStarted("extractSingleFileToDatabase", {database_path, file_id});
+    LOTRO_DAT::Database db;
+    if (!db.InitDatabase(database_path.toStdString())) {
+        emit caughtError("extractSingleFileToDatabase", {"Ошибка экспорта!", QString("Не удаётся создать/открыть базу данных " + database_path)});
+        emit processFinished("extractSingleFileToDatabase", {"Error", database_path});
+        return;
+    }
+
+    auto extractfile_op = file.GetExporter().ExtractFileById(file_id, &db);
+
+    if (extractfile_op.result == LOTRO_DAT::SUCCESS) {
+        emit processFinished("extractSingleFileToDatabase", {"Success", database_path, file_id});
+    } else {
+        emit caughtError("extractSingleFileToDatabase", {"Ошибка экспорта!", QString("Не удаётся экспортировать файл " + QString::number(file_id) + " в базу данных " + database_path)});
+        emit processFinished("extractSingleFileToDatabase", {"Error", database_path});
+    }
+}
+
+void LotroManager::extractGrouppedFiles(QString output_foldername, LOTRO_DAT::FILE_TYPE type) {
+    emit processStarted("extractGrouppedFiles", {output_foldername, type});
+    auto extractfile_op = file.GetExporter().ExtractAllFilesByType(type, output_foldername.toStdString());
+    if (extractfile_op.result == LOTRO_DAT::SUCCESS) {
+        emit processFinished("extractGrouppedFiles", {"Success", output_foldername, type, extractfile_op.value});
+    } else {
+        emit caughtError("extractGrouppedFiles", {"Ошибка экспорта!", QString("Не удаётся экспортировать файлы с типом " + QString::number(type) + " в папку " + output_foldername)});
+        emit processFinished("extractGrouppedFiles", {"Error", output_foldername, type, extractfile_op.value});
+    }
+}
+
+void LotroManager::extractGrouppedFilesToDatabase(QString database_path, LOTRO_DAT::FILE_TYPE type) {
+    emit processStarted(QString("extractGrouppedFilesToDatabase"), {database_path, type});
+    LOTRO_DAT::Database db;
+    if (!db.InitDatabase(database_path.toStdString())) {
+        emit caughtError("extractGrouppedFilesToDatabase", {"Ошибка экспорта!", QString("Не удаётся создать/открыть базу данных " + database_path)});
+        emit processFinished("extractGrouppedFilesToDatabase", {"Error", database_path});
+        return;
+    }
+
+    auto extractfile_op = file.GetExporter().ExtractAllFilesByType(type, &db);
+    if (extractfile_op.result == LOTRO_DAT::SUCCESS) {
+        emit processFinished("extractGrouppedFilesToDatabase", {"Success", database_path, type, extractfile_op.value});
+    } else {
+        emit caughtError("extractGrouppedFilesToDatabase", {"Ошибка экспорта!", QString("Не удаётся экспортировать файлы с типом " + QString::number(type) + " в базу данных " + database_path)});
+        emit processFinished("extractGrouppedFilesToDatabase", {"Error", database_path, extractfile_op.value});
+    }
+}
+
+void LotroManager::getUnactiveCategories() {
+    emit processStarted("getUnactiveCategories", {});
+
+    const std::set<long long>& categories = file.GetLocaleManager().GetInactiveCategories();
+
+    QStringList result;
+    for (long long category : categories) {
+        result << QString::number(category);
+    }
+
+    emit unactiveCategoriesReceived(result);
+    emit processFinished("getUnactiveCategories", {"Success"});
+}
+
+void LotroManager::startGame() {
+    emit processStarted("startGame", {});
+
+    QStringList args;
+    args << "-skiprawdownload" << "-nosplash";
+    if (file.GetLocaleManager().GetCurrentLocale() == LOTRO_DAT::DatLocaleManager::PATCHED)
+        args << "-disablePatch";
+
+    file.Deinitialize();
+
+    if(FileSystem::fileExists(QApplication::applicationDirPath() + "/user.ini")){
+        QSettings login(QApplication::applicationDirPath() + "/user.ini", QSettings::IniFormat );
+        login.beginGroup("Account");
+        QString username = login.value("username", "").toString();
+        QString password = login.value("password", "").toString();
+        login.endGroup();
+        args << "-username" << username << "-password" << password;
+    }
+
+    qDebug() << "Запускаем игру со следующими аргументами: " << args;
+
+    QFile f(app_settings->value("Local", "folder").toString() + "/LotroLauncher.exe");
+    QProcess process;
+
+    if (FileSystem::fileExists(f.fileName())) {
+        if(f.fileName().contains(" ")) f.setFileName("\"" + f.fileName() + "\"");
+        process.startDetached(f.fileName(), args);
+        process.waitForFinished(-1);
+        emit processFinished("startGame", {});
+    } else {
+        emit caughtError("startGame", {"Ошибка запуска игры!", QString("Не удалось найти файл LotroLauncher в папке: ") + app_settings->value("Local", "folder").toString()});
+        emit processFinished("startGame", {"Error"});
+    }
+}
+
+void LotroManager::getLocaleFileInfo(long long file_id, int locale) {
+    emit processStarted("getLocaleFileInfo", {file_id, locale});
+
+    auto getfile_op = file.GetLocaleManager().GetLocaleFile(file_id, (LOTRO_DAT::DatLocaleManager::LOCALE)locale);
+    if (!getfile_op.result) {
+        emit caughtError("getLocaleFileInfo", {"Файл не найден!", QString("Не удаётся найти в ресурсах файл с id ") + QString::number(file_id)});
+        emit processFinished("getLocaleFileInfo", {"Error"});
+        return;
+    }
+
+    LOTRO_DAT::SubFile subfile = getfile_op.value;
+
+    QString result = "Locale file info:\n "
+                     "dictionary_offset: " + QString::number(subfile.dictionary_offset()) + "\n"
+                     "unknown1: " + QString::number(subfile.unknown1()) + "\n"
+                     "file_id: " + QString::number(subfile.file_id()) + "\n"
+                     "file_offset: " + QString::number(subfile.file_offset()) + "\n"
+                     "file_size: " + QString::number(subfile.file_size()) + "\n"
+                     "timestamp: " + QString::number(subfile.timestamp()) + "\n"
+                     "version: " + QString::number(subfile.version()) + "\n"
+                     "block_size: " + QString::number(subfile.block_size()) + "\n"
+                     "unknown2: " + QString::number(subfile.file_id()) + "\n"
+                     "category: " + QString::number(subfile.category) + "\n";
+
+    emit localeFileInfoReceived(locale, result);
+    emit processFinished("getLocaleFileInfo", {"Success"});
+}
+
+void LotroManager::getFileInfo(long long file_id) {
+    emit processStarted(QString("getFileInfo"), {file_id});
+
+    auto getfile_op = file.GetFileSystem().GetFile(file_id);
+    if (!getfile_op.result) {
+        emit caughtError("getFileInfo", {"Файл не найден!", QString("Не удаётся найти файл с id ") + QString::number(file_id)});
+        emit processFinished("getFileInfo", {"Error"});
+        return;
+    }
+
+    LOTRO_DAT::SubFile subfile = *getfile_op.value;
+
+    QString result = "Locale file info:\n "
+                     "dictionary_offset: " + QString::number(subfile.dictionary_offset()) + "\n"
+                     "unknown1: " + QString::number(subfile.unknown1()) + "\n"
+                     "file_id: " + QString::number(subfile.file_id()) + "\n"
+                     "file_offset: " + QString::number(subfile.file_offset()) + "\n"
+                     "file_size: " + QString::number(subfile.file_size()) + "\n"
+                     "timestamp: " + QString::number(subfile.timestamp()) + "\n"
+                     "version: " + QString::number(subfile.version()) + "\n"
+                     "block_size: " + QString::number(subfile.block_size()) + "\n"
+                     "unknown2: " + QString::number(subfile.file_id()) + "\n";
+
+    emit fileInfoReceived(result);
+    emit processFinished("getFileInfo", {"Success"});
+}
+
+LOTRO_DAT::DatStatus *LotroManager::getStatusModule()
+{
+    return &file.GetStatusModule();
+}
+
+bool LotroManager::initialised() {
+    return file.Initialized();
+}
+
+int LotroManager::currentLocale() {
+    return file.GetLocaleManager().GetCurrentLocale();
+}
+
+bool LotroManager::notPatched() {
+    return file.GetStatusModule().CheckIfNotPatched();
+}

+ 77 - 0
src/Legacy-advanced/models/lotromanager.h

@@ -0,0 +1,77 @@
+#ifndef LEGACYAPP_H
+#define LEGACYAPP_H
+
+#include <QObject>
+#include <QSettings>
+#include <QApplication>
+
+#include <LotroDat/LotroDat.h>
+
+class LotroManager : public QObject
+{
+    Q_OBJECT
+
+public:
+    explicit LotroManager(QSettings* app_settings_, QObject *parent = nullptr);
+
+    bool initialised();
+
+    int currentLocale();
+
+    bool notPatched();
+
+public slots:
+    void initialiseDatFile(QString file_path);
+
+    void deinitialiseDatFile();
+
+    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();
+
+    void getLocaleFileInfo(long long file_id, int locale);
+
+    void getFileInfo(long long file_id);
+
+    LOTRO_DAT::DatStatus *getStatusModule();
+
+signals:
+    // general signals. First argument is process_name, second - processed values
+    void processStarted(QString, QVector<QVariant>);
+    void processFinished(QString, QVector<QVariant>);
+    void processUpdated(QString, QVector<QVariant>);
+    void caughtError(QString, QVector<QVariant>);
+
+    void textFragmentReceived(QString, QString);
+    void unactiveCategoriesReceived(QStringList);
+    void localeFileContentsReceived(int, LOTRO_DAT::SubfileData); // extention, contents
+    void localeFileInfoReceived(int, QString);
+    void fileInfoReceived(QString);
+private:
+    LOTRO_DAT::DatFile file;
+    QSettings* app_settings;
+};
+
+#endif // LEGACYAPP_H

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

@@ -0,0 +1,28 @@
+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\lotromanager.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\lotroprogresswidget.o
+./..\..\build\debug\Legacy-advanced\obj\legacy-advanced_plugin_import.o
+./..\..\build\debug\Legacy-advanced\obj\moc_downloader.o
+./..\..\build\debug\Legacy-advanced\obj\moc_filesystem.o
+./..\..\build\debug\Legacy-advanced\obj\moc_lotromanager.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_lotroprogresswidget.o
+);

Nem az összes módosított fájl került megjelenítésre, mert túl sok fájl változott