FlightGear next
gui.h
Go to the documentation of this file.
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#pragma once
25
26#include <simgear/structure/exception.hxx>
27
28namespace osg
29{
30class GraphicsContext;
31}
32
33extern bool openBrowser(const std::string& address);
34extern void mkDialog(const char *txt);
35extern void guiErrorMessage(const char *txt);
36extern void guiErrorMessage(const char *txt, const sg_throwable &throwable);
37
38extern bool fgDumpSnapShot();
39void fgCancelSnapShot();
40
41extern void fgDumpSceneGraph();
42extern void fgDumpTerrainBranch();
44
45extern int gui_menu_on;
46
47// from gui_funcs.cxx
48extern void fgDumpSnapShotWrapper();
49
50extern void helpCb();
51
55
56typedef struct {
57 const char *name;
58 void (*fn)();
60extern const __fg_gui_fn_t __fg_gui_fn[];
bool fgDumpSnapShot()
void fgDumpSceneGraph()
void syncPausePopupState()
synchronize /sim/freeze properties with visiblity of the popup-dialog which informs the user
void fgDumpTerrainBranch()
void mkDialog(const char *txt)
Definition gui_funcs.cxx:91
void fgCancelSnapShot()
void guiErrorMessage(const char *txt)
void fgPrintVisibleSceneInfoCommand()
int gui_menu_on
bool openBrowser(const std::string &address)
void fgDumpSnapShotWrapper()
void helpCb()
const __fg_gui_fn_t __fg_gui_fn[]
Definition gui_funcs.cxx:75
Definition AIBase.hxx:25
const char * name
Definition gui.h:57
void(* fn)()
Definition gui.h:58