#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	levelDialogId ;
extern int	levelOkBtnId ;
extern int	levelOkchk() ;
extern int	levelPlayBtnId ;
extern int	levelPlay() ;
extern int	levelUndoBtnId ;
extern int	levelUndo() ;
extern int	levelInfBtnId ;
extern int	levelInf() ;
extern int	levelCanBtnId ;
extern int	levelCanchk() ;
extern int	levelMesId[19] ;
extern int	levelSubDialogId ;
extern int	levelMulVolumeId ;
extern int	levelMulSet() ;
extern int	levelMulNumId ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataIOTLEV = { "MmiInit",  28, 0 } ;

/* levelDialogId */

static MMIPACKET d001 = {	&levelDialogId,
							NULL,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40,
							  30, 159, 610, 322, 8, 4, 8,
							MS_SRECTL40 | MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* levelOkBtnId */

static MMIPACKET d002 = {	&levelOkBtnId,
							&levelDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							  50, 291, 111, 314,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							levelOkchk,
							0x0000
						} ;

/* levelPlayBtnId */

static MMIPACKET d003 = {	&levelPlayBtnId,
							&levelDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d003d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 120, 291, 181, 314, 7, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							levelPlay,
							0x0000
						} ;

/* levelUndoBtnId */

static MMIPACKET d004 = {	&levelUndoBtnId,
							&levelDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d004d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 190, 291, 251, 314, 7, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							levelUndo,
							0x0000
						} ;

/* levelInfBtnId */

static MMIPACKET d005 = {	&levelInfBtnId,
							&levelDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d005d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 260, 291, 321, 314, 7, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							levelInf,
							0x0000
						} ;

/* levelCanBtnId */

static MMIPACKET d006 = {	&levelCanBtnId,
							&levelDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d006d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 530, 291, 591, 314,10, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							levelCanchk,
							0x0000
						} ;

/* levelMesId[0] */

static MMIPACKET d007 = {	&levelMesId[0],
							&levelDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d007d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							  60, 294, 103, 311, 8,15, 8,
							MS_NONEL40,
							"実  行",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[1] */

static MMIPACKET d008 = {	&levelMesId[1],
							&levelDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 128, 294, 174, 311, 8,15, 8,
							MS_NONEL40,
							"再  生",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[2] */

static MMIPACKET d009 = {	&levelMesId[2],
							&levelDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d009d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 196, 294, 247, 311, 8,15, 8,
							MS_NONEL40,
							"アンドゥ",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[3] */

static MMIPACKET d010 = {	&levelMesId[3],
							&levelDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 265, 294, 316, 311, 8,15, 8,
							MS_NONEL40,
							"情  報",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[4] */

static MMIPACKET d011 = {	&levelMesId[4],
							&levelDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d011d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 538, 294, 584, 311, 8,15, 8,
							MS_NONEL40,
							"取  消",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[5] */

static MMIPACKET d012 = {	&levelMesId[5],
							&levelDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d012d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  55, 163, 176, 181, 8,15, 8,
							MS_NONEL40,
							"レベルコントロール",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* levelSubDialogId */

static MMIPACKET d013 = {	&levelSubDialogId,
							&levelDialogId,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d013d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							  50, 183, 591, 284, 8, 4, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* levelMulVolumeId */

static MMIPACKET d014 = {	&levelMulVolumeId,
							&levelSubDialogId,
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d014d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_HORIL40,
							  72, 248, 503, 263, 8, 4, 7,
							MS_PANELL40 | MS_FRAMEL40,
							levelMulSet,
							  60,-160, 160,   1,   8,
							 265, 266
						} ;

/* levelMulNumId */

static MMIPACKET d015 = {	&levelMulNumId,
							&levelSubDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d015d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 519, 244, 574, 267, 8, 4, 8,
							MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
							levelMulSet,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							  60,-160, 160,   1,   1,
							 263, 264
						} ;

/* levelMesId[6] */

static MMIPACKET d016 = {	&levelMesId[6],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d016d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 265, 190, 314, 207, 0,15, 8,
							MS_NONEL40,
							"音  量",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

/* levelMesId[7] */

static MMIPACKET d017 = {	&levelMesId[7],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d017d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 123, 212, 160, 226, 0,15, 8,
							MS_NONEL40,
							"-12dB",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[8] */

static MMIPACKET d018 = {	&levelMesId[8],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d018d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 196, 212, 233, 226, 0,15, 8,
							MS_NONEL40,
							"-6dB",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[9] */

static MMIPACKET d019 = {	&levelMesId[9],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d019d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 280, 212, 298, 226, 0,15, 8,
							MS_NONEL40,
							"0dB",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[10] */

static MMIPACKET d020 = {	&levelMesId[10],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d020d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 348, 212, 375, 226, 0,15, 8,
							MS_NONEL40,
							"6dB",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[11] */

static MMIPACKET d021 = {	&levelMesId[11],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d021d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 419, 212, 446, 226, 0,15, 8,
							MS_NONEL40,
							"12dB",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[12] */

static MMIPACKET d022 = {	&levelMesId[12],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d022d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							  94, 234, 293, 248, 0,15, 8,
							MS_NONEL40,
							"| | | | | | | | | | | | | | | | ",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[13] */

static MMIPACKET d023 = {	&levelMesId[13],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d023d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 286, 234, 485, 248, 0,15, 8,
							MS_NONEL40,
							"| | | | | | | | | | | | | | | | |",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[14] */

static MMIPACKET d024 = {	&levelMesId[14],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d024d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 142, 228, 160, 242, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[15] */

static MMIPACKET d025 = {	&levelMesId[15],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d025d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 214, 228, 232, 242, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[16] */

static MMIPACKET d026 = {	&levelMesId[16],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d026d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 286, 228, 305, 242, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[17] */

static MMIPACKET d027 = {	&levelMesId[17],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d027d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 358, 228, 377, 242, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* levelMesId[18] */

static MMIPACKET d028 = {	&levelMesId[18],
							&levelSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d028d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 430, 228, 449, 242, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

