#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	trimDialogId ;
extern int	trimSubDialogId ;
extern int	trimMesId[21] ;
extern int	trimNumId[2] ;
extern int	trimOkBtnId ;
extern int	trimOkchk() ;
extern int	trimPlayBtnId ;
extern int	trimPlay() ;
extern int	trimUndoBtnId ;
extern int	trimUndo() ;
extern int	trimFixBtnId ;
extern int	trimFix() ;
extern int	trimInfBtnId ;
extern int	trimInf() ;
extern int	trimCanBtnId ;
extern int	trimCanchk() ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataIWVTRM = { "MmiInit",  31, 0 } ;

/* trimDialogId */

static MMIPACKET d001 = {	&trimDialogId,
							NULL,
							&MJ_ALERTL40,
							OFFSET(ALERTL40),
							MS_NONE
						} ;
static ALERTL40	d001d = {	MS_BTLEFTL40 | MS_EVMOVEL40 | MS_EVMOSONL40 | MS_EVKEYONL40,
							  98, 111, 543, 386, 8, 4, 8,
							MS_PANELL40 | MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   0,   0,   0,   0
						} ;

/* trimSubDialogId */

static MMIPACKET d002 = {	&trimSubDialogId,
							&trimDialogId,
							&MJ_DIALOGL40,
							OFFSET(DIALOGL40),
							MS_NONE
						} ;
static DIALOGL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_FIXEDL40,
							 104, 143, 537, 330, 8, 4, 8,
							MS_DFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0
						} ;

/* trimMesId[7] */

static MMIPACKET d003 = {	&trimMesId[7],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d003d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 304, 166, 383, 183, 0,15, 8,
							MS_NONEL40,
							"時間１（秒）",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[8] */

static MMIPACKET d004 = {	&trimMesId[8],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 304, 202, 383, 219, 0,15, 8,
							MS_NONEL40,
							"時間２（秒）",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[9] */

static MMIPACKET d005 = {	&trimMesId[9],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d005d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 224, 241, 258, 258, 0,15, 8,
							MS_NONEL40,
							"カット",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[10] */

static MMIPACKET d006 = {	&trimMesId[10],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d006d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 394, 241, 433, 258, 0,15, 8,
							MS_NONEL40,
							"カット",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[11] */

static MMIPACKET d007 = {	&trimMesId[11],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d007d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 191, 255, 224, 272, 0,15, 8,
							MS_NONEL40,
							"start",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[12] */

static MMIPACKET d008 = {	&trimMesId[12],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d008d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 434, 255, 457, 272, 0,15, 8,
							MS_NONEL40,
							"end",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[13] */

static MMIPACKET d009 = {	&trimMesId[13],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d009d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 223, 301, 259, 318, 0,15, 8,
							MS_NONEL40,
							"時間１",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[14] */

static MMIPACKET d010 = {	&trimMesId[14],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 396, 301, 432, 318, 0,15, 8,
							MS_NONEL40,
							"時間２",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[15] */

static MMIPACKET d011 = {	&trimMesId[15],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d011d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 254, 249, 398, 275, 0,15, 8,
							MS_NONEL40,
							"−",
							   1, 160,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[16] */

static MMIPACKET d012 = {	&trimMesId[16],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d012d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 177, 282, 459, 308, 0,15, 8,
							MS_NONEL40,
							"−",
							   1, 320,  16,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[17] */

static MMIPACKET d013 = {	&trimMesId[17],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d013d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 202, 272, 232, 294, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  24,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[18] */

static MMIPACKET d014 = {	&trimMesId[18],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d014d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 265, 260, 288, 293, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  35,
							MS_NONEL40,
							   1,   0
						} ;

/* trimMesId[19] */

static MMIPACKET d015 = {	&trimMesId[19],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d015d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 384, 260, 407, 293, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  35,
							MS_NONEL40,
							   1,   0
						} ;

/* trimMesId[3] */

static MMIPACKET d016 = {	&trimMesId[3],
							&trimSubDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d016d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 441, 272, 462, 294, 0,15, 8,
							MS_NONEL40,
							"|",
							   1,  12,  24,
							MS_NONEL40,
							   0,   0
						} ;

/* trimNumId[0] */

static MMIPACKET d017 = {	&trimNumId[0],
							&trimSubDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d017d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 389, 163, 462, 186, 8, 4, 8,
							MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							  50,   0,9999,   1,   2,
							 263, 264
						} ;

/* trimNumId[1] */

static MMIPACKET d018 = {	&trimNumId[1],
							&trimSubDialogId,
							&MJ_NUMBOXL40,
							OFFSET(NUMBOXL40),
							MS_NONE
						} ;
static NUMBOXL40	d018d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40 | MS_EVKEYONL40 | MS_RIGHTL40,
							 389, 199, 462, 222, 8, 4, 8,
							MS_PANELL40 | MS_DFRAMEL40 | MS_FRAMEL40,
							0,
							   1,  12,  12,
							MS_NONEL40,
							   0,   0,
							  50,   0,9999,   1,   2,
							 263, 264
						} ;

/* trimOkBtnId */

static MMIPACKET d019 = {	&trimOkBtnId,
							&trimDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d019d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 104, 347, 165, 370,12, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							trimOkchk,
							0x0000
						} ;

/* trimPlayBtnId */

static MMIPACKET d020 = {	&trimPlayBtnId,
							&trimDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d020d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 174, 347, 235, 370, 7, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							trimPlay,
							0x0000
						} ;

/* trimUndoBtnId */

static MMIPACKET d021 = {	&trimUndoBtnId,
							&trimDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d021d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 244, 347, 305, 370, 7, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							trimUndo,
							0x0000
						} ;

/* trimFixBtnId */

static MMIPACKET d022 = {	&trimFixBtnId,
							&trimDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d022d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 314, 347, 375, 370, 7, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							trimFix,
							0x0000
						} ;

/* trimInfBtnId */

static MMIPACKET d023 = {	&trimInfBtnId,
							&trimDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d023d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 384, 347, 445, 370, 7, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							trimInf,
							0x0000
						} ;

/* trimCanBtnId */

static MMIPACKET d024 = {	&trimCanBtnId,
							&trimDialogId,
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d024d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 476, 347, 537, 370,10, 4, 8,
							MS_PANELL40 | MS_FRAMEL40,
							trimCanchk,
							0x0000
						} ;

/* trimMesId[0] */

static MMIPACKET d025 = {	&trimMesId[0],
							&trimDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d025d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 113, 350, 156, 367, 8,15, 8,
							MS_NONEL40,
							"実  行",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[1] */

static MMIPACKET d026 = {	&trimMesId[1],
							&trimDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d026d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 182, 350, 228, 367, 8,15, 8,
							MS_NONEL40,
							"再  生",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[2] */

static MMIPACKET d027 = {	&trimMesId[2],
							&trimDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d027d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 250, 350, 301, 367, 8,15, 8,
							MS_NONEL40,
							"アンドゥ",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[20] */

static MMIPACKET d028 = {	&trimMesId[20],
							&trimDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d028d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 321, 350, 367, 367, 8,15, 8,
							MS_NONEL40,
							"定  着",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[4] */

static MMIPACKET d029 = {	&trimMesId[4],
							&trimDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d029d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 391, 350, 437, 367, 8,15, 8,
							MS_NONEL40,
							"情  報",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[5] */

static MMIPACKET d030 = {	&trimMesId[5],
							&trimDialogId,
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d030d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 485, 350, 529, 367, 8,15, 8,
							MS_NONEL40,
							"取  消",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* trimMesId[6] */

static MMIPACKET d031 = {	&trimMesId[6],
							&trimDialogId,
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d031d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 111, 120, 184, 135, 8,15, 8,
							MS_NONEL40,
							"トリミング",
							   1,  12,  12,
							MS_BOLDL40,
							   0,   0
						} ;

