1 /**************************************************************************
4 * Written 1998 by Durk Talsma, started Juni, 1998. For the flight gear
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.
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.
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., 675 Mass Ave, Cambridge, MA 02139, USA.
22 **************************************************************************/
28 #include <pu.h> // plib include
30 extern void guiInit();
31 extern void guiMotionFunc ( int x, int y );
32 extern void guiMouseFunc(int button, int updown, int x, int y);
33 extern void maybeToggleMouse( void );
34 extern void BusyCursor( int restore );
36 extern void guiToggleMenu(void);
37 extern void mkDialog(const char *txt);
38 extern void ConfirmExitDialog(void);
39 extern void guiFixPanel( void );
42 extern fntTexFont *guiFntHandle;
44 // GLOBAL COMMON DIALOG BOX TEXT STRINGS
45 extern char *gui_msg_OK; // "OK"
46 extern char *gui_msg_NO; // "NO"
47 extern char *gui_msg_YES; // "YES"
48 extern char *gui_msg_CANCEL; // "CANCEL"
49 extern char *gui_msg_RESET; // "RESET"
51 // MACROS TO HELP KEEP PUI LIVE INTERFACE STACK IN SYNC
52 // These insure that the mouse is active when dialog is shown
53 // and try to the maintain the original mouse state when hidden
54 // These will also repair any damage done to the Panel if active
56 // Activate Dialog Box
57 #define FG_PUSH_PUI_DIALOG( X ) \
59 puPushLiveInterface( (X) ) ; \
62 // Deactivate Dialog Box
63 #define FG_POP_PUI_DIALOG( X ) \
65 puPopLiveInterface(); \
69 // Finalize Dialog Box Construction
70 #define FG_FINALIZE_PUI_DIALOG( X ) \