blob: d31bb371cf3db3521afad5efb3f1bdd3851d587d (
plain)
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
|
#ifndef SETTINGSDIALOGWORKAROUNDS_H
#define SETTINGSDIALOGWORKAROUNDS_H
#include "settings.h"
#include "settingsdialog.h"
class WorkaroundsSettingsTab : public SettingsTab
{
public:
WorkaroundsSettingsTab(Settings& settings, SettingsDialog& dialog);
// shows the blacklist dialog from the given settings, and changes the
// settings when the user accepts it
//
static bool changeBlacklistNow(QWidget* parent, Settings& settings);
// shows the blacklist dialog from the given string and returns the new
// blacklist if the user accepted it
//
static std::optional<QString> changeBlacklistLater(QWidget* parent,
const QString& current);
// shows the blacklist dialog from the given string and returns the new
// blacklist if the user accepted it
//
static std::optional<QStringList> changeSkipFileSuffixes(QWidget* parent,
const QStringList& current);
// shows the blacklist dialog from the given string and returns the new
// blacklist if the user accepted it
//
static std::optional<QStringList> changeSkipDirectories(QWidget* parent,
const QStringList& current);
void update();
private:
QString m_ExecutableBlacklist;
QStringList m_SkipFileSuffixes;
QStringList m_SkipDirectories;
void on_bsaDateBtn_clicked();
void on_execBlacklistBtn_clicked();
void on_skipFileSuffixBtn_clicked();
void on_skipDirectoriesBtn_clicked();
void on_resetGeometryBtn_clicked();
};
#endif // SETTINGSDIALOGWORKAROUNDS_H
|