]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/GUIRunTime_pimpl.C
Marko's GNOME patch, some modifications to this, some fixes.
[lyx.git] / src / frontends / kde / 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 "GUIRunTime_pimpl.h"
19 #include "debug.h"
20
21 #include <kapp.h>
22
23 #include FORMS_H_LOCATION
24
25 using std::endl;
26
27 extern bool finished;
28
29
30 void GUIRunTime::Pimpl::processEvents() 
31 {
32     kapp->processEvents();
33 }
34
35
36 void GUIRunTime::Pimpl::runTime()
37 {
38         // We still use xforms event handler as te main one...
39         XEvent ev;
40         while (!finished) {
41                 Pimpl::processEvents();
42                 if (fl_check_forms() == FL_EVENT) {
43                         lyxerr << "LyX: This shouldn't happen..." << endl;
44                         fl_XNextEvent(&ev);
45                 }
46         }
47 }
48