1 |
#ifndef WMFINALPAGE_H |
2 |
#define WMFINALPAGE_H |
3 |
|
4 |
#include <QWizardPage> |
5 |
#include <QDesktopServices> |
6 |
#include <QUrl> |
7 |
#include <droptablewidget.h> |
8 |
#include <pugixml.hpp> |
9 |
|
10 |
#include "logger.h" |
11 |
#include "xmlprocessor.h" |
12 |
#include "converter.h" |
13 |
#include "wmpage.h" |
14 |
#include "wmsetuppage.h" |
15 |
|
16 |
namespace Ui { |
17 |
class wmfinalpage; |
18 |
} |
19 |
|
20 |
class WmFinalPage : public QWizardPage |
21 |
{ |
22 |
Q_OBJECT |
23 |
|
24 |
public: |
25 |
explicit WmFinalPage(QString AppDir, QString wmLocation, Logger *myLogger, QList<std::shared_ptr<WmPage> > &pages, QWidget *parent = 0); |
26 |
~WmFinalPage(); |
27 |
|
28 |
private: |
29 |
QString wmLocation; |
30 |
Ui::wmfinalpage *ui; |
31 |
Logger *myLogger; |
32 |
Converter *myConverter; |
33 |
QStringList *oniSplitCommands; |
34 |
// We use shared_ptr because we need the signal and slot mechanism in WmPage, |
35 |
// which require inheritance from QObject, which doesn't support copy constructors |
36 |
QList<std::shared_ptr<WmPage>> &pages; |
37 |
|
38 |
private: |
39 |
void initializePage(); |
40 |
void startProcessing(); |
41 |
void connectSlots(); |
42 |
|
43 |
private slots: |
44 |
void openSoundsFolder(); |
45 |
void catchOSplitProcessingErrors(QString result, int numErrors); |
46 |
}; |
47 |
|
48 |
#endif // WMFINALPAGE_H |