#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	lineset_dialogId ;
extern int	lineset_numbox[1] ;
extern int	lineset_bottonId[2] ;
extern int	igo_linecancel() ;
extern int	igo_lineset() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataMILINE = { "MmiInit",   8, 0 } ;

/* lineset_dialogId */

static MMIPACKET d001 = {	&lineset_dialogId,
							NULL,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_SAVEL40,
							 255, 131, 515, 330, 8, 7, 8,
							MS_SRECTL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* NULL */

static MMIPACKET d002 = {	NULL,
							&lineset_dialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d002d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 301, 155, 460, 178, 8,15, 8,
							MS_NONEL40,
							"路盤設定",
							   1,  12,  12,
							MS_NONEL40,
							  10,   0
						} ;

/* NULL */

static MMIPACKET d003 = {	NULL,
							&lineset_dialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 410, 205, 460, 226, 8,15, 8,
							MS_NONEL40,
							"路盤",
							   1,  12,  12,
							MS_NONEL40,
							  10,   0
						} ;

/* lineset_numbox[0] */

static MMIPACKET d004 = {	&lineset_numbox[0],
							&lineset_dialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d004d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 344, 202, 397, 229, 8,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							  19,   2,  19,   1,   0,
							 263, 264
						} ;

/* lineset_bottonId[1] */

static MMIPACKET d005 = {	&lineset_bottonId[1],
							&lineset_dialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d005d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 398, 268, 477, 293,10,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							igo_linecancel,
							0x0000
						} ;

/* lineset_bottonId[0] */

static MMIPACKET d006 = {	&lineset_bottonId[0],
							&lineset_dialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d006d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 281, 267, 360, 292, 4,15, 8,
							MS_PANELL40 | MS_FRAMEL40,
							igo_lineset,
							0x0000
						} ;

/* NULL */

static MMIPACKET d007 = {	NULL,
							&lineset_dialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d007d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 285, 268, 358, 289, 8,15, 8,
							MS_NONEL40,
							"実行",
							   1,  12,  12,
							MS_NONEL40,
							  10,   0
						} ;

/* NULL */

static MMIPACKET d008 = {	NULL,
							&lineset_dialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 401, 269, 474, 291, 8,15, 8,
							MS_NONEL40,
							"取消",
							   1,  12,  12,
							MS_NONEL40,
							  10,   0
						} ;

