2000-08-16 15:27:11 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
2001-05-30 13:53:44 +00:00
|
|
|
* Copyright 2000-2001 The LyX Team.
|
2000-08-16 15:27:11 +00:00
|
|
|
*
|
|
|
|
* ====================================================== */
|
|
|
|
|
|
|
|
#ifndef GUIRUNTIME_H
|
|
|
|
#define GUIRUNTIME_H
|
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
2001-07-03 16:13:01 +00:00
|
|
|
#include <X11/Xlib.h>
|
2001-07-03 15:19:04 +00:00
|
|
|
class LyXView;
|
|
|
|
|
2000-08-16 15:27:11 +00:00
|
|
|
/** 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();
|
2001-07-03 15:19:04 +00:00
|
|
|
///
|
|
|
|
static
|
|
|
|
LyXView * createMainView(int w, int h);
|
2001-07-03 16:13:01 +00:00
|
|
|
|
|
|
|
/* the following entries are X11 specific and should eventually go away */
|
|
|
|
/// The display on which LyX is running
|
|
|
|
static
|
|
|
|
Display * x11Display();
|
|
|
|
/// The screen on which LyX is running
|
|
|
|
static
|
|
|
|
int x11Screen();
|
|
|
|
/// The current colormap
|
|
|
|
static
|
|
|
|
Colormap x11Colormap();
|
|
|
|
/// The current visual depth
|
|
|
|
static
|
|
|
|
int x11VisualDepth();
|
2000-08-16 15:27:11 +00:00
|
|
|
};
|
|
|
|
#endif
|