-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
86 lines (63 loc) · 1.9 KB
/
mainwindow.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
83
84
85
86
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QDebug>
#include <QPropertyAnimation>
#include <QGraphicsOpacityEffect>
#include <QHotkey>
#include "scoreboardplus_scoreboard.h"
#include "scoreboardplus_file.h"
#include "scoreboardplus_audio.h"
#include "scoreboardplus_remote.h"
#include "scoreboardplus_update.h"
#include "scoreboardplus_stylesheet.h"
#include "sethotkey.h"
class ScoreboardPlus_Scoreboard;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
public slots:
void Home_Score_Fade_Out();
void Home_Score_Fade_In();
void Away_Score_Fade_Out();
void Away_Score_Fade_In();
void Period_Fade_Out();
void Period_Fade_In();
void Clock_Button_Fade_Out();
void Clock_Button_Fade_In();
protected:
void setMainWindowStyleSheet();
private slots:
void on_HomeScoreUp_PushButton_clicked();
void on_HomeScore2Up_PushButton_clicked();
void on_HomeScoreDown_PushButton_clicked();
void on_AwayScoreUp_PushButton_clicked();
void on_AwayScore2Up_PushButton_clicked();
void on_AwayScoreDown_PushButton_clicked();
void on_PeriodUp_PushButton_clicked();
void on_PeriodDown_PushButton_clicked();
void on_Clock_PushButton_clicked();
void on_SetHotkey_PushButton_clicked();
void on_ResetClock_PushButton_clicked();
private:
Ui::MainWindow *ui;
ScoreboardPlus_Scoreboard *mainscoreboard;
QGraphicsOpacityEffect *eff;
QPropertyAnimation *animation;
bool isClock = false;
QString clockButton = "Start";
setHotkey *sethotkey;
QHotkey *hotkey;
QKeySequence clockKey;
QKeySequence homeKey;
QKeySequence awayKey;
QKeySequence periodKey;
QKeySequence resetKey;
};
#endif // MAINWINDOW_H