require "preferenceGUI\\locals";


local width = 410
local height = 260
local pfont="Arial"
local ppoint=9

d = {
	{
		width=width,
		height=height,
		style = w32dlg.DS_CENTER, -- style 
		caption=_DISPLAY,
		font = pfont, point = ppoint, -- font 

		{type="static",x=5,y=10,width=100,height=10,id="IDSTATIC",caption=_HOMEPAGE},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=50,y=9,width=250,height=10,id="IDHOME",caption=_ABOUT},

		{type="static",x=5,y=25,width=150,height=10,id="IDSTATIC",caption=_STARTUP},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=110,y=25,width=50,height=10,id="IDRADIOSTARTDISPLAY1",caption=_BLANK},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=160,y=25,width=50,height=10,id="IDRADIOSTARTDISPLAY2",caption=_HOME},

		{type="static",x=5,y=40,width=150,height=10,id="IDSTATIC",caption=_NEWWINDOW},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=110,y=40,width=50,height=10,id="IDRADIONEWDISPLAY1",caption=_BLANK},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=160,y=40,width=50,height=10,id="IDRADIONEWDISPLAY2",caption=_HOME},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=210,y=40,width=55,height=10,id="IDRADIONEWDISPLAY3",caption=_CURRENT},


		{type="static",x=5,y=55,width=150,height=10,id="IDSTATIC",caption=_SKIN},
		{type="combobox",style=w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=110,y=54,width=90,height=50,id="IDSKIN"},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=70,width=130,height=10,id="IDBACKGROUND",caption=_BACKGROUND},

		{type = "static",x = 5,y = 85,width = 70,height = 10,id = "IDSTATIC",caption = _MINFONT},
		{type = "edit",style = w32dlg.WS_BORDER + w32dlg.ES_NUMBER,x = 70,y = 84,width = 20,height = 10,id = "IDFONTSIZE",caption = "10"},

		{type = "static",x=120,y=85,width=70,height=10,id="IDSTATIC",caption=_TOGGLEFONT},
		{type = "edit",style =w32dlg.WS_BORDER + w32dlg.ES_NUMBER,x = 180,y = 84,width = 20,height = 10,id = "IDTOGGLESIZE",caption = "14"},

		--{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=100,width=130,height=10,id="IDSITEICON",caption=_SITEICON},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=100,width=80,height=10,id="IDSMOOTHSCROLL",caption=_SMOOTHSCROLL},
		
		{type="static",x=100,y=100,width=50,height=10,id="IDSTATIC",caption=_SCROLLSPEED},
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x = 150,y = 100,width = 60,height = 10,id = "IDSCROLLSPEED",caption = "9"},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=115,width=130,height=10,id="IDDISPLAYMENU",caption=_SHOWMENU},

		{type="static",x=5,y=130,width=150,height=10,id="IDSTATIC",caption=_FONT},
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x = 70,y = 130,width = 60,height = 10,id = "IDSFONT",caption = "����"},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=145,width=150,height=10,id="IDCLOSEBUTTON",caption=_CLOSEBUTTON},
		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=160,width=140,height=10,id="IDTITLEBAR",caption=_IDTITLEBAR},
		{type="button",style = w32dlg.BS_CHECKBOX,x=150,y=160,width=180,height=10,id="IDFINDBAR",caption=_IDFINDBAR},
	
	},
	{
		width=width,
		height=height,
		caption=_GENERAL,
		font = pfont, point = ppoint, -- font 

		{type="static",x=5,y=10,width=130,height=10,id="IDSTATIC",caption=_EXTERNAL},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=130,y=9,width=150,height=10,id="IDSOURCE",caption="notepad.exe"},

		{type="static",x=5,y=25,width=130,height=10,id="IDSTATIC",caption=_SETTINGFOLDER},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=130,y=24,width=150,height=10,id="IDSETTINGSFOLDER",caption="pref\\"},	

		{type="static",x=5,y=40,width=130,height=10,id="IDSTATIC",caption=_PLUGINFOLDER},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=130,y=39,width=150,height=10,id="IDPLUGINSFOLDER",caption="kplugins\\"},

		{type="static",x=5,y=55,width=130,height=10,id="IDSTATIC",caption=_HTTP},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=130,y=54,width=150,height=10,id="IDHTTPVERSION",caption="1.1"},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=70,width=130,height=10,id="IDJAVA",caption=_JAVA},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=85,width=130,height=10,id="IDJAVASCRIPT",caption=_JAVASCRIPT},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=100,width=130,height=10,id="IDPASSWORD",caption=_PASSWORD},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=115,width=130,height=10,id="IDWINDOWRESIZE",caption=_RESIZE},

		{type="static",x=5,y=130,width=150,height=10,id="IDSTATIC",caption=_IDLANG},
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x = 70,y = 130,width = 100,height = 10,id = "IDLANG",caption = "zh-CN"},
		{type="static",x=5,y=145,width=150,height=10,id="IDSTATIC",caption=_IDENCODING},
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x = 70,y = 145,width = 100,height = 10,id = "IDENCODING",caption = "gb2312"},
			
	},
	{
		width=width,
		height=height,
		caption=_PRIVACY,
		font = pfont, point = ppoint, -- font 

		{type="static",x=5,y=10,width=50,height=10,id="IDSTATIC",caption=_IMAGELOAD},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=55,y=10,width=80,height=10,id="IDRADIOIMAGEDISPLAY1",caption=_IMAGE1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=135,y=10,width=80,height=10,id="IDRADIOIMAGEDISPLAY2",caption=_IMAGE2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=215,y=10,width=80,height=10,id="IDRADIOIMAGEDISPLAY3",caption=_IMAGE3},

		{type="static",x=5,y=25,width=100,height=10,id="IDSTATIC",caption=_COOKIE},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=75,y=25,width=80,height=10,id="IDRADIOCOOKIEDISPLAY1",caption=_COOKIE1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=155,y=25,width=80,height=10,id="IDRADIOCOOKIEDISPLAY2",caption=_COOKIE2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=235,y=25,width=80,height=10,id="IDRADIOCOOKIEDISPLAY3",caption=_COOKIE3},

		{type="static",x=5,y=40,width=100,height=10,id="IDSTATIC",caption=_IDENTIFY},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN+w32dlg.ES_AUTOHSCROLL,x=70,y=39,width=150,height=50,id="IDIDENTIFYBROWSER"},
		
		{type="static",x=5,y=55,width=100,height=10,id="IDSTATIC",caption=_AGENT},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=70,y=54,width=150,height=10,id="IDUSERAGENTSTRING",caption=""},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=70,width=130,height=10,id="IDPOPUP",caption=_POPUP},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=85,width=130,height=10,id="IDCACHEFAV",caption=_FAVICON},

		{type="static",x=5,y=100,width=100,height=10,id="IDSTATIC",caption=_VISIT},	
		{type = "edit",style = w32dlg.WS_BORDER,x=100,y=99,width=20,height=10,id="IDREMEMBERDAY",caption=""},
		{type="static",x=120,y=100,width=100,height=10,id="IDSTATIC",caption=_DAY},

	},
	{
		width=width,
		height=height,
		caption=_CACHE,
		font = pfont, point = ppoint, -- font
	
		{type="static",x=5,y=10,width=130,height=10,id="IDSTATIC",caption=_MEMORY},	
		{type = "edit",style = w32dlg.WS_BORDER,x=70,y=9,width=50,height=10,id="IDMEMORYCACHE",caption=""},

		{type="static",x=5,y=25,width=130,height=10,id="IDSTATIC",caption=_DISK},	
		{type = "edit",style = w32dlg.WS_BORDER,x=70,y=24,width=50,height=10,id="IDDISKCACHE",caption=""},

		{type="static",x=5,y=40,width=130,height=10,id="IDSTATIC",caption=_CDIRECTORY},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=70,y=39,width=150,height=10,id="IDCACHEDIR",caption=""},	

		{type="static",x=5,y=55,width=150,height=10,id="IDSTATIC",caption=_CACHE1},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=10,y=70,width=80,height=10,id="IDRADIOCACHE1",caption=_CACHE2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=10,y=85,width=80,height=10,id="IDRADIOCACHE2",caption=_CACHE3},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=10,y=100,width=80,height=10,id="IDRADIOCACHE3",caption=_CACHE4},	
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=10,y=115,width=80,height=10,id="IDRADIOCACHE4",caption=_CACHE5},
	},
	{
		width=width,
		height=height,
		caption=_PROXY,
		font = pfont, point = ppoint, -- font

		{type = "button",style = w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=5,y=10,width=130,height=10,id="IDDIRECT",caption=_DIRECT},

		{type = "button",style = w32dlg.BS_RADIOBUTTON,x=5,y=25,width=80,height=10,id="IDMANUAL",caption=_MANUAL},

		{type = "button",style = w32dlg.BS_RADIOBUTTON,x=105,y=25,width=130,height=10,id="IDUSEPAC",caption=_USEPAC},

		{type="static",x=5,y=40,width=50,height=10,id="IDSTATIC",caption="HTTP:"},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=30,y=39,width=100,height=10,id="IDPROXYHTTP",caption=""},
		{type="static",x=130,y=40,width=50,height=10,id="IDSTATIC",caption="PORT:"},
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=155,y=39,width=100,height=10,id="IDHTTPPORT",caption=""},	

		{type="static",x=5,y=55,width=50,height=10,id="IDSTATIC",caption="FTP:"},	
		{type = "edit",style = w32dlg.WS_BORDER,x=30,y=54,width=100,height=10,id="IDPROXYFTP",caption=""},
		{type="static",x=130,y=55,width=50,height=10,id="IDSTATIC",caption="PORT:"},
		{type = "edit",style = w32dlg.WS_BORDER,x=155,y=54,width=100,height=10,id="IDPROXYFTPPORT",caption=""},

		{type="static",x=5,y=70,width=50,height=10,id="IDSTATIC",caption="SSL:"},	
		{type = "edit",style = w32dlg.WS_BORDER,x=30,y=69,width=100,height=10,id="IDPROXYSSL",caption=""},
		{type="static",x=130,y=70,width=50,height=10,id="IDSTATIC",caption="PORT:"},
		{type = "edit",style = w32dlg.WS_BORDER,x=155,y=69,width=100,height=10,id="IDPROXYSSLPORT",caption=""},

		{type="static",x=5,y=85,width=50,height=10,id="IDSTATIC",caption="Gopher:"},	
		{type = "edit",style = w32dlg.WS_BORDER,x=30,y=84,width=100,height=10,id="IDPROXYGOPHER",caption=""},
		{type="static",x=130,y=85,width=50,height=10,id="IDSTATIC",caption="PORT:"},
		{type = "edit",style = w32dlg.WS_BORDER,x=155,y=84,width=100,height=10,id="IDGOPHERPORT",caption=""},

		{type="static",x=5,y=100,width=50,height=10,id="IDSTATIC",caption="SOCKS:"},	
		{type = "edit",style = w32dlg.WS_BORDER,x=30,y=99,width=100,height=10,id="IDPROXYSOCKS",caption=""},
		{type="static",x=130,y=100,width=50,height=10,id="IDSTATIC",caption="PORT:"},
		{type = "edit",style = w32dlg.WS_BORDER,x=155,y=99,width=100,height=10,id="IDPROXYSOCKSPORT",caption=""},

		{type = "button",style = w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=5,y=115,width=50,height=10,id="IDSOCKSTYPE1",caption="SOCKS v4"},
		{type = "button",style = w32dlg.BS_RADIOBUTTON,x=65,y=115,width=50,height=10,id="IDSOCKSTYPE2",caption="SOCKS v5"},
			
		{type="static",x=5,y=130,width=130,height=10,id="IDSTATIC",caption=_NOPROXY},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=70,y=129,width=150,height=10,id="IDNOPROXY",caption=""},

		{type="static",x=5,y=145,width=200,height=10,id="IDSTATIC",caption=_AUTOCONFIG},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=5,y=159,width=175,height=10,id="IDPAC",caption=""},

	},
	{
		width = width,
		height = height,
		caption = _TABS,
		font = pfont, point = ppoint, -- font
			
		{type="static",x=5,y=10,width=100,height=10,id="IDSTATIC",caption=_OPEN},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=60,y=10,width=80,height=10,id="IDOPENOPTIONS1",caption=_OPEN1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=150,y=10,width=50,height=10,id="IDOPENOPTIONS2",caption=_OPEN2},

		{type="static",x=5,y=25,width=100,height=10,id="IDSTATIC",caption=_CLOSE},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=60,y=25,width=80,height=10,id="IDCLOSEOPTIONS1",caption=_CLOSE1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=150,y=25,width=80,height=10,id="IDCLOSEOPTIONS2",caption=_CLOSE2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=240,y=25,width=120,height=10,id="IDCLOSEOPTIONS3",caption=_CLOSE3},

		{type="static",x=5,y=40,width=100,height=10,id="IDSTATIC",caption=_LAST},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=60,y=40,width=80,height=10,id="IDLASTTAB1",caption=_LAST1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=150,y=40,width=80,height=10,id="IDLASTTAB2",caption=_LAST2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=240,y=40,width=120,height=10,id="IDLASTTAB3",caption=_LAST3},
	
		{type="static",x=5,y=55,width=100,height=10,id="IDSTATIC",caption=_DOUBLE},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=60,y=55,width=80,height=10,id="IDDOUBLECLICK1",caption=_B1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=150,y=55,width=80,height=10,id="IDDOUBLECLICK2",caption=_B2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=240,y=55,width=120,height=10,id="IDDOUBLECLICK3",caption=_B3},

		{type="static",x=5,y=70,width=100,height=10,id="IDSTATIC",caption=_MIDDLE},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=60,y=70,width=80,height=10,id="IDMIDDLECLICK1",caption=_B1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=150,y=70,width=80,height=10,id="IDMIDDLECLICK2",caption=_B2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=240,y=70,width=120,height=10,id="IDMIDDLECLICK3",caption=_B3},

		{type="static",x=5,y=85,width=100,height=10,id="IDSTATIC",caption=_RIGHT},
		{type="button",style= w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=60,y=85,width=80,height=10,id="IDRIGHTCLICK1",caption=_B1},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=150,y=85,width=80,height=10,id="IDRIGHTCLICK2",caption=_B2},
		{type="button",style= w32dlg.BS_RADIOBUTTON,x=240,y=85,width=120,height=10,id="IDRIGHTCLICK3",caption=_B3},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=100,width=130,height=10,id="IDTABHIDE",caption=_AUTOHIDE},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=115,width=130,height=10,id="IDTABCONFIRM",caption=_MULTITAB},

		{type = "static",x = 5,y = 130,width = 100,height = 10,id = "IDSTATIC",caption = _MAXWIDTH},
		{type = "edit",style = w32dlg.WS_BORDER + w32dlg.ES_NUMBER,x = 90,y = 130,width = 20,height = 10,id = "IDTABMAX",caption = "35"	},

		{type = "static",x = 5,y = 145,width = 100,height = 10,id = "IDSTATIC",caption = _MINWIDTH},
		{type = "edit",	style = w32dlg.WS_BORDER + w32dlg.ES_NUMBER,x = 90,y = 145,width = 20,height = 10,id = "IDTABMIN",caption = "10"},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=160,width=130,height=10,id="IDTABTITLE",caption=_TITLE},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=175,width=200,height=10,id="IDTABBOTTOM",caption=_BOTTOM},

	},
	{
		width = width,
		height = height,
		caption = _DOWNLOAD,
		font = pfont, point = ppoint, -- font

		{type="static",x=5,y=10,width=130,height=10,id="IDSTATIC",caption=_SAVE},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=70,y=9,width=170,height=10,id="IDSAVEFOLDER",caption=""},

		{type="static",x=5,y=25,width=130,height=10,id="IDSTATIC",caption=_DOWNLOADDIR},	
		{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=70,y=24,width=170,height=10,id="IDDOWNLOADFOLDER",caption=""},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=40,width=130,height=10,id="IDASKOPEN",caption=_ASKOPEN},

		{type = "button",style = w32dlg.BS_RADIOBUTTON + w32dlg.WS_GROUP,x=5,y=55,width=180,height=10,id="IDPROMPTLOCATION",caption=_PROMPT},

		{type = "button",style = w32dlg.BS_RADIOBUTTON,x=5,y=70,width=180,height=10,id="IDUSEDDOWNLOADDIR",caption=_AUTODOWNLOAD},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=85,width=180,height=10,id="IDMINIMIZE",caption=_MINIMIZE},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=100,width=180,height=10,id="IDUSEWEBTITLE",caption=_USETITLE},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=115,width=180,height=10,id="IDCLOSEDIALOG",caption=_CLOSEDIA},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=130,width=180,height=10,id="IDFLASHDIALOG",caption=_FLASH},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=145,width=180,height=10,id="IDOGET",caption=_OGET},

	},
	{
		width=width,
		height=height,
		caption=_GESTURE,
		font = pfont, point = ppoint,

		{type="static",x=5,y=5,width=30,height=10,id="IDSTATIC",caption=_UL},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=5,y=20,width=80,height=150,id="IDUPLEFT",},

		{type="static",x=100,y=5,width=30,height=10,id="IDSTATIC",caption=_U},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=100,y=20,width=80,height=150,id="IDUP",},

		{type="static",x=195,y=5,width=30,height=10,id="IDSTATIC",caption=_UR},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=195,y=20,width=80,height=150,id="IDUPRIGHT",},

		{type="static",x=5,y=50,width=30,height=10,id="IDSTATIC",caption=_L},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=5,y=65,width=80,height=150,id="IDLEFT",},

		{type="static",x=100,y=38,width=50,height=10,id="IDSTATIC",caption=_LR},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=100,y=50,width=80,height=150,id="IDRightToLeft"},

		{type="static",x=100,y=70,width=50,height=10,id="IDSTATIC",caption=_RL},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=100,y=82,width=80,height=150,id="IDLeftToRight"},

		{type="static",x=195,y=50,width=30,height=10,id="IDSTATIC",caption=_R},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=195,y=65,width=80,height=150,id="IDRIGHT",},

		{type="static",x=5,y=100,width=40,height=10,id="IDSTATIC",caption=_DL},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=5,y=115,width=80,height=150,id="IDDOWNLEFT",},

		{type="static",x=100,y=100,width=30,height=10,id="IDSTATIC",caption=_D},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=100,y=115,width=80,height=150,id="IDDOWN",},

		{type="static",x=195,y=100,width=50,height=10,id="IDSTATIC",caption=_DR},
		{type="combobox",style=w32dlg.WS_BORDER+w32dlg.WS_VSCROLL+w32dlg.WS_HSCROLL+w32dlg.CBS_DROPDOWN,x=195,y=115,width=80,height=150,id="IDDOWNRIGHT"},

		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=140,width=150,height=10,id="IDTEXTDRAG",caption=_TEXTDRAG},
		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=155,width=150,height=10,id="IDDRAWLINE",caption=_DRAWLINE},
		{type="button",style = w32dlg.BS_CHECKBOX,x=5,y=170,width=150,height=10,id="IDMIDDLE",caption=_MIDDLE1},
	},
	{
		width = width,
		height = height,
		caption = _ADVANCE,
		font = pfont, point = ppoint, -- font

		{type = "static",x = 20,y = 10,width = 40,height = 10,id = "IDSTATIC",caption = _AREA},
		{type = "edit",	style = w32dlg.WS_BORDER + w32dlg.ES_NUMBER,x = 60,y = 10,width = 50,height = 10,id = "IDAREA",caption = "48105"},
		{type = "static",x = 20,y = 30,	width = 60,height = 10,id = "IDSTATIC",caption = _CYBERARTICLE},
		{type = "edit",	style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x = 80,y = 30,width = 200,height = 10,id = "IDCAPATH",caption = "saved\\"},
		{type = "static",x = 20,y = 50,	width = 80,height = 10,id = "IDSTATIC",caption = _BROWSER},
		{type = "edit",	style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x = 100,y = 50,width = 200,height = 10,id = "IDBROWSERPATH",caption = "C:\\Program Files\\Internet Explorer\\iexplore.exe"},
		{type = "static",x = 20,y = 70,width = 120,height = 10,id = "IDPREF",caption = _INITIALDELAY},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x = 120,y = 70,width = 30,height = 10,id = "IDSET",caption = "500"},  
		{type="button",style = w32dlg.BS_CHECKBOX,x=20,y=90,width=180,height=10,id="IDTREACE",caption=_TREACEMONKEY},
		{type="button",style = w32dlg.BS_CHECKBOX,x=20,y=110,width=180,height=10,id="IDFETCH",caption=_PREFETCH}
	},
	{
		width = width,         
		height = height,       
		caption = _HOTKEY, 
		font = pfont, point = ppoint, -- font

		{type = "static",x = 25,y = 7,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+1"},
		{type = "static",x = 25,y = 20,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+2"},
		{type = "static",x = 25,y = 33,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+3"},
		{type = "static",x = 25,y = 46,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+4"},
		{type = "static",x = 25,y = 59,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+5"},
		{type = "static",x = 25,y = 72,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+6"},
		{type = "static",x = 25,y = 85,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+7"},
		{type = "static",x = 25,y = 98,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+8"},
		{type = "static",x = 25,y = 111,width = 50, height = 10, id = "IDSTATIC", caption = "CTRL+9"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 5, width = 250, height = 10, id = "IDCTRL1", caption = "CTRL+1"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 18, width = 250, height = 10, id = "IDCTRL2", caption = "CTRL+2"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 31, width = 250, height = 10, id = "IDCTRL3", caption = "CTRL+3"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 44, width = 250, height = 10, id = "IDCTRL4", caption = "CTRL+4"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 57, width = 250, height = 10, id = "IDCTRL5", caption = "CTRL+5"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 70, width = 250, height = 10, id = "IDCTRL6", caption = "CTRL+6"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 83, width = 250, height = 10, id = "IDCTRL7", caption = "CTRL+7"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 96, width = 250, height = 10, id = "IDCTRL8", caption = "CTRL+8"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 109, width = 250, height = 10, id = "IDCTRL9", caption = "CTRL+9"},
	},
	{
		width = width,
		height = height,
		caption = _BEHAVIOR,
		font = pfont, point = ppoint, -- font

		{type="static",x=5,y=5,width=50,height=10,id="IDSTATIC",caption=_BOOKMARK},
		{type="button",style=w32dlg.BS_RADIOBUTTON+w32dlg.WS_GROUP,x=50,y=5,width=80,height=10,id="IDRADIO1",caption=_BH1},
		{type="button",style=w32dlg.BS_RADIOBUTTON,x=130,y=5,width=65,height=10,id="IDRADIO2",caption=_BH2},
		{type="button",style=w32dlg.BS_RADIOBUTTON,x=200,y=5,width=90,height=10,id="IDRADIO3",caption=_BH3},
	
		{type="static",x=5,y=18,width=50,height=10,id="IDSTATIC",caption=_URL},
		{type="button",style=w32dlg.BS_RADIOBUTTON+w32dlg.WS_GROUP,x=50,y=18,width=80,height=10,id="IDRADIO4",caption=_BH1},
		{type="button",style=w32dlg.BS_RADIOBUTTON,x=130,y=18,width=65,height=10,id="IDRADIO5",caption=_BH2},
		{type="button",style=w32dlg.BS_RADIOBUTTON,x=200,y=18,width=90,height=10,id="IDRADIO6",caption=_BH3},

		{type="static",x=5,y=31,width=50,height=10,id="IDSTATIC",caption=_LINK},
		{type="button",style=w32dlg.BS_RADIOBUTTON+w32dlg.WS_GROUP,x=50,y=31,width=80,height=10,id="IDRADIO10",caption=_BH1},
		{type="button",style=w32dlg.BS_RADIOBUTTON,x=130,y=31,width=65,height=10,id="IDRADIO11",caption=_BH2},
		{type="button",style=w32dlg.BS_RADIOBUTTON,x=200,y=31,width=90,height=10,id="IDRADIO12",caption=_BH3},

		{type="static",x=5,y=44,width=50,height=10,id="IDSTATIC",caption=_DRAG},
		{type="button",style=w32dlg.BS_RADIOBUTTON+w32dlg.WS_GROUP,x=130,y=44,width=65,height=10,id="IDRADIO13",caption=_BH1},
		{type="button",style=w32dlg.BS_RADIOBUTTON,x=200,y=44,width=90,height=10,id="IDRADIO14",caption=_BH3},

	},

	{
		width = width,
		height = height,
		caption = _SEARCHENGINE,
		font = pfont, point = ppoint, -- font

		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 5, width = 50, height = 10, id = "IDSEARCHNAME1", caption = "SEARCHNAME1"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 5, width = 250, height = 10, id = "IDSEARCH1", caption = "SEARCH1"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 18, width = 50, height = 10, id = "IDSEARCHNAME2", caption = "SEARCHNAME2"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 18, width = 250, height = 10, id = "IDSEARCH2", caption = "SEARCH2"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 31, width = 50, height = 10, id = "IDSEARCHNAME3", caption = "SEARCHNAME3"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 31, width = 250, height = 10, id = "IDSEARCH3", caption = "SEARCH3"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 44, width = 50, height = 10, id = "IDSEARCHNAME4", caption = "SEARCHNAME4"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 44, width = 250, height = 10, id = "IDSEARCH4", caption = "SEARCH4"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 57, width = 50, height = 10, id = "IDSEARCHNAME5", caption = "SEARCHNAME5"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 57, width = 250, height = 10, id = "IDSEARCH5", caption = "SEARCH5"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 70, width = 50, height = 10, id = "IDSEARCHNAME6", caption = "SEARCHNAME6"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 70, width = 250, height = 10, id = "IDSEARCH6", caption = "SEARCH6"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 83, width = 50, height = 10, id = "IDSEARCHNAME7", caption = "SEARCHN7AME"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 83, width = 250, height = 10, id = "IDSEARCH7", caption = "SEARCH7"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 96, width = 50, height = 10, id = "IDSEARCHNAME8", caption = "SEARCHNAME8"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 96, width = 250, height = 10, id = "IDSEARCH8", caption = "SEARCH8"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 5, y = 109, width = 50, height = 10, id = "IDSEARCHNAME9", caption = "SEARCHNAME9"},
		{type = "edit", style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL, x = 60, y = 109, width = 250, height = 10, id = "IDSEARCH9", caption = "SEARCH9"},

	},

	-- Adblock tab: edits <profile>\adblock.txt (the kplugin's filter file,
	-- Adblock Plus syntax). The kplugin's file watcher re-parses on save -
	-- changes take effect on the very next request, no restart needed.
	--
	-- UX: a plain multi-line text editor showing the whole file. One rule per
	-- line, edit/add/delete is just normal text editing. OK saves; Cancel
	-- discards. Replaces the earlier listbox+radios approach which couldn't
	-- truly do per-row delete buttons without owner-drawing a custom listbox.
	{
		width  = width,
		height = height,
		caption = _ADBLOCK,
		font = pfont, point = ppoint,

		{type="static", x=5, y=5, width=400, height=20, id="IDSTATIC", caption=_ADBLOCK_HELP},

		-- Multi-line edit. w32dlg doesn't expose these so we OR literal values:
		--   ES_MULTILINE   = 0x0004  (multi-line)
		--   ES_AUTOVSCROLL = 0x0040  (scroll up as the caret moves below view)
		--   ES_WANTRETURN  = 0x1000  (Enter inserts newline instead of dismissing)
		{
			type = "edit",
			style = w32dlg.WS_BORDER + w32dlg.WS_VSCROLL + w32dlg.WS_HSCROLL +
			        0x0004 + 0x0040 + 0x1000,
			x = 5, y = 30, width = 395, height = 200,
			id = "IDADBLOCKRULES",
		},

		{type="static", x=5, y=235, width=395, height=10, id="IDSTATIC", caption=_ADBLOCK_FILE},
	},
}
