-
Notifications
You must be signed in to change notification settings - Fork 2
/
vpkcompare.h
54 lines (42 loc) · 1.25 KB
/
vpkcompare.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
#ifndef BSPZIPGUI_H
#define BSPZIPGUI_H
#include <QDialog>
#include <QDir>
#include <QProcess>
#include <QString>
#include "ui_vpkcompare.h"
struct VpkFileInfo
{
QVector<QString> pathes; // file path
QVector<QString> crcs; // file crc
QString vpkfilepath; // full path to vpk file
};
class VpkCompare : public QMainWindow
{
Q_OBJECT
public:
VpkCompare(QWidget *parent = 0, Qt::WindowFlags flags = 0);
~VpkCompare();
public slots:
void on_browse_vpkexe_clicked();
void on_addVpkButton_clicked();
void on_removeVpkButton_clicked();
void on_compare_clicked();
void on_ignore_clicked();
// void on_embed_clicked();
// void on_extract_clicked();
void onVpkExeProcessFinished(int exitCode, QProcess::ExitStatus exitStatus );
private:
void log(const QString &logstr);
// void getDataFolderFiles(const QDir &dir, QStringList *file_list);
bool filesExist(const QStringList &files);
void runVpkExe();
void compare(const VpkFileInfo &a, const VpkFileInfo &b);
// QStringList data_folder_files_;
QProcess *vpkexe_process_;
Ui::VpkCompareClass ui;
int vpkfile_number_;
QVector<VpkFileInfo> vpk_files_info_;
QStringList ignore_list_;
};
#endif // BSPZIPGUI_H