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