-
Notifications
You must be signed in to change notification settings - Fork 4
/
fileinsight.h
68 lines (55 loc) · 1.54 KB
/
fileinsight.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
// Header file for FileInsight: this declares variables, functions, modules to depend on,
// etc.
#ifndef FILEINSIGHT_H
#define FILEINSIGHT_H
#include "fileinsightbackend.h"
#include "fileinsightsubdialog.h"
#include "libmagicbackend.h"
#include "tridbackend.h"
#include "qmimedatabasebackend.h"
#include <QDebug>
#include <QDragEnterEvent>
#include <QDropEvent>
#include <QFileDialog>
#include <QList>
#include <QMainWindow>
#include <QMessageBox>
#include <QMimeData>
#include <QUrl>
#include <QWidget>
#ifdef Q_OS_WIN
#include <windows.h>
#include <QtWinExtras>
#endif
namespace Ui {
class FileInsight;
}
class FileInsight : public QMainWindow
{
Q_OBJECT
public:
explicit FileInsight(QWidget *parent = nullptr);
~FileInsight();
void chooseFile();
void openFile(QString filename, bool starting = true);
FileInsightBackend* getBackend() const;
protected slots:
void on_actionQuit_triggered();
void on_selectFileButton_clicked();
void on_actionSelect_triggered();
void on_reloadButton_clicked();
void on_tabWidget_tabCloseRequested(int index);
void on_addTabButton_clicked();
void on_actionAbout_triggered();
void on_actionAbout_Qt_triggered();
FileInsightSubdialog* getCurrentTab();
FileInsightSubdialog* newTab(bool starting = false);
private:
Ui::FileInsight *ui;
FileInsightBackend* magicbackend;
FileInsightBackend* tridbackend;
FileInsightBackend* qmimebackend;
void dragEnterEvent(QDragEnterEvent *event);
void dropEvent(QDropEvent *event);
};
#endif // FILEINSIGHT_H