ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/s10k/Vago/bgImageWizard/bgimagepagefinal.h
Revision: 1093
Committed: Sat Dec 30 13:57:32 2017 UTC (7 years, 9 months ago) by s10k
Content type: text/x-chdr
File size: 1114 byte(s)
Log Message:
Vago 1.4

File Contents

# Content
1 #ifndef BGIMAGEPAGEFINAL_H
2 #define BGIMAGEPAGEFINAL_H
3
4 #include <QWizardPage>
5 #include <QImage>
6 #include <pugixml/pugixml.hpp>
7
8 #include "utilvago.h"
9 #include "converter.h"
10
11 namespace Ui {
12 class BGImagePageFinal;
13 }
14
15 class BGImagePageFinal : public QWizardPage
16 {
17 Q_OBJECT
18
19 public:
20 explicit BGImagePageFinal(QString appDir, QString bgImagesLocation, QWidget *parent = 0);
21 ~BGImagePageFinal();
22
23 private:
24 Ui::BGImagePageFinal *ui;
25 QString appDir;
26 QString bgImagesLocation;
27 Converter *myOniSplitConverter;
28 QStringList *oniSplitCommands;
29
30 void initializePage();
31 void startProcessing();
32
33 QVector<int> getSplitSizes(int imageSideSize);
34 QList<QString> splitIntoMultipleImages(QImage sourceImage, QString imageName, QString imageType);
35 QString createTxmbXmlFile(QList<QString> imagesSplitted, QString fileName, const QSize &imageSize, QString levelId);
36 void connectSlots();
37
38 private slots:
39 void openBGImagesFolder();
40 void catchOniSplitProcessingErrors(QString result, int numErrors);
41 };
42
43 #endif // BGIMAGEPAGEFINAL_H