- remove unused puObject args in gui fgcommands
- remove no longer used PU macros
This commit is contained in:
parent
889f3926f2
commit
ecd5521bf8
5 changed files with 20 additions and 49 deletions
|
@ -56,20 +56,20 @@ 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[];
|
||||
|
||||
|
@ -79,30 +79,4 @@ 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_
|
||||
|
|
|
@ -197,7 +197,7 @@ ____________________________________________________________________*/
|
|||
// on Sunday 3rd of December
|
||||
|
||||
|
||||
void helpCb (puObject *)
|
||||
void helpCb ()
|
||||
{
|
||||
string command;
|
||||
|
||||
|
@ -489,7 +489,7 @@ GLubyte *hiResScreenCapture( int multiplier )
|
|||
|
||||
#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() ) {
|
||||
|
@ -511,12 +511,12 @@ void printScreen ( puObject *obj ) {
|
|||
#endif // #ifdef WIN32
|
||||
|
||||
|
||||
void fgDumpSnapShotWrapper ( puObject *obj ) {
|
||||
void fgDumpSnapShotWrapper () {
|
||||
fgDumpSnapShot();
|
||||
}
|
||||
|
||||
|
||||
void fgHiResDumpWrapper ( puObject *obj ) {
|
||||
void fgHiResDumpWrapper () {
|
||||
fgHiResDump();
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,6 @@
|
|||
// 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
|
||||
|
@ -46,7 +45,7 @@ void initMouseQuat(void) {
|
|||
}
|
||||
|
||||
|
||||
void reInit(puObject *cb)
|
||||
void reInit(void)
|
||||
{
|
||||
Quat0();
|
||||
|
||||
|
|
|
@ -23,12 +23,10 @@ typedef enum {
|
|||
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);
|
||||
|
|
|
@ -26,39 +26,39 @@
|
|||
// 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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue