]> git.lyx.org Git - lyx.git/blob - src/frontends/xforms/form_preferences.C
Move LaTeX and VC logs to GUI-I on xforms
[lyx.git] / src / frontends / xforms / form_preferences.C
1 // File modified by fdfix.sh for use by lyx (with xforms >= 0.88) and gettext
2 #include <config.h>
3 #include "lyx_gui_misc.h"
4 #include "gettext.h"
5
6 /* Form definition file generated with fdesign. */
7
8 #include FORMS_H_LOCATION
9 #include <stdlib.h>
10 #include "form_preferences.h"
11 #include "FormPreferences.h"
12
13 FD_form_preferences::~FD_form_preferences()
14 {
15   if ( form->visible ) fl_hide_form( form );
16   fl_free_form( form );
17 }
18
19
20 FD_form_preferences * FormPreferences::build_preferences()
21 {
22   FL_OBJECT *obj;
23   FD_form_preferences *fdui = new FD_form_preferences;
24
25   fdui->form = fl_bgn_form(FL_NO_BOX, 470, 500);
26   fdui->form->u_vdata = this;
27   obj = fl_add_box(FL_UP_BOX, 0, 0, 470, 500, "");
28   fdui->tabfolder_prefs = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 5, 10, 455, 375, "");
29     fl_set_object_boxtype(obj, FL_FLAT_BOX);
30   {
31     char const * const dummy = N_("Apply|#A");
32     fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 270, 390, 90, 30, idex(_(dummy)));
33     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
34   }
35     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
36     fl_set_object_callback(obj, C_FormBaseApplyCB, 0);
37   {
38     char const * const dummy = N_("Cancel|C#C^[");
39     fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 370, 390, 90, 30, idex(_(dummy)));
40     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
41   }
42     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
43     fl_set_object_callback(obj, C_FormBaseCancelCB, 0);
44   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 170, 390, 90, 30, _("Save"));
45     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
46     fl_set_object_callback(obj, C_FormBaseOKCB, 0);
47   {
48     char const * const dummy = N_("Restore|#R");
49     fdui->button_restore = obj = fl_add_button(FL_NORMAL_BUTTON, 5, 390, 90, 30, idex(_(dummy)));
50     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
51   }
52     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
53     fl_set_object_callback(obj, C_FormBaseRestoreCB, 0);
54   obj = fl_add_frame(FL_ENGRAVED_FRAME, 0, 425, 470, 1, "");
55   fdui->text_warning = obj = fl_add_text(FL_NORMAL_TEXT, 5, 430, 460, 70, "");
56     fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
57   fl_end_form();
58
59   fdui->form->fdui = fdui;
60
61   return fdui;
62 }
63 /*---------------------------------------*/
64
65 FD_form_outer_tab::~FD_form_outer_tab()
66 {
67   if ( form->visible ) fl_hide_form( form );
68   fl_free_form( form );
69 }
70
71
72 FD_form_outer_tab * FormPreferences::build_outer_tab()
73 {
74   FL_OBJECT *obj;
75   FD_form_outer_tab *fdui = new FD_form_outer_tab;
76
77   fdui->form = fl_bgn_form(FL_NO_BOX, 455, 375);
78   fdui->form->u_vdata = this;
79   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 455, 375, "");
80   fdui->tabfolder_outer = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 0, 0, 455, 375, "");
81     fl_set_object_boxtype(obj, FL_FLAT_BOX);
82   fl_end_form();
83
84   fdui->form->fdui = fdui;
85
86   return fdui;
87 }
88 /*---------------------------------------*/
89
90 FD_form_screen_fonts::~FD_form_screen_fonts()
91 {
92   if ( form->visible ) fl_hide_form( form );
93   fl_free_form( form );
94 }
95
96
97 FD_form_screen_fonts * FormPreferences::build_screen_fonts()
98 {
99   FL_OBJECT *obj;
100   FD_form_screen_fonts *fdui = new FD_form_screen_fonts;
101
102   fdui->form = fl_bgn_form(FL_NO_BOX, 455, 375);
103   fdui->form->u_vdata = this;
104   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 455, 375, "");
105   fdui->input_roman = obj = fl_add_input(FL_NORMAL_INPUT, 210, 5, 200, 30, _("Roman"));
106     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
107     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
108   fdui->input_sans = obj = fl_add_input(FL_NORMAL_INPUT, 210, 35, 200, 30, _("Sans Serif"));
109     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
110     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
111   fdui->input_typewriter = obj = fl_add_input(FL_NORMAL_INPUT, 210, 65, 200, 30, _("Typewriter"));
112     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
113     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
114   {
115     // xgettext:no-c-format
116     char const * const dummy = N_("Zoom %|#Z");
117     fdui->counter_zoom = obj = fl_add_counter(FL_NORMAL_COUNTER, 310, 130, 100, 30, idex(_(dummy)));
118     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
119   }
120     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
121     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
122     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
123     fl_set_counter_precision(obj, 0);
124     fl_set_counter_bounds(obj, 0, 999);
125     fl_set_counter_value(obj, 150);
126     fl_set_counter_step(obj, 1, 1);
127   fdui->check_scalable = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 60, 143, 33, 31, _("Use scalable fonts"));
128     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
129     fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
130     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
131     fl_set_button(obj, 1);
132   fdui->input_screen_encoding = obj = fl_add_input(FL_NORMAL_INPUT, 210, 95, 200, 30, _("Encoding"));
133     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
134     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
135   fdui->input_script = obj = fl_add_input(FL_FLOAT_INPUT, 200, 199, 70, 30, _("script"));
136     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
137     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
138   fdui->input_footnote = obj = fl_add_input(FL_FLOAT_INPUT, 340, 198, 70, 30, _("footnote"));
139     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
140     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
141   fdui->input_large = obj = fl_add_input(FL_FLOAT_INPUT, 340, 228, 70, 30, _("large"));
142     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
143     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
144   fdui->input_largest = obj = fl_add_input(FL_FLOAT_INPUT, 200, 259, 70, 30, _("largest"));
145     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
146     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
147   fdui->input_huge = obj = fl_add_input(FL_FLOAT_INPUT, 340, 258, 70, 30, _("huge"));
148     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
149     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
150   fdui->input_normal = obj = fl_add_input(FL_FLOAT_INPUT, 200, 229, 70, 30, _("normal"));
151     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
152     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
153   {
154     char const * const dummy = N_("Screen DPI|#D");
155     fdui->counter_dpi = obj = fl_add_counter(FL_NORMAL_COUNTER, 310, 160, 100, 30, idex(_(dummy)));
156     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
157   }
158     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
159     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
160     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
161     fl_set_counter_precision(obj, 0);
162     fl_set_counter_bounds(obj, 0, 999);
163     fl_set_counter_value(obj, 150);
164     fl_set_counter_step(obj, 1, 1);
165   fdui->input_tiny = obj = fl_add_input(FL_FLOAT_INPUT, 60, 198, 70, 30, _("tiny"));
166     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
167     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
168   fdui->input_larger = obj = fl_add_input(FL_FLOAT_INPUT, 60, 258, 70, 30, _("larger"));
169     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
170     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
171   fdui->input_small = obj = fl_add_input(FL_FLOAT_INPUT, 60, 228, 70, 30, _("small"));
172     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
173     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
174   fdui->input_huger = obj = fl_add_input(FL_FLOAT_INPUT, 60, 288, 70, 30, _("huger"));
175     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
176     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
177   fl_end_form();
178
179   fdui->form->fdui = fdui;
180
181   return fdui;
182 }
183 /*---------------------------------------*/
184
185 FD_form_outputs_misc::~FD_form_outputs_misc()
186 {
187   if ( form->visible ) fl_hide_form( form );
188   fl_free_form( form );
189 }
190
191
192 FD_form_outputs_misc * FormPreferences::build_outputs_misc()
193 {
194   FL_OBJECT *obj;
195   FD_form_outputs_misc *fdui = new FD_form_outputs_misc;
196
197   fdui->form = fl_bgn_form(FL_NO_BOX, 455, 375);
198   fdui->form->u_vdata = this;
199   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 455, 375, "");
200     fl_set_object_gravity(obj, FL_NorthWest, FL_SouthEast);
201   {
202     char const * const dummy = N_("Ascii line length|#A");
203     fdui->counter_line_len = obj = fl_add_counter(FL_NORMAL_COUNTER, 315, 50, 100, 30, idex(_(dummy)));
204     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
205   }
206     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
207     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
208     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
209     fl_set_counter_precision(obj, 0);
210     fl_set_counter_bounds(obj, 0, 120);
211     fl_set_counter_value(obj, 75);
212     fl_set_counter_step(obj, 1, 1);
213   {
214     char const * const dummy = N_("TeX encoding|#T");
215     fdui->input_tex_encoding = obj = fl_add_input(FL_NORMAL_INPUT, 216, 95, 200, 30, idex(_(dummy)));
216     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
217   }
218     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
219     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
220   {
221     char const * const dummy = N_("Default paper size|#p");
222     fdui->choice_default_papersize = obj = fl_add_choice(FL_NORMAL_CHOICE, 219, 142, 199, 29, idex(_(dummy)));
223     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
224   }
225     fl_set_object_boxtype(obj, FL_FRAME_BOX);
226     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
227     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
228   {
229     char const * const dummy = N_("ascii roff|#r");
230     fdui->input_ascii_roff = obj = fl_add_input(FL_NORMAL_INPUT, 121, 209, 285, 30, idex(_(dummy)));
231     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
232   }
233     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
234     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
235   {
236     char const * const dummy = N_("checktex|#c");
237     fdui->input_checktex = obj = fl_add_input(FL_NORMAL_INPUT, 121, 250, 285, 30, idex(_(dummy)));
238     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
239   }
240     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
241     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
242   obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 12, 186, 406, 120, _("Outside code interaction"));
243     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
244     fl_set_object_lstyle(obj, FL_BOLD_STYLE);
245   fl_end_form();
246
247   fdui->form->fdui = fdui;
248
249   return fdui;
250 }
251 /*---------------------------------------*/
252
253 FD_form_spellchecker::~FD_form_spellchecker()
254 {
255   if ( form->visible ) fl_hide_form( form );
256   fl_free_form( form );
257 }
258
259
260 FD_form_spellchecker * FormPreferences::build_spellchecker()
261 {
262   FL_OBJECT *obj;
263   FD_form_spellchecker *fdui = new FD_form_spellchecker;
264
265   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 360);
266   fdui->form->u_vdata = this;
267   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 360, "");
268   {
269     char const * const dummy = N_("Spell command|#S");
270     fdui->choice_spell_command = obj = fl_add_choice(FL_NORMAL_CHOICE, 141, 47, 171, 34, idex(_(dummy)));
271     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
272   }
273     fl_set_object_boxtype(obj, FL_FRAME_BOX);
274     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
275     fl_set_object_lalign(obj, FL_ALIGN_TOP);
276     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
277   {
278     char const * const dummy = N_("Use alternative language|#a");
279     fdui->check_alt_lang = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 208, 100, 30, 30, idex(_(dummy)));
280     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
281   }
282     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
283     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
284     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
285   fdui->input_alt_lang = obj = fl_add_input(FL_NORMAL_INPUT, 239, 100, 170, 30, "");
286     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
287   {
288     char const * const dummy = N_("Use escape characters|#e");
289     fdui->check_escape_chars = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 208, 130, 30, 30, idex(_(dummy)));
290     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
291   }
292     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
293     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
294     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
295   fdui->input_escape_chars = obj = fl_add_input(FL_NORMAL_INPUT, 239, 130, 170, 30, "");
296     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
297   {
298     char const * const dummy = N_("Use personal dictionary|#d");
299     fdui->check_personal_dict = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 208, 160, 30, 30, idex(_(dummy)));
300     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
301   }
302     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
303     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
304     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
305   fdui->input_personal_dict = obj = fl_add_input(FL_NORMAL_INPUT, 239, 160, 170, 30, "");
306     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
307   {
308     char const * const dummy = N_("Browse...|#B");
309     fdui->button_personal_dict = obj = fl_add_button(FL_NORMAL_BUTTON, 239, 190, 89, 30, idex(_(dummy)));
310     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
311   }
312     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
313     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
314   {
315     char const * const dummy = N_("Accept compound words|#w");
316     fdui->check_compound_words = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 130, 230, 30, 30, idex(_(dummy)));
317     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
318   }
319     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
320     fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
321     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
322   {
323     char const * const dummy = N_("Use input encoding|#i");
324     fdui->check_input_enc = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 130, 260, 30, 30, idex(_(dummy)));
325     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
326   }
327     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
328     fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
329     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
330   fl_end_form();
331
332   fdui->form->fdui = fdui;
333
334   return fdui;
335 }
336 /*---------------------------------------*/
337
338 FD_form_inputs_misc::~FD_form_inputs_misc()
339 {
340   if ( form->visible ) fl_hide_form( form );
341   fl_free_form( form );
342 }
343
344
345 FD_form_inputs_misc * FormPreferences::build_inputs_misc()
346 {
347   FL_OBJECT *obj;
348   FD_form_inputs_misc *fdui = new FD_form_inputs_misc;
349
350   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 360);
351   fdui->form->u_vdata = this;
352   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 360, "");
353   {
354     char const * const dummy = N_("date format|#f");
355     fdui->input_date_format = obj = fl_add_input(FL_NORMAL_INPUT, 120, 70, 285, 30, idex(_(dummy)));
356     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
357   }
358     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
359     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
360   fl_end_form();
361
362   fdui->form->fdui = fdui;
363
364   return fdui;
365 }
366 /*---------------------------------------*/
367
368 FD_form_language::~FD_form_language()
369 {
370   if ( form->visible ) fl_hide_form( form );
371   fl_free_form( form );
372 }
373
374
375 FD_form_language * FormPreferences::build_language()
376 {
377   FL_OBJECT *obj;
378   FD_form_language *fdui = new FD_form_language;
379
380   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 360);
381   fdui->form->u_vdata = this;
382   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 360, "");
383   {
384     char const * const dummy = N_("Package|#P");
385     fdui->input_package = obj = fl_add_input(FL_NORMAL_INPUT, 131, 18, 300, 30, idex(_(dummy)));
386     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
387   }
388     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
389     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
390   {
391     char const * const dummy = N_("Default language|#l");
392     fdui->choice_default_lang = obj = fl_add_choice(FL_NORMAL_CHOICE, 231, 56, 200, 30, idex(_(dummy)));
393     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
394   }
395     fl_set_object_boxtype(obj, FL_FRAME_BOX);
396     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
397   {
398     char const * const dummy = N_("Keyboard\nmap|#K");
399     fdui->check_use_kbmap = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 78, 113, 30, 30, idex(_(dummy)));
400     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
401   }
402     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
403     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
404     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
405   {
406     char const * const dummy = N_("RtL support|#R");
407     fdui->check_rtl_support = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 154, 161, 30, 30, idex(_(dummy)));
408     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
409   }
410     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
411     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
412     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
413   {
414     char const * const dummy = N_("Mark foreign|#M");
415     fdui->check_mark_foreign = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 154, 187, 30, 30, idex(_(dummy)));
416     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
417   }
418     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
419     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
420     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
421   {
422     char const * const dummy = N_("Auto begin|#b");
423     fdui->check_auto_begin = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 362, 161, 30, 30, idex(_(dummy)));
424     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
425   }
426     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
427     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
428     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
429   {
430     char const * const dummy = N_("Auto finish|#f");
431     fdui->check_auto_end = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 362, 187, 30, 30, idex(_(dummy)));
432     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
433   }
434     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
435     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
436     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
437   {
438     char const * const dummy = N_("Command start|#s");
439     fdui->input_command_begin = obj = fl_add_input(FL_NORMAL_INPUT, 131, 224, 300, 30, idex(_(dummy)));
440     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
441   }
442     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
443     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
444   {
445     char const * const dummy = N_("Command end|#e");
446     fdui->input_command_end = obj = fl_add_input(FL_NORMAL_INPUT, 131, 257, 300, 30, idex(_(dummy)));
447     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
448   }
449     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
450     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
451   {
452     char const * const dummy = N_("1st|#1");
453     fdui->input_kbmap1 = obj = fl_add_input(FL_NORMAL_INPUT, 144, 97, 195, 30, idex(_(dummy)));
454     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
455   }
456     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
457     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
458   {
459     char const * const dummy = N_("2nd|#2");
460     fdui->input_kbmap2 = obj = fl_add_input(FL_NORMAL_INPUT, 144, 129, 195, 30, idex(_(dummy)));
461     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
462   }
463     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
464     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
465   fdui->button_kbmap1_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 341, 99, 90, 30, _("Browse"));
466     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
467   fdui->button_kbmap2_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 341, 128, 90, 30, _("Browse"));
468     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
469   fl_end_form();
470
471   fdui->form->fdui = fdui;
472
473   return fdui;
474 }
475 /*---------------------------------------*/
476
477 FD_form_colors::~FD_form_colors()
478 {
479   if ( form->visible ) fl_hide_form( form );
480   fl_free_form( form );
481 }
482
483
484 FD_form_colors * FormPreferences::build_colors()
485 {
486   FL_OBJECT *obj;
487   FD_form_colors *fdui = new FD_form_colors;
488
489   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 360);
490   fdui->form->u_vdata = this;
491   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 360, "");
492   fdui->button_color = obj = fl_add_button(FL_NORMAL_BUTTON, 250, 285, 60, 30, "");
493     fl_set_object_boxtype(obj, FL_BORDER_BOX);
494     fl_set_object_color(obj, FL_WHITE, FL_COL1);
495   {
496     char const * const dummy = N_("LyX objects|#L");
497     fdui->browser_lyx_objs = obj = fl_add_browser(FL_HOLD_BROWSER, 10, 25, 195, 290, idex(_(dummy)));
498     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
499   }
500     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
501     fl_set_object_lalign(obj, FL_ALIGN_TOP);
502     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
503   {
504     char const * const dummy = N_("Modify|#M");
505     fdui->button_modify = obj = fl_add_button(FL_NORMAL_BUTTON, 310, 285, 90, 30, idex(_(dummy)));
506     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
507   }
508     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
509     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
510   {
511     char const * const dummy = N_("S|#S");
512     fdui->slider_saturation = obj = fl_add_slider(FL_HOR_NICE_SLIDER, 251, 135, 150, 30, idex(_(dummy)));
513     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
514   }
515     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
516     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
517     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
518     fl_set_slider_size(obj, 0.15);
519   {
520     char const * const dummy = N_("V|#V");
521     fdui->slider_value = obj = fl_add_slider(FL_HOR_NICE_SLIDER, 251, 175, 150, 30, idex(_(dummy)));
522     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
523   }
524     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
525     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
526     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
527     fl_set_slider_size(obj, 0.15);
528   {
529     char const * const dummy = N_("H|#H");
530     fdui->dial_hue = obj = fl_add_dial(FL_NORMAL_DIAL, 276, 23, 100, 100, idex(_(dummy)));
531     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
532   }
533     fl_set_object_lalign(obj, FL_ALIGN_CENTER);
534     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
535   {
536     char const * const dummy = N_("R|#R");
537     fdui->slider_red = obj = fl_add_slider(FL_VERT_FILL_SLIDER, 250, 25, 40, 180, idex(_(dummy)));
538     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
539   }
540     fl_set_object_color(obj, FL_COL1, FL_RED);
541     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
542     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
543     fl_set_slider_size(obj, 0.15);
544   {
545     char const * const dummy = N_("B|#B");
546     fdui->slider_blue = obj = fl_add_slider(FL_VERT_FILL_SLIDER, 360, 25, 40, 180, idex(_(dummy)));
547     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
548   }
549     fl_set_object_color(obj, FL_COL1, FL_BLUE);
550     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
551     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
552     fl_set_slider_size(obj, 0.15);
553   {
554     char const * const dummy = N_("G|#G");
555     fdui->slider_green = obj = fl_add_slider(FL_VERT_FILL_SLIDER, 305, 25, 40, 180, idex(_(dummy)));
556     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
557   }
558     fl_set_object_color(obj, FL_COL1, FL_GREEN);
559     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
560     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
561     fl_set_slider_size(obj, 0.15);
562   fdui->button_colorspace = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 310, 219, 30, 30, "");
563     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
564     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
565   fdui->text_color_values = obj = fl_add_text(FL_NORMAL_TEXT, 250, 250, 150, 30, "");
566     fl_set_object_boxtype(obj, FL_DOWN_BOX);
567     fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
568   fl_end_form();
569
570   fdui->form->fdui = fdui;
571
572   return fdui;
573 }
574 /*---------------------------------------*/
575
576 FD_form_converters::~FD_form_converters()
577 {
578   if ( form->visible ) fl_hide_form( form );
579   fl_free_form( form );
580 }
581
582
583 FD_form_converters * FormPreferences::build_converters()
584 {
585   FL_OBJECT *obj;
586   FD_form_converters *fdui = new FD_form_converters;
587
588   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 360);
589   fdui->form->u_vdata = this;
590   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 360, "");
591   {
592     char const * const dummy = N_("All converters|#A");
593     fdui->browser_all = obj = fl_add_browser(FL_HOLD_BROWSER, 30, 30, 160, 270, idex(_(dummy)));
594     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
595   }
596     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
597     fl_set_object_lalign(obj, FL_ALIGN_TOP);
598     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
599   {
600     char const * const dummy = N_("Delete|#D");
601     fdui->button_delete = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 270, 90, 30, idex(_(dummy)));
602     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
603   }
604     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
605     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
606   {
607     char const * const dummy = N_("Add|#A");
608     fdui->button_add = obj = fl_add_button(FL_NORMAL_BUTTON, 240, 270, 90, 30, idex(_(dummy)));
609     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
610   }
611     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
612     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
613   {
614     char const * const dummy = N_("Converter|#C");
615     fdui->input_converter = obj = fl_add_input(FL_NORMAL_INPUT, 280, 110, 150, 30, idex(_(dummy)));
616     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
617   }
618     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
619     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
620   {
621     char const * const dummy = N_("From|#F");
622     fdui->choice_from = obj = fl_add_choice(FL_NORMAL_CHOICE, 280, 30, 150, 30, idex(_(dummy)));
623     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
624   }
625     fl_set_object_boxtype(obj, FL_FRAME_BOX);
626     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
627   {
628     char const * const dummy = N_("To|#T");
629     fdui->choice_to = obj = fl_add_choice(FL_NORMAL_CHOICE, 280, 70, 150, 30, idex(_(dummy)));
630     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
631   }
632     fl_set_object_boxtype(obj, FL_FRAME_BOX);
633     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
634   {
635     char const * const dummy = N_("Flags|#F");
636     fdui->input_flags = obj = fl_add_input(FL_NORMAL_INPUT, 280, 150, 150, 30, idex(_(dummy)));
637     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
638   }
639     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
640     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
641   fl_end_form();
642
643   fdui->form->fdui = fdui;
644
645   return fdui;
646 }
647 /*---------------------------------------*/
648
649 FD_form_formats::~FD_form_formats()
650 {
651   if ( form->visible ) fl_hide_form( form );
652   fl_free_form( form );
653 }
654
655
656 FD_form_formats * FormPreferences::build_formats()
657 {
658   FL_OBJECT *obj;
659   FD_form_formats *fdui = new FD_form_formats;
660
661   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 360);
662   fdui->form->u_vdata = this;
663   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 360, "");
664   {
665     char const * const dummy = N_("All formats|#A");
666     fdui->browser_all = obj = fl_add_browser(FL_HOLD_BROWSER, 30, 30, 160, 270, idex(_(dummy)));
667     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
668   }
669     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
670     fl_set_object_lalign(obj, FL_ALIGN_TOP);
671     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
672   {
673     char const * const dummy = N_("Format|#F");
674     fdui->input_format = obj = fl_add_input(FL_NORMAL_INPUT, 280, 30, 150, 30, idex(_(dummy)));
675     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
676   }
677     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
678     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
679   {
680     char const * const dummy = N_("GUI name|#G");
681     fdui->input_gui_name = obj = fl_add_input(FL_NORMAL_INPUT, 280, 70, 150, 30, idex(_(dummy)));
682     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
683   }
684     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
685     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
686   {
687     char const * const dummy = N_("Delete|#D");
688     fdui->button_delete = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 270, 90, 30, idex(_(dummy)));
689     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
690   }
691     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
692     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
693   {
694     char const * const dummy = N_("Add|#A");
695     fdui->button_add = obj = fl_add_button(FL_NORMAL_BUTTON, 240, 270, 90, 30, idex(_(dummy)));
696     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
697   }
698     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
699     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
700   {
701     char const * const dummy = N_("Extension|#E");
702     fdui->input_extension = obj = fl_add_input(FL_NORMAL_INPUT, 280, 150, 150, 30, idex(_(dummy)));
703     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
704   }
705     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
706     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
707   {
708     char const * const dummy = N_("Viewer|#V");
709     fdui->input_viewer = obj = fl_add_input(FL_NORMAL_INPUT, 280, 190, 150, 30, idex(_(dummy)));
710     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
711   }
712     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
713     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
714   {
715     char const * const dummy = N_("Shortcut|#S");
716     fdui->input_shrtcut = obj = fl_add_input(FL_NORMAL_INPUT, 280, 110, 150, 30, idex(_(dummy)));
717     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
718   }
719     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
720     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
721   fl_end_form();
722
723   fdui->form->fdui = fdui;
724
725   return fdui;
726 }
727 /*---------------------------------------*/
728
729 FD_form_lnf_misc::~FD_form_lnf_misc()
730 {
731   if ( form->visible ) fl_hide_form( form );
732   fl_free_form( form );
733 }
734
735
736 FD_form_lnf_misc * FormPreferences::build_lnf_misc()
737 {
738   FL_OBJECT *obj;
739   FD_form_lnf_misc *fdui = new FD_form_lnf_misc;
740
741   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 350);
742   fdui->form->u_vdata = this;
743   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 350, "");
744   {
745     char const * const dummy = N_("Show banner|#S");
746     fdui->check_banner = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 15, 15, 30, 30, idex(_(dummy)));
747     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
748   }
749     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
750     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
751     fl_set_button(obj, 1);
752   {
753     char const * const dummy = N_("Auto region delete|#A");
754     fdui->check_auto_region_delete = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 15, 45, 30, 30, idex(_(dummy)));
755     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
756   }
757     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
758     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
759     fl_set_button(obj, 1);
760   {
761     char const * const dummy = N_("Exit confirmation|#E");
762     fdui->check_exit_confirm = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 15, 75, 30, 30, idex(_(dummy)));
763     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
764   }
765     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
766     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
767     fl_set_button(obj, 1);
768   fdui->check_display_shrtcuts = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 15, 105, 30, 30, _("Display keyboard shortcuts"));
769     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
770     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
771     fl_set_button(obj, 1);
772   fdui->counter_autosave = obj = fl_add_counter(FL_NORMAL_COUNTER, 320, 255, 115, 30, _("Autosave interval"));
773     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
774     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
775     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
776     fl_set_counter_precision(obj, 0);
777     fl_set_counter_bounds(obj, 0, 1200);
778     fl_set_counter_value(obj, 300);
779     fl_set_counter_step(obj, 1, 1);
780   {
781     char const * const dummy = N_("File->New asks for name|#N");
782     fdui->check_ask_new_file = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 15, 135, 30, 30, idex(_(dummy)));
783     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
784   }
785     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
786     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
787     fl_set_button(obj, 1);
788   {
789     char const * const dummy = N_("Cursor follows scrollbar|#C");
790     fdui->check_cursor_follows_scrollbar = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 15, 165, 30, 30, idex(_(dummy)));
791     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
792   }
793     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
794     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
795     fl_set_button(obj, 1);
796   fdui->counter_wm_jump = obj = fl_add_counter(FL_NORMAL_COUNTER, 320, 225, 115, 30, _("Wheel mouse jump"));
797     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
798     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
799     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
800     fl_set_counter_precision(obj, 0);
801     fl_set_counter_bounds(obj, 0, 250);
802     fl_set_counter_value(obj, 100);
803     fl_set_counter_step(obj, 1, 1);
804   fl_end_form();
805
806   fdui->form->fdui = fdui;
807
808   return fdui;
809 }
810 /*---------------------------------------*/
811
812 FD_form_interface::~FD_form_interface()
813 {
814   if ( form->visible ) fl_hide_form( form );
815   fl_free_form( form );
816 }
817
818
819 FD_form_interface * FormPreferences::build_interface()
820 {
821   FL_OBJECT *obj;
822   FD_form_interface *fdui = new FD_form_interface;
823
824   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 350);
825   fdui->form->u_vdata = this;
826   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 350, "");
827   fdui->input_popup_font = obj = fl_add_input(FL_NORMAL_INPUT, 230, 30, 200, 30, _("Popup Font"));
828     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
829     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
830   fdui->input_menu_font = obj = fl_add_input(FL_NORMAL_INPUT, 230, 60, 200, 30, _("Menu Font"));
831     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
832     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
833   fdui->input_popup_encoding = obj = fl_add_input(FL_NORMAL_INPUT, 230, 90, 200, 30, _("Popup Encoding"));
834     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
835     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
836   {
837     char const * const dummy = N_("Bind file|#B");
838     fdui->input_bind_file = obj = fl_add_input(FL_NORMAL_INPUT, 160, 178, 190, 30, idex(_(dummy)));
839     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
840   }
841     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
842     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
843   fdui->button_bind_file_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 350, 178, 80, 30, _("Browse..."));
844     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
845     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
846   {
847     char const * const dummy = N_("User Interface file|#U");
848     fdui->input_ui_file = obj = fl_add_input(FL_NORMAL_INPUT, 160, 148, 190, 30, idex(_(dummy)));
849     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
850   }
851     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
852     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
853   fdui->button_ui_file_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 350, 148, 80, 30, _("Browse..."));
854     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
855     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
856   {
857     char const * const dummy = N_("Override X-Windows dead-keys|#O");
858     fdui->check_override_x_dead_keys = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 24, 230, 30, 30, idex(_(dummy)));
859     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
860   }
861     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
862     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
863     fl_set_button(obj, 1);
864   fl_end_form();
865
866   fdui->form->fdui = fdui;
867
868   return fdui;
869 }
870 /*---------------------------------------*/
871
872 FD_form_printer::~FD_form_printer()
873 {
874   if ( form->visible ) fl_hide_form( form );
875   fl_free_form( form );
876 }
877
878
879 FD_form_printer * FormPreferences::build_printer()
880 {
881   FL_OBJECT *obj;
882   FD_form_printer *fdui = new FD_form_printer;
883
884   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 350);
885   fdui->form->u_vdata = this;
886   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 350, "");
887   fdui->input_command = obj = fl_add_input(FL_NORMAL_INPUT, 130, 75, 80, 30, _("command"));
888     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
889     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
890   fdui->input_page_range = obj = fl_add_input(FL_NORMAL_INPUT, 130, 105, 80, 30, _("page range"));
891     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
892     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
893   fdui->input_copies = obj = fl_add_input(FL_NORMAL_INPUT, 130, 135, 80, 30, _("copies"));
894     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
895     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
896   fdui->input_reverse = obj = fl_add_input(FL_NORMAL_INPUT, 130, 165, 80, 30, _("reverse"));
897     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
898     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
899   fdui->input_to_printer = obj = fl_add_input(FL_NORMAL_INPUT, 130, 195, 80, 30, _("to printer"));
900     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
901     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
902   fdui->input_file_extension = obj = fl_add_input(FL_NORMAL_INPUT, 130, 225, 80, 30, _("file extension"));
903     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
904     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
905   fdui->input_spool_command = obj = fl_add_input(FL_NORMAL_INPUT, 130, 255, 80, 30, _("spool command"));
906     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
907     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
908   fdui->input_paper_type = obj = fl_add_input(FL_NORMAL_INPUT, 130, 285, 80, 30, _("paper type"));
909     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
910     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
911   fdui->input_even_pages = obj = fl_add_input(FL_NORMAL_INPUT, 360, 75, 80, 30, _("even pages"));
912     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
913     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
914   fdui->input_odd_pages = obj = fl_add_input(FL_NORMAL_INPUT, 360, 105, 80, 30, _("odd pages"));
915     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
916     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
917   fdui->input_collated = obj = fl_add_input(FL_NORMAL_INPUT, 360, 135, 80, 30, _("collated"));
918     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
919     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
920   fdui->input_landscape = obj = fl_add_input(FL_NORMAL_INPUT, 360, 165, 80, 30, _("landscape"));
921     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
922     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
923   fdui->input_to_file = obj = fl_add_input(FL_NORMAL_INPUT, 360, 195, 80, 30, _("to file"));
924     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
925     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
926   fdui->input_extra_options = obj = fl_add_input(FL_NORMAL_INPUT, 360, 225, 80, 30, _("extra options"));
927     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
928     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
929   fdui->input_spool_prefix = obj = fl_add_input(FL_NORMAL_INPUT, 360, 255, 80, 30, _("spool printer prefix"));
930     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
931     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
932   fdui->input_paper_size = obj = fl_add_input(FL_NORMAL_INPUT, 360, 285, 80, 30, _("paper size"));
933     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
934     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
935   fdui->input_name = obj = fl_add_input(FL_NORMAL_INPUT, 130, 10, 80, 30, _("name"));
936     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
937     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
938   fdui->check_adapt_output = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 240, 10, 30, 30, _("adapt output"));
939     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
940     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
941   obj = fl_add_labelframe(FL_ENGRAVED_FRAME, 0, 60, 452, 260, _("Printer Command and Flags"));
942     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
943   fl_end_form();
944
945   fdui->form->fdui = fdui;
946
947   return fdui;
948 }
949 /*---------------------------------------*/
950
951 FD_form_paths::~FD_form_paths()
952 {
953   if ( form->visible ) fl_hide_form( form );
954   fl_free_form( form );
955 }
956
957
958 FD_form_paths * FormPreferences::build_paths()
959 {
960   FL_OBJECT *obj;
961   FD_form_paths *fdui = new FD_form_paths;
962
963   fdui->form = fl_bgn_form(FL_NO_BOX, 450, 350);
964   fdui->form->u_vdata = this;
965   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 450, 350, "");
966   {
967     char const * const dummy = N_("Default path|#p");
968     fdui->input_default_path = obj = fl_add_input(FL_NORMAL_INPUT, 170, 10, 170, 30, idex(_(dummy)));
969     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
970   }
971     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
972     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
973   fdui->button_default_path_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 10, 90, 30, _("Browse..."));
974     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
975     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
976   {
977     char const * const dummy = N_("Last file count|#L");
978     fdui->counter_lastfiles = obj = fl_add_counter(FL_SIMPLE_COUNTER, 170, 130, 90, 30, idex(_(dummy)));
979     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
980   }
981     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
982     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
983     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
984     fl_set_counter_precision(obj, 0);
985     fl_set_counter_bounds(obj, 0, 9);
986     fl_set_counter_value(obj, 4);
987     fl_set_counter_step(obj, 1, 1);
988   {
989     char const * const dummy = N_("Template path|#T");
990     fdui->input_template_path = obj = fl_add_input(FL_NORMAL_INPUT, 170, 40, 170, 30, idex(_(dummy)));
991     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
992   }
993     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
994     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
995   fdui->button_template_path_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 40, 90, 30, _("Browse..."));
996     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
997     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
998   {
999     char const * const dummy = N_("Check last files|#C");
1000     fdui->check_last_files = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 134, 100, 30, 30, idex(_(dummy)));
1001     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
1002   }
1003     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1004     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
1005     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1006     fl_set_button(obj, 1);
1007   fdui->button_temp_dir_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 70, 90, 30, _("Browse..."));
1008     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1009     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1010   fdui->input_lastfiles = obj = fl_add_input(FL_NORMAL_INPUT, 170, 100, 170, 30, "");
1011     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1012     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1013   fdui->button_lastfiles_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 100, 90, 30, _("Browse..."));
1014     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1015     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1016   {
1017     char const * const dummy = N_("Backup path|#B");
1018     fdui->check_make_backups = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 134, 170, 30, 30, idex(_(dummy)));
1019     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
1020   }
1021     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1022     fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
1023     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1024     fl_set_button(obj, 1);
1025   fdui->input_backup_path = obj = fl_add_input(FL_NORMAL_INPUT, 170, 170, 170, 30, "");
1026     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1027     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1028   fdui->button_backup_path_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 340, 170, 90, 30, _("Browse..."));
1029     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1030     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1031   {
1032     char const * const dummy = N_("LyXServer pipe|#S");
1033     fdui->input_serverpipe = obj = fl_add_input(FL_NORMAL_INPUT, 169, 217, 170, 30, idex(_(dummy)));
1034     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
1035   }
1036     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1037     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1038   fdui->button_serverpipe_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 339, 217, 90, 30, _("Browse..."));
1039     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1040     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1041   fdui->input_temp_dir = obj = fl_add_input(FL_NORMAL_INPUT, 170, 70, 170, 30, "");
1042     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1043     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1044   {
1045     char const * const dummy = N_("Temp dir|#d");
1046     fdui->check_use_temp_dir = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 134, 70, 30, 30, idex(_(dummy)));
1047     fl_set_button_shortcut(obj, scex(_(dummy)), 1);
1048   }
1049     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
1050     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
1051     fl_set_object_callback(obj, C_FormBaseInputCB, 0);
1052     fl_set_button(obj, 1);
1053   fl_end_form();
1054
1055   fdui->form->fdui = fdui;
1056
1057   return fdui;
1058 }
1059 /*---------------------------------------*/
1060