-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp_gui.h
108 lines (90 loc) · 2.46 KB
/
app_gui.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
99
100
101
102
103
104
105
106
107
108
#ifndef ASCII_PAINT_APP_GUI_H
#define ASCII_PAINT_APP_GUI_H
#include "gui/gui.hpp"
#include "app_user.h"
class App;
class ColorBox;
class AppGui : public AppUser {
public:
AppGui();
~AppGui();
void build();
void update();
void draw();
void hideAllOptions();
public:
TCODConsole *guiCon;
TCODColor backgroundColor1;
TCODColor backgroundColor2;
TCODColor foregroundColor1;
TCODColor foregroundColor2;
RadioButton *cellOperationButton;
RadioButton *lineOperationButton;
RadioButton *rectOperationButton;
RadioButton *ovalOperationButton;
RadioButton *fillOperationButton;
RadioButton *textOperationButton;
RadioButton *pickOperationButton;
RadioButton *fovOperationButton;
RadioButton *pathOperationButton;
Slider *redSlider1;
Slider *greenSlider1;
Slider *blueSlider1;
Slider *redSlider2;
Slider *greenSlider2;
Slider *blueSlider2;
Slider *redSlider3;
Slider *greenSlider3;
Slider *blueSlider3;
Slider *redSlider4;
Slider *greenSlider4;
Slider *blueSlider4;
ColorBox *brush1ForeImg;
ColorBox *brush1BackImg;
ColorBox *brush2ForeImg;
ColorBox *brush2BackImg;
Button *symbolButton1;
Button *symbolButton2;
ToggleButton *solidToggleButton1;
ToggleButton *solidToggleButton2;
// Options
ToggleButton *outlineToggleButton;
ToggleButton *filledToggleButton;
ToggleButton *useSymbolToggleButton;
ToggleButton *useForegroundToggleButton;
ToggleButton *useBackgroundToggleButton;
ToggleButton *useSolidToggleButton;
ToggleButton *pickSymbolToggleButton;
ToggleButton *pickForegroundToggleButton;
ToggleButton *pickBackgroundToggleButton;
ToggleButton *pickSolidToggleButton;
Button *exportPngButton;
Button *exportBmpButton;
Button *exportTextButton;
Button *exportForeButton;
Button *exportBackButton;
Button *importTextButton;
Button *importForeButton;
Button *importBackButton;
Slider *fovRadiusSlider;
ToggleButton *fovLightWallsToggleButton;
Button *fovTypeButton;
ToggleButton *pathDiagonalToggleButton;
Label *pathLengthLabel;
ToggleButton *viewImageToggleButton;
ToggleButton *viewSolidToggleButton;
Label *currentPositionLabel;
Label *canvasSizeLabel;
Label *fpsLabel;
enum HideType {
NO_HIDE=0,
PARTIAL_HIDE,
TOTAL_HIDE,
};
int hideType;
};
void changeColorCbk(Widget *wid, float val, void *data);
void changeSolidCbk(Widget *wid, void *data);
void changeSymbolCallback(Widget *wid, void *data);
void operationCbk(Widget *wid, void *data);
#endif