source: rtems-graphics-toolkit/fltk-1.1.10/fluid/function_panel.fl @ 513eea1

Last change on this file since 513eea1 was 513eea1, checked in by Joel Sherrill <joel.sherrill@…>, on 01/09/10 at 22:43:24

2010-01-08 Joel Sherrill <joel.sherrill@…>

fltk 1.1.10. imported

  • ORIGIN: Updated.
  • Property mode set to 100644
File size: 24.0 KB
Line 
1# data file for the Fltk User Interface Designer (fluid)
2version 1.0108
3header_name {.h}
4code_name {.cxx}
5comment {//
6// "$Id$"
7//
8// Code dialogs for the Fast Light Tool Kit (FLTK).
9//
10// Copyright 1998-2005 by Bill Spitzak and others.
11//
12// This library is free software; you can redistribute it and/or
13// modify it under the terms of the GNU Library General Public
14// License as published by the Free Software Foundation; either
15// version 2 of the License, or (at your option) any later version.
16//
17// This library is distributed in the hope that it will be useful,
18// but WITHOUT ANY WARRANTY; without even the implied warranty of
19// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
20// Library General Public License for more details.
21//
22// You should have received a copy of the GNU Library General Public
23// License along with this library; if not, write to the Free Software
24// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
25// USA.
26//
27// Please report all bugs and problems on the following page:
28//
29//     http://www.fltk.org/str.php
30//
31} {in_source in_header
32}
33
34decl {\#include <FL/Fl_Pixmap.H>} {}
35
36decl {\#include "Fl_Type.h"} {}
37
38decl {\#include "undo.h"} {}
39
40decl {extern class Fl_Pixmap *pixmap[];} {}
41
42decl {extern class Fl_Type *Fl_Type_make(const char*);} {}
43
44decl {extern void select_only(Fl_Type*);} {}
45
46Function {make_function_panel()} {} {
47  Fl_Window function_panel {
48    label {Function/Method Properties} open
49    xywh {412 442 290 150} type Double resizable
50    code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal visible
51  } {
52    Fl_Group {} {open
53      xywh {10 10 270 20}
54    } {
55      Fl_Choice f_public_member_choice {
56        tooltip {Change member access attribute.} xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 when 1 textsize 11
57      } {
58        MenuItem {} {
59          label private
60          user_data 0 user_data_type long
61          xywh {5 5 100 20} labelsize 11
62        }
63        MenuItem {} {
64          label public
65          user_data 1 user_data_type long
66          xywh {5 5 100 20} labelsize 11
67        }
68        MenuItem {} {
69          label protected
70          user_data 2 user_data_type long
71          xywh {5 5 100 20} labelsize 11
72        }
73      }
74      Fl_Choice f_public_choice {
75        tooltip {Change widget accessibility.} xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 when 1 textsize 11
76      } {
77        MenuItem {} {
78          label local
79          user_data 0 user_data_type long
80          xywh {15 15 100 20} labelsize 11
81        }
82        MenuItem {} {
83          label global
84          user_data 1 user_data_type long
85          xywh {15 15 100 20} labelsize 11
86        }
87      }
88      Fl_Light_Button f_c_button {
89        label {C declaration}
90        tooltip {Declare with a C interface instead of C++.} xywh {95 10 80 20} labelsize 11
91      }
92      Fl_Box {} {
93        xywh {235 10 45 20} resizable
94      }
95    }
96    Fl_Input f_name_input {
97      label {Name(args): (blank for main())}
98      tooltip {The name of the function or method.} xywh {10 50 270 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable
99    }
100    Fl_Input f_return_type_input {
101      label {Return Type: (blank to return outermost widget)}
102      tooltip {The return type of the function or method.} xywh {10 90 270 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11
103    }
104    Fl_Group {} {
105      xywh {10 120 270 20}
106    } {
107      Fl_Return_Button f_panel_ok {
108        label OK
109        tooltip {Apply the changes.} xywh {170 120 50 20} labelsize 11 hotspot
110      }
111      Fl_Button f_panel_cancel {
112        label Cancel
113        tooltip {Cancel the changes.} xywh {230 120 50 20} shortcut 0xff1b labelsize 11
114      }
115      Fl_Box {} {
116        xywh {10 120 150 20} resizable
117      }
118    }
119  }
120}
121
122Function {make_code_panel()} {} {
123  Fl_Window code_panel {
124    label {Code Properties}
125    xywh {353 262 540 180} type Double labelsize 11 resizable
126    code0 {o->size_range(200, 150);} modal visible
127  } {
128    Fl_Text_Editor code_input {
129      xywh {10 10 520 130} box DOWN_BOX labelsize 11 textfont 4 textsize 11 resizable
130      code0 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
131      code1 {\#include "CodeEditor.h"}
132      class CodeEditor
133    }
134    Fl_Group {} {open
135      xywh {10 150 520 20} labelsize 11
136    } {
137      Fl_Return_Button code_panel_ok {
138        label OK
139        xywh {400 150 60 20} labelsize 11 hotspot
140      }
141      Fl_Button code_panel_cancel {
142        label Cancel
143        xywh {470 150 60 20} shortcut 0xff1b labelsize 11
144      }
145      Fl_Box {} {
146        xywh {10 150 380 20} labelsize 11 resizable
147      }
148    }
149  }
150}
151
152Function {make_codeblock_panel()} {} {
153  Fl_Window codeblock_panel {
154    label {Code Block Properties}
155    xywh {468 221 300 115} type Double labelsize 11 resizable
156    code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal visible
157  } {
158    Fl_Input code_before_input {
159      label {Conditional code block}
160      tooltip {\#ifdef or similar conditional code block.} xywh {10 15 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11
161    }
162    Fl_Input code_after_input {
163      label {"{...child code...}" is inserted here}
164      tooltip {\#endif or similar conditional code block.} xywh {10 55 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable
165    }
166    Fl_Group {} {open
167      xywh {10 85 280 20}
168    } {
169      Fl_Return_Button codeblock_panel_ok {
170        label OK
171        xywh {160 85 60 20} labelsize 11 hotspot
172      }
173      Fl_Button codeblock_panel_cancel {
174        label Cancel
175        xywh {230 85 60 20} shortcut 0xff1b labelsize 11
176      }
177      Fl_Box {} {
178        xywh {10 85 140 20} resizable
179      }
180    }
181  }
182}
183
184Function {make_declblock_panel()} {} {
185  Fl_Window declblock_panel {
186    label {Declaration Block Properties} open
187    xywh {428 215 300 135} type Double labelsize 11 resizable
188    code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal visible
189  } {
190    Fl_Group {} {open
191      xywh {10 10 280 20}
192    } {
193      Fl_Choice declblock_public_choice {open
194        tooltip {Change widget accessibility.} xywh {10 10 140 20} down_box BORDER_BOX labelsize 11 when 0 textsize 11
195      } {
196        MenuItem {} {
197          label {in source code only}
198          user_data 0 user_data_type long
199          xywh {25 25 100 20} labelsize 11
200        }
201        MenuItem {} {
202          label {in header and source}
203          user_data 1 user_data_type long
204          xywh {25 25 100 20} labelsize 11
205        }
206      }
207      Fl_Light_Button declblock_public_button_x {
208        label public
209        tooltip {Make the declaration publicly accessible.} xywh {10 10 60 20} labelsize 11 when 0 hide
210      }
211      Fl_Box {} {
212        xywh {155 10 135 20} resizable
213      }
214    }
215    Fl_Input decl_before_input {
216      tooltip {\#ifdef or similar conditional declaration block.} xywh {10 40 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable
217    }
218    Fl_Input decl_after_input {
219      label {"\\n...child code...\\n" is inserted here}
220      tooltip {\#endif or similar declaration code block.} xywh {10 75 280 20} labelsize 11 align 5 when 0 textfont 4 textsize 11
221    }
222    Fl_Group {} {
223      xywh {10 105 280 20}
224    } {
225      Fl_Return_Button declblock_panel_ok {
226        label OK
227        xywh {160 105 60 20} labelsize 11 hotspot
228      }
229      Fl_Button declblock_panel_cancel {
230        label Cancel
231        xywh {230 105 60 20} shortcut 0xff1b labelsize 11
232      }
233      Fl_Box {} {
234        xywh {10 105 140 20} resizable
235      }
236    }
237  }
238}
239
240Function {make_decl_panel()} {selected
241} {
242  Fl_Window decl_panel {
243    label {Declaration Properties} open
244    xywh {501 185 290 150} type Double align 80 resizable
245    code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} visible
246  } {
247    Fl_Group {} {open
248      xywh {10 10 270 20}
249    } {
250      Fl_Box {} {
251        xywh {200 10 80 20} resizable
252      }
253      Fl_Choice decl_choice {
254        xywh {10 10 185 20} down_box BORDER_BOX labelsize 11 textsize 11
255      } {
256        MenuItem {} {
257          label {in source file only}
258          xywh {0 0 100 20} labelsize 11
259        }
260        MenuItem {} {
261          label {in header file only}
262          xywh {0 0 100 20} labelsize 11
263        }
264        MenuItem {} {
265          label {"static" in source file}
266          xywh {0 0 100 20} labelsize 11
267        }
268        MenuItem {} {
269          label {in source and "extern" in header}
270          xywh {0 0 100 20} labelsize 11
271        }
272      }
273      Fl_Choice decl_class_choice {
274        xywh {10 10 75 20} down_box BORDER_BOX labelsize 11 textsize 11
275      } {
276        MenuItem {} {
277          label private
278          xywh {10 10 100 20} labelsize 11
279        }
280        MenuItem {} {
281          label public
282          xywh {10 10 100 20} labelsize 11
283        }
284        MenuItem {} {
285          label protected
286          xywh {10 10 100 20} labelsize 11
287        }
288      }
289    }
290    Fl_Input decl_input {
291      label {Can be any declaration, like "int x;", an external symbol like "extern int foo();", a \#directive like "\#include <foo.h>", a comment like "//foo" or "/*foo*/", or typedef like "typedef char byte;" or "using std::list;".}
292      tooltip {Declaration text.} xywh {10 40 270 20} labelsize 11 align 134 when 0 textfont 4 textsize 11 resizable
293    }
294    Fl_Group {} {open
295      xywh {10 120 270 20}
296    } {
297      Fl_Return_Button decl_panel_ok {
298        label OK
299        xywh {150 120 60 20} labelsize 11 hotspot
300      }
301      Fl_Button decl_panel_cancel {
302        label Cancel
303        xywh {220 120 60 20} shortcut 0xff1b labelsize 11
304      }
305      Fl_Box {} {
306        xywh {10 120 130 20} resizable
307      }
308    }
309  }
310}
311
312Function {make_class_panel()} {} {
313  Fl_Window class_panel {
314    label {Class Properties} open
315    xywh {449 218 300 115} type Double labelsize 11 resizable
316    code0 {o->size_range(o->w(), o->h(), Fl::w(), o->h());} modal visible
317  } {
318    Fl_Group {} {open
319      xywh {10 10 280 20} hide
320    } {
321      Fl_Light_Button c_public_button {
322        label public
323        tooltip {Make the class publicly accessible.} xywh {10 10 60 20} labelsize 11 when 0 hide
324      }
325      Fl_Box {} {
326        xywh {80 10 210 20} resizable
327      }
328    }
329    Fl_Input c_name_input {
330      label {Name:}
331      tooltip {Name of class.} xywh {10 20 280 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11 resizable
332    }
333    Fl_Input c_subclass_input {
334      label {Subclass of (text between : and \{)}
335      tooltip {Name of subclass.} xywh {10 55 280 20} labelfont 1 labelsize 11 align 5 when 0 textfont 4 textsize 11
336    }
337    Fl_Group {} {open
338      xywh {10 85 280 20}
339    } {
340      Fl_Return_Button c_panel_ok {
341        label OK
342        xywh {160 85 60 20} labelsize 11 hotspot
343      }
344      Fl_Button c_panel_cancel {
345        label Cancel
346        xywh {230 85 60 20} shortcut 0xff1b labelsize 11
347      }
348      Fl_Box {} {
349        xywh {10 85 140 20} resizable
350      }
351    }
352  }
353}
354
355Function {make_comment_panel()} {} {
356  Fl_Window comment_panel {
357    label {Comment Properties}
358    xywh {422 190 550 280} type Double labelsize 11 resizable
359    code0 {o->size_range(320, 180);} modal visible
360  } {
361    Fl_Text_Editor comment_input {
362      xywh {110 10 430 230} box DOWN_BOX labelsize 11 textfont 4 textsize 11 resizable
363      code0 {o->when(FL_WHEN_ENTER_KEY_CHANGED|FL_WHEN_RELEASE);}
364      class CodeEditor
365    }
366    Fl_Group {} {open
367      xywh {110 250 430 20} labelsize 11
368    } {
369      Fl_Return_Button comment_panel_ok {
370        label OK
371        xywh {370 250 80 20} labelsize 11 hotspot
372      }
373      Fl_Button comment_panel_cancel {
374        label Cancel
375        xywh {460 250 80 20} shortcut 0xff1b labelsize 11
376      }
377      Fl_Box {} {
378        xywh {110 250 250 20} labelsize 11 resizable
379      }
380    }
381    Fl_Group {} {open
382      xywh {10 10 90 243} labelsize 11
383    } {
384      Fl_Light_Button comment_in_source {
385        label {In Source}
386        tooltip {Put the comment into the source (.cxx) file.} xywh {10 10 90 20} labelsize 11 when 0
387      }
388      Fl_Light_Button comment_in_header {
389        label {In Header}
390        tooltip {Put the comment into the header (.h) file.} xywh {10 40 90 20} labelsize 11 when 0
391      }
392      Fl_Menu_Button comment_predefined {
393        label Predefined open
394        xywh {10 70 90 20} labelsize 11 textsize 11
395      } {}
396      Fl_Button comment_load {
397        label {Import...}
398        xywh {10 100 90 20} labelsize 11
399      }
400      Fl_Box {} {
401        xywh {10 132 90 121} labelsize 11 resizable
402      }
403    }
404  }
405}
406
407Function {type_make_cb(Fl_Widget*,void*d)} {return_type void
408} {
409  code {undo_checkpoint();
410  Fl_Type *t = Fl_Type_make((char*)d);
411  if (t) {
412    select_only(t);
413    set_modflag(1);
414    t->open();
415  } else {
416    undo_current --;
417    undo_last --;
418  }} {}
419}
420
421Function {make_widgetbin()} {} {
422  Fl_Window widgetbin_panel {
423    label {Widget Bin}
424    xywh {411 171 550 85} type Single align 80 non_modal visible
425  } {
426    Fl_Group {} {
427      xywh {3 3 79 79}
428    } {
429      Fl_Button {} {
430        user_data {"Function"}
431        callback type_make_cb
432        tooltip Function xywh {5 5 24 24} box THIN_UP_BOX
433        code0 {o->image(pixmap[7]);}
434      }
435      Fl_Button {} {
436        user_data {"Class"}
437        callback type_make_cb
438        tooltip Class xywh {30 5 24 24} box THIN_UP_BOX
439        code0 {o->image(pixmap[12]);}
440      }
441      Fl_Button {} {
442        user_data {"comment"}
443        callback type_make_cb
444        tooltip Comment xywh {55 5 24 24} box THIN_UP_BOX
445        code0 {o->image(pixmap[46]);}
446      }
447      Fl_Button {} {
448        user_data {"Code"}
449        callback type_make_cb
450        tooltip Code xywh {5 30 24 24} box THIN_UP_BOX
451        code0 {o->image(pixmap[8]);}
452      }
453      Fl_Button {} {
454        user_data {"CodeBlock"}
455        callback type_make_cb
456        tooltip {Code Block} xywh {30 30 24 24} box THIN_UP_BOX
457        code0 {o->image(pixmap[9]);}
458      }
459      Fl_Button {} {
460        user_data {"widget_class"}
461        callback type_make_cb
462        tooltip {Widget Class} xywh {55 30 24 24} box THIN_UP_BOX
463        code0 {o->image(pixmap[48]);}
464      }
465      Fl_Button {} {
466        user_data {"decl"}
467        callback type_make_cb
468        tooltip Declaration xywh {5 55 24 24} box THIN_UP_BOX
469        code0 {o->image(pixmap[10]);}
470      }
471      Fl_Button {} {
472        user_data {"declblock"}
473        callback type_make_cb
474        tooltip {Declaration Block} xywh {30 55 24 24} box THIN_UP_BOX
475        code0 {o->image(pixmap[11]);}
476      }
477    }
478    Fl_Group {} {
479      xywh {87 3 79 79}
480    } {
481      Fl_Button {} {
482        user_data {"Fl_Window"}
483        callback type_make_cb
484        tooltip Window xywh {89 5 24 24} box THIN_UP_BOX
485        code0 {o->image(pixmap[1]);}
486      }
487      Fl_Button {} {
488        user_data {"Fl_Group"}
489        callback type_make_cb
490        tooltip Group xywh {114 5 24 24} box THIN_UP_BOX
491        code0 {o->image(pixmap[6]);}
492      }
493      Fl_Button {} {
494        user_data {"Fl_Pack"}
495        callback type_make_cb
496        tooltip Pack xywh {139 5 24 24} box THIN_UP_BOX
497        code0 {o->image(pixmap[22]);}
498      }
499      Fl_Button {} {
500        user_data {"Fl_Tabs"}
501        callback type_make_cb
502        tooltip Tabs xywh {89 30 24 24} box THIN_UP_BOX
503        code0 {o->image(pixmap[13]);}
504      }
505      Fl_Button {} {
506        user_data {"Fl_Scroll"}
507        callback type_make_cb
508        tooltip Scroll xywh {114 30 24 24} box THIN_UP_BOX
509        code0 {o->image(pixmap[19]);}
510      }
511      Fl_Button {} {
512        user_data {"Fl_Tile"}
513        callback type_make_cb
514        tooltip Tile xywh {89 55 24 24} box THIN_UP_BOX
515        code0 {o->image(pixmap[20]);}
516      }
517      Fl_Button {} {
518        user_data {"Fl_Wizard"}
519        callback type_make_cb
520        tooltip Wizard xywh {114 55 24 24} box THIN_UP_BOX
521        code0 {o->image(pixmap[21]);}
522      }
523    }
524    Fl_Group {} {
525      xywh {171 3 54 79}
526    } {
527      Fl_Button {} {
528        user_data {"Fl_Button"}
529        callback type_make_cb
530        tooltip Button xywh {173 5 24 24} box THIN_UP_BOX
531        code0 {o->image(pixmap[2]);}
532      }
533      Fl_Button {} {
534        user_data {"Fl_Return_Button"}
535        callback type_make_cb
536        tooltip {Return Button} xywh {198 5 24 24} box THIN_UP_BOX
537        code0 {o->image(pixmap[23]);}
538      }
539      Fl_Button {} {
540        user_data {"Fl_Light_Button"}
541        callback type_make_cb
542        tooltip {Light Button} xywh {173 30 24 24} box THIN_UP_BOX
543        code0 {o->image(pixmap[24]);}
544      }
545      Fl_Button {} {
546        user_data {"Fl_Repeat_Button"}
547        callback type_make_cb
548        tooltip {Repeat Button} xywh {198 30 24 24} box THIN_UP_BOX
549        code0 {o->image(pixmap[25]);}
550      }
551      Fl_Button {} {
552        user_data {"Fl_Check_Button"}
553        callback type_make_cb
554        tooltip {Check Button} xywh {173 55 24 24} box THIN_UP_BOX
555        code0 {o->image(pixmap[3]);}
556      }
557      Fl_Button {} {
558        user_data {"Fl_Round_Button"}
559        callback type_make_cb
560        tooltip {Round Button} xywh {198 55 24 24} box THIN_UP_BOX
561        code0 {o->image(pixmap[4]);}
562      }
563    }
564    Fl_Group {} {
565      xywh {230 3 104 79}
566    } {
567      Fl_Button {} {
568        user_data {"Fl_Slider"}
569        callback type_make_cb
570        tooltip Slider xywh {232 5 24 24} box THIN_UP_BOX
571        code0 {o->image(pixmap[37]);}
572      }
573      Fl_Button {} {
574        user_data {"Fl_Scrollbar"}
575        callback type_make_cb
576        tooltip {Scroll Bar} xywh {257 5 24 24} box THIN_UP_BOX
577        code0 {o->image(pixmap[38]);}
578      }
579      Fl_Button {} {
580        user_data {"Fl_Value_Slider"}
581        callback type_make_cb
582        tooltip {Value Slider} xywh {282 5 24 24} box THIN_UP_BOX
583        code0 {o->image(pixmap[39]);}
584      }
585      Fl_Button {} {
586        user_data {"Fl_Value_Output"}
587        callback type_make_cb
588        tooltip {Value Output} xywh {307 5 24 24} box THIN_UP_BOX
589        code0 {o->image(pixmap[45]);}
590      }
591      Fl_Button {} {
592        user_data {"Fl_Adjuster"}
593        callback type_make_cb
594        tooltip Adjuster xywh {232 30 24 24} box THIN_UP_BOX
595        code0 {o->image(pixmap[40]);}
596      }
597      Fl_Button {} {
598        user_data {"Fl_Counter"}
599        callback type_make_cb
600        tooltip Counter xywh {257 30 24 24} box THIN_UP_BOX
601        code0 {o->image(pixmap[41]);}
602      }
603      Fl_Button {} {
604        user_data {"Fl_Dial"}
605        callback type_make_cb
606        tooltip Dial xywh {282 30 24 24} box THIN_UP_BOX
607        code0 {o->image(pixmap[42]);}
608      }
609      Fl_Button {} {
610        user_data {"Fl_Roller"}
611        callback type_make_cb
612        tooltip Roller xywh {232 55 24 24} box THIN_UP_BOX
613        code0 {o->image(pixmap[43]);}
614      }
615      Fl_Button {} {
616        user_data {"Fl_Spinner"}
617        callback type_make_cb
618        tooltip Spinner xywh {257 55 24 24} box THIN_UP_BOX
619        code0 {o->image(pixmap[47]);}
620      }
621      Fl_Button {} {
622        user_data {"Fl_Value_Input"}
623        callback type_make_cb
624        tooltip {Value Input} xywh {282 55 24 24} box THIN_UP_BOX
625        code0 {o->image(pixmap[44]);}
626      }
627    }
628    Fl_Group {} {
629      xywh {339 3 54 79}
630    } {
631      Fl_Button {} {
632        user_data {"Fl_Input"}
633        callback type_make_cb
634        tooltip Input xywh {341 5 24 24} box THIN_UP_BOX
635        code0 {o->image(pixmap[14]);}
636      }
637      Fl_Button {} {
638        user_data {"Fl_Output"}
639        callback type_make_cb
640        tooltip Output xywh {366 5 24 24} box THIN_UP_BOX
641        code0 {o->image(pixmap[27]);}
642      }
643      Fl_Button {} {
644        user_data {"Fl_Text_Editor"}
645        callback type_make_cb
646        tooltip {Text Edit} xywh {341 30 24 24} box THIN_UP_BOX
647        code0 {o->image(pixmap[29]);}
648      }
649      Fl_Button {} {
650        user_data {"Fl_Text_Display"}
651        callback type_make_cb
652        tooltip {Text Display} xywh {366 30 24 24} box THIN_UP_BOX
653        code0 {o->image(pixmap[28]);}
654      }
655      Fl_Button {} {
656        user_data {"Fl_File_Input"}
657        callback type_make_cb
658        tooltip {File Input} xywh {341 55 24 24} box THIN_UP_BOX
659        code0 {o->image(pixmap[30]);}
660      }
661    }
662    Fl_Group {} {
663      xywh {398 3 54 79}
664    } {
665      Fl_Button {} {
666        user_data {"Fl_Menu_Bar"}
667        callback type_make_cb
668        tooltip {Menu Bar} xywh {400 5 24 24} box THIN_UP_BOX
669        code0 {o->image(pixmap[17]);}
670      }
671      Fl_Button {} {
672        user_data {"Fl_Input_Choice"}
673        callback type_make_cb
674        tooltip {Input Choice} xywh {425 5 24 24} box THIN_UP_BOX
675        code0 {o->image(pixmap[15]);}
676      }
677      Fl_Button {} {
678        user_data {"Fl_Menu_Button"}
679        callback type_make_cb
680        tooltip {Menu Button} xywh {400 30 24 24} box THIN_UP_BOX
681        code0 {o->image(pixmap[26]);}
682      }
683      Fl_Button {} {
684        user_data {"menuitem"}
685        callback type_make_cb
686        tooltip {Menu Item} xywh {425 30 24 24} box THIN_UP_BOX
687        code0 {o->image(pixmap[16]);}
688      }
689      Fl_Button {} {
690        user_data {"Fl_Choice"}
691        callback type_make_cb
692        tooltip Choice xywh {400 55 24 24} box THIN_UP_BOX
693        code0 {o->image(pixmap[15]);}
694      }
695      Fl_Button {} {
696        user_data {"submenu"}
697        callback type_make_cb
698        tooltip {Sub Menu} xywh {425 55 24 24} box THIN_UP_BOX
699        code0 {o->image(pixmap[18]);}
700      }
701    }
702    Fl_Group {} {
703      xywh {457 3 29 79}
704    } {
705      Fl_Button {} {
706        user_data {"Fl_Browser"}
707        callback type_make_cb
708        tooltip Browser xywh {459 5 24 24} box THIN_UP_BOX
709        code0 {o->image(pixmap[31]);}
710      }
711      Fl_Button {} {
712        user_data {"Fl_Check_Browser"}
713        callback type_make_cb
714        tooltip {Check Browser} xywh {459 30 24 24} box THIN_UP_BOX
715        code0 {o->image(pixmap[32]);}
716      }
717      Fl_Button {} {
718        user_data {"Fl_File_Browser"}
719        callback type_make_cb
720        tooltip {File Browser} xywh {459 55 24 24} box THIN_UP_BOX
721        code0 {o->image(pixmap[33]);}
722      }
723    }
724    Fl_Group {} {
725      xywh {491 3 55 79}
726    } {
727      Fl_Button {} {
728        user_data {"Fl_Box"}
729        callback type_make_cb
730        tooltip Box xywh {493 5 24 24} box THIN_UP_BOX
731        code0 {o->image(pixmap[5]);}
732      }
733      Fl_Button {} {
734        user_data {"Fl_Clock"}
735        callback type_make_cb
736        tooltip Clock xywh {518 5 24 24} box THIN_UP_BOX
737        code0 {o->image(pixmap[34]);}
738      }
739      Fl_Button {} {
740        user_data {"Fl_Help_View"}
741        callback type_make_cb
742        tooltip {Help Browser} xywh {493 30 24 24} box THIN_UP_BOX
743        code0 {o->image(pixmap[35]);}
744      }
745      Fl_Button {} {
746        user_data {"Fl_Progress"}
747        callback type_make_cb
748        tooltip Progress xywh {493 55 24 24} box THIN_UP_BOX
749        code0 {o->image(pixmap[36]);}
750      }
751    }
752  }
753}
754
755Function {make_sourceview()} {} {
756  Fl_Window sourceview_panel {
757    label {Code View}
758    callback toggle_sourceview_cb
759    xywh {430 273 520 490} type Double align 80 resizable size_range {384 120 0 0} visible
760  } {
761    Fl_Tabs sv_tab {
762      callback update_sourceview_position_cb
763      xywh {10 10 500 440} selection_color 4 labelcolor 7 resizable
764    } {
765      Fl_Group {} {
766        label Source open
767        xywh {10 35 500 415} labelsize 13 hide resizable
768      } {
769        Fl_Text_Editor sv_source {
770          xywh {20 50 480 390} textfont 4 textsize 11 resizable
771          code0 {\#include "CodeEditor.h"}
772          class CodeViewer
773        }
774      }
775      Fl_Group {} {
776        label Header open
777        xywh {10 35 500 415} labelsize 13
778      } {
779        Fl_Text_Editor sv_header {
780          xywh {20 50 480 390} textfont 4 textsize 11 resizable
781          code0 {\#include "CodeEditor.h"}
782          class CodeViewer
783        }
784      }
785    }
786    Fl_Group {} {
787      xywh {10 460 500 20}
788    } {
789      Fl_Button {} {
790        label Refresh
791        callback update_sourceview_cb
792        xywh {10 460 61 20} labelsize 11
793      }
794      Fl_Light_Button sv_autorefresh {
795        label {Auto-Refresh}
796        xywh {76 460 91 20} labelsize 11
797        code0 {o->callback((Fl_Callback*)update_sourceview_cb);}
798      }
799      Fl_Light_Button sv_autoposition {
800        label {Auto-Position}
801        xywh {172 460 89 20} labelsize 11
802      }
803      Fl_Button {} {
804        label Close
805        callback toggle_sourceview_b_cb
806        xywh {460 460 50 20} labelsize 11
807      }
808      Fl_Box {} {
809        xywh {265 460 190 20} resizable
810      }
811    }
812  }
813}
814
815comment {
816//
817// End of "$Id$".
818//} {in_source in_header
819}
Note: See TracBrowser for help on using the repository browser.