#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	masterHyperID ;
extern int	MJ_BASEOBJ ;
extern int	iconDialogID ;
extern int	iconDummyDButtonID ;
extern int	iconQuitIconID ;
extern int	iconQuitFunc() ;
extern int	iconMessageID ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataGUI = { "MmiInit",   5, 0 } ;

/* masterHyperID */

static MMIPACKET d001 = {	&masterHyperID,
							&MJ_BASEOBJ,
							&MJ_HYPER,
							OFFSET(HYPER),
							MS_NONE
						} ;
static HYPER	d001d = {	MS_NONEL40,
							   0,   0,  99,  99, 0, 0, 0,
							MS_NONEL40,
						} ;

/* iconDialogID */

static MMIPACKET d002 = {	&iconDialogID,
							&masterHyperID,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSONL40,
							   0, 455,  42, 479, 8, 7, 8,
							MS_PANELL40 | MS_BFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* iconDummyDButtonID */

static MMIPACKET d003 = {	&iconDummyDButtonID,
							&iconDialogID,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d003d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
							  17, 460,  37, 474, 8, 8, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							0,
							0x0000
						} ;

/* iconQuitIconID */

static MMIPACKET d004 = {	&iconQuitIconID,
							&iconDialogID,
							&MJ_ICONL40,
							OFFSET(ICONL40),
							MS_NONE
						} ;
static ICONL40	d004d = 	{	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_CENTERL40,
							   5, 462,  15, 472, 8, 9, 2,
							MS_UFRAMEL40 | MS_FRAMEL40,
							iconQuitFunc,
							0x801d, 512
						} ;

/* iconMessageID */

static MMIPACKET d005 = {	&iconMessageID,
							&iconDialogID,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_DSPONLYL40,
							  19, 462,  36, 473, 8, 8,15,
							MS_OPAQUEL40,
							"100",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

