-
Notifications
You must be signed in to change notification settings - Fork 1
/
ClabGui.fl
157 lines (152 loc) · 4.3 KB
/
ClabGui.fl
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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# data file for the Fltk User Interface Designer (fluid)
version 1.0304
header_name {.h}
code_name {.cxx}
decl {\#include "ClabLogic.h"} {private global
}
decl {\#include "Fl_Text_Editor_C.h"} {public global
}
decl {\#include "Fl_Text_Editor_Asm.h"} {public global
}
class UserInterfaceBlah {open
} {}
class ClabGui {open
} {
Function {make_window()} {open
} {
Fl_Window {} {
label {Compiler Lab} open
xywh {395 132 1032 748} type Double visible
} {
Fl_Text_Editor srcCode {
xywh {4 134 510 505} align 21 textfont 4
code0 {srcBuf = new Fl_Text_Buffer();}
code1 {o->buffer(srcBuf);}
code3 {srcBuf->add_modify_callback(onSourceModified, this);}
class Fl_Text_Editor_C
}
Fl_Text_Editor asmCode {
xywh {517 134 508 505} labelfont 4 labelsize 10 textfont 4 textsize 12
code0 {asmBuf = new Fl_Text_Buffer();}
code1 {o->buffer(asmBuf);}
class Fl_Text_Editor_Asm
}
Fl_Text_Display outLog {
xywh {4 644 1022 100} box THIN_DOWN_FRAME color 0 textfont 4 textsize 12 textcolor 7
code0 {outBuf = new Fl_Text_Buffer();}
code1 {o->buffer(outBuf);}
}
Fl_Tabs {} {open
xywh {4 6 644 124}
} {
Fl_Group clangGroup {
label clang open
xywh {6 25 369 105} hide
} {
Fl_Input_Choice icOptimization {
label {optimization:}
callback {recompile();} open
xywh {90 56 107 24}
} {}
Fl_Input_Choice icCompiler {
label {compiler:}
callback {recompile();} open
xywh {90 29 263 24}
} {}
Fl_Check_Button btnVerbose {
label verbose
callback {recompile();}
xywh {289 102 28 28} down_box DOWN_BOX
}
Fl_Input_Choice icDebug {
label {debug:}
callback {recompile();} open
xywh {246 56 107 24}
} {}
Fl_Round_Button btnC {
label C
callback {onButtonC();}
xywh {16 102 28 28} down_box ROUND_DOWN_BOX
}
Fl_Round_Button btnCPP {
label {C++}
callback {onButtonCPP();}
xywh {54 102 28 28} down_box ROUND_DOWN_BOX
}
}
Fl_Group {} {
label gcc open
xywh {9 35 464 84} hide
} {}
Fl_Group {} {
label {visual studio} open
xywh {9 35 236 85}
} {}
}
Fl_Text_Display compilerCommandLine {
label {compiler command line:}
xywh {652 66 375 38} color 0 align 5 textfont 4 textsize 12 textcolor 7
code0 {clBuf = new Fl_Text_Buffer();}
code1 {o->buffer(clBuf);}
code2 {o->wrap_mode(Fl_Text_Display::WRAP_AT_BOUNDS, 0);}
}
Fl_Text_Editor customFlags {
label {custom flags:}
callback {recompile();}
xywh {652 18 375 26} align 5 textsize 12
code0 {customFlagsBuf = new Fl_Text_Buffer();}
code1 {o->buffer(customFlagsBuf);}
}
Fl_Group {} {
label {output settings:} open
xywh {753 105 194 28} color 0 align 4
} {
Fl_Check_Button btnWrap {
label wrap
callback {recompile();}
xywh {753 105 28 28} down_box DOWN_BOX
}
Fl_Check_Button btnScroll {
label scroll
callback {recompile()}
xywh {805 105 72 28} down_box DOWN_BOX
}
Fl_Check_Button btnStdout {
label stdout
callback {recompile();}
xywh {859 105 28 28} down_box DOWN_BOX
}
Fl_Check_Button btnStderr {
label stderr
callback {recompile();}
xywh {919 105 28 28} down_box DOWN_BOX
}
}
}
code {srcCode->linenumber_width(24);} {}
}
decl {Fl_Text_Buffer *srcBuf;} {public local
}
decl {Fl_Text_Buffer *asmBuf;} {public local
}
decl {Fl_Text_Buffer *outBuf;} {public local
}
decl {Fl_Text_Buffer *customFlagsBuf;} {public local
}
decl {Fl_Text_Buffer *clBuf;} {public local
}
}
Function {} {open
} {
code {ClabGui gui;
Fl_Double_Window *w = gui.make_window();
onGuiFinished(&gui);
//Fl::add_idle(onIdle, &gui);
w->end();
w->show();
int rc = Fl::run();
onExit();
return rc;
/* fluid will insert Fl::run() here... */} {selected
}
}