source: rtems-graphics-toolkit/fltk-1.1.10/fluid/alignment_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: 13.3 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// Setting and shell 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_Text_Buffer.H>} {public
35}
36
37decl {\#include <FL/Fl_Text_Display.H>} {public
38}
39
40decl {extern void load_history();} {public
41}
42
43Function {make_project_window()} {open
44} {
45  Fl_Window project_window {
46    label {Project Settings}
47    xywh {312 395 358 207} type Double
48    code0 {\#include <FL/Fl_Preferences.H>}
49    code1 {\#include <FL/Fl_Tooltip.H>} modal visible
50  } {
51    Fl_Button {} {
52      label Close
53      callback {project_window->hide();}
54      tooltip {Close this dialog.} xywh {293 175 52 20} labelsize 11
55    }
56    Fl_Tabs {} {open
57      xywh {10 10 335 151} selection_color 12 labelsize 11
58    } {
59      Fl_Group {} {
60        label Output open
61        xywh {10 30 335 131} labelsize 11
62      } {
63        Fl_Box {} {
64          label {Use "name.ext" to set name or just ".ext" to set extension.}
65          xywh {15 40 325 15} labelsize 11 align 144
66        }
67        Fl_Input header_file_input {
68          label {Header File:}
69          user_data 1 user_data_type {void*}
70          callback header_input_cb
71          tooltip {The name of the generated header file.} xywh {96 60 228 20} box THIN_DOWN_BOX labelfont 1 labelsize 11 when 1 textfont 4 textsize 11
72        }
73        Fl_Input code_file_input {
74          label {Code File:}
75          user_data 1 user_data_type {void*}
76          callback code_input_cb
77          tooltip {The name of the generated code file.} xywh {97 85 227 20} box THIN_DOWN_BOX labelfont 1 labelsize 11 when 1 textfont 4 textsize 11
78        }
79        Fl_Check_Button include_H_from_C_button {
80          label {Include Header from Code}
81          callback include_H_from_C_button_cb
82          tooltip {Include the header file from the code file.} xywh {95 110 145 20} down_box DOWN_BOX labelsize 11
83        }
84        Fl_Check_Button use_FL_COMMAND_button {
85          label {Generate menu shortcuts using FL_COMMAND}
86          callback use_FL_COMMAND_button_cb selected
87          tooltip {Replace FL_CTRL with FL_COMMAND when generating menu shortcut code.} xywh {95 130 245 20} down_box DOWN_BOX labelsize 11
88        }
89      }
90      Fl_Group {} {
91        label Internationalization open
92        xywh {10 30 335 131} labelsize 11 hide
93      } {
94        Fl_Choice i18n_type_chooser {
95          label {Use:}
96          callback i18n_type_cb open
97          tooltip {Type of internationalization to use.} xywh {80 42 100 20} box THIN_UP_BOX down_box BORDER_BOX labelfont 1 labelsize 11 textsize 11
98        } {
99          MenuItem {} {
100            label None
101            xywh {0 0 100 20} labelsize 11
102          }
103          MenuItem {} {
104            label {GNU gettext}
105            xywh {0 0 100 20} labelsize 11
106          }
107          MenuItem {} {
108            label {POSIX catgets}
109            xywh {0 0 100 20} labelsize 11
110          }
111        }
112        Fl_Input i18n_include_input {
113          label {\#include:}
114          callback i18n_text_cb
115          tooltip {The include file for internationalization.} xywh {80 67 245 20} box THIN_DOWN_BOX labelfont 1 labelsize 11 textfont 4 textsize 11
116        }
117        Fl_Input i18n_file_input {
118          label {File:}
119          callback i18n_text_cb
120          tooltip {The name of the message catalog.} xywh {80 92 245 20} box THIN_DOWN_BOX labelfont 1 labelsize 11 textfont 4 textsize 11
121        }
122        Fl_Input i18n_set_input {
123          label {Set:}
124          callback i18n_text_cb
125          tooltip {The message set number.} xywh {80 117 245 20} type Int box THIN_DOWN_BOX labelfont 1 labelsize 11 textfont 4 textsize 11
126        }
127        Fl_Input i18n_function_input {
128          label {Function:}
129          callback i18n_text_cb
130          tooltip {The function to call to internationalize the labels and tooltips.} xywh {80 92 245 20} box THIN_DOWN_BOX labelfont 1 labelsize 11 textfont 4 textsize 11
131        }
132      }
133    }
134  }
135}
136
137decl {extern void i18n_cb(Fl_Choice *,void *);} {public
138}
139
140decl {extern Fl_Preferences fluid_prefs;} {public
141}
142
143decl {Fl_Text_Buffer *shell_run_buffer;} {public
144}
145
146decl {void scheme_cb(Fl_Choice *, void *);} {public
147}
148
149Function {make_settings_window()} {open
150} {
151  Fl_Window settings_window {
152    label {GUI Settings} open
153    xywh {326 145 340 225} type Double non_modal visible
154  } {
155    Fl_Choice scheme_choice {
156      label {Scheme:}
157      callback scheme_cb open
158      xywh {116 10 115 25} down_box BORDER_BOX labelfont 1
159      code0 {int s;}
160      code1 {fluid_prefs.get("scheme", s, 0);}
161      code2 {scheme_choice->value(s);}
162      code3 {scheme_cb(0, 0);}
163    } {
164      MenuItem {} {
165        label Default
166        xywh {0 0 35 25}
167      }
168      MenuItem {} {
169        label None
170        xywh {0 0 35 25}
171      }
172      MenuItem {} {
173        label Plastic
174        xywh {0 0 35 25}
175      }
176      MenuItem {} {
177        label {GTK+}
178        xywh {10 10 35 25}
179      }
180    }
181    Fl_Group {} {
182      label {Options:
183
184
185
186
187} open
188      xywh {116 45 215 100} labelfont 1 align 4
189    } {
190      Fl_Check_Button tooltips_button {
191        label {Show Tooltips}
192        callback {Fl_Tooltip::enable(tooltips_button->value());
193fluid_prefs.set("show_tooltips", tooltips_button->value());}
194        xywh {116 45 113 25} down_box DOWN_BOX
195        code0 {int b;}
196        code1 {fluid_prefs.get("show_tooltips", b, 1);}
197        code2 {tooltips_button->value(b);}
198        code3 {Fl_Tooltip::enable(b);}
199      }
200      Fl_Check_Button completion_button {
201        label {Show Completion Dialogs}
202        callback {fluid_prefs.set("show_completion_dialogs", completion_button->value());}
203        xywh {116 70 186 25} down_box DOWN_BOX
204        code0 {int b;}
205        code1 {fluid_prefs.get("show_completion_dialogs", b, 1);}
206        code2 {completion_button->value(b);}
207      }
208      Fl_Check_Button openlast_button {
209        label {Open Previous File on Startup}
210        callback {fluid_prefs.set("open_previous_file", openlast_button->value());}
211        xywh {116 95 215 25} down_box DOWN_BOX
212        code0 {int b;}
213        code1 {fluid_prefs.get("open_previous_file", b, 0);}
214        code2 {openlast_button->value(b);}
215      }
216      Fl_Check_Button prevpos_button {
217        label {Remember Window Positions}
218        callback {fluid_prefs.set("prev_window_pos", prevpos_button->value());}
219        xywh {116 120 210 25} down_box DOWN_BOX
220        code0 {int b;}
221        code1 {fluid_prefs.get("prev_window_pos", b, 1);}
222        code2 {prevpos_button->value(b);}
223      }
224    }
225    Fl_Button {} {
226      label Close
227      callback {settings_window->hide();}
228      tooltip {Close this dialog.} xywh {266 190 64 25}
229    }
230    Fl_Spinner recent_spinner {
231      label {\# Recent Files:}
232      callback {fluid_prefs.set("recent_files", recent_spinner->value());
233load_history();}
234      xywh {116 155 40 25} labelfont 1 when 1 value 1
235      code0 {int c;}
236      code1 {fluid_prefs.get("recent_files", c, 5);}
237      code2 {recent_spinner->maximum(10);}
238      code3 {recent_spinner->value(c);}
239    }
240  }
241}
242
243Function {make_shell_window()} {open
244} {
245  Fl_Window shell_window {
246    label {Shell Command}
247    xywh {682 167 365 125} type Double visible
248  } {
249    Fl_Input shell_command_input {
250      label {Command:}
251      callback {fluid_prefs.set("shell_command", shell_command_input->value());}
252      xywh {10 27 347 25} labelfont 1 align 5
253      code0 {char buf[1024];}
254      code1 {fluid_prefs.get("shell_command", buf, "", sizeof(buf));}
255      code2 {shell_command_input->value(buf);}
256    }
257    Fl_Check_Button shell_writecode_button {
258      label {Write Code}
259      callback {fluid_prefs.set("shell_writecode", shell_writecode_button->value());}
260      xywh {128 61 93 19} down_box DOWN_BOX
261      code0 {int b;}
262      code1 {fluid_prefs.get("shell_writecode", b, 1);}
263      code2 {shell_writecode_button->value(b);}
264    }
265    Fl_Check_Button shell_writemsgs_button {
266      label {Write Messages}
267      callback {fluid_prefs.set("shell_writemsgs", shell_writemsgs_button->value());}
268      xywh {231 61 126 19} down_box DOWN_BOX
269      code0 {int b;}
270      code1 {fluid_prefs.get("shell_writemsgs", b, 0);}
271      code2 {shell_writemsgs_button->value(b);}
272    }
273    Fl_Check_Button shell_savefl_button {
274      label {Save .FL File}
275      callback {fluid_prefs.set("shell_savefl", shell_savefl_button->value());}
276      xywh {10 62 108 19} down_box DOWN_BOX
277      code0 {int b;}
278      code1 {fluid_prefs.get("shell_savefl", b, 1);}
279      code2 {shell_savefl_button->value(b);}
280    }
281    Fl_Return_Button {} {
282      label {Run Command}
283      callback do_shell_command
284      xywh {132 90 143 25}
285    }
286    Fl_Button {} {
287      label Cancel
288      callback {shell_window->hide();}
289      xywh {285 90 72 25}
290    }
291  }
292  Fl_Window shell_run_window {
293    label {Shell Command Output}
294    xywh {592 332 555 430} type Double hide resizable
295  } {
296    Fl_Text_Display shell_run_display {
297      xywh {10 10 535 375} box DOWN_BOX textfont 4 resizable
298      code0 {shell_run_buffer = new Fl_Text_Buffer();}
299      code1 {shell_run_display->buffer(shell_run_buffer);}
300    }
301    Fl_Return_Button shell_run_button {
302      label Close
303      callback {shell_run_window->hide();}
304      xywh {468 395 77 25}
305    }
306  }
307}
308
309Function {make_layout_window()} {open
310} {
311  Fl_Window grid_window {
312    label {Layout Settings}
313    xywh {676 337 285 245} type Double non_modal visible
314  } {
315    Fl_Input horizontal_input {
316      label x
317      user_data 1 user_data_type long
318      callback grid_cb
319      tooltip {Horizontal grid spacing.} xywh {106 10 50 25} type Int box THIN_DOWN_BOX align 8
320      code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
321    }
322    Fl_Input vertical_input {
323      label pixels
324      user_data 2 user_data_type long
325      callback grid_cb
326      tooltip {Vertical grid spacing.} xywh {166 10 50 25} type Int box THIN_DOWN_BOX align 8
327      code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
328    }
329    Fl_Input snap_input {
330      label {pixel snap}
331      user_data 3 user_data_type long
332      callback grid_cb
333      tooltip {Snap to grid within this many pixels.} xywh {106 45 50 25} type Int box THIN_DOWN_BOX align 8
334      code0 {o->when(FL_WHEN_RELEASE|FL_WHEN_ENTER_KEY);}
335    }
336    Fl_Check_Button guides_toggle {
337      label {Show Guides}
338      user_data 4 user_data_type long
339      callback guides_cb
340      tooltip {Show distance and alignment guides in overlay} xywh {106 80 110 25} down_box DOWN_BOX
341    }
342    Fl_Button {} {
343      label Close
344      callback {grid_window->hide();}
345      tooltip {Close this dialog.} xywh {215 210 60 25}
346    }
347    Fl_Box {} {
348      label {Grid:}
349      xywh {26 10 70 25} labelfont 1 align 24
350    }
351    Fl_Box {} {
352      label {Widget Size:}
353      xywh {-1 115 97 25} labelfont 1 align 24
354    }
355    Fl_Group {} {open
356      xywh {105 115 170 75}
357    } {
358      Fl_Round_Button {def_widget_size[0]} {
359        user_data 8 user_data_type long
360        callback default_widget_size_cb
361        xywh {105 115 70 25} type Radio down_box ROUND_DOWN_BOX
362      }
363      Fl_Box {} {
364        label tiny
365        xywh {120 115 50 25} labelsize 8 align 20
366      }
367      Fl_Round_Button {def_widget_size[1]} {
368        user_data 11 user_data_type long
369        callback default_widget_size_cb
370        xywh {180 115 70 25} type Radio down_box ROUND_DOWN_BOX
371      }
372      Fl_Box {} {
373        label small
374        xywh {195 115 50 25} labelsize 11 align 20
375      }
376      Fl_Round_Button {def_widget_size[2]} {
377        user_data 14 user_data_type long
378        callback default_widget_size_cb
379        xywh {105 140 70 25} type Radio down_box ROUND_DOWN_BOX
380      }
381      Fl_Box {} {
382        label normal
383        xywh {120 140 50 25} align 20
384      }
385      Fl_Round_Button {def_widget_size[3]} {
386        user_data 18 user_data_type long
387        callback default_widget_size_cb
388        xywh {180 140 90 25} type Radio down_box ROUND_DOWN_BOX
389      }
390      Fl_Box {} {
391        label medium
392        xywh {195 140 68 25} labelsize 18 align 20
393      }
394      Fl_Round_Button {def_widget_size[4]} {
395        user_data 24 user_data_type long
396        callback default_widget_size_cb
397        xywh {105 165 75 25} type Radio down_box ROUND_DOWN_BOX
398      }
399      Fl_Box {} {
400        label large
401        xywh {120 165 64 25} labelsize 24 align 20
402      }
403      Fl_Round_Button {def_widget_size[5]} {
404        user_data 32 user_data_type long
405        callback default_widget_size_cb
406        xywh {180 165 95 25} type Radio down_box ROUND_DOWN_BOX
407      }
408      Fl_Box {} {
409        label huge
410        xywh {195 165 76 25} labelsize 32 align 20
411      }
412    }
413  }
414}
415
416comment {
417//
418// End of "$Id$".
419//} {in_source in_header
420}
Note: See TracBrowser for help on using the repository browser.