2000-08-16 15:27:11 +00:00
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2000-08-22 18:28:11 +00:00
|
|
|
* Copyright 2000 The LyX Team.
|
2000-08-16 15:27:11 +00:00
|
|
|
*
|
|
|
|
*======================================================*/
|
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma implementation
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include FORMS_H_LOCATION
|
2000-08-22 18:28:11 +00:00
|
|
|
#include "GUIRunTime.h"
|
2000-08-16 15:27:11 +00:00
|
|
|
#include "debug.h"
|
|
|
|
|
2000-08-16 23:48:48 +00:00
|
|
|
using std::endl;
|
|
|
|
|
|
|
|
extern bool finished;
|
2000-08-16 15:27:11 +00:00
|
|
|
|
|
|
|
|
2000-08-22 18:28:11 +00:00
|
|
|
void GUIRunTime::processEvents()
|
2000-08-16 15:27:11 +00:00
|
|
|
{
|
|
|
|
XEvent ev;
|
|
|
|
|
2000-08-16 23:48:48 +00:00
|
|
|
if (fl_do_forms() == FL_EVENT) {
|
2000-08-16 15:27:11 +00:00
|
|
|
lyxerr << "LyX: This shouldn't happen..." << endl;
|
|
|
|
fl_XNextEvent(&ev);
|
|
|
|
}
|
|
|
|
}
|
2000-08-16 23:48:48 +00:00
|
|
|
|
|
|
|
|
2000-08-22 18:28:11 +00:00
|
|
|
void GUIRunTime::runTime()
|
2000-08-16 23:48:48 +00:00
|
|
|
{
|
|
|
|
XEvent ev;
|
|
|
|
while (!finished) {
|
|
|
|
if (fl_check_forms() == FL_EVENT) {
|
|
|
|
lyxerr << "LyX: This shouldn't appen..." << endl;
|
|
|
|
fl_XNextEvent(&ev);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|