12 |
|
#include "converter.h" |
13 |
|
#include "xmltoolsinterface.h" |
14 |
|
#include "wizardfactory.h" |
15 |
+ |
#include "xmlParsers/projectfilevago.h" |
16 |
|
|
17 |
|
#include <QMainWindow> |
18 |
|
#include <QMessageBox> |
33 |
|
#include <QScriptEngine> |
34 |
|
#include <QScriptValueIterator> |
35 |
|
#include <droptablewidget.h> |
36 |
< |
#include <pugixml.hpp> |
36 |
> |
#include <pugixml/pugixml.hpp> |
37 |
|
#ifdef Q_OS_WIN |
38 |
|
#include <QWinTaskbarProgress> |
39 |
|
#include <QWinTaskbarButton> |
170 |
|
|
171 |
|
void on_cbWithTRBS_ONCC_toggled(bool checked); |
172 |
|
|
172 |
– |
void on_cbWithAnimation_toggled(bool checked); |
173 |
– |
|
173 |
|
void on_cbFromXML_currentIndexChanged(const QString &arg1); |
174 |
|
|
175 |
|
void on_cbSpecificFilesLevels_toggled(bool checked); |
202 |
|
|
203 |
|
void on_actionWindow_Messages_Wizard_triggered(); |
204 |
|
|
205 |
+ |
void on_cbWithAnimation_toggled(bool checked); |
206 |
+ |
|
207 |
|
private: |
208 |
|
Ui::MainWindow *ui; |
208 |
– |
Logger *myLogger; |
209 |
|
QString workspaceLocation; //Workspace location |
210 |
|
QString workspaceWizardsLocation; //Workspace wizard location |
211 |
|
QString outputFolder; //Output folder |
240 |
|
// anonymous enum |
241 |
|
enum {XMLTabIndex, TexturesTabIndex, CharactersTabIndex, ObjectsTabIndex, LevelsTabIndex, MiscTabIndex}; |
242 |
|
|
243 |
+ |
private: |
244 |
|
void connectSlots(); |
244 |
– |
void showErrStatusMessage(QString message); |
245 |
– |
void showSuccessStatusMessage(QString message); |
245 |
|
void mapCommands(); |
246 |
|
void addRowTable(DropTableWidget *myTable, QString file, QString fromTo, QString command, bool isToDisabled=false); |
247 |
|
void clearTableContents(DropTableWidget *myTable); |
254 |
|
void changeItemsOutput(DropTableWidget* myTable, QList<int> rows, QString newOutput); |
255 |
|
void setConverterButtonsSize(); |
256 |
|
void saveProjectState(const QString &filePath); |
258 |
– |
void saveProjectWidget(pugi::xml_node &rootNode, DropTableWidget* table); |
257 |
|
void loadProjectState(const QString &filePath); |
258 |
|
void setVagoWindowTitle(); |
261 |
– |
void loadProjectWidget(pugi::xml_document &doc, DropTableWidget* table); |
259 |
|
void saveRecentProjects(); |
260 |
|
void loadRecentProjects(); |
261 |
|
void addNewRecentProject(const QString &filePath); |
280 |
|
DropTableWidget* getTableWidgetByTabName(const QString &tabName); |
281 |
|
QList<DropTableWidget*> getAllTableWidgets(); |
282 |
|
QMessageBox::StandardButton askToSaveCurrentProject(); |
283 |
+ |
ProjectFileVago::ProjectData fetchCurrentProjectData(); |
284 |
|
|
285 |
|
signals: |
286 |
|
void terminateCurrProcess(); |