blob: 7eb67ef156caf87bfad666f5ef57dd84d4137d9a (
plain)
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
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
|
# data file for the Fltk User Interface Designer (fluid)
version 0.99
header_name {.H}
code_name {.C}
gridx 5
gridy 5
snap 3
decl {Fl_Menu_Item* font_menu();} {}
Function {show_style_panel()} {open
} {
codeblock {if (!style_panel)} {open
} {
Fl_Window style_panel {
label style
xywh {767 205 335 425} type Double visible
} {
Fl_Choice {} {
label {labels:}
user_data 0 user_data_type long
callback font_cb open
xywh {60 155 220 25}
code0 {o->menu(font_menu());}
} {}
Fl_Value_Input {} {
user_data 0 user_data_type long
callback font_size_cb
xywh {280 155 50 25} when 4 minimum 1 maximum 128 step 1 value 14
}
Fl_Choice {} {
label {text:}
user_data 1 user_data_type long
callback font_cb open
xywh {60 190 220 25}
code0 {o->menu(font_menu());}
} {}
Fl_Value_Input {} {
user_data 1 user_data_type long
callback font_size_cb
xywh {280 190 50 25} when 4 minimum 1 maximum 128 step 1 value 14
}
Fl_Choice {} {
label {menus:}
user_data 2 user_data_type long
callback font_cb open
xywh {60 225 220 25}
code0 {o->menu(font_menu());}
} {}
Fl_Value_Input {} {
user_data 2 user_data_type long
callback font_size_cb
xywh {280 225 50 25} when 4 minimum 1 maximum 128 step 1 value 14
}
Fl_Button {} {
label {background:}
callback color_button_cb
xywh {255 30 75 25} box ENGRAVED_BOX align 4
}
Fl_Button {} {
label {foreground:}
callback color_button_cb
xywh {255 60 75 25} box ENGRAVED_BOX color 0 align 4
}
Fl_Button {} {
label {text background:}
callback color_button_cb
xywh {255 90 75 25} box ENGRAVED_BOX color 7 align 4
}
Fl_Button {} {
label {selection:}
callback color_button_cb
xywh {255 120 75 25} box ENGRAVED_BOX color 15 align 4
}
Fl_Return_Button {} {
label OK
callback {o->window()->hide();}
xywh {260 395 70 25}
}
Fl_Button {} {
label defaults
callback defaults_cb
xywh {175 395 70 25}
}
Fl_Value_Slider {} {
label {box thickness:}
callback box_thickness_cb
xywh {235 260 95 25} type Horizontal align 4 minimum 1 maximum 3 step 1 value 3 slider_size 0.3333
}
Fl_Value_Slider {} {
label {text box thickness:}
callback text_box_thickness_cb
xywh {235 295 95 25} type Horizontal align 4 maximum 2 step 1 value 2 slider_size 0.3333
}
Fl_Value_Slider {} {
label {scrollbar thickness:}
callback scrollbar_thickness_cb
xywh {235 335 95 25} type Horizontal align 4 minimum 3 maximum 30 step 1 value 17
}
}
}
code {style_panel->show();} {}
}
Function {} {open
} {
Fl_Window {} {open
xywh {356 409 445 435} type Double resizable visible
} {
Fl_Group {} {
label {Packed buttons:}
xywh {270 35 140 75} align 4
} {
Fl_Button {} {
label A
xywh {270 35 35 25} type Radio
}
Fl_Button {} {
label A
xywh {305 35 35 25} type Radio
}
Fl_Button {} {
label A
xywh {340 35 35 25} type Radio
}
Fl_Button {} {
label A
xywh {375 35 35 25} type Radio
}
Fl_Button {} {
label A
xywh {270 60 35 25} type Radio
}
Fl_Button {} {
label A
xywh {305 60 35 25} type Radio
}
Fl_Button {} {
label A
xywh {340 60 35 25} type Radio
}
Fl_Button {} {
label A
xywh {375 60 35 25} type Radio
}
Fl_Button {} {
label A
xywh {270 85 35 25} type Radio
}
Fl_Button {} {
label A
xywh {305 85 35 25} type Radio
}
Fl_Button {} {
label A
xywh {340 85 35 25} type Radio
}
Fl_Button {} {
label A
xywh {375 85 35 25} type Radio
}
}
Fl_Adjuster {} {
xywh {105 90 75 25} labeltype ENGRAVED_LABEL align 4
}
Fl_Counter {} {
label counter
xywh {20 120 170 25} minimum -1e+06 maximum 1e+06
}
Fl_Adjuster {} {
label {adjuster:}
xywh {80 40 25 75} labeltype SYMBOL_LABEL align 4
}
Fl_Group {} {
label {Inactive buttons:}
xywh {270 130 140 75} align 4 deactivate
} {
Fl_Button {} {
label A
xywh {270 130 35 25} type Radio
}
Fl_Button {} {
label A
xywh {305 130 35 25} type Radio
}
Fl_Button {} {
label A
xywh {340 130 35 25} type Radio
}
Fl_Button {} {
label A
xywh {375 130 35 25} type Radio
}
Fl_Button {} {
label A
xywh {270 155 35 25} type Radio
}
Fl_Button {} {
label A
xywh {305 155 35 25} type Radio
}
Fl_Button {} {
label A
xywh {340 155 35 25} type Radio
}
Fl_Button {} {
label A
xywh {375 155 35 25} type Radio
}
Fl_Button {} {
label A
xywh {270 180 35 25} type Radio
}
Fl_Button {} {
label A
xywh {305 180 35 25} type Radio
}
Fl_Button {} {
label A
xywh {340 180 35 25} type Radio
}
Fl_Button {} {
label A
xywh {375 180 35 25} type Radio
}
}
Fl_Input {} {
label {input:}
xywh {65 175 200 25}
code0 {o->static_value("This is a text input field");}
}
Fl_Output {} {
label {output:}
xywh {65 200 200 25}
code0 {o->static_value("This is a text output field");}
}
Fl_Menu_Bar {} {
xywh {0 0 445 30}
} {
submenu {} {
label File
xywh {0 0 100 20}
} {
menuitem {} {
label Open
xywh {0 0 100 20} shortcut 0x8006f
}
menuitem {} {
label Save
xywh {10 10 100 20} shortcut 0x80073
}
menuitem {} {
label Merge
xywh {20 20 100 20}
}
menuitem {} {
label Quit
callback {exit(0);}
xywh {30 30 100 20} shortcut 0x80071
code0 {\#include <stdlib.h>}
}
}
submenu {} {
label Edit open
xywh {0 0 100 20}
} {
menuitem {} {
label Undo
xywh {75 75 100 20} shortcut 0x8007a
}
menuitem {} {
label Cut
xywh {45 45 100 20} shortcut 0x80078
}
menuitem {} {
label Copy
xywh {55 55 100 20} shortcut 0x80076
}
menuitem {} {
label Paste
xywh {65 65 100 20} shortcut 0x80076
}
}
submenu {} {
label Font
xywh {10 10 100 20}
} {
menuitem {} {
label Normal
xywh {0 0 100 20}
}
menuitem {} {
label Bold
xywh {10 10 100 20} labelfont 1
}
menuitem {} {
label Italic
xywh {20 20 100 20} labelfont 2
}
menuitem {} {
label {Bold Italic}
xywh {30 30 100 20}
}
menuitem {} {
label Engrave
xywh {40 40 100 20} labeltype ENGRAVED_LABEL
}
menuitem {} {
label Emboss
xywh {50 50 100 20} labeltype EMBOSSED_LABEL
}
menuitem {} {
label {@->}
xywh {60 60 100 20} labeltype SYMBOL_LABEL
}
menuitem {} {
label Small
xywh {70 70 100 20} labelsize 10
}
}
submenu {} {
label Other
xywh {20 20 100 20}
} {
menuitem {} {
label {help!}
xywh {0 0 100 20}
}
}
}
Fl_Browser {} {
xywh {0 235 440 200} type Multi resizable
code0 {o->load("browser.C");}
code1 {o->position(0);}
}
Fl_Button {} {
label {click this to set style}
callback {show_style_panel();}
xywh {235 2 170 25} color 12 selection_color 12
}
}
code {Fl::visual(FL_RGB);} {selected
}
}
|