| 10 |  | #include "bgimagewizard.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 11 |  | #include "converter.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 12 |  | #include "droptablewidget.h" | 
 
 
 
 
 
 
 
 | 13 | + | #include "xmltoolsinterface.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 14 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 15 |  | #include <QMainWindow> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 16 |  | #include <QMessageBox> | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 36 |  | #endif | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 37 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 38 |  | #include "libs/pugixml/pugixml.hpp" | 
 
 
 
 
 
 
 
 
 | 38 | – | //#include <QDebug> | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 39 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 40 |  | namespace Ui { | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 41 |  | class MainWindow; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 198 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 199 |  | void on_actionNew_Project_triggered(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 200 |  |  | 
 
 
 
 
 
 
 
 | 201 | + | void on_tbXmlToolsInterface_clicked(); | 
 
 
 
 
 
 
 
 | 202 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 203 |  | private: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 204 |  | Ui::MainWindow *ui; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 205 |  | Logger *myLogger; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 216 |  | QLabel *itemsLoaded; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 217 |  | QProgressBar *myBar; //Progress Bar | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 218 |  | QHash<QString, QString> commandMap; //Map the commands for fast retreive | 
 
 
 
 
 
 
 
 
 
 
 | 219 | < | QStringList *listToProccess; //items to proccess | 
 
 
 
 
 
 
 
 
 | 219 | > | QStringList listToProccess; //items to proccess | 
 
 
 
 
 
 
 
 
 
 
 | 220 |  | Converter *myConverter = nullptr; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 221 |  | QSettings *vagoSettings; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 222 |  | static const QString VagoSettingsName; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 230 |  | bool unsavedChangesExist = false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 231 |  | // Indicates that the application is fully loaded which includes painting the main window | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 232 |  | bool applicationIsFullyLoaded = false; | 
 
 
 
 
 
 
 
 | 233 | + | // This variable indicates that we have a project being loaded. It should only be set by MainWindow thread. | 
 
 
 
 
 
 
 
 | 234 | + | // It allow us to ignore certain gui slots like when checking checkbox that ask the user for input | 
 
 
 
 
 
 
 
 | 235 | + | bool projectIsLoading = false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 236 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 237 |  | // anonymous enum | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 238 |  | enum {XMLTabIndex, TexturesTabIndex, CharactersTabIndex, ObjectsTabIndex, LevelsTabIndex, MiscTabIndex}; |