forked from AdunanzA/Tsunami
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettingswindow.h
59 lines (42 loc) · 1.08 KB
/
settingswindow.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
#ifndef SETTINGSWINDOW_H
#define SETTINGSWINDOW_H
#include <QWidget>
#include <QSettings>
#include <QDebug>
#include <QFileDialog>
#include <QMessageBox>
#include <QtWidgets>
#include <QApplication>
#include <QProcess>
namespace Ui {
class settingswindow;
}
class settingswindow : public QWidget
{
Q_OBJECT
public:
explicit settingswindow(QWidget *parent = 0);
~settingswindow();
void loadSettings();
void saveSettings();
void setLastBrowsedDir(const QString &path);
QString getLastBrowsedDir();
static QString settingsFileName;
static QSettings::Format settingsFileFormat;
QString getDownloadPath() const;
int getDebugLevelIndex() const;
int getCurrentLanguageIndex() const;
signals:
void sendMessageToStatusBar(const QString & msg);
void sendRefreshSettings();
private slots:
void on_btnSave_released();
void on_btnCancel_released();
void on_btnFolder_released();
private:
Ui::settingswindow *ui;
QSettings settings;
void changeEvent(QEvent *e);
// bool needRestart = false;
};
#endif // SETTINGSWINDOW_H