-
Notifications
You must be signed in to change notification settings - Fork 1
/
swftohtml5.h
72 lines (54 loc) · 1.24 KB
/
swftohtml5.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef SWFTOHTML5_H
#define SWFTOHTML5_H
#include <QDialog>
#include <zlib.h>
#include <QProxyStyle>
#include <QSettings>
class QPalette;
class QString;
class QStringList;
class QLabel;
class QVBoxLayout;
class QPushButton;
class QJsonObject;
class QListWidget;
class QThread;
#define GZIP_WINDOWS_BIT 15 + 16
#define GZIP_CHUNK_SIZE 32 * 1024
class SwfToHtml5 : public QDialog
{
Q_OBJECT
public:
explicit SwfToHtml5(QWidget *parent = 0);
void parseJSON(QJsonObject);
bool gzipDecompress(QByteArray input, QByteArray &output);
void readsettings();
void writesettings();
void closeEvent(QCloseEvent *);
~SwfToHtml5();
public slots:
void loadFile();
void process();
private:
QSettings m_settings;
QString m_filesPath;
QStringList m_pathToFiles;
QString m_nameOfFile;
QString m_operationResult;
QLabel *m_pStatusLbl;
QLabel *m_pPathToFileLbl;
QVBoxLayout *m_pMainLayout;
QPushButton *m_pLoadFileBtn;
QPushButton *m_pCloseBtn;
QPushButton *m_pBeginConvertBtn;
QListWidget *m_filesLstWgt;
QThread *m_pThread;
};
class newStyle : public QProxyStyle
{
Q_OBJECT
public:
newStyle();
void polish(QPalette& pal)Q_DECL_OVERRIDE;
};
#endif // SWFTOHTML5_H