在Linux下实现聊天室功能

源代码在线查看: microsoft

软件大小: 2112 K
上传用户: a22aa11a
关键词: Linux
下载地址: 免注册下载 普通下载 VIP

相关代码

				// $Xorg: microsoft,v 1.3 2000/08/17 19:54:35 cpqbld Exp $				//				default xkb_geometry "natural" {								    // Approximate layout for a Microsoft Natural Keyboard				    description= "Microsoft Natural Keyboard";				    width= 550;				    height= 190;								    shape.cornerRadius= 1;				    shape "LDEF" { { [ 18,18] }, { [2,1], [15,15] } };				    shape "TABK" { { [ 26,18] }, { [2,1], [23,15] } }; 				    shape "CAPS" { { [ 30,18] }, { [2,1], [23,15] } }; 				    shape "LFSH" { { [ 41,18] }, { [2,1], [38,15] } };				    shape "KEY6" { { [ 22,18] }, { [2,1], [15,15] } };				    shape "KEYT" { { [ 33,18] }, { [2,1], [15,15] } };				    shape "KEYG" { { [ 29,18] }, { [2,1], [15,15] } };				    shape "LCTL" { 					approx= { [ 32, 22 ] },					{ [  0, 0], [ 32, 0 ], [ 32, 23 ], [ 0, 22 ] },					{ [  2, 1], [ 29, 1 ], [ 29, 17 ], [ 2, 15 ] } 				    };				    shape "LWIN" { 					approx= { [ 32, 23 ] },					{ [  0, 0], [ 32, 0 ], [ 32, 24 ], [ 0, 23 ] },					{ [  2, 1], [ 29, 1 ], [ 29, 18 ], [ 2, 17 ] } 				    };				    shape "LALT" { 					approx= { [ 32, 24 ] },					{ [  0, 0], [ 32, 0 ], [ 32, 25 ], [ 0, 24 ] },					{ [  2, 1], [ 29, 1 ], [ 29, 20 ], [ 2, 19 ] } 				    };				    shape "RDEF" { { [ 18,18] }, { [3,1], [15,15] } };				    shape "KEY7" {	{ [ 28, 18 ] }, { [ 14, 1], [26, 15] } };				    shape "KEYH" {	{ [ 24, 18 ] }, { [ 10, 1], [22, 15] } };				    shape "KEYN" {	{ [ 32, 18 ] }, { [ 18, 1], [30, 15] } };				    shape "BKSP" {	{ [ 41, 18 ] }, { [  3, 1], [39, 15] } };				    shape "BKSL" {	{ [ 24, 18 ] }, { [  3, 1], [22, 15] } };				    shape "RTRN" {	{ [ 37, 18 ] }, { [  3, 1], [35, 15] } };				    shape "RTSH" {	{ [ 43, 18 ] }, { [  3, 1], [41, 15] } };				    shape "RALT" { 					approx= { [ 27, 24 ] },					{ [  0, 0], [ 27, 0 ], [ 27, 24 ], [ 0, 25 ] },					{ [  3, 1], [ 25, 1 ], [ 25, 19 ], [ 3, 20 ] } 				    };				    shape "RWIN" { 					approx= { [ 27, 23 ] },					{ [  0, 0], [ 27, 0 ], [ 27, 23 ], [ 0, 24 ] },					{ [  3, 1], [ 25, 1 ], [ 25, 18 ], [ 3, 19 ] } 				    };				    shape "MENU" { 					approx= { [ 27, 21 ] },					{ [  0, 0], [ 27, 0 ], [ 27, 21 ], [ 0, 23 ] },					{ [  3, 1], [ 25, 1 ], [ 25, 16 ], [ 3, 17 ] } 				    };				    shape "RCTL" { 					approx= { [ 27, 19 ] },					{ [  0, 0], [ 27, 0 ], [ 27, 19 ], [ 0, 21 ] },					{ [  3, 1], [ 25, 1 ], [ 25, 14 ], [ 3, 15 ] } 				    };				    shape "KPAD" { { [ 18, 37 ] },	{ [ 3, 1 ], [ 16, 34 ] } };				    shape "KP0"  { { [ 37, 18 ] },	{ [ 3, 1 ], [ 35, 15 ] } };				    shape "SPCE" {					{ [  4, 3], [42,10], [44, 0], [88, 0], [90,10], [130, 3], 					  [134,26], [99,30], [67,33], [33,30], [  0,26] },					{ [  6, 4.5], [43,11], [45, 1], [87, 1], [89,11], [128, 4.5], 					  [131,23], [99,28], [67,32], [33,28], [  3,23] }				    };								    shape "EDGE" {					cornerRadius= 2,					{ [  25,   0 ],  [ 177,  17 ],  [ 329,   0 ], [ 542,   0 ],					  [ 542, 150 ],  [ 354, 150 ],  [ 177, 185 ], [   0, 150 ] }				    };				    outline "Edges" {					top= 0;					left= 0;					shape= "EDGE";				    };								    row.left= 1;				    key.shape= "LDEF";				    key.gap=  1;				    section "LeftFunction" {					top= 10;					left= 40;					angle= 10;					row {					    top= 1;					    keys {  , { , 12 }, , , ,  };					};				    }; // End of "LeftFunction" section								    section "LeftAlpha" {					top= 47;					left= 30;					angle= 10;					row {					    top= 1;					    keys {	, , , , ,							, { , "KEY6" }					    };					};					row {					    top= 20;					    keys {	{ , "TABK" },							, , , , { , "KEYT" }					    };					};					row {					    top= 39;					    keys { 	{ , "CAPS" },							, , , , { , "KEYG" }					    };					};					row {					    top= 58;					    keys { 	{ , "LFSH" }, 							, , , , 					    };					};					row {					    top= 77;					    keys {  { , "LCTL" }, { , "LWIN" }, { , "LALT" } };					};				    }; // End of "LeftAlpha" section								    key.shape= "RDEF";				    section "RightFunction" {					top= 32;					left= 195;					angle= -10;					row {					    top= 1;					    left= 1;					    keys {  , , , , , ,  };					};				    }; // End of "RightFunction" section								    section "RightAlpha" {					top= 71;					left= 190;					angle= -10;					row.left= 1;					row {					    top= 1;					    keys {	{ , "KEY7" },							, , , , , 							{ , "BKSP" }					    };					};					row {					    top= 20;					    keys { 						, , , , , , ,						{ , "BKSL" }					    };					};					row {					    top= 39;					    keys {	{ , "KEYH" },							, , , , ,							{ , "RTRN" }					    };					};					row {					    top= 58;					    keys {	{ , "KEYN" },							, , , ,							{ , "RTSH" }					    };					};					row {					    top= 77;					    left= 40;					    keys { 	{ , "RALT" }, { , "RWIN" }, 							{ , "MENU" }, { , "RCTL" }					    };					};				    }; // End of "RightAlpha" section								    section "SpaceBar" {					top= 139;					left= 111;					key.shape= "SPCE";					row { keys {  }; };				    };								    section "Editing" {					top= 15;					left= 385;					row {					    top= 1;					    keys { , ,  };					};					row {					    top= 33;					    keys { , ,  };					};					row {					    top= 53;					    keys { , ,  };					};					row {					    top= 91;					    left= 20;					    keys {  };				    	};					row {					    top= 109;					    keys { , ,  };					};				    }; // End of "Editing" section								    shape "LED"  { 					cornerRadius= 0,					{ [  3,  1 ] }				    };				    indicator.onColor= "green";				    indicator.offColor= "green30";				    indicator.left= 177;				    indicator.shape= "LED";				    indicator "Num Lock"     { top= 90; };				    indicator "Caps Lock"    { top= 107; };				    indicator "Scroll Lock"  { top= 127; };				    				    section "Keypad" {					top= 47;					left= 456;					row {					    top= 1;					    keys { , , ,  };					};					row {					    top= 20;					    keys { , , , { , "KPAD" } };					};					row {					    top= 39;					    keys { , ,  };					};					row {					    top= 58;					    keys { , , , { , "KPAD" } };					};					row {					    top= 77;					    keys { { , "KP0" },  };					};				    }; // End of "Keypad" section								    alias  = ;				    alias  = ;				};							

相关资源