lyx_mirror/src/frontends/xforms/GUIRunTime_pimpl.C

49 lines
837 B
C++
Raw Normal View History

/* This file is part of
* ======================================================
*
* LyX, The Document Processor
*
* Copyright (C) 2000 The LyX Team.
*
* @author J<EFBFBD>rgen Vigna
*
*======================================================*/
#include <config.h>
#ifdef __GNUG__
#pragma implementation
#endif
#include FORMS_H_LOCATION
#include "GUIRunTime_pimpl.h"
#include "debug.h"
using std::endl;
extern bool finished;
void GUIRunTime::Pimpl::processEvents()
{
XEvent ev;
if (fl_do_forms() == FL_EVENT) {
lyxerr << "LyX: This shouldn't happen..." << endl;
fl_XNextEvent(&ev);
}
}
void GUIRunTime::Pimpl::runTime()
{
XEvent ev;
while (!finished) {
if (fl_check_forms() == FL_EVENT) {
lyxerr << "LyX: This shouldn't appen..." << endl;
fl_XNextEvent(&ev);
}
}
}