-
Notifications
You must be signed in to change notification settings - Fork 351
/
Copy pathcleandialog.h
43 lines (32 loc) · 988 Bytes
/
cleandialog.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
#ifndef Header_Clean_Dialog
#define Header_Clean_Dialog
#include "latexdocument.h"
#include "mostQtHeaders.h"
namespace Ui {
class CleanDialog;
}
class CleanDialog : public QDialog
{
Q_OBJECT
public:
explicit CleanDialog(QWidget *parent = nullptr);
~CleanDialog();
bool checkClean(const LatexDocuments &docs);
private slots:
void updateFilesToRemove();
void resetExtensions();
void onAccept();
void onReject();
private:
enum Scope {None, Project, CurrentTexFile, CurrentFileFolder, OpenTexFiles, MAX_SCOPE};
Ui::CleanDialog *ui;
static QString defaultExtensions;
static QString currentExtensions;
static int scopeID;
QString masterFile;
QString currentTexFile;
QStringList openTexFiles;
QStringList filesToRemove(CleanDialog::Scope scope, const QStringList &extensionFilter);
QStringList filesToRemoveFromDir(const QDir &dir, const QStringList &extensionFilter, bool recursive = true);
};
#endif // CLEANDIALOG_H