-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmainwindow2.h
More file actions
52 lines (43 loc) · 1.14 KB
/
Copy pathmainwindow2.h
File metadata and controls
52 lines (43 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
#ifndef MAINWINDOW2_H
#define MAINWINDOW2_H
#include <QMainWindow>
#include <memory>
#include <QFileSystemWatcher>
#include "fileTrigram.h"
namespace Ui {
class mainwindow1;
}
class subFind : public QMainWindow {
Q_OBJECT
public:
explicit subFind(QWidget *parent = nullptr);
~subFind() override;
private slots:
void addToTreeUI(std::pair<QString, std::vector<std::pair<int, int>>> add);
void doFinishThings();
void updBar();
void changed(QString path);
void addFileTrigramsToFiles(fileTrigram add);
void finishThings();
void addToFSWatcher(QString name);
void increaseBar();
void set_max_index_bar(int max);
private:
void select_directory();
void startPreprocess();
void start_find();
void interruption();
void interruptionStart();
void change(QString path);
void interruptionTrig();
private:
std::unique_ptr<Ui::mainwindow1> ui;
QString curDir;
std::vector<fileTrigram> files;
QThread* thread = nullptr;
QThread* threadTrig = nullptr;
std::clock_t time;
QFileSystemWatcher *fsWatcher;
std::vector<QString> toChange;
};
#endif // MAINWINDOW2_H