]> git.lyx.org Git - lyx.git/blob - src/frontends/kde/GUIRunTime.C
Changed so one can specify a images without extension and so use pdflatex AND
[lyx.git] / src / frontends / kde / GUIRunTime.C
1 /* This file is part of
2  * ======================================================
3  * 
4  *           LyX, The Document Processor
5  *       
6  *           Copyright 2000 The LyX Team.
7  *
8  * ====================================================== */
9
10 #include <config.h>
11
12 #ifdef __GNUG__
13 #pragma implementation
14 #endif
15
16 #include "GUIRunTime.h"
17 #include "debug.h"
18
19 #include <kapp.h>
20
21 #include FORMS_H_LOCATION
22
23 using std::endl;
24
25 extern bool finished;
26
27
28 void GUIRunTime::processEvents() 
29 {
30         kapp->processEvents();
31 }
32
33
34 void GUIRunTime::runTime()
35 {
36         // We still use xforms event handler as the main one...
37         XEvent ev;
38         while (!finished) {
39                 processEvents();
40                 if (fl_check_forms() == FL_EVENT) {
41                         lyxerr << "LyX: This shouldn't happen..." << endl;
42                         fl_XNextEvent(&ev);
43                 }
44         }
45 }