-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathpackmanagermainwindow.h
52 lines (40 loc) · 1.16 KB
/
packmanagermainwindow.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef PACKMANAGERMAINWINDOW_H
#define PACKMANAGERMAINWINDOW_H
#include "packfilemetadata.h"
#include "texturemerger.h"
#include "texturepacker.h"
#include "texturesplitter.h"
#include "textureunpacker.h"
#include <QMainWindow>
#include <QString>
#include <QTimer>
#include <QThread>
namespace Ui {
class PackManagerMainWindow;
}
namespace ProjectZomboidPackManager
{
class PackManagerMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit PackManagerMainWindow(QWidget *parent = 0);
~PackManagerMainWindow();
private:
Ui::PackManagerMainWindow *ui;
QString _fileName;
PackFileMetaData* _fileMetaData;
TextureUnpacker* _unPacker;
TextureSplitter* _splitter;
TextureMerger* _merger;
TexturePacker* _packer;
QThread* _thread;
void SetupAndRunTask(ThreadableTask* task, QDir& folder);
public slots:
void OnSelectFileButtonClicked();
void OnRunButtonClicked();
void OnThreadProcessingFinished();
void OnSendMessage(QString message);
};
};
#endif // PACKMANAGERMAINWINDOW_H