2000-08-16 15:27:11 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright 2000 The LyX Team.
|
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef GUIRUNTIME_H
|
|
|
|
#define GUIRUNTIME_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/** The LyX GUI independent guiruntime class
|
2000-08-22 18:28:11 +00:00
|
|
|
The GUI interface is implemented in the corresponding
|
|
|
|
frontends GUIRunTime.C file.
|
|
|
|
*/
|
2000-08-16 15:27:11 +00:00
|
|
|
class GUIRunTime {
|
|
|
|
public:
|
2001-03-12 12:44:56 +00:00
|
|
|
/// initialise the toolkit
|
2000-09-11 15:30:21 +00:00
|
|
|
static
|
|
|
|
int initApplication(int argc, char * argv[]);
|
2001-03-12 12:44:56 +00:00
|
|
|
/// process pending events
|
2000-08-22 18:28:11 +00:00
|
|
|
static
|
|
|
|
void processEvents();
|
2001-03-12 12:44:56 +00:00
|
|
|
/// enter the permanent event loop until "finished" becomes false
|
2000-08-22 18:28:11 +00:00
|
|
|
static
|
|
|
|
void runTime();
|
2000-09-18 19:41:52 +00:00
|
|
|
/// This is run first in the LyXGUI constructor.
|
|
|
|
static
|
|
|
|
void setDefaults();
|
2000-08-16 15:27:11 +00:00
|
|
|
};
|
|
|
|
#endif
|