source: s10k/Vago/bgImageWizard/bgimagepagefinal.h

Last change on this file was 1093, checked in by s10k, 7 years ago

Vago 1.4

File size: 1.1 KB
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
11namespace Ui {
12class BGImagePageFinal;
13}
14
15class BGImagePageFinal : public QWizardPage
16{
17 Q_OBJECT
18
19public:
20 explicit BGImagePageFinal(QString appDir, QString bgImagesLocation, QWidget *parent = 0);
21 ~BGImagePageFinal();
22
23private:
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
38private 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.