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[];
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_
// on Sunday 3rd of December
-void helpCb (puObject *)
+void helpCb ()
{
string command;
#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
// win32 print screen function
-void printScreen ( puObject *obj ) {
+void printScreen () {
bool show_pu_cursor = false;
TurnCursorOff();
if ( !puCursorIsHidden() ) {
#endif // #ifdef WIN32
-void fgDumpSnapShotWrapper ( puObject *obj ) {
+void fgDumpSnapShotWrapper () {
fgDumpSnapShot();
}
-void fgHiResDumpWrapper ( puObject *obj ) {
+void fgHiResDumpWrapper () {
fgHiResDump();
}
// stashed trackball(_quat0, 0.0, 0.0, 0.0, 0.0);
static float _quat0[4];
-float lastGuiQuat[4];
float curGuiQuat[4];
// To apply our mouse rotation quat to VIEW
}
-void reInit(puObject *cb)
+void reInit(void)
{
Quat0();
extern MouseMode mouse_mode;
extern int gui_menu_on;
-extern float lastGuiQuat[4];
extern float curGuiQuat[4];
extern float GuiQuat_mat[4][4];
extern void initMouseQuat( void );
extern void Quat0( void );
-class puObject;
-extern void reInit(puObject *cb);
+extern void reInit(void);
// user-configured dialogs and new commands where necessary.
////////////////////////////////////////////////////////////////////////
-extern void reInit (puObject *);
+extern void reInit (void);
static bool
do_reinit_dialog (const SGPropertyNode * arg)
{
- reInit(0);
+ reInit();
return true;
}
#if defined(TR_HIRES_SNAP)
-extern void dumpHiResSnapShot (puObject *);
+extern void dumpHiResSnapShot ();
static bool
do_hires_snapshot_dialog (const SGPropertyNode * arg)
{
- dumpHiResSnapShot(0);
+ dumpHiResSnapShot();
return true;
}
#endif // TR_HIRES_SNAP
#if defined( WIN32 ) && !defined( __CYGWIN__) && !defined(__MINGW32__)
-extern void printScreen (puObject *);
+extern void printScreen ();
static bool
do_print_dialog (const SGPropertyNode * arg)
{
- printScreen(0);
+ printScreen();
return true;
}
#endif
-extern void helpCb (puObject *);
+extern void helpCb ();
static bool
do_help_dialog (const SGPropertyNode * arg)
{
- helpCb(0);
+ helpCb();
return true;
}