]> git.lyx.org Git - features.git/blob - src/frontends/xforms/form_preferences.C
Patch fdfix from Angus, using only the new tabular-layout, some fixes!
[features.git] / src / frontends / xforms / form_preferences.C
1 // File modified by fdfix.sh for use by lyx (with xforms >= 0.86) 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_bind * FormPreferences::build_bind()
14 {
15   FL_OBJECT *obj;
16   FD_form_bind *fdui = new FD_form_bind;
17
18   fdui->form_bind = fl_bgn_form(FL_NO_BOX, 380, 320);
19   fdui->form_bind->u_vdata = this;
20   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 380, 320, "");
21   fdui->input_bind = obj = fl_add_input(FL_NORMAL_INPUT, 80, 80, 190, 30, _("Bind file"));
22     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
23   obj = fl_add_button(FL_NORMAL_BUTTON, 270, 80, 80, 30, _("Browse..."));
24     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
25   fl_end_form();
26
27   fdui->form_bind->fdui = fdui;
28
29   return fdui;
30 }
31 /*---------------------------------------*/
32
33 FD_form_misc * FormPreferences::build_misc()
34 {
35   FL_OBJECT *obj;
36   FD_form_misc *fdui = new FD_form_misc;
37
38   fdui->form_misc = fl_bgn_form(FL_NO_BOX, 380, 320);
39   fdui->form_misc->u_vdata = this;
40   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 380, 320, "");
41   fdui->check_banner = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 30, 240, 30, _("Show banner"));
42     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
43     fl_set_button(obj, 1);
44   fdui->check_auto_region_delete = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 60, 240, 30, _("Auto region delete"));
45     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
46     fl_set_button(obj, 1);
47   fdui->check_exit_confirm = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 90, 240, 30, _("Exit confirmation"));
48     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
49     fl_set_button(obj, 1);
50   fdui->check_display_shortcuts = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 20, 120, 240, 30, _("Display keyboard shortcuts"));
51     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
52     fl_set_button(obj, 1);
53   fdui->counter_autosave = obj = fl_add_counter(FL_NORMAL_COUNTER, 160, 250, 170, 30, _("Autosave interval"));
54     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
55     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
56     fl_set_counter_precision(obj, 0);
57     fl_set_counter_bounds(obj, 0, 1200);
58     fl_set_counter_value(obj, 300);
59     fl_set_counter_step(obj, 1, 1);
60   fdui->counter_line_len = obj = fl_add_counter(FL_NORMAL_COUNTER, 160, 220, 170, 30, _("Ascii line length"));
61     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
62     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
63     fl_set_counter_precision(obj, 0);
64     fl_set_counter_bounds(obj, 0, 120);
65     fl_set_counter_value(obj, 75);
66     fl_set_counter_step(obj, 1, 1);
67   fl_end_form();
68
69   fdui->form_misc->fdui = fdui;
70
71   return fdui;
72 }
73 /*---------------------------------------*/
74
75 FD_form_screen_fonts * FormPreferences::build_screen_fonts()
76 {
77   FL_OBJECT *obj;
78   FD_form_screen_fonts *fdui = new FD_form_screen_fonts;
79
80   fdui->form_screen_fonts = fl_bgn_form(FL_NO_BOX, 380, 320);
81   fdui->form_screen_fonts->u_vdata = this;
82   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 380, 320, "");
83   fdui->input_roman = obj = fl_add_input(FL_NORMAL_INPUT, 160, 10, 200, 30, _("Roman"));
84     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
85   fdui->input_sans = obj = fl_add_input(FL_NORMAL_INPUT, 160, 40, 200, 30, _("Sans Serif"));
86     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
87   fdui->input_typewriter = obj = fl_add_input(FL_NORMAL_INPUT, 160, 70, 200, 30, _("Typewriter"));
88     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
89   fdui->counter_zoom = obj = fl_add_counter(FL_NORMAL_COUNTER, 160, 130, 200, 30, _("%"));
90     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
91     fl_set_object_lalign(obj, FL_ALIGN_RIGHT);
92     fl_set_counter_precision(obj, 0);
93     fl_set_counter_bounds(obj, 0, 999);
94     fl_set_counter_value(obj, 150);
95     fl_set_counter_step(obj, 1, 1);
96   fdui->check_scalable = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 0, 130, 160, 30, _("Allow scaling"));
97     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
98     fl_set_button(obj, 1);
99   fdui->input_encoding = obj = fl_add_input(FL_NORMAL_INPUT, 160, 100, 200, 30, _("Encoding"));
100     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
101   fdui->input_tiny = obj = fl_add_input(FL_FLOAT_INPUT, 120, 170, 70, 30, _("tiny"));
102     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
103   fdui->input_script = obj = fl_add_input(FL_FLOAT_INPUT, 290, 170, 70, 30, _("script"));
104     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
105   fdui->input_footnote = obj = fl_add_input(FL_FLOAT_INPUT, 120, 200, 70, 30, _("footnote"));
106     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
107   fdui->input_small = obj = fl_add_input(FL_FLOAT_INPUT, 290, 200, 70, 30, _("small"));
108     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
109   fdui->input_large = obj = fl_add_input(FL_FLOAT_INPUT, 290, 230, 70, 30, _("large"));
110     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
111   fdui->input_larger = obj = fl_add_input(FL_FLOAT_INPUT, 120, 260, 70, 30, _("larger"));
112     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
113   fdui->input_largest = obj = fl_add_input(FL_FLOAT_INPUT, 290, 260, 70, 30, _("largest"));
114     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
115   fdui->input_normal = obj = fl_add_input(FL_FLOAT_INPUT, 120, 230, 70, 30, _("normal"));
116     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
117   fdui->input_huge = obj = fl_add_input(FL_FLOAT_INPUT, 120, 290, 70, 30, _("huge"));
118     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
119   fdui->input_huger = obj = fl_add_input(FL_FLOAT_INPUT, 290, 290, 70, 30, _("huger"));
120     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
121   fl_end_form();
122
123   fdui->form_screen_fonts->fdui = fdui;
124
125   return fdui;
126 }
127 /*---------------------------------------*/
128
129 FD_form_interface_fonts * FormPreferences::build_interface_fonts()
130 {
131   FL_OBJECT *obj;
132   FD_form_interface_fonts *fdui = new FD_form_interface_fonts;
133
134   fdui->form_interface_fonts = fl_bgn_form(FL_NO_BOX, 380, 320);
135   fdui->form_interface_fonts->u_vdata = this;
136   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 380, 320, "");
137   fdui->input_popup_font = obj = fl_add_input(FL_NORMAL_INPUT, 120, 50, 200, 30, _("Popup"));
138     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
139   fdui->input_menu_font = obj = fl_add_input(FL_NORMAL_INPUT, 120, 80, 200, 30, _("Menu"));
140     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
141   fdui->input_encoding = obj = fl_add_input(FL_NORMAL_INPUT, 120, 110, 200, 30, _("Encoding"));
142     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
143   fl_end_form();
144
145   fdui->form_interface_fonts->fdui = fdui;
146
147   return fdui;
148 }
149 /*---------------------------------------*/
150
151 FD_form_printer * FormPreferences::build_printer()
152 {
153   FL_OBJECT *obj;
154   FD_form_printer *fdui = new FD_form_printer;
155
156   fdui->form_printer = fl_bgn_form(FL_NO_BOX, 380, 320);
157   fdui->form_printer->u_vdata = this;
158   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 380, 320, "");
159   fdui->input_command = obj = fl_add_input(FL_NORMAL_INPUT, 110, 60, 80, 30, _("command"));
160     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
161   fdui->input_page_range = obj = fl_add_input(FL_NORMAL_INPUT, 110, 90, 80, 30, _("page range"));
162     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
163   fdui->input_copies = obj = fl_add_input(FL_NORMAL_INPUT, 110, 120, 80, 30, _("copies"));
164     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
165   fdui->input_reverse = obj = fl_add_input(FL_NORMAL_INPUT, 110, 150, 80, 30, _("reverse"));
166     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
167   fdui->input_to_printer = obj = fl_add_input(FL_NORMAL_INPUT, 110, 180, 80, 30, _("to printer"));
168     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
169   fdui->input_file_extension = obj = fl_add_input(FL_NORMAL_INPUT, 110, 210, 80, 30, _("file extension"));
170     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
171   fdui->input_spool_command = obj = fl_add_input(FL_NORMAL_INPUT, 110, 240, 80, 30, _("spool command"));
172     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
173   fdui->input_paper_type = obj = fl_add_input(FL_NORMAL_INPUT, 110, 270, 80, 30, _("paper type"));
174     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
175   fdui->input_even_pages = obj = fl_add_input(FL_NORMAL_INPUT, 300, 60, 80, 30, _("even pages"));
176     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
177   fdui->input_odd_pages = obj = fl_add_input(FL_NORMAL_INPUT, 300, 90, 80, 30, _("odd pages"));
178     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
179   fdui->input_collated = obj = fl_add_input(FL_NORMAL_INPUT, 300, 120, 80, 30, _("collated"));
180     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
181   fdui->input_landscape = obj = fl_add_input(FL_NORMAL_INPUT, 300, 150, 80, 30, _("landscape"));
182     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
183   fdui->input_to_file = obj = fl_add_input(FL_NORMAL_INPUT, 300, 180, 80, 30, _("to file"));
184     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
185   fdui->input_extra_options = obj = fl_add_input(FL_NORMAL_INPUT, 300, 210, 80, 30, _("extra options"));
186     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
187   fdui->input_spool_prefix = obj = fl_add_input(FL_NORMAL_INPUT, 300, 240, 80, 30, _("spool printer prefix"));
188     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
189   fdui->input_paper_size = obj = fl_add_input(FL_NORMAL_INPUT, 300, 270, 80, 30, _("paper size"));
190     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
191   fdui->input_name = obj = fl_add_input(FL_NORMAL_INPUT, 110, 10, 80, 30, _("name"));
192     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
193   fdui->check_adapt_output = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 230, 10, 120, 30, _("adapt output"));
194     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
195   fl_end_form();
196
197   fdui->form_printer->fdui = fdui;
198
199   return fdui;
200 }
201 /*---------------------------------------*/
202
203 FD_form_paths * FormPreferences::build_paths()
204 {
205   FL_OBJECT *obj;
206   FD_form_paths *fdui = new FD_form_paths;
207
208   fdui->form_paths = fl_bgn_form(FL_NO_BOX, 380, 430);
209   fdui->form_paths->u_vdata = this;
210   obj = fl_add_box(FL_FLAT_BOX, 0, 0, 380, 430, "");
211   fdui->input_default_path = obj = fl_add_input(FL_NORMAL_INPUT, 110, 10, 170, 30, _("Default path"));
212     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
213   fdui->button_document_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 280, 10, 90, 30, _("Browse..."));
214     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
215   fdui->counter_lastfiles = obj = fl_add_counter(FL_NORMAL_COUNTER, 110, 130, 110, 30, _("Last file count"));
216     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
217     fl_set_object_lalign(obj, FL_ALIGN_LEFT);
218     fl_set_counter_precision(obj, 0);
219     fl_set_counter_bounds(obj, 0, 9);
220     fl_set_counter_value(obj, 4);
221     fl_set_counter_step(obj, 1, 1);
222   fdui->input_template_path = obj = fl_add_input(FL_NORMAL_INPUT, 110, 40, 170, 30, _("Template path"));
223     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
224   fdui->button_template_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 280, 40, 90, 30, _("Browse..."));
225     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
226   fdui->check_last_files = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 230, 130, 140, 30, _("Check last files"));
227     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
228     fl_set_button(obj, 1);
229   fdui->input_temp_dir = obj = fl_add_input(FL_NORMAL_INPUT, 110, 70, 170, 30, _("Temp dir"));
230     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
231   fdui->button_temp_dir_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 280, 70, 90, 30, _("Browse..."));
232     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
233   fdui->input_lastfiles = obj = fl_add_input(FL_NORMAL_INPUT, 110, 100, 170, 30, _("Lastfiles"));
234     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
235   fdui->button_lastfiles_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 280, 100, 90, 30, _("Browse..."));
236     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
237   fdui->check_use_temp_dir = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 10, 70, 50, 30, "");
238     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
239     fl_set_button(obj, 1);
240   fdui->check_make_backups = obj = fl_add_checkbutton(FL_PUSH_BUTTON, 10, 170, 40, 30, "");
241     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
242     fl_set_object_lalign(obj, FL_ALIGN_LEFT|FL_ALIGN_INSIDE);
243     fl_set_button(obj, 1);
244   fdui->input_backup_path = obj = fl_add_input(FL_NORMAL_INPUT, 110, 170, 170, 30, _("Backup path"));
245     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
246   fdui->button_backup_path_browse = obj = fl_add_button(FL_NORMAL_BUTTON, 280, 170, 90, 30, _("Browse..."));
247     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
248   fl_end_form();
249
250   fdui->form_paths->fdui = fdui;
251
252   return fdui;
253 }
254 /*---------------------------------------*/
255
256 FD_form_preferences * FormPreferences::build_preferences()
257 {
258   FL_OBJECT *obj;
259   FD_form_preferences *fdui = new FD_form_preferences;
260
261   fdui->form_preferences = fl_bgn_form(FL_NO_BOX, 380, 430);
262   fdui->form_preferences->u_vdata = this;
263   obj = fl_add_box(FL_UP_BOX, 0, 0, 380, 430, "");
264   fdui->button_apply = obj = fl_add_button(FL_NORMAL_BUTTON, 170, 380, 90, 30, _("Apply"));
265     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
266     fl_set_object_callback(obj, C_FormPreferencesApplyCB, 0);
267   fdui->button_cancel = obj = fl_add_button(FL_NORMAL_BUTTON, 270, 380, 90, 30, _("Cancel"));
268     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
269     fl_set_object_callback(obj, C_FormPreferencesCancelCB, 0);
270   fdui->button_ok = obj = fl_add_button(FL_RETURN_BUTTON, 70, 380, 90, 30, _("Ok"));
271     fl_set_object_lsize(obj, FL_NORMAL_SIZE);
272     fl_set_object_callback(obj, C_FormPreferencesOKCB, 0);
273   fdui->tabfolder_prefs = obj = fl_add_tabfolder(FL_TOP_TABFOLDER, 0, 0, 380, 360, "");
274     fl_set_object_boxtype(obj, FL_FLAT_BOX);
275   fl_end_form();
276
277   fdui->form_preferences->fdui = fdui;
278
279   return fdui;
280 }
281 /*---------------------------------------*/
282