-
Notifications
You must be signed in to change notification settings - Fork 2
/
window.h
46 lines (36 loc) · 835 Bytes
/
window.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
#pragma once
#include <QSystemTrayIcon>
#include <QDialog>
#include <libusb.h>
#include <QSettings>
#include "pixelpulse2_wrap.h"
QT_BEGIN_NAMESPACE
class ACtion;
QT_END_NAMESPACE
class Window : public QDialog
{
Q_OBJECT
public:
Window();
void setDisabled(PP2Wrapper &);
protected:
void closeEvent(QCloseEvent* event) Q_DECL_OVERRIDE;
signals:
void deactivateChanged(bool);
private slots:
void showMessage();
void iconActivated(QSystemTrayIcon::ActivationReason reason);
void messageClicked();
void deactivate(bool);
private:
void createIconGroupBox();
void createMessageGroupBox();
void createActions();
void createTrayIcon();
private:
QAction* quitAction;
QAction* deactivateAction;
QSystemTrayIcon* trayIcon;
QMenu* trayIconMenu;
QSettings settings;
};