-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettingswindow.h
More file actions
57 lines (43 loc) · 1.22 KB
/
settingswindow.h
File metadata and controls
57 lines (43 loc) · 1.22 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
53
54
55
56
57
#ifndef SETTINGSWINDOW_H
#define SETTINGSWINDOW_H
#include <QWidget>
#include <QEvent>
#include <QStringList>
#include <externalprocess.h>
#include <globalconfig.h>
namespace Ui {
class SettingsWindow;
}
class GlobalConfig;
class SettingsWindow : public QWidget
{
Q_OBJECT
public:
explicit SettingsWindow(GlobalConfig* config, QWidget *parent = nullptr);
~SettingsWindow();
QString config() const;
public slots:
void setConfig(const QString &config);
signals:
void closed();
void configRequested();
void configSaved(QString);
void settingProcessFinished(int exitCode, QProcess::ExitStatus exitStatus, const QString &output);
void sendTrayMessage(QString);
protected:
void closeEvent(QCloseEvent *event) override;
void showEvent(QShowEvent *event) override;
private:
Ui::SettingsWindow *ui;
QPoint m_lastPos;
ExternalProcess *proc;
GlobalConfig *conf;
private slots:
void on_btSaveOnly_clicked();
void on_btSaveClose_clicked();
void on_btClose_clicked();
void on_btReloadConfig_clicked();
void on_btInstallSndcpy_clicked();
void changeEvent(QEvent *event) override;
};
#endif // SETTINGSWINDOW_H