| 7 |  | #include "about.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 8 |  | #include "packagewizard.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 9 |  | #include "soundwizard.h" | 
 
 
 
 
 
 
 
 | 10 | + | #include "bgimagewizard.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 11 |  | #include "converter.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 12 |  | #include "droptablewidget.h" | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 13 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 54 |  | void closeEvent(QCloseEvent *event); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 55 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 56 |  | private slots: | 
 
 
 
 
 
 
 
 | 57 | + | void applicationWasLoaded(); | 
 
 
 
 
 
 
 
 | 58 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 59 |  | void on_actionExit_triggered(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 60 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 61 |  | void on_actionAbout_triggered(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 194 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 195 |  | void on_actionProject5_triggered(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 196 |  |  | 
 
 
 
 
 
 
 
 | 197 | + | void on_actionBackground_Image_Wizard_triggered(); | 
 
 
 
 
 
 
 
 | 198 | + |  | 
 
 
 
 
 
 
 
 | 199 | + | void on_actionNew_Project_triggered(); | 
 
 
 
 
 
 
 
 | 200 | + |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 201 |  | private: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 202 |  | Ui::MainWindow *ui; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 203 |  | Logger *myLogger; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 215 |  | QProgressBar *myBar; //Progress Bar | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 216 |  | QHash<QString, QString> commandMap; //Map the commands for fast retreive | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 217 |  | QStringList *listToProccess; //items to proccess | 
 
 
 
 
 
 
 
 
 
 
 | 218 | < | Converter *myConverter; | 
 
 
 
 
 
 
 
 
 | 218 | > | Converter *myConverter = nullptr; | 
 
 
 
 
 
 
 
 
 
 
 | 219 |  | QSettings *vagoSettings; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 220 |  | static const QString VagoSettingsName; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 221 |  | static constexpr int recentProjectsMaxSize=5; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 225 |  | QWinTaskbarProgress *win7TaskBarProgress; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 226 |  | QWinTaskbarButton *win7TaskBarButton; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 227 |  | #endif | 
 
 
 
 
 
 
 
 | 228 | + | bool unsavedChangesExist = false; | 
 
 
 
 
 
 
 
 | 229 | + | // Indicates that the application is fully loaded which includes painting the main window | 
 
 
 
 
 
 
 
 | 230 | + | bool applicationIsFullyLoaded = false; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 231 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 232 |  | // anonymous enum | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 233 |  | enum {XMLTabIndex, TexturesTabIndex, CharactersTabIndex, ObjectsTabIndex, LevelsTabIndex, MiscTabIndex}; | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 256 |  | void addNewRecentProject(const QString &filePath); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 257 |  | void reloadRecentProjectsMenu(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 258 |  | void showEvent(QShowEvent *e); | 
 
 
 
 
 
 
 
 | 259 | + | void rowsWereChangedInDropTableWidget(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 260 |  | QString getFileOutputFolder(QString fromTo, QString myOutputFolder=""); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 261 |  | QString fileParsingXML(QString tabTitle, QString myOutputFolder, QString from, QString to , QString file); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 262 |  | QString fileParsingTextures(QString tabTitle, QString myOutputFolder, QString from, QString to , QString file); | 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 | 274 |  | DropTableWidget *getCurrentTableWidget(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 275 |  | DropTableWidget* getTableWidgetByTabName(const QString &tabName); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 276 |  | QList<DropTableWidget*> getAllTableWidgets(); | 
 
 
 
 
 
 
 
 | 277 | + | QMessageBox::StandardButton askToSaveCurrentProject(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 278 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 279 |  | signals: | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 280 |  | void terminateCurrProcess(); | 
 
 
 
 
 
 
 
 | 281 | + | void signalAppIsLoaded(); | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 282 |  | }; | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 283 |  |  | 
 
 
 
 
 
 
 
 
 
 
 
 
 | 284 |  | #endif // MAINWINDOW_H |