-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
77 lines (59 loc) · 1.49 KB
/
mainwindow.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
73
74
75
76
77
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QModelIndex>
#include <QMessageBox>
#include <vector>
#include <QProcess>
#include <QClipboard>
#include <QFileInfo>
#include <QFileDialog>
#include <stdio.h>
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0, int arg = 0, char* argv[] = 0);
~MainWindow();
void ShowDir(unsigned long long*,bool);
void ShowFile(int,bool);
void ShowBinary(int);
void Unpack(int,int);
void Pack(short*,short*);
void WriteFile(std::string,int);
private slots:
void on_Flist_clicked(const QModelIndex &index);
void on_Rg0_toggled(bool checked);
void on_Rg1_toggled(bool checked);
void on_CpModeA_toggled(bool checked);
void on_CpModeB_toggled(bool checked);
void on_actionSelect_Image_triggered();
void on_actionExit_triggered();
void on_pushButton_clicked();
void on_actionSave_View_triggered();
void on_actionCopy_File_triggered();
void on_actionSave_Edit_to_image_triggered();
private:
Ui::MainWindow *ui;
short bfr[256];
std::vector<unsigned char> Tmbf;
std::string DskImg;
std::string unix2dos_command;
int current_index;
unsigned char xtx[4];
int Adinfo;
int fbk[512];
int fsz[512];
std::string fname[512];
int Fspace;
int Dblk;
int Dofs;
int PtOfs;
QStringList fnames;
public:
int argc;
};
#endif // MAINWINDOW_H