#include <stdio.h>
#include <stdlib.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>

extern int	idImageStoreWin[2] ;
extern int	ImageStoreWinFunc() ;
extern int	idImageStoreTitleDBtn[2] ;
extern int	idImageStoreSBarV[2] ;
extern int	ImageStoreSBarFunc() ;
extern int	idImageStoreTitleMsg[2] ;
extern int	idImageStoreEditMenuDBtn[2] ;
extern int	idImageStoreEditDBtn[2][3] ;
extern int	ImageStoreEditDBtnFunc() ;
extern int	idImageStoreEditMsg[2][3] ;

#define ALIGN	4
#define OFFSET(type) (sizeof(MMIPACKET) + (sizeof(type)+ALIGN-1)/ALIGN*ALIGN)

/*	MMI_init 用データ	*/

/*	ヘッダ	*/

MMIINIT	initDataZIMSTORE = { "MmiInit",  22, 0 } ;

/* idImageStoreWin[0] */

static MMIPACKET d001 = {	&idImageStoreWin[0],
							NULL,
							&MJ_WINDOWL40,
							OFFSET(WINDOWL40),
							MS_NONE
						} ;
static WINDOWL40	d001d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_HIDEL40 | MS_RESIZEL40,
							 298,  20, 639, 249, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   1,  17,   0,   0,
							 128,  96, 640, 480,
							ImageStoreWinFunc,
							"ウィンドウ",
						} ;

/* idImageStoreTitleDBtn[0] */

static MMIPACKET d002 = {	&idImageStoreTitleDBtn[0],
							&idImageStoreWin[0],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d002d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
							 299,  21, 638,  36, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							0,
							0x0000
						} ;

/* idImageStoreSBarV[0] */

static MMIPACKET d003 = {	&idImageStoreSBarV[0],
							&idImageStoreWin[0],
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d003d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
							 624,  36, 639, 234, 8, 6, 6,
							MS_PANELL40 | MS_FRAMEL40,
							ImageStoreSBarFunc,
							   0,   0, 255,  16,  16,
							 263, 264
						} ;

/* idImageStoreTitleMsg[0] */

static MMIPACKET d004 = {	&idImageStoreTitleMsg[0],
							&idImageStoreWin[0],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d004d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 315,  22, 388,  35, 8, 6, 8,
							MS_NONEL40,
							"静止画倉庫",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idImageStoreEditMenuDBtn[0] */

static MMIPACKET d005 = {	&idImageStoreEditMenuDBtn[0],
							&idImageStoreWin[0],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d005d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
							 299, 231, 623, 248, 8, 4, 8,
							MS_NONEL40,
							0,
							0x0000
						} ;

/* idImageStoreEditDBtn[0][0] */

static MMIPACKET d006 = {	&idImageStoreEditDBtn[0][0],
							&idImageStoreWin[0],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d006d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 306, 232, 347, 247, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							ImageStoreEditDBtnFunc,
							0x0000
						} ;

/* idImageStoreEditDBtn[0][1] */

static MMIPACKET d007 = {	&idImageStoreEditDBtn[0][1],
							&idImageStoreWin[0],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d007d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 351, 232, 392, 247, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							ImageStoreEditDBtnFunc,
							0x0000
						} ;

/* idImageStoreEditDBtn[0][2] */

static MMIPACKET d008 = {	&idImageStoreEditDBtn[0][2],
							&idImageStoreWin[0],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d008d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 396, 232, 437, 247, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							ImageStoreEditDBtnFunc,
							0x0000
						} ;

/* idImageStoreEditMsg[0][0] */

static MMIPACKET d009 = {	&idImageStoreEditMsg[0][0],
							&idImageStoreWin[0],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d009d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 309, 234, 344, 245, 8, 6, 8,
							MS_NONEL40,
							"cut",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idImageStoreEditMsg[0][1] */

static MMIPACKET d010 = {	&idImageStoreEditMsg[0][1],
							&idImageStoreWin[0],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d010d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 355, 234, 388, 245, 8, 6, 8,
							MS_NONEL40,
							"copy",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idImageStoreEditMsg[0][2] */

static MMIPACKET d011 = {	&idImageStoreEditMsg[0][2],
							&idImageStoreWin[0],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d011d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 398, 234, 435, 246, 8, 6, 8,
							MS_NONEL40,
							"paste",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idImageStoreWin[1] */

static MMIPACKET d012 = {	&idImageStoreWin[1],
							NULL,
							&MJ_WINDOWL40,
							OFFSET(WINDOWL40),
							MS_NONE
						} ;
static WINDOWL40	d012d = {	MS_BTLEFTL40 | MS_EVMOSONL40 | MS_HIDEL40 | MS_RESIZEL40,
							 298, 250, 639, 479, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							NULL,   0,   0,
							   1,  17,   0,   0,
							 128,  96, 640, 480,
							ImageStoreWinFunc,
							"ウィンドウ",
						} ;

/* idImageStoreTitleDBtn[1] */

static MMIPACKET d013 = {	&idImageStoreTitleDBtn[1],
							&idImageStoreWin[1],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d013d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
							 299, 251, 638, 266, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							0,
							0x0000
						} ;

/* idImageStoreSBarV[1] */

static MMIPACKET d014 = {	&idImageStoreSBarV[1],
							&idImageStoreWin[1],
							&MJ_SCRLL40,
							OFFSET(SCRLL40),
							MS_NONE
						} ;
static SCRLL40	d014d = 	{	MS_BTLEFTL40 | MS_REPEATL40 | MS_EVMOSONL40,
							 624, 266, 639, 464, 8, 6, 6,
							MS_PANELL40 | MS_FRAMEL40,
							ImageStoreSBarFunc,
							   0,   0, 255,  16,  16,
							 263, 264
						} ;

/* idImageStoreTitleMsg[1] */

static MMIPACKET d015 = {	&idImageStoreTitleMsg[1],
							&idImageStoreWin[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d015d = 	{	MS_LEFTL40 | MS_DSPONLYL40,
							 315, 252, 388, 265, 8, 6, 8,
							MS_NONEL40,
							"動画倉庫",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idImageStoreEditMenuDBtn[1] */

static MMIPACKET d016 = {	&idImageStoreEditMenuDBtn[1],
							&idImageStoreWin[1],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d016d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40 | MS_DSPONLYL40,
							 299, 461, 623, 478, 8, 4, 8,
							MS_NONEL40,
							0,
							0x0000
						} ;

/* idImageStoreEditDBtn[1][0] */

static MMIPACKET d017 = {	&idImageStoreEditDBtn[1][0],
							&idImageStoreWin[1],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d017d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 306, 462, 347, 477, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							ImageStoreEditDBtnFunc,
							0x0000
						} ;

/* idImageStoreEditDBtn[1][1] */

static MMIPACKET d018 = {	&idImageStoreEditDBtn[1][1],
							&idImageStoreWin[1],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d018d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 351, 462, 392, 477, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							ImageStoreEditDBtnFunc,
							0x0000
						} ;

/* idImageStoreEditDBtn[1][2] */

static MMIPACKET d019 = {	&idImageStoreEditDBtn[1][2],
							&idImageStoreWin[1],
							&MJ_DBUTTONL40,
							OFFSET(DBUTTONL40),
							MS_NONE
						} ;
static DBUTTONL40	d019d = {	MS_BTLEFTL40 | MS_EVMOSOFFL40 | MS_EVKEYONL40,
							 396, 462, 437, 477, 8, 6, 8,
							MS_UFRAMEL40 | MS_FRAMEL40,
							ImageStoreEditDBtnFunc,
							0x0000
						} ;

/* idImageStoreEditMsg[1][0] */

static MMIPACKET d020 = {	&idImageStoreEditMsg[1][0],
							&idImageStoreWin[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d020d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 309, 464, 344, 475, 8, 6, 8,
							MS_NONEL40,
							"cut",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idImageStoreEditMsg[1][1] */

static MMIPACKET d021 = {	&idImageStoreEditMsg[1][1],
							&idImageStoreWin[1],
							&MJ_MSGL40,
							OFFSET(MSGL40),
							MS_NONE
						} ;
static MSGL40	d021d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 354, 464, 389, 475, 8, 6, 8,
							MS_NONEL40,
							"copy",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

/* idImageStoreEditMsg[1][2] */

static MMIPACKET d022 = {	&idImageStoreEditMsg[1][2],
							&idImageStoreWin[1],
							&MJ_MSGL40,
							0,
							MS_NONE
						} ;
static MSGL40	d022d = 	{	MS_CENTERL40 | MS_DSPONLYL40,
							 399, 464, 434, 475, 8, 6, 8,
							MS_NONEL40,
							"paste",
							   1,  12,  12,
							MS_NONEL40,
							   0,   0
						} ;

