1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180
|
<?xml version="1.0"?>
<GOK:accessmethodroot xmlns:GOK="http://www.gnome.org/GOK">
<!-- User interface for the access method -->
<GOK:accessmethod name="keyinversescanning" _displayname="Single Key Inverse Scanning">
<_GOK:description xml:space="preserve">Press and hold a switch to scan. Press another switch to select.</_GOK:description>
<GOK:operation>
<GOK:control type="frame" _string="Operation">
<GOK:control type="vbox" border="12" spacing="4">
<GOK:control type="hbox" spacing="12">
<GOK:control type="label" _string="Scan:" />
<GOK:control name="movehighlighter" _string="Scan:" type="combobox" fillwith="actions" qualifier="switch+mousebutton" />
</GOK:control>
<GOK:control type="hbox" spacing="12">
<GOK:control type="label" _string="Activate:" />
<GOK:control name="select" _string="Activate:" type="combobox" fillwith="actions" qualifier="switch+mousebutton" />
</GOK:control>
</GOK:control>
</GOK:control>
</GOK:operation>
<GOK:feedback>
<GOK:control type="frame" _string="Feedback">
<GOK:control type="vbox" border="12" spacing="4">
<GOK:control type="hbox" spacing="12">
<GOK:control type="label" _string="Movement:" />
<GOK:control name="feedbackmovement" _string="Feedback Movement:" type="combobox" fillwith="feedbacks" />
</GOK:control>
<GOK:control type="hbox" spacing="12">
<GOK:control type="label" _string="Activation:" />
<GOK:control name="feedbackselection" _string="Feedback Activation:" type="combobox" fillwith="feedbacks" />
</GOK:control>
</GOK:control>
</GOK:control>
</GOK:feedback>
<GOK:options>
<GOK:control type="frame" _string="Options">
<GOK:control type="vbox" border="12" spacing="8">
<GOK:control type="hbox" spacing="12">
<GOK:control type="label" _string="Scan Delay:" />
<GOK:control name="scanspeed" type="spinbutton" _string="Scan Speed:" value="100" min="10" max="500" stepincrement="1" pageincrement="10" pagesize="0" />
<GOK:control type="label" _string="(100s of a second)" />
</GOK:control>
<GOK:control name="wrap" type="checkbutton" _string="Wrap Rows/Columns" />
<GOK:control type="hbox" spacing="20">
<GOK:control type="label" _string="Scanning Direction:" />
<GOK:control type="hbox" spacing="4">
<GOK:control name="topbottom" type="radiobutton" _string="Top/Bottom" value="0" groupstart="yes"/>
<GOK:control name="topbottom" type="radiobutton" _string="Bottom/Top" value="1" />
</GOK:control>
<GOK:control type="hbox" spacing="4">
<GOK:control name="leftright" type="radiobutton" _string="Left/Right" value="0" groupstart="yes"/>
<GOK:control name="leftright" type="radiobutton" _string="Right/Left" value="1" />
</GOK:control>
</GOK:control>
<GOK:control type="hbox" spacing="12">
<GOK:control type="label" _string="Cycles Before Stopping:" />
<GOK:control name="cycles" type="spinbutton" _string="Cycles Before Stopping:" value="3" min="1" max="10" stepincrement="1" pageincrement="3" pagesize="0" />
</GOK:control>
</GOK:control>
</GOK:control>
</GOK:options>
<!-- Rates for this access method. -->
<GOK:rate name="movehighlighter" stringvalue="switch1" />
<GOK:rate name="select" stringvalue="switch3" />
<GOK:rate name="feedbackmovement" stringvalue="none" />
<GOK:rate name="feedbackselection" stringvalue="key_flashing" />
<GOK:rate name="autorepeat" value="0" />
<GOK:rate name="repeatrate" value="30" />
<GOK:rate name="scanspeed" value="100" />
<GOK:rate name="wrap" value="1" />
<GOK:rate name="topbottom" value="0" />
<GOK:rate name="leftright" value="0" />
<GOK:rate name="cycles" value="3" />
<!-- Initialization for the access method. -->
<GOK:initialization>
<GOK:effect call="ChunkerReset" />
<GOK:effect call="ChunkerChunkKeys" param1="topbottom" param2="leftright" />
</GOK:initialization>
<!-- Scan the chunks (rows or columns) -->
<GOK:state name="1">
<GOK:stateinit>
<GOK:effect call="CounterSet" param1="1" param2="cycles" />
</GOK:stateinit>
<GOK:handler name="movehighlighter" state="press">
<GOK:effect call="Feedback" name="feedbackmovement" />
<GOK:effect call="Timer1Set" name="scanspeed" />
<GOK:effect call="ChunkerIfNextChunk">
<GOK:compare type="equal" value="1">
<GOK:true>
<GOK:effect call="ChunkerNextChunk" />
</GOK:true>
<GOK:false>
<GOK:effect call="GetRate" name="wrap" >
<GOK:compare type="equal" value="1">
<GOK:true>
<GOK:effect call="ChunkerWrapFirstChunk" />
</GOK:true>
</GOK:compare>
</GOK:effect>
</GOK:false>
</GOK:compare>
</GOK:effect>
</GOK:handler>
<GOK:handler name="movehighlighter" state="release">
<GOK:effect call="Timer1Stop" />
</GOK:handler>
<GOK:handler name="select">
<GOK:effect call="Timer1Stop" />
<GOK:effect call="SelectChunk" >
<GOK:compare type="equal" value="1">
<GOK:true>
<GOK:effect call="Feedback" name="feedbackselection" />
<GOK:effect call="OutputSelectedKey" />
<GOK:effect call="HighlightFirstChunk" />
<GOK:effect call="StateJump" param1="1" />
</GOK:true>
<!-- <GOK:false>
<GOK:effect call="HighlightFirstKey" />
<GOK:effect call="StateJump" param1="2" />
</GOK:false> -->
</GOK:compare>
</GOK:effect>
</GOK:handler>
<GOK:handler name="timer1">
<!-- same as 'movehighlighter' -->
<GOK:effect call="Feedback" name="feedbackmovement" />
<GOK:effect call="Timer1Set" name="scanspeed" />
<GOK:effect call="ChunkerIfNextChunk">
<GOK:compare type="equal" value="1">
<GOK:true>
<GOK:effect call="ChunkerNextChunk" />
</GOK:true>
<GOK:false>
<GOK:effect call="GetRate" name="wrap">
<GOK:compare type="equal" value="1">
<GOK:true>
<GOK:effect call="ChunkerWrapFirstChunk" />
</GOK:true>
</GOK:compare>
</GOK:effect>
</GOK:false>
</GOK:compare>
</GOK:effect>
</GOK:handler>
</GOK:state>
<!-- For repeat state choose a handler for turning repeat off. -->
<GOK:state name="repeat">
<GOK:handler name="select">
<GOK:effect call="StateReset" name="repeat:state-reset" />
<GOK:effect call="UnhighlightAll" name="repeat:unhighlight-all" />
<GOK:effect call="Timer1Stop" />
<GOK:effect call="HighlightFirstChunk" />
<GOK:effect call="StateJump" param1="1" />
</GOK:handler>
<GOK:handler name="movehighlighter" state="press">
<GOK:effect call="StateReset" name="repeat:state-reset" />
<GOK:effect call="UnhighlightAll" name="repeat:unhighlight-all" />
<GOK:effect call="Timer1Stop" />
<GOK:effect call="HighlightFirstChunk" />
<GOK:effect call="StateJump" param1="1" />
</GOK:handler>
</GOK:state>
</GOK:accessmethod>
</GOK:accessmethodroot>
|