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