X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2FGUIRunTime.h;h=5bfc5c57cbded9e664f023b34999acb8c66b875a;hb=1070702ea46b36ec5016bad2fe97649cec5e6148;hp=fcf0289be18c4479991b5204d309ce9bf77131a2;hpb=0ed115d608d8b2342c72b77ea8db4143bf16d7d1;p=lyx.git diff --git a/src/frontends/GUIRunTime.h b/src/frontends/GUIRunTime.h index fcf0289be1..5bfc5c57cb 100644 --- a/src/frontends/GUIRunTime.h +++ b/src/frontends/GUIRunTime.h @@ -4,9 +4,7 @@ * * LyX, The Document Processor * - * Copyright 2000 The LyX Team. - * - * @author Jürgen Vigna + * Copyright 2000-2001 The LyX Team. * * ====================================================== */ @@ -17,27 +15,46 @@ #pragma interface #endif +#include class LyXView; /** The LyX GUI independent guiruntime class - The GUI interface is implemented in the corresponding GUIRunTime_pimpl class. - */ + The GUI interface is implemented in the corresponding + frontends GUIRunTime.C file. +*/ class GUIRunTime { public: - /// - GUIRunTime(); - /// - ~GUIRunTime(); - /// - void processEvents(); - /// - void runTime(); - - struct Pimpl; - friend struct Pimpl; - -private: - /// - Pimpl * pimpl_; + /// initialise the toolkit + static + int initApplication(int & argc, char * argv[]); + /// process pending events + static + void processEvents(); + /// enter the permanent event loop until "finished" becomes false + static + void runTime(); + /// This is run first in the LyXGUI constructor. + static + void setDefaults(); + /// + static + LyXView * createMainView(int w, int h); + +/* 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(); + /// the server's DPI estimate + static + float getScreenDPI(); }; #endif