/*
###
### This file is part of
###
###                        TurboLinux  ZWinPro
###
###                 Copyright (C) 1999-2000 TurboLinux, Inc. 
###                        All Rights Reserved
### Distributed under the terms of the GNU General Public License (GPL)
###
###
### Authors:     TurboLinux Chinese Development Team:
###              Justin Yu   <justiny@turbolinux.com.cn>
###              Sean Chen   <seanc@turbolinux.com.cn>
###              Daniel Fang <danf@turbolinux.com.cn>
### WWW:         http://www.turbolinux.com.cn/ZWinPro/
### FTP:         ftp://ftp.turbolinux.com.cn/pub/ZWinPro/
###
*/

#define		HZSERVERNAME				"miniChinput"
#define		HZSERVERVERSION				"0.0.4"
#define 	MAX_STROKES             	32
#define 	BUFLEN                  	1024
#define		HZSERVER_BUFFER_SIZE		20
#define		HZSERVER_SYS_ERR_FP			stderr
#define		HZSERVER_SYS_MSG_FP			stderr
#define		HZSERVER_DEBUG_MSG_FP		stderr
#define		DEBUG				1

#define     HZSERVER_FONT           	"-*-*-medium-r-normal-*-16-*-*-*-p-*-iso8859-1"
#define     HZSERVER_GB2312_FONT        	"-*-*-medium-r-normal-*-16-*-*-*-c-*-gb2312.1980-0"
#define     HZSERVER_GB18030_FONT        	"-*-*-medium-r-normal-*-16-*-*-*-c-*-iso10646-1"
#define     HZSERVER_BIG5_FONT      	"-*-*-medium-r-normal-*-16-*-*-*-c-*-big5-0"
#define     HZSERVER_BIG5HKSCS_FONT    	"-*-*-medium-r-normal-*-16-*-*-*-c-*-big5hkscs-0"

#define     HZSERVER_MODE_ONE			1
#define		HZSERVER_MODE_TWO			2

#define		HZSERVER_DMODE_AUTO			0
#define		HZSERVER_DMODE_ROOT			1
#define		HZSERVER_DMODE_OVERSPOT		2
#define		HZSERVER_DMODE_ONSPOT		3
#define		HZSERVER_DMODE_OFFSPOT		4
#define		HZSERVER_DMODE_HW			5	//handwriting recognition
#define		HZSERVER_DMODE_VR			6	//voice recognition
#define		HZSERVER_HMODE_AUTO			1
#define		HZSERVER_HMODE_NO			2
#define		HZSERVER_CMODE_AUTO			1
#define		HZSERVER_CMODE_NO			2
#define		HZSERVER_AREAMODE_CLIENT	1
#define		HZSERVER_AREAMODE_SERVER	2
#define 	HZSERVER_DIM_COLOR			"#666666"
#define 	HZSERVER_LIGHT_COLOR		"#f5f5f5"
#define 	HZSERVER_PANEL_COLOR		"#c0c0c0"
#define 	HZSERVER_LED_COLOR			"#00ff00"
#define 	HZSERVER_RED_COLOR			"#ff0000"
#define		HZSERVER_HZ_COLOR			"#000000"
#define		HZSERVER_TEXT_COLOR			"#000000"
#define		HZSERVER_BAR_COLOR			"#000080"
#define		HZSERVER_ROWS				2
#define		HZSERVER_COLS				70
#define		HZSERVER_ENTRY_CHARS		10
#define		HZSERVER_MAXCOLS			80
#define		HZSERVER_MINCOLS			30
#define		HZSERVER_STARTX				100
#define     HZSERVER_STARTY				100

#define     HZSERVER_16_WIDTH2      	(HZSERVER_COLS * 8 + 20)
#define     HZSERVER_16_HEIGHT2     	50
#define     HZSERVER_16_WIDTH1     		((HZSERVER_COLS + HZSERVER_ENTRY_CHARS)*8 + 20) 
#define     HZSERVER_16_HEIGHT1     	20
#define     HZSERVER_BWIN16_WIDTH   	60
#define     HZSERVER_BWIN16_HEIGHT  	48
#define		HZSERVER_KWIN16_WIDTH		(HZSERVER_16_WIDTH + HZSERVER_BWIN16_WIDTH)
#define		HZSERVER_KWIN16_HEIGHT		260
#define		HZSERVER_KWIN16_XOFFSET1	5
#define		HZSERVER_KWIN16_YOFFSET1	5
#define     HZSERVER_KWIN16_XOFFSET2  	220
#define     HZSERVER_KWIN16_YOFFSET2  	5
#define		HZSERVER_VK_WIDTH		460
#define		HZSERVER_VK_HEIGHT		226
#define		HZSERVER_HW_TIMEOUT		1500 //mili-second
#define		HZSERVER_HW_LEFT		1
#define		HZSERVER_HW_RIGHT		2
#define		HZSERVER_HW_WIDTH		450
#define		HZSERVER_HW_HEIGHT		260
#define  	HZSERVER_HW_XOFF		5
#define  	HZSERVER_HW_YOFF		70
#define		HZSERVER_HW_CHILD_WIDTH		(HZSERVER_HW_WIDTH - 42)/2
#define		HZSERVER_HW_CHILD_HEIGHT	(HZSERVER_HW_HEIGHT - HZSERVER_HW_YOFF - 10)

#define		HZSERVER_INPUT_CHARS		12
#define		HZSERVER_CHOICE_CHARS		10
#define		HZSERVER_INPUT_WIN16_WIDTH	(HZSERVER_INPUT_CHARS*8+8)
#define		HZSERVER_INPUT_WIN16_HEIGHT	(16 + 12)
#define		HZSERVER_WIN16_XOFFSET		(HZSERVER_INPUT_WIN16_WIDTH + 4)
#define		HZSERVER_CHOICE_WIN16_WIDTH	(HZSERVER_CHOICE_CHARS*16+8)
#define		HZSERVER_CHOICE_WIN16_HEIGHT	((HZSERVER_CHOICE_CHARS+2) * 18 + 12)
#define		HZSERVER_POS_XOFFSET		0
#define 	HZSERVER_POS_YOFFSET		5

