-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain_window.h
More file actions
40 lines (33 loc) · 934 Bytes
/
main_window.h
File metadata and controls
40 lines (33 loc) · 934 Bytes
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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <searcher.h>
#include <ui_main_window.h>
#include <QCloseEvent>
namespace Ui {
class MainWindow;
}
class main_window : public QMainWindow {
Q_OBJECT
QThread searchThread;
public:
explicit main_window(QWidget* parent = nullptr);
~main_window();
public slots:
void print_duplicates(QVector<QString> const &duplicates);
void select_directory();
void show_about_dialog();
void delete_items();
void open_file(QTreeWidgetItem*, int);
void finish_searching();
void stop_searching();
void set_progress(qint8 const &percent);
void show_message(QString const &message);
signals:
void find_duplicates(QString const &dir);
private:
void closeEvent(QCloseEvent* bar);
std::unique_ptr<Ui::MainWindow> ui;
Searcher* searcher = nullptr;
QString dir;
};
#endif // MAINWINDOW_H