Home | History | Annotate | Line # | Download | only in geometry
keytronic revision 1.1
      1 // $Xorg: keytronic,v 1.4 2001/02/09 02:05:50 xorgcvs Exp $
      2 //
      3 //Copyright 1996, 1998  The Open Group
      4 //
      5 //Permission to use, copy, modify, distribute, and sell this software and its
      6 //documentation for any purpose is hereby granted without fee, provided that
      7 //the above copyright notice appear in all copies and that both that
      8 //copyright notice and this permission notice appear in supporting
      9 //documentation.
     10 //
     11 //The above copyright notice and this permission notice shall be
     12 //included in all copies or substantial portions of the Software.
     13 //
     14 //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
     15 //EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
     16 //MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
     17 //IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
     18 //OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
     19 //ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
     20 //OTHER DEALINGS IN THE SOFTWARE.
     21 //
     22 //Except as contained in this notice, the name of The Open Group shall
     23 //not be used in advertising or otherwise to promote the sale, use or
     24 //other dealings in this Software without prior written authorization
     25 //from The Open Group.
     26 //
     27 default xkb_geometry "FlexPro" {
     28 
     29     // This is an approximate layout for a Key Tronic FlexPro
     30     // keyboard.  I just took a similar layout (101 key PC keyboard)
     31     // and adjusted the sizes of a few keys by eye.  I didn't actually
     32     // *measure* a real keyboard.
     33 
     34     description= "Key Tronic FlexPro keyboard";
     35 
     36     width= 515;
     37     height= 200;
     38 
     39     shape "EDGE" { cornerRadius= 2, { [ 515, 200 ] } };
     40     shape.cornerRadius= 1;
     41     shape "NORM" { { [ 18,18] }, { [2,1], [16,17] } };
     42     shape "BKSP" { { [ 32,18] }, { [2,1], [30,17] } };
     43     shape "TABK" { { [ 32,18] }, { [2,1], [30,17] } };
     44     shape "BKSL" { { [ 23,18] }, { [2,1], [21,17] } };
     45     shape "RTRN" {
     46         approx = { [16, 0], [38,37] },
     47         { [16, 0], [38, 0], [38,37], 
     48 	  [ 0,37], [ 0,19], [16,19] },
     49         { [18, 1], [36, 1], [36,36], 
     50 	  [ 2,36], [ 2,20], [18,20] } };
     51     shape "CAPS" { { [36,18] }, { [2,1], [34,17] } };
     52     shape "SHFT" { { [46,18] }, { [2,1], [44,17] } };
     53     shape "LCTL" { { [32,18] }, { [2,1], [30,17] } };
     54     shape "RCTL" { { [38,18] }, { [2,1], [36,17] } };
     55     shape "LALT" { { [28,18] }, { [2,1], [26,17] } };
     56     shape "RALT" { { [33,18] }, { [2,1], [31,17] } };
     57     shape "LSPC" { { [66,22] }, { [0,0], [66,22] } };
     58     shape "RSPC" { { [76,22] }, { [0,0], [76,22] } };
     59     shape "KP0"  { { [37,18] }, { [2,1], [35,17] } };
     60     shape "KPEN" { { [18,37] }, { [2,1], [16,36] } };
     61     shape "LOGO" { cornerRadius= 3, { [80,35] } };
     62 
     63     outline "Edges" {
     64    	top= 0;
     65 	left= 0;
     66 	shape= "EDGE";
     67     };
     68 
     69     section.left= 9;
     70     row.left= 1;
     71     key.shape= "NORM";
     72     key.gap=  1;
     73 
     74     section "Function" {
     75 	top= 56;
     76 	row {
     77 	    top = 1;
     78 	    key.color= "grey20";
     79 	    keys { <FK01>, <FK02> };
     80 	};
     81 	row {
     82 	    top = 20;
     83 	    key.color= "grey20";
     84 	    keys { <FK03>, <FK04> };
     85 	};
     86 	row {
     87 	    top = 39;
     88 	    keys { <FK05>, <FK06> };
     89 	};
     90 	row {
     91 	    top = 58;
     92 	    key.color= "grey20";
     93 	    keys { <FK07>, <FK08> };
     94 	};
     95 	row {
     96 	    top = 77;
     97 	    key.color= "grey20";
     98 	    keys { <FK09>, <FK10> };
     99 	};
    100 	row {
    101 	    top = 96;
    102 	    keys { <FK11>, <FK12> };
    103 	};
    104     }; // End of "Function" section
    105 
    106     section "Alpha" {
    107 	top= 56;
    108 	left= 53;
    109 	row {
    110 	    top= 1;
    111 	    keys { 
    112 		{ <ESC>, color="grey20" }, { <BKSL>, "BKSL", color="grey20" }, 
    113 		<AE01>, <AE02>, <AE03>, <AE04>,
    114 		<AE05>, <AE06>, <AE07>, <AE08>, <AE09>,
    115 		<AE10>, <AE11>, <AE12>,
    116 		{ <BKSP>, "BKSP", color="grey20" }
    117 	    };
    118 	};
    119 	row {
    120 	    top= 20;
    121 	    keys { 
    122 		{ <TLDE>, color="grey20" },  { <TAB>, "TABK", color="grey20" },
    123 		<AD01>, <AD02>, <AD03>, <AD04>, <AD05>, 
    124 		<AD06>, <AD07>, <AD08>, <AD09>, <AD10>, 
    125 		<AD11>, <AD12>,
    126 		{ <RTRN>, "RTRN", -14, color="grey20" }
    127 	    };
    128 	};
    129 	row {
    130 	    top= 39;
    131 	    keys { 
    132 		{ <LCTL>, color="grey20" }, { <CAPS>, "CAPS", color="grey20" },
    133 		<AC01>, <AC02>, <AC03>, <AC04>, <AC05>, 
    134 		<AC06>, <AC07>, <AC08>, <AC09>, <AC10>, <AC11>
    135 	    };
    136 	};
    137 	row {
    138 	    top= 58;
    139 	    keys { 
    140 		{ <LFSH>, color="grey20" }, 
    141 		{ <LFSH>, "SHFT", color="grey20" }, 
    142 		<AB01>, <AB02>, <AB03>, <AB04>, <AB05>, 
    143 		<AB06>, <AB07>, <AB08>, <AB09>, <AB10>, 
    144 		{ <RTSH>, "SHFT", color="grey20" }
    145 	    };
    146 	};
    147 	row {
    148 	    top= 77;
    149 	    key.color= "grey20";
    150 	    keys { 
    151 		<LALT>, 
    152 		{ <LCTL>, shape="LCTL" }, 
    153 		{ <LALT>, shape="LALT" },
    154 		{ <SPCE>, shape="LSPC", 4, color="white" },
    155 		{ <SPCE>, shape="RSPC",color="white" },
    156 		{ <RALT>, shape="RALT", 4 }, 
    157 		{ <RCTL>, shape="RCTL" }
    158 	    };
    159 	};
    160     }; // End of "Alpha" section
    161 
    162     section "Editing" {
    163 	top= 12;
    164 	left= 365;
    165 	key.color= "grey20";
    166 	row {
    167 	    top= 1;
    168 	    keys { <PRSC>, <SCLK>, <PAUS> };
    169 	};
    170 	row {
    171 	    top= 45;
    172 	    keys { <INS>, <HOME>, <PGUP> };
    173 	};
    174 	row {
    175 	    top= 64;
    176 	    keys { <DELE>, <END>, <PGDN> };
    177 	};
    178 	row {
    179 	    top= 102;
    180 	    left= 20;
    181 	    keys { <UP> };
    182 	};
    183 	row {
    184 	    top= 121;
    185 	    keys { <LEFT>, <DOWN>, <RGHT> };
    186     	};
    187     }; // End of "Editing" section
    188 
    189     shape "LEDS" { cornerRadius= 3, { [ 76, 20 ] } };
    190     shape "LED"  { cornerRadius= 0, { [  7,  4 ] } };
    191     solid "LedPanel" {
    192     	shape= "LEDS";
    193 	top=  11;
    194 	left= 430;
    195 	color= "grey10";
    196     };
    197     indicator.onColor= "green";
    198     indicator.offColor= "green30";
    199     indicator.top= 13;
    200     indicator.shape= "LED";
    201     indicator "Num Lock"     { left= 440; };
    202     indicator "Caps Lock"    { left= 467; };
    203     indicator "Scroll Lock"  { left= 489; };
    204     text.top= 22;
    205     text.color= "black";
    206     text "NumLockLabel"		{ left= 438; text="Num\nLock"; };
    207     text "CapsLockLabel"	{ left= 465; text="Caps\nLock"; };
    208     text "ScrollLockLabel"	{ left= 487; text="Scroll\nLock"; };
    209 
    210     logo "FlexProLogoImage" 	{ 
    211 	top= 12;
    212 	left= 45;
    213 	name= "KeyTronic"; 
    214 	shape= "LOGO"; 
    215     };
    216     text "KeyTronicLogoText"	{
    217 	top= 15;
    218 	left= 50;
    219 	width= 55;
    220 	text= "FlexPro";
    221 	font= "times";
    222 	slant= "o";
    223 	weight= "bold";
    224 	fontWidth= "narrow";
    225 	fontSize= 36;
    226     };
    227 
    228     section "Keypad" {
    229 	top= 56;
    230 	left= 430;
    231 	row {
    232 	    top= 1;
    233 	    key.color= "grey20";
    234 	    keys { <NMLK>, <KPDV>, <KPMU>, <LEFT> };
    235 	};
    236 	row {
    237 	    top= 20;
    238 	    keys { <KP7>, <KP8>, <KP9>, { <KPSU>, color= "grey20" } };
    239 	};
    240 	row {
    241 	    top= 39;
    242 	    keys { <KP4>, <KP5>, <KP6>, { <KPAD>, color= "grey20" } };
    243     	};
    244 	row {
    245 	    top= 58;
    246 	    keys { <KP1>, <KP2>, <KP3>, { <KPEN>, "KPEN", color= "grey20" } };
    247 	};
    248 	row {
    249 	    top= 77;
    250 	    keys { { <KP0>, "KP0" }, <KPDL> };
    251 	};
    252     }; // End of "Keypad" section
    253 };
    254