]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/GUIRunTime_pimpl.C
have a real runTime method for all frontends
[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 <kapp.h>
20
21 using std::endl;
22
23 extern bool finished;
24
25
26 void GUIRunTime::Pimpl::processEvents() 
27 {
28     kapp->processEvents();
29 }
30
31
32 void GUIRunTime::Pimpl::runTime()
33 {
34         // We still use xforms event handler as te main one...
35         XEvent ev;
36         while (!finished) {
37                 Pimpl::processEvents();
38                 if (fl_check_forms() == FL_EVENT) {
39                         lyxerr << "LyX: This shouldn't happen..." << endl;
40                         fl_XNextEvent(&ev);
41                 }
42         }
43 }
44