1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 1995 Matthias Ettrich
7 * Copyright 1995-2000 The LyX Team.
9 * ====================================================== */
15 #pragma implementation
19 #include FORMS_H_LOCATION
24 #include "layout_forms.h"
25 #include "print_form.h"
26 #include "tex-strings.h"
28 #include "latexoptions.h"
33 #include "lyxserver.h"
36 #include "lyx_gui_misc.h"
37 #include "lyxlookup.h"
38 #include "bufferlist.h"
40 #include "ColorHandler.h"
42 #ifdef TWO_COLOR_ICONS
43 #include "banner_bw.xbm"
50 FD_form_title * fd_form_title;
51 FD_form_paragraph * fd_form_paragraph;
52 FD_form_paragraph_extra * fd_form_paragraph_extra;
53 FD_form_character * fd_form_character;
54 FD_form_document * fd_form_document;
55 FD_form_paper * fd_form_paper;
56 FD_form_table_options * fd_form_table_options;
57 FD_form_table_extra * fd_form_table_extra;
58 FD_form_quotes * fd_form_quotes;
59 FD_form_preamble * fd_form_preamble;
60 FD_form_table * fd_form_table;
61 FD_form_print * fd_form_print;
62 FD_form_sendto * fd_form_sendto;
63 FD_form_figure * fd_form_figure;
64 FD_form_screen * fd_form_screen;
65 FD_form_toc * fd_form_toc;
66 FD_form_ref * fd_form_ref;
67 FD_LaTeXOptions * fd_latex_options; // from latexoptions.h
68 FD_LaTeXLog * fd_latex_log; // from latexoptions.h
69 Combox * combo_language;
70 Combox * combo_language2;
72 extern LyXServer * lyxserver;
73 extern bool finished; // flag, that we are quitting the program
74 extern BufferList bufferlist;
78 {"-width", "*.width", XrmoptionSepArg, "690"},
79 {"-height", "*.height", XrmoptionSepArg, "510"},
80 {"-xpos", "*.xpos", XrmoptionSepArg, "-1"},
81 {"-ypos", "*.ypos", XrmoptionSepArg, "-1"},
82 {"-MathColor", "*.MathColor", XrmoptionSepArg, "blue"},
83 {"-MathFrameColor", "*.MathFrameColor", XrmoptionSepArg, "magenta"},
84 {"-FootColor", "*.FootColor", XrmoptionSepArg, "red"},
85 {"-NewLineColor", "*.NewLineColor", XrmoptionSepArg, "red"},
86 {"-LabelColor", "*.LabelColor", XrmoptionSepArg, "palegreen"},
87 {"-FillColor", "*.FillColor", XrmoptionSepArg, "magenta"},
88 {"-OnOffLineColor", "*.OnOffLineColor", XrmoptionSepArg, "magenta"},
89 {"-LatexColor", "*.LatexColor", XrmoptionSepArg, "red"},
90 {"-NoteColor", "*.NoteColor", XrmoptionSepArg, "yellow"},
91 {"-NoteFrameColor", "*.NoteFrameColor", XrmoptionSepArg, "black"},
92 {"-LightedColor", "*.LightedColor", XrmoptionSepArg, "gray80"},
93 {"-BackgroundColor", "*.BackgroundColor", XrmoptionSepArg, "linen"},
94 {"-SelectionColor", "*.SelectionColor", XrmoptionSepArg, "lightblue"}
101 bool cursor_follows_scrollbar;
103 char math_frame_color[32];
105 char new_line_color[32];
106 char label_color[32];
108 char on_off_line_color[32];
109 char latex_color[32];
111 char note_frame_color[32];
112 char lighted_color[32];
113 string background_color;
115 char selection_color[32];
120 {"width", "widthClass", FL_INT, &width, "690", 0},
121 {"height", "heightClass", FL_INT, &height, "510", 0},
122 {"xpos", "xposClass", FL_INT, &xpos, "-1", 0},
123 {"ypos", "yposClass", FL_INT, &ypos, "-1", 0},
124 {"MathColor", "colorClass", FL_STRING, math_color, "blue", 31},
125 {"MathFrameColor", "colorClass", FL_STRING, math_frame_color, "magenta", 31},
126 {"FootColor", "colorClass", FL_STRING, foot_color, "red", 31},
127 {"NewLineColor", "colorClass", FL_STRING, new_line_color, "red", 31},
128 {"LabelColor", "colorClass", FL_STRING, label_color, "palegreen", 31},
129 {"FillColor", "colorClass", FL_STRING, fill_color, "magenta", 31},
130 {"OnOffLineColor", "colorClass", FL_STRING, on_off_line_color, "magenta", 31},
131 {"LatexColor", "colorClass", FL_STRING, latex_color, "red", 31},
132 {"NoteColor", "colorClass", FL_STRING, note_color, "yellow", 31},
133 {"NoteFrameColor", "colorClass", FL_STRING, note_frame_color, "black", 31},
134 {"LightedColor", "colorClass", FL_STRING, lighted_color, "gray80", 31},
135 {"BackgroundColor", "colorClass", FL_STRING, b_c, "linen", 31},
136 {"SelectionColor", "colorClass", FL_STRING, selection_color, "lightblue", 31}
140 extern "C" int LyX_XErrHandler(Display * display, XErrorEvent * xeev)
142 //#warning Please see if you can trigger this!
144 if (!bufferlist.empty())
145 bufferlist.emergencyWriteAll();
147 // Get the reason for the crash.
149 XGetErrorText(display, xeev->error_code, etxt, 512);
150 lyxerr << etxt << endl;
151 // By doing an abort we get a nice backtrace. (hopefully)
153 return 0; // Solaris CC wants us to return something
157 LyXGUI::LyXGUI(LyX * owner, int * argc, char * argv[], bool GUI)
158 : _owner(owner), lyxViews(0)
166 static const int num_res = sizeof(res)/sizeof(FL_resource);
167 fl_initialize(argc, argv, "LyX", cmdopt, num_res);
168 fl_get_app_resources(res, num_res);
170 Display * display = fl_get_display();
172 lyxerr << "LyX: unable to access X display, exiting" << endl;
175 fcntl(ConnectionNumber(display), F_SETFD, FD_CLOEXEC);
176 // X Error handler install goes here
177 XSetErrorHandler(LyX_XErrHandler);
179 background_color = b_c;
181 // Make sure default screen is not larger than monitor
182 if (width == 690 && height == 510) {
183 Screen * scr = DefaultScreenOfDisplay(fl_get_display());
184 if (HeightOfScreen(scr) - 24 < height)
185 height = HeightOfScreen(scr) - 24;
186 if (WidthOfScreen(scr) - 8 < width)
187 width = WidthOfScreen(scr) - 8;
190 // Initialize the LyXColorHandler
191 lyxColorHandler = new LyXColorHandler;
195 // A destructor is always necessary (asierra-970604)
198 // Lyxserver was created in this class so should be destroyed
199 // here. asierra-970604
209 void LyXGUI::setDefaults()
212 cntl.buttonFontSize = FL_NORMAL_SIZE;
213 cntl.browserFontSize = FL_NORMAL_SIZE;
214 cntl.labelFontSize = FL_NORMAL_SIZE;
215 cntl.choiceFontSize = FL_NORMAL_SIZE;
216 cntl.inputFontSize = FL_NORMAL_SIZE;
217 cntl.menuFontSize = FL_NORMAL_SIZE;
218 cntl.borderWidth = -1;
219 cntl.vclass = FL_DefaultVisual;
220 fl_set_defaults(FL_PDVisual
221 | FL_PDButtonFontSize
222 | FL_PDBrowserFontSize
224 | FL_PDChoiceFontSize
227 | FL_PDBorderWidth, &cntl);
231 // This is called after we have parsed lyxrc
239 if (lyxrc.font_norm_menu.empty())
240 lyxrc.font_norm_menu = lyxrc.font_norm;
241 // Set the font name for popups and menus
242 string menufontname = lyxrc.menu_font_name
243 + "-*-*-*-?-*-*-*-*-"
244 + lyxrc.font_norm_menu;
245 // "?" means "scale that font"
246 string popupfontname = lyxrc.popup_font_name
247 + "-*-*-*-?-*-*-*-*-"
248 + lyxrc.font_norm_menu;
250 int bold = fl_set_font_name(FL_BOLD_STYLE, menufontname.c_str());
251 int normal = fl_set_font_name(FL_NORMAL_STYLE, popupfontname.c_str());
253 lyxerr << "Could not set menu font to "
254 << menufontname << endl;
257 lyxerr << "Could not set popup font to "
258 << popupfontname << endl;
260 if (bold < 0 && normal < 0) {
261 lyxerr << "Using 'helvetica' font for menus" << endl;
262 bold = fl_set_font_name(FL_BOLD_STYLE,
263 "-*-helvetica-bold-r-*-*-*-?-*-*-*-*-iso8859-1");
264 normal = fl_set_font_name(FL_NORMAL_STYLE,
265 "-*-helvetica-medium-r-*-*-*-?-*-*-*-*-iso8859-1");
266 if (bold < 0 && normal < 0) {
267 lyxerr << "Could not find helvetica font. Using 'fixed'." << endl;
268 normal = fl_set_font_name(FL_NORMAL_STYLE, "fixed");
272 // put here (after fl_initialize) to avoid segfault. Cannot be done
273 // in setDefaults() (Matthias 140496)
274 // Moved from ::LyXGUI to ::init to allow popup font customization
276 fl_setpup_fontstyle(FL_NORMAL_STYLE);
277 fl_setpup_fontsize(FL_NORMAL_SIZE);
278 fl_setpup_color(FL_MCOL, FL_BLACK);
279 fl_set_goodies_font(FL_NORMAL_STYLE, FL_NORMAL_SIZE);
281 // all lyxrc settings has to be done here as lyxrc has not yet
282 // been read when the GUI is created (Jug)
285 fl_set_input(fd_form_print->input_printer,
286 lyxrc.printer.c_str());
289 if (!lyxrc.custom_export_command.empty())
290 fl_set_input(fd_form_sendto->input_cmd,
291 lyxrc.custom_export_command.c_str());
292 if (lyxrc.custom_export_format == "lyx")
293 fl_set_button(fd_form_sendto->radio_ftype_lyx, 1);
294 else if (lyxrc.custom_export_format == "tex")
295 fl_set_button(fd_form_sendto->radio_ftype_latex, 1);
296 else if (lyxrc.custom_export_format == "dvi")
297 fl_set_button(fd_form_sendto->radio_ftype_dvi, 1);
298 else if (lyxrc.custom_export_format == "ps")
299 fl_set_button(fd_form_sendto->radio_ftype_ps, 1);
300 else if (lyxrc.custom_export_format == "ascii")
301 fl_set_button(fd_form_sendto->radio_ftype_ascii, 1);
303 // Update parameters.
306 // Initialize the views.
309 // in 0.12 the initialisation of the LyXServer must be done here
310 // 0.13 it should be moved again...
311 lyxserver = new LyXServer(lyxViews->getLyXFunc(), lyxrc.lyxpipes);
315 void LyXGUI::create_forms()
317 lyxerr[Debug::INIT] << "Initializing LyXView..." << endl;
318 lyxViews = new LyXView(width, height);
319 lyxerr[Debug::INIT] << "Initializing LyXView...done" << endl;
321 // From here down should be done by somebody else. (Lgb)
328 if (lyxrc.show_banner) {
329 fd_form_title = create_form_form_title();
330 fl_set_form_dblbuffer(fd_form_title->form_title, 1); // use dbl buffer
331 fl_set_form_atclose(fd_form_title->form_title, CancelCloseBoxCB, 0);
332 fl_addto_form(fd_form_title->form_title);
333 #ifdef TWO_COLOR_ICONS
334 FL_OBJECT *obj = fl_add_bitmapbutton(FL_NORMAL_BUTTON, 0, 0, 425, 290, "");
335 fl_set_bitmapbutton_data(obj, banner_bw_width,
336 banner_bw_height, banner_bw_bits);
337 fl_set_object_color(obj, FL_WHITE, FL_BLACK);
339 FL_OBJECT *obj = fl_add_pixmapbutton(FL_NORMAL_BUTTON, 0, 0, 425, 290, "");
340 fl_set_pixmapbutton_data(obj, const_cast<char **>(banner));
342 fl_set_pixmapbutton_focus_outline(obj, 3);
344 fl_set_button_shortcut(obj, "^M ^[", 1);
345 fl_set_object_boxtype(obj, FL_NO_BOX);
346 fl_set_object_callback(obj, TimerCB, 0);
348 obj = fl_add_text(FL_NORMAL_TEXT, 248, 265, 170, 16, LYX_VERSION);
349 fl_set_object_lsize(obj, FL_NORMAL_SIZE);
350 #ifdef TWO_COLOR_ICONS
351 fl_set_object_color(obj, FL_WHITE, FL_WHITE);
352 fl_set_object_lcol(obj, FL_BLACK);
354 // fl_set_object_color(obj, FL_WHITE, FL_WHITE);
355 // fl_set_object_lcol(obj, FL_BLACK);
356 fl_mapcolor(FL_FREE_COL2, 0x05, 0x2e, 0x4c);
357 fl_mapcolor(FL_FREE_COL3, 0xe1, 0xd2, 0x9b);
358 fl_set_object_color(obj, FL_FREE_COL2, FL_FREE_COL2);
359 fl_set_object_lcol(obj, FL_FREE_COL3);
361 fl_set_object_lalign(obj, FL_ALIGN_CENTER|FL_ALIGN_INSIDE);
362 fl_set_object_lstyle(obj, FL_BOLD_STYLE);
366 // the paragraph form
367 fd_form_paragraph = create_form_form_paragraph();
368 fl_set_form_atclose(fd_form_paragraph->form_paragraph,
369 CancelCloseBoxCB, 0);
370 fl_addto_choice(fd_form_paragraph->choice_space_above,
371 _(" None | Defskip | Smallskip "
372 "| Medskip | Bigskip | VFill | Length "));
373 fl_addto_choice(fd_form_paragraph->choice_space_below,
374 _(" None | Defskip | Smallskip "
375 "| Medskip | Bigskip | VFill | Length "));
376 fl_set_input_return(fd_form_paragraph->input_space_above,
378 fl_set_input_return(fd_form_paragraph->input_space_below,
381 // the paragraph extra form
382 fd_form_paragraph_extra = create_form_form_paragraph_extra();
383 fl_set_form_atclose(fd_form_paragraph_extra->form_paragraph_extra,
384 CancelCloseBoxCB, 0);
385 fl_set_input_return(fd_form_paragraph_extra->input_pextra_width,
387 fl_set_input_return(fd_form_paragraph_extra->input_pextra_widthp,
390 // the character form
391 fd_form_character = create_form_form_character();
392 fl_set_form_atclose(fd_form_character->form_character,
393 CancelCloseBoxCB, 0);
394 fl_addto_choice(fd_form_character->choice_family,
395 _(" No change %l| Roman | Sans Serif | Typewriter %l| Reset "));
396 fl_addto_choice(fd_form_character->choice_series,
397 _(" No change %l| Medium | Bold %l| Reset "));
398 fl_addto_choice(fd_form_character->choice_shape,
399 _(" No change %l| Upright | Italic | Slanted | Small Caps "
401 fl_addto_choice(fd_form_character->choice_size,
402 _(" No change %l| Tiny | Smallest | Smaller | Small "
403 "| Normal | Large | Larger | Largest | Huge | Huger "
404 "%l| Increase | Decrease | Reset "));
405 fl_addto_choice(fd_form_character->choice_bar,
406 _(" No change %l| Emph | Underbar | Noun | LaTeX mode %l| Reset "));
407 fl_addto_choice(fd_form_character->choice_color,
408 _(" No change %l| No color | Black | White | Red | Green "
409 "| Blue | Cyan | Magenta | Yellow %l| Reset "));
410 fl_set_form_minsize(fd_form_character->form_character,
411 fd_form_character->form_character->w,
412 fd_form_character->form_character->h);
413 fl_addto_form(fd_form_character->form_character);
414 combo_language2 = new Combox(FL_COMBOX_DROPLIST);
415 FL_OBJECT * ob = fd_form_character->choice_language;
416 combo_language2->add(ob->x, ob->y, ob->w, ob->h, 250);
417 combo_language2->shortcut("#L", 1);
421 fd_form_document = create_form_form_document();
422 fl_set_form_atclose(fd_form_document->form_document,
423 CancelCloseBoxCB, 0);
424 fl_addto_choice(fd_form_document->choice_spacing,
425 _(" Single | OneHalf | Double | Other "));
427 fl_set_counter_bounds(fd_form_document->slider_secnumdepth,-2, 5);
428 fl_set_counter_bounds(fd_form_document->slider_tocdepth,-1, 5);
429 fl_set_counter_step(fd_form_document->slider_secnumdepth, 1, 1);
430 fl_set_counter_step(fd_form_document->slider_tocdepth, 1, 1);
431 fl_set_counter_precision(fd_form_document->slider_secnumdepth, 0);
432 fl_set_counter_precision(fd_form_document->slider_tocdepth, 0);
433 fl_addto_form(fd_form_document->form_document);
434 combo_language = new Combox(FL_COMBOX_DROPLIST);
435 ob = fd_form_document->choice_language;
436 combo_language->add(ob->x, ob->y, ob->w, ob->h, 250);
437 combo_language->shortcut("#G", 1);
440 // "default" is not part of the languages array any more.
441 combo_language->addto("default");
442 combo_language2->addto("No change");
443 for(Languages::const_iterator cit = languages.begin();
444 cit != languages.end(); ++cit) {
445 combo_language->addto((*cit).second.lang.c_str());
446 combo_language2->addto((*cit).second.lang.c_str());
448 combo_language2->select_text("No change");
450 // not really necessary, but we can do it anyway.
451 fl_addto_choice(fd_form_document->choice_fontsize, "default|10|11|12");
453 for (n = 0; tex_fonts[n][0]; ++n) {
454 fl_addto_choice(fd_form_document->choice_fonts, tex_fonts[n]);
457 fl_addto_choice(fd_form_document->choice_inputenc,
458 "default|latin1|latin2|latin5"
459 "|koi8-r|koi8-u|cp866|cp1251|iso88595");
461 for (n = 0; tex_graphics[n][0]; ++n) {
462 fl_addto_choice(fd_form_document->choice_postscript_driver,
465 // not really necessary, but we can do it anyway.
466 fl_addto_choice(fd_form_document->choice_pagestyle,
467 "default|empty|plain|headings|fancy");
468 fl_addto_choice(fd_form_document->choice_default_skip,
469 _(" Smallskip | Medskip | Bigskip | Length "));
470 fl_set_input_return(fd_form_document->input_default_skip,
472 fl_set_form_minsize(fd_form_document->form_document,
473 fd_form_document->form_document->w,
474 fd_form_document->form_document->h);
477 fd_form_paper = create_form_form_paper();
478 fl_set_form_atclose(fd_form_paper->form_paper,
479 CancelCloseBoxCB, 0);
480 fl_addto_choice(fd_form_paper->choice_papersize2,
481 _(" Default | Custom | USletter | USlegal "
482 "| USexecutive | A3 | A4 | A5 | B3 | B4 | B5 "));
483 fl_addto_choice(fd_form_paper->choice_paperpackage,
485 "| A4 small Margins (only portrait) "
486 "| A4 very small Margins (only portrait) "
487 "| A4 very wide margins (only portrait) "));
488 fl_set_input_return(fd_form_paper->input_custom_width,
490 fl_set_input_return(fd_form_paper->input_custom_height,
492 fl_set_input_return(fd_form_paper->input_top_margin,
494 fl_set_input_return(fd_form_paper->input_bottom_margin,
496 fl_set_input_return(fd_form_paper->input_left_margin,
498 fl_set_input_return(fd_form_paper->input_right_margin,
500 fl_set_input_return(fd_form_paper->input_head_height,
502 fl_set_input_return(fd_form_paper->input_head_sep,
504 fl_set_input_return(fd_form_paper->input_foot_skip,
507 // the table_options form
508 fd_form_table_options = create_form_form_table_options();
509 fl_set_form_atclose(fd_form_table_options->form_table_options,
510 CancelCloseBoxCB, 0);
511 fl_set_input_return(fd_form_table_options->input_column_width,
514 // the table_extra form
515 fd_form_table_extra = create_form_form_table_extra();
516 fl_set_form_atclose(fd_form_table_extra->form_table_extra,
517 CancelCloseBoxCB, 0);
518 fl_set_input_return(fd_form_table_extra->input_special_alignment,
520 fl_set_input_return(fd_form_table_extra->input_special_multialign,
524 fd_form_quotes = create_form_form_quotes();
525 fl_set_form_atclose(fd_form_quotes->form_quotes,
526 CancelCloseBoxCB, 0);
527 // Is it wrong of me to use « » instead of << >> ? (Lgb)
528 // Maybe if people use a font other than latin1... (JMarc)
529 fl_addto_choice(fd_form_quotes->choice_quotes_language,
530 _(" ``text'' | ''text'' | ,,text`` | ,,text'' | «text» | »text« "));
533 fd_form_preamble = create_form_form_preamble();
534 fl_set_form_atclose(fd_form_preamble->form_preamble,
535 CancelCloseBoxCB, 0);
538 fd_form_table = create_form_form_table();
539 fl_set_form_atclose(fd_form_table->form_table, CancelCloseBoxCB, 0);
540 fl_set_slider_bounds(fd_form_table->slider_rows, 1, 50);
541 fl_set_slider_bounds(fd_form_table->slider_columns, 1, 50);
542 fl_set_slider_value(fd_form_table->slider_rows, 5);
543 fl_set_slider_value(fd_form_table->slider_columns, 5);
544 fl_set_slider_precision(fd_form_table->slider_rows, 0);
545 fl_set_slider_precision(fd_form_table->slider_columns, 0);
548 fd_form_print = create_form_form_print();
549 fl_set_form_atclose(fd_form_print->form_print, CancelCloseBoxCB, 0);
550 fl_set_button(fd_form_print->radio_printer, 1);
551 fl_set_button(fd_form_print->radio_file, 0);
552 fl_set_button(fd_form_print->radio_order_normal, 1);
553 fl_set_button(fd_form_print->radio_order_reverse, 0);
554 fl_set_button(fd_form_print->radio_all_pages, 1);
555 fl_set_button(fd_form_print->radio_odd_pages, 0);
556 fl_set_button(fd_form_print->radio_even_pages, 0);
559 fd_form_sendto = create_form_form_sendto();
560 fl_set_form_atclose(fd_form_sendto->form_sendto, CancelCloseBoxCB, 0);
563 fd_form_figure = create_form_form_figure();
564 fl_set_form_atclose(fd_form_figure->form_figure,
565 CancelCloseBoxCB, 0);
566 fl_set_button(fd_form_figure->radio_postscript, 1);
569 fd_form_screen = create_form_form_screen();
570 fl_set_form_atclose(fd_form_screen->form_screen,
571 CancelCloseBoxCB, 0);
574 fd_form_toc = create_form_form_toc();
575 fl_addto_choice(fd_form_toc->toctype,
576 _(" TOC | LOF | LOT | LOA "));
577 fl_set_form_atclose(fd_form_toc->form_toc, CancelCloseBoxCB, 0);
580 fd_form_ref = create_form_form_ref();
581 fl_set_form_atclose(fd_form_ref->form_ref, CancelCloseBoxCB, 0);
582 fl_set_form_minsize(fd_form_ref->form_ref, fd_form_ref->form_ref->w,
583 fd_form_ref->form_ref->h);
585 // the latex options form
586 fd_latex_options = create_form_LaTeXOptions();
587 fl_set_form_atclose(fd_latex_options->LaTeXOptions,
588 CancelCloseBoxCB, 0);
590 // the latex log form
591 fd_latex_log = create_form_LaTeXLog();
592 fl_set_form_atclose(fd_latex_log->LaTeXLog,
593 CancelCloseBoxCB, 0);
595 // Show the main & title form
596 int main_placement = FL_PLACE_CENTER | FL_FREE_SIZE;
597 int title_placement = FL_PLACE_CENTER;
598 // Did we get a valid position?
599 if (xpos>= 0 && ypos>= 0) {
600 lyxViews->setPosition(xpos, ypos);
601 if (lyxrc.show_banner) {
602 // show the title form in the middle of the main form
603 fl_set_form_position(fd_form_title->form_title,
604 abs(xpos + (width/2) - (370 / 2)),
605 abs(ypos + (height/2) - (290 / 2)));
606 title_placement = FL_PLACE_GEOMETRY;
607 // The use of abs() above is a trick to ensure
610 main_placement = FL_PLACE_POSITION;
612 lyxViews->show(main_placement, FL_FULLBORDER, "LyX");
613 if (lyxrc.show_banner) {
614 fl_show_form(fd_form_title->form_title,
615 title_placement, FL_NOBORDER,
617 fl_redraw_form(fd_form_title->form_title);
618 fl_raise_form(fd_form_title->form_title);
620 // Show the title form at most 7 secs (lowered from 10 secs)
621 fl_set_timer(fd_form_title->timer_title, 7);
626 void LyXGUI::runTime()
627 /* This will usually be toolkit (GUI) specific. This is
628 * also usually the XEvent dispatcher of the GUI. */
637 if (fl_check_forms() == FL_EVENT) {
638 lyxerr << "LyX: This shouldn't happen..." << endl;
645 void LyXGUI::regBuf(Buffer * b)
647 lyxViews->view()->buffer(b);
650 LyXView * LyXGUI::getLyXView() const