-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscreencontroller.h
More file actions
53 lines (47 loc) · 1.14 KB
/
screencontroller.h
File metadata and controls
53 lines (47 loc) · 1.14 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
#ifndef SCREENCONTROLLER_H
#define SCREENCONTROLLER_H
#include <QMainWindow>
#include <QWidget>
#include <QGridLayout>
#include <QTimer>
#include <QSystemTrayIcon>
#include "gamescreen.h"
#include "authorization.h"
#include "gameover.h"
class ScreenController : public QMainWindow
{
Q_OBJECT
QStringList phrase;
QTimer * phrase_timer;
public:
explicit ScreenController(QMainWindow *parent = 0);
QString currentPlayer;
signals:
void player(QString);
void newGame(QString);
public slots:
void onAuth();
void onGame(QString);
void setPlayer(QString);
void onNewGame();
void onGameOver();
void onMain();
void changeEvent(QEvent*);
void trayIconActivated(QSystemTrayIcon::ActivationReason reason);
void trayActionExecute();
void setTrayIconActions();
void showTrayIcon();
void showMessage(QString);
void sayPhrase();
protected:
GameScreen *gs;
Authorization * au;
GameOver *go;
QGridLayout *layout;
QMenu *trayIconMenu;
QAction *minimizeAction;
QAction *restoreAction;
QAction *quitAction;
QSystemTrayIcon *trayIcon;
};
#endif // SCREENCONTROLLER_H