-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
93 lines (81 loc) · 2.27 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QFileInfo>
#include <QWidget>
#include "settings.h"
#include "srcdiritemmodel.h"
#include "threadcopy.h"
namespace Ui {
class MainWindow;
}
class MainWindow : public QWidget
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
private:
enum STATE {READY, SCANING, COPYING};
QString additionalPath;
QString newSrcDir;
int prevTime;
QModelIndex selectedIndexSrcList;
Settings *settings;
SrcDirItemModel *srcDirModel;
int state;
int time;
QTimer *timer;
ThreadCopy *threadCopy;
Ui::MainWindow *ui;
void cancelScan();
QString getLastSelectedIgnore();
QString listWidgetToSting(QListWidget *lw);
void loadListWidgetFromString(QListWidget *lw, QString str);
void loadSettings();
void printFullOutPath(QString addPath);
void refreshParentDirLevel(int level);
void startCopy();
bool selectSrcDir();
void setTimeEstimate(int sec);
void stop();
public slots:
void addDirIgnoreList();
void addFileIgnoreList();
void addFilterExt();
void addSrcDir();
void addStringIgnoreList();
void changeSettings();
void delFilterExtList();
void delIgnoreList();
void delSrcDirList();
void displayFileQueue(int count);
void doneCoping();
void enableFileCount(bool enable);
void enableFreeSpace(bool enable);
void enableLimit(bool enable);
void enableMaxDst(bool enable);
void editIgnoreList();
void editSrcDirList();
void editSrcDirListLineEdit(QString path);
void log(QString msg);
void pressStartButton();
void timerTick();
void outDirChanged();
void saveSettings();
void scanFinished();
void setProgressBar(int val);
void selectFilterExtList();
void selectIngoreList();
void selectOutputDir();
void selectParentDirLevel(int level);
void selectSrcDirList(QModelIndex index);
void selectTab(int tabNum);
void setEnabledFilter(bool enable);
void setEnabledIgnore(bool enable);
void showQuestionMsg(QString question);
void runTimer();
void updateDiskFreeSpace();
signals:
void stopThread();
};
#endif // MAINWINDOW_H