-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathScreenInterpreter.h
98 lines (81 loc) · 2.27 KB
/
ScreenInterpreter.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
87
88
89
90
91
92
93
94
95
96
97
98
/*
* File: ScreenInterpreter.h
* Author: scribble
*
* Created on November 27, 2012, 2:40 PM
*/
#ifndef SCREENINTERPRETER_H
#define SCREENINTERPRETER_H
#include "ScribbleArea.h"
#include "Point.h"
#include "Keyboard.h"
#include "Alert.h"
#include "FileList.h"
#include "Menu.h"
#include "ColorPicker.h"
#include "SizePicker.h"
class Menu;
class Login;
class ScreenInterpreter {
public:
ScreenInterpreter();
ScreenInterpreter(ScribbleArea *s, Menu *m, Login *l, FileList *fl,ColorPicker *cp, SizePicker *sp, Alert *a);
ScreenInterpreter(const ScreenInterpreter& orig);
virtual ~ScreenInterpreter();
void screenPressEvent(Point* point);
void screenMoveEvent(Point* point);
void screenReleaseEvent();
ScribbleArea* getScribbleArea();
void showLogin(bool show);
void showFilelist(bool show);
void showAlert(bool show);
void showColorPicker(bool show);
void showSizePicker(bool show);
void showLoading(bool show);
bool getShowLogin();
bool getShowFile();
bool getShowAlert();
bool getShowColorPicker();
bool getShowSizePicker();
bool getShowLoading();
FileList *getFileList();
Menu *getMenu();
Alert *getAlert();
Login *getLogin();
private:
ScribbleArea *scribbleArea;
Menu *menu;
Login *login;
Keyboard *keyboard;
Alert *alert;
FileList *filelist;
ColorPicker *colorPicker;
SizePicker *sizePicker;
int menuState;
int scribbleState;
void scribblePress(Point *point);
void scribbleMove(Point *point);
void scribbleRelease();
void loginPress(Point *point);
void loginMove(Point *point);
void loginRelease();
void filelistPress(Point *point);
void filelistMove(Point *point);
void filelistRelease();
void colorPickerPress(Point *point);
void colorPickerMove(Point *point);
void colorPickerRelease();
void sizePickerPress(Point *point);
void sizePickerMove(Point *point);
void sizePickerRelease();
void alertPress(Point *point);
void alertMove(Point *point);
void alertRelease();
bool loginShown;
bool filelistShown;
bool alertShown;
bool colorpickerShown;
bool sizepickerShown;
bool loadingShown;
};
#endif /* SCREENINTERPRETER_H */