forked from AlphaKnot/PlanItTime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuiscreen.h
44 lines (32 loc) · 744 Bytes
/
uiscreen.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
#ifndef UISCREEN_H
#define UISCREEN_H
#include <QMainWindow>
#include<QWidget>
#include"solarwidget.h"
#include"timewidget.h"
#include"alarmwidget.h"
#include"asteroidwidget.h"
#include <QKeyEvent>
#include <QTimer>
QT_BEGIN_NAMESPACE
namespace Ui { class UIScreen; }
QT_END_NAMESPACE
class UIScreen : public QMainWindow
{
Q_OBJECT
public:
UIScreen(QWidget *parent = nullptr);
~UIScreen();
private:
//void changeFace(bool& facevalue, TimeWidget*, SolarWidget*, AlarmWidget* );
void keyPressEvent(QKeyEvent *event);
void SoundAlarm();
void alarmCheck();
Ui::UIScreen *ui;
TimeWidget *tw;
AlarmWidget *aw;
SolarWidget *sw;
AsteroidWidget *asw;
bool facevalue;
};
#endif // UISCREEN_H