// **************************************************************************
// **************************************************************************
// **************************************************************************
// **                                                                      **
// ** POPUP.H                                                       MODULE **
// **                                                                      **
// ** Functions for a popup message box with user input.                   **
// **                                                                      **
// ** Last modified : 03 Feb 1998 by John Brandwood                        **
// **                                                                      **
// **************************************************************************
// **************************************************************************
// **************************************************************************

#ifndef __POPUP_h
#define __POPUP_h

#ifndef __LFPTYPES_h
 #include "lfptypes.h"
#endif

//
// GLOBAL DATA STRUCTURES AND DEFINITIONS
//

//
// DEFINITIONS
//

#ifndef DP_RGB
#define	DP_RGB(nn)          ((nn*255)/99)
#endif

#define	RGB_MESSAGE_BOXTL   DP_RGB(29),DP_RGB(29),DP_RGB(42),255
#define	RGB_MESSAGE_BOXTR   DP_RGB(23),DP_RGB(23),DP_RGB(36),255
#define	RGB_MESSAGE_BOXBL   DP_RGB(14),DP_RGB(14),DP_RGB(21),255
#define	RGB_MESSAGE_BOXBR   DP_RGB(11),DP_RGB(11),DP_RGB(18),255
#define	RGB_MESSAGE_EDGE    DP_RGB(12),DP_RGB(48),DP_RGB(48),255
#define	RGB_MESSAGE_BUTTON  DP_RGB(30),DP_RGB(30),DP_RGB(30),128
#define	RGB_MESSAGE_HILITE  DP_RGB(55),DP_RGB(55),DP_RGB(55),255

// The following definitions correspond to shell's loading order
// from SHELL.C

#define	MFNT_TINY10         "\1"
#define	MFNT_BLKBT18        "\2"
#define	MFNT_BLKBT22        "\3"
#define	MFNT_BLKBT24        "\4"
#define	MFNT_BLKCN18        "\5"
#define	MFNT_BLKCN22        "\6"
#define	MFNT_BLKCN24        "\7"
#define	MFNT_BLKCN50        "\8"
#define	MFNT_BLKEX26        "\9"
#define	MFNT_EXBT18         "\10"

#define	MPAL_BLACK          "\1"
#define	MPAL_WHITE          "\2"
#define	MPAL_GREY           "\3"
#define	MPAL_RED            "\4"
#define	MPAL_YELLOW         "\5"
#define	MPAL_BLUE           "\6"
#define	MPAL_GREEN          "\7"
#define	MPAL_BENCH          "\8"

#define	MTAB_XL             "\0"
#define	MTAB_XC             "\1"
#define	MTAB_XR             "\2"

//
// GLOBAL VARIABLES
//

//
// GLOBAL FUNCTION PROTOTYPES
//

extern	int                 IsPopupShown            (void);
extern	int                 IsPopupFullSize         (void);

extern	int                 InitPopup               (char *, char *, UB *);
extern	int                 ExitPopup               (void);
extern	int                 ProcPopup               (void);
extern	Gfx *               DrawPopup               (Gfx *);

extern	void                StopPopup               (void);

//
// End Of __POPUP_h
//

#endif



// **************************************************************************
// **************************************************************************
// **************************************************************************
//	END OF POPUP.H
// **************************************************************************
// **************************************************************************
// **************************************************************************

