This repository has been archived by the owner on Aug 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deskform.h
82 lines (65 loc) · 1.43 KB
/
deskform.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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#ifndef DESKFORM_H
#define DESKFORM_H
#include <QWidget>
#include <QSystemTrayIcon>
#include <QMenu>
#include <QAction>
#include <QObject>
#include <QMessageBox>
#include <QFile>
#include <QDir>
#include <QDebug>
#include <QPixmap>
#include <QScreen>
#include <QTimer>
#include <QtGlobal>
#include <QProcess>
#include <QRandomGenerator>
#include <QSettings>
#include "setting_win.h"
#include "counterw.h"
#include "class_schedule.h"
#include "win32mod.h"
#include "aboutdialog.h"
#include "timetable.h"
namespace Ui {
class deskform;
}
class deskform : public QWidget
{
Q_OBJECT
public:
explicit deskform(QWidget *parent = nullptr);
~deskform();
public:
QSystemTrayIcon tray;
void initTray();
void initImages();
void initBackground(QString);
void initTimer();
void initKits();
void initArgs();
void initSettings();
private slots:
void on_a_about_triggered();
void on_a_exit_triggered();
void on_a_setting_triggered();
void on_a_gk_triggered();
void on_a_restart_triggered();
void on_a_class_triggered();
void on_a_count_small_triggered();
private:
Ui::deskform *ui;
QStringList images;
QTimer *bgTimer;
counterw *gkw;
Class_Schedule *csw;
AboutDialog *ab;
TimeTable *tt;
public:
QString PicDir;
protected:
//将窗口设置为随着窗口变化而变化
virtual void resizeEvent(QResizeEvent *event) override;
};
#endif // DESKFORM_H