Line | |
---|
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
|
---|
Note:
See
TracBrowser
for help on using the repository browser.