Debian Codegraph @

src/GUI/gui.h

raw symbols SCIP
1 /**************************************************************************
2 * gui.h
3 *
4 * Written 1998 by Durk Talsma, started Juni, 1998. For the flight gear
5 * project.
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 *
21 * $Id$
22 **************************************************************************/
23
24
25 #ifndef _GUI_H_
26 #define _GUI_H_
27
28 #ifdef HAVE_CONFIG_H
29 # include <config.h>
30 #endif
31
32 #include <simgear/structure/exception.hxx>
33
34 #include "FlightGear_pu.h"
35
36 #define TR_HIRES_SNAP 1
37
38 namespace osg
39 {
40 class GraphicsContext;
41 }
42 // gui.cxx
43 extern bool guiInit(osg::GraphicsContext* gc = nullptr);
44
45 extern bool openBrowser(const std::string& address);
46 extern void mkDialog(const char *txt);
47 extern void guiErrorMessage(const char *txt);
48 extern void guiErrorMessage(const char *txt, const sg_throwable &throwable);
49
50 extern bool fgDumpSnapShot();
51 void fgCancelSnapShot();
52
53 extern void fgDumpSceneGraph();
54 extern void fgDumpTerrainBranch();
55 extern void fgPrintVisibleSceneInfoCommand();
56
57 extern puFont guiFnt;
58 extern fntTexFont *guiFntHandle;
59 extern int gui_menu_on;
60
61 // from gui_funcs.cxx
62 extern void fgDumpSnapShotWrapper();
63 #ifdef TR_HIRES_SNAP
64 extern void fgHiResDumpWrapper();
65 extern void fgHiResDump();
66 #endif
67
68 extern void helpCb();
69
70 /// synchronize /sim/freeze properties with visiblity
71 /// of the popup-dialog which informs the user
72 void syncPausePopupState();
73
74 typedef struct {
75 const char *name;
76 void (*fn)();
77 } __fg_gui_fn_t;
78 extern const __fg_gui_fn_t __fg_gui_fn[];
79
80 #endif // _GUI_H_