-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCaptureApplication.h
More file actions
57 lines (45 loc) · 1.24 KB
/
CaptureApplication.h
File metadata and controls
57 lines (45 loc) · 1.24 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 CAPTURE_APPLICATION_H
#define CAPTURE_APPLICATION_H
#include <QWidget>
#include "ui_CaptureApplication.h"
#include "imageview.h"
#include <QSystemTrayIcon>
#include "qxtglobalshortcut.h"
#include "screenview.h"
#include "QMenu"
class CaptureApplication : public QWidget
{
Q_OBJECT
public:
CaptureApplication(QWidget *parent = nullptr);
~CaptureApplication();
public:
void openImage();
void screenShotCut();
void trayMenuTrigged(QAction* action);
void trayActivated(QSystemTrayIcon::ActivationReason reason);
void switchLanguage(const QString &text);
void showLaunchMessage();
private:
void languageTranslate();
void setAutoRun(bool isStart);
protected:
void hideEvent(QHideEvent *event) Q_DECL_OVERRIDE;
void closeEvent(QCloseEvent *event) Q_DECL_OVERRIDE;
private slots:
void on_checkBox_stateChanged(int arg1);
void on_autoRuncheckBox_stateChanged(int arg1);
void on_pushButton_hotKey_clicked();
private:
Ui::CaptureApplication ui;
std::vector<ImageView *> _arr_imgView;
QString _file_path;
QSystemTrayIcon *m_tray;
QMenu *m_trayMenu;
QAction *m_prefer;
QAction *m_quit;
QTranslator *m_translator;
QxtGlobalShortcut* shortcut;
};
extern QList<ScreenView*> views;
#endif // CAPTURE_APPLICATION_H