-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainclass.h
45 lines (34 loc) · 818 Bytes
/
mainclass.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
#ifndef MAINCLASS_H
#define MAINCLASS_H
#include <QWidget>
#include <QHotkey>
#include <QSystemTrayIcon>
#include <QMenu>
#include "settingsdialog.h"
#include "popupwindow.h"
#include "textfiledownloader.h"
class MainClass : public QWidget
{
Q_OBJECT
public:
MainClass();
void setVisible(bool) override;
public slots:
void translate();
private:
QSystemTrayIcon* trayIcon;
QMenu* trayIconMenu;
QAction* settings;
QAction* about;
QAction* quit;
void createTrayIcon();
SettingsDialog* settingsDialog;
QDialog* aboutDialog;
void createAboutDialog();
PopUpWindow* popUp;
QHotkey hotkey;
QString APIkey; // API key of translating service
QString dataFileName;
TextFileDownloader* downloader;
};
#endif // MAINCLASS_H