-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainWindow.h
More file actions
54 lines (47 loc) · 1.14 KB
/
mainWindow.h
File metadata and controls
54 lines (47 loc) · 1.14 KB
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 MAINWINDOW_H
#define MAINWINDOW_H
#include <QApplication>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QFileDialog>
#include <QString>
#include <QMessageBox>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QListWidget>
#include <QCheckBox>
#include <QDirIterator>
#include <QStringList>
#include <QHBoxLayout>
#include <QDialog>
#include <QTextBrowser>
#include <QByteArray>
#include <QFile>
#include <QCryptographicHash>
class MainWindow : public QWidget
{
Q_OBJECT
public:
MainWindow();
public slots:
void openFolderDialog();
void generateHash();
void updateList();
private:
QString easyHash(QString &fileName, QCryptographicHash::Algorithm al);
QLabel *m_SelectPathText;
QLineEdit *m_SelectedPath;
QPushButton *m_button, *m_validate;
QString m_lastSelectedDirectory, t, h;
QCheckBox *m_checkSub;
QGridLayout *m_gridLayout;
QVBoxLayout *m_vboxLayout;
QHBoxLayout *m_confirm;
QListWidget *m_fileList;
QStringList fileList, listFilter;
QDialog *m_windowResult;
QTextBrowser *m_formattedResult;
QFile *currentFile;
};
#endif // MAINWINDOW_H