Tweak themes for more color consistency.
[ntk.git] / test / tabs.fl
blobc52e50d7acb0090450a7341e105585ff1616573c
1 # data file for the Fltk User Interface Designer (fluid)
2 version 1.0108 
3 header_name {.h} 
4 code_name {.cxx}
5 Function {} {open
6 } {
7   Fl_Window foo_window {
8     label {Comparison of Fl_Tab (left) vs. Fl_Wizard (right)} open
9     xywh {423 205 642 337} type Double resizable visible
10   } {
11     Fl_Box {} {
12       label {class Fl_Tabs}
13       xywh {95 0 130 35} labeltype ENGRAVED_LABEL labelfont 1
14     }
15     Fl_Tabs {} {
16       tooltip {the various index cards test different aspects of the Fl_Tabs widget} xywh {10 35 300 205} selection_color 4 labelcolor 7 resizable
17     } {
18       Fl_Group {} {
19         label {Label&1} open selected
20         tooltip {this Tab tests correct keyboard navigation between text input fields} xywh {10 60 300 180} selection_color 1 resizable
21       } {
22         Fl_Input {} {
23           label {input:}
24           tooltip {This is the first input field} xywh {60 80 240 40}
25         }
26         Fl_Input {} {
27           label {input2:}
28           xywh {60 120 240 30}
29           code0 {o->tooltip("");}
30         }
31         Fl_Input {} {
32           label {input3:}
33           xywh {60 150 240 80}
34         }
35       }
36       Fl_Group {} {
37         label {tab&2} open
38         tooltip {tab2 tests among other things the cooperation of modal windows and tabs} xywh {10 60 300 180} selection_color 2 hide
39       } {
40         Fl_Button {} {
41           label button1
42           callback {fl_message("Test to see if this modal window prevents you from "
43            "changing the tabs. It should.");}
44           xywh {20 90 100 30}
45           code0 {\#include <FL/fl_ask.H>}
46         }
47         Fl_Input {} {
48           label {input in box2}
49           xywh {140 130 100 30}
50         }
51         Fl_Button {} {
52           label {This is stuff inside the Fl_Group "tab2"}
53           xywh {30 170 260 30}
54         }
55         Fl_Button {} {
56           label {Test event blocking by modal window}
57           callback {fl_message("Make sure you cannot change the tabs while this modal window is up");}
58           xywh {30 200 260 30}
59           code0 {\#include <FL/fl_ask.H>}
60         }
61       }
62       Fl_Group {} {
63         label {tab&3} open
64         tooltip {tab3 checks for correct keyboard navigation} xywh {10 60 300 180} selection_color 3 hide
65       } {
66         Fl_Button {} {
67           label button2
68           xywh {20 90 60 80}
69         }
70         Fl_Button {} {
71           label button
72           xywh {80 90 60 80}
73         }
74         Fl_Button {} {
75           label button
76           xywh {140 90 60 80}
77         }
78       }
79       Fl_Group {} {
80         label {&tab4} open
81         tooltip {this tab show the issue of indicating a selcted tab if the tab layouts are very similar} xywh {10 60 300 180} selection_color 5 labeltype ENGRAVED_LABEL labelfont 2 hide
82       } {
83         Fl_Button {} {
84           label button2
85           xywh {20 80 60 110}
86         }
87         Fl_Button {} {
88           label button
89           xywh {80 80 60 110}
90         }
91         Fl_Button {} {
92           label button
93           xywh {140 80 60 110}
94         }
95       }
96       Fl_Group {} {
97         label {@fileprint  &print} open
98         tooltip {tab5 verifies if visibility requests are handled correctly} xywh {10 60 300 180} hide
99       } {
100         Fl_Button {} {
101           label button2
102           tooltip {button2 has a different tooltp than tab5} xywh {20 75 60 80}
103         }
104         Fl_Button {} {
105           label button
106           xywh {90 75 60 80}
107         }
108         Fl_Group {} {open
109           xywh {20 175 40 55} box THIN_DOWN_BOX color 173 align 16
110           class Fl_Window
111         } {}
112         Fl_Group {} {
113           label {subwindows:} open
114           xywh {65 175 40 55} box THIN_DOWN_BOX color 167
115           class Fl_Window
116         } {}
117         Fl_Group {} {open
118           xywh {110 175 40 55} box THIN_DOWN_BOX color 239 align 16
119           class Fl_Window
120         } {}
121       }
122     }
123     Fl_Box {} {
124       label {class Fl_Wizard}
125       xywh {410 0 130 35} labeltype ENGRAVED_LABEL labelfont 1
126     }
127     Fl_Wizard wWizard {
128       xywh {325 60 300 180}
129     } {
130       Fl_Group {} {
131         label Label1 open
132         tooltip {this Tab tests correct keyboard navigation between text input fields} xywh {325 60 300 180} selection_color 1 resizable
133       } {
134         Fl_Input {} {
135           label {input:}
136           tooltip {This is the first input field} xywh {375 80 240 40}
137         }
138         Fl_Input {} {
139           label {input2:}
140           xywh {375 120 240 30}
141           code0 {o->tooltip("");}
142         }
143         Fl_Input {} {
144           label {input3:}
145           xywh {375 150 240 80}
146         }
147       }
148       Fl_Group {} {
149         label tab2 open
150         tooltip {tab2 tests among other things the cooperation of modal windows and tabs} xywh {325 60 300 180} selection_color 2 hide
151       } {
152         Fl_Button {} {
153           label button1
154           callback {fl_message("Test to see if this modal window prevents you from "
155            "changing the tabs. It should.");}
156           xywh {335 90 100 30}
157           code0 {\#include <FL/fl_ask.H>}
158         }
159         Fl_Input {} {
160           label {input in box2}
161           xywh {455 130 100 30}
162         }
163         Fl_Button {} {
164           label {This is stuff inside the Fl_Group "tab2"}
165           xywh {345 170 260 30}
166         }
167         Fl_Button {} {
168           label {Test event blocking by modal window}
169           callback {fl_message("Make sure you cannot change the tabs while this modal window is up");}
170           xywh {345 200 260 30}
171           code0 {\#include <FL/fl_ask.H>}
172         }
173       }
174       Fl_Group {} {
175         label tab3 open
176         tooltip {tab3 checks for correct keyboard navigation} xywh {325 60 300 180} selection_color 3 hide
177       } {
178         Fl_Button {} {
179           label button2
180           xywh {335 90 60 80}
181         }
182         Fl_Button {} {
183           label button
184           xywh {395 90 60 80}
185         }
186         Fl_Button {} {
187           label button
188           xywh {455 90 60 80}
189         }
190       }
191       Fl_Group {} {
192         label tab4 open
193         tooltip {this tab show the issue of indicating a selcted tab if the tab layouts are very similar} xywh {325 60 300 180} selection_color 5 labelfont 2 hide
194       } {
195         Fl_Button {} {
196           label button2
197           xywh {335 80 60 110}
198         }
199         Fl_Button {} {
200           label button
201           xywh {395 80 60 110}
202         }
203         Fl_Button {} {
204           label button
205           xywh {455 80 60 110}
206         }
207       }
208       Fl_Group {} {
209         label {     tab5      } open
210         tooltip {tab5 verifies if visibility requests are handled correctly} xywh {325 60 300 180} labeltype ENGRAVED_LABEL hide
211       } {
212         Fl_Button {} {
213           label button2
214           tooltip {button2 has a different tooltp than tab5} xywh {335 75 60 80}
215         }
216         Fl_Button {} {
217           label button
218           xywh {405 75 60 80}
219         }
220         Fl_Group {} {open
221           xywh {335 175 40 55} box THIN_DOWN_BOX color 173 align 16
222           class Fl_Window
223         } {}
224         Fl_Group {} {
225           label {subwindows:} open
226           xywh {380 175 40 55} box THIN_DOWN_BOX color 167
227           class Fl_Window
228         } {}
229         Fl_Group {} {open
230           xywh {425 175 40 55} box THIN_DOWN_BOX color 239 align 16
231           class Fl_Window
232         } {}
233       }
234     }
235     Fl_Group {} {
236       xywh {410 245 130 25}
237     } {
238       Fl_Button {} {
239         label {@|<}
240         callback {wWizard->value(wWizard->child(0));}
241         tooltip {go to first page [Home]} xywh {410 245 30 25} shortcut 0xff50
242       }
243       Fl_Button {} {
244         label {@<}
245         callback {wWizard->prev();}
246         tooltip {go to previous page [left arrow]} xywh {440 245 30 25} shortcut 0xff51
247       }
248       Fl_Button {} {
249         label {@>}
250         callback {wWizard->next();}
251         tooltip {go to next page in wizard [right arrow]} xywh {480 245 30 25} shortcut 0xff53
252       }
253       Fl_Button {} {
254         label {@>|}
255         callback {int last = wWizard->children()-1;
256 wWizard->value(wWizard->child(last));}
257         tooltip {go to last page [End]} xywh {510 245 30 25} shortcut 0xff57
258       }
259     }
260     Fl_Input {} {
261       label {inputA:}
262       xywh {60 255 130 25}
263     }
264     Fl_Input {} {
265       label {inputB:}
266       xywh {60 285 250 25}
267     }
268     Fl_Button {} {
269       label cancel
270       callback {exit(1);}
271       xywh {475 295 70 30}
272       code0 {\#include <stdlib.h>}
273     }
274     Fl_Return_Button {} {
275       label OK
276       callback {exit(0);}
277       xywh {555 295 70 30}
278       code0 {\#include <stdlib.h>}
279     }
280   }