X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FGUI%2Fgui.h;h=5b8478e95f2023cf21db372f9c358742017279ed;hb=1ae2b59333dc914d10bcc726bc94e71cbf3e411e;hp=4897b0ed929130e021e3a145ef4526b702f3f061;hpb=580ebf637b991bbc5bb6b9632e8e62845d23ea43;p=flightgear.git diff --git a/src/GUI/gui.h b/src/GUI/gui.h index 4897b0ed9..5b8478e95 100644 --- a/src/GUI/gui.h +++ b/src/GUI/gui.h @@ -29,19 +29,18 @@ # include #endif -#ifdef HAVE_WINDOWS_H -# include -#endif - #include #include #define TR_HIRES_SNAP 1 - +namespace osg +{ +class GraphicsContext; +} // gui.cxx -extern void guiStartInit(); +extern void guiStartInit(osg::GraphicsContext*); extern bool guiFinishInit(); extern void mkDialog(const char *txt); extern void guiErrorMessage(const char *txt); @@ -56,53 +55,21 @@ extern fntTexFont *guiFntHandle; extern int gui_menu_on; // from gui_funcs.cxx -extern void reInit(puObject *); -extern void fgDumpSnapShotWrapper(puObject *); +extern void reInit(void); +extern void fgDumpSnapShotWrapper(); #ifdef TR_HIRES_SNAP -extern void fgHiResDumpWrapper(puObject *); +extern void fgHiResDumpWrapper(); extern void fgHiResDump(); #endif #if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__) -extern void printScreen(puObject *); +extern void printScreen(); #endif -extern void helpCb(puObject *); +extern void helpCb(); typedef struct { const char *name; - void (*fn)(puObject *); + void (*fn)(); } __fg_gui_fn_t; extern const __fg_gui_fn_t __fg_gui_fn[]; -// mouse.cxx -extern void guiInitMouse(int width, int height); -extern void maybeToggleMouse( void ); -extern void TurnCursorOn( void ); -extern void TurnCursorOff( void ); - -// MACROS TO HELP KEEP PUI LIVE INTERFACE STACK IN SYNC -// These insure that the mouse is active when dialog is shown -// and try to the maintain the original mouse state when hidden -// These will also repair any damage done to the Panel if active - -// Activate Dialog Box -inline void FG_PUSH_PUI_DIALOG( puObject *X ) { - maybeToggleMouse(); - puPushLiveInterface( (puInterface *)X ) ; - X->reveal() ; -} - -// Deactivate Dialog Box -inline void FG_POP_PUI_DIALOG( puObject *X ) { - X->hide(); - puPopLiveInterface(); - maybeToggleMouse(); -} - -// Finalize Dialog Box Construction -inline void FG_FINALIZE_PUI_DIALOG( puObject *X ) { - ((puGroup *)X)->close(); - X->hide(); - puPopLiveInterface(); -} - #endif // _GUI_H_