-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfigWindow.h
40 lines (28 loc) · 764 Bytes
/
ConfigWindow.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
#ifndef CONFIGURATION_H
#define CONFIGURATION_H
#include <QtWidgets/QMainWindow>
#include <QtWidgets/QSystemTrayIcon>
#include "VncConfiguration.h"
#include "ui_ConfigWindow.h"
class ConfigWindow : public QMainWindow
{
Q_OBJECT
public:
ConfigWindow(VncConfiguration &data, bool dontClose = false);
virtual ~ConfigWindow();
virtual void showEvent(QShowEvent *);
virtual void closeEvent(QCloseEvent *);
private:
void apply();
void done();
public slots:
void trayActivated(QSystemTrayIcon::ActivationReason reason);
void toggleVisible();
private slots:
void buttonBarClicked(QAbstractButton *button);
private:
Ui_ConfigWindow ui;
VncConfiguration &m_data;
bool m_dontClose;
};
#endif // CONFIGURATION_H