]> git.lyx.org Git - features.git/blob - src/frontends/xforms/GUIRunTime_pimpl.C
fixed the fix for FormDocument's policy
[features.git] / src / frontends / xforms / GUIRunTime_pimpl.C
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *           Copyright (C) 2000 The LyX Team.
7  *
8  *           @author Jürgen Vigna
9  *
10  *======================================================*/
11
12 #include <config.h>
13
14 #ifdef __GNUG__
15 #pragma implementation
16 #endif
17
18 #include FORMS_H_LOCATION
19 #include "GUIRunTime_pimpl.h"
20 #include "debug.h"
21
22 using std::endl;
23
24 extern bool finished;
25
26
27 void GUIRunTime::Pimpl::processEvents() 
28 {
29     XEvent ev;
30
31     if (fl_do_forms() == FL_EVENT) {
32         lyxerr << "LyX: This shouldn't happen..." << endl;
33         fl_XNextEvent(&ev);
34     }
35 }
36
37
38 void GUIRunTime::Pimpl::runTime()
39 {
40         XEvent ev;
41         while (!finished) {
42                 if (fl_check_forms() == FL_EVENT) {
43                         lyxerr << "LyX: This shouldn't appen..." << endl;
44                         fl_XNextEvent(&ev);
45                 }
46         }
47 }
48