File: dwell-selection.xml.in

package info (click to toggle)
gok 1.3.7-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 11,096 kB
  • ctags: 4,799
  • sloc: ansic: 33,165; xml: 12,440; sh: 8,876; makefile: 333; perl: 300
file content (108 lines) | stat: -rw-r--r-- 4,173 bytes parent folder | download | duplicates (3)
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
<?xml version="1.0"?>

<GOK:accessmethodroot xmlns:GOK="http://www.gnome.org/GOK">

<!-- User interface for the access method -->

<GOK:accessmethod name="dwellselection" _displayname="Dwell Selection">
<_GOK:description xml:space="preserve">Move the mouse pointer to highlight a key.  Dwell on the key to select.</_GOK:description>

<GOK:operation>
<GOK:control type="frame" size="3" spacing="0" border="0" _string="Operation">
	<GOK:control type="hbox" size="1" spacing="0" border="0">
		<GOK:control type="vbox" size="3" border="5" spacing="10">

			<GOK:control type="hbox" size="2" spacing="5" border="0">
				<GOK:control type="label" _string="Select:" />
				<GOK:control name="keyenter+keyleave" _string="Select:" type="combobox" fillwith="actions" qualifier="mousepointer" />
			</GOK:control>

			<GOK:control type="hbox" size="2" spacing="5" border="0">
				<GOK:control type="label" _string="Activate:" />
				<GOK:control name="outputselected" _string="Activate:" type="combobox" fillwith="actions" qualifier="dwell" />
			</GOK:control>

		</GOK:control>
	</GOK:control>	
</GOK:control>	
</GOK:operation>

<GOK:feedback>
<GOK:control type="frame" size="3" spacing="0" border="0" _string="Feedback">
	<GOK:control type="hbox" size="1" spacing="0" border="0">
		<GOK:control type="vbox" size="3" border="5" spacing="10">

			<GOK:control type="hbox" size="2" border="0" spacing="5">
				<GOK:control type="label" _string="Movement:" />
				<GOK:control name="feedbackmovement" _string="Feedback Movement:" type="combobox" fillwith="feedbacks" />
			</GOK:control>
	
			<GOK:control type="hbox" size="2" border="0" spacing="5">
				<GOK:control type="label" _string="Activation:" />
				<GOK:control name="feedbackselection" _string="Feedback Activation:" type="combobox" fillwith="feedbacks" />
			</GOK:control>

		</GOK:control>
	</GOK:control>
</GOK:control>
</GOK:feedback>

<!-- <GOK:options>
<GOK:control type="frame" size="3" spacing="0" border="0" _string="_Options">
	<GOK:control type="hbox" size="2" border="5" spacing="20">
		<GOK:control name="autorepeat" type="checkbutton" _string="Auto Repeat On" associated="repeatrate+repeatratelabel+repeatratesuffix" associatedstate="1"/>
		<GOK:control type="hbox" size="3" border="0" spacing="0">
			<GOK:control name="repeatratelabel" type="label" _string="Auto Repeat Rate:" />
			<GOK:control name="repeatrate" type="spinbutton" _string="Auto Repeat Rate:" value="1" min="0" max="100" stepincrement="1" pageincrement="10" pagesize="10" />
			<GOK:control name="repeatratesuffix" type="label" _string="(100s of a second)" />
		</GOK:control>
	</GOK:control>
</GOK:control>
</GOK:options> -->

<!-- Rates for this access method. -->
	<GOK:rate name="outputselected" stringvalue="dwell" />
	<GOK:rate name="keyenter" stringvalue="mousepointer" />
	<GOK:rate name="keyleave" stringvalue="mousepointer" />
	<GOK:rate name="feedbackmovement" stringvalue="" />
	<GOK:rate name="feedbackselection" stringvalue="key_flashing" />
	<GOK:rate name="autorepeat" value="0" />
	<GOK:rate name="repeatrate" value="30" />

<!-- Initialization for this access method. -->
	<GOK:initialization>
		<GOK:effect call="ChunkerReset" />
		<GOK:effect call="ChunkerChunkNone" />
	</GOK:initialization>

<!-- Highlight keys as the mouse pointer moves. Wait for selection of key. -->
	<GOK:state name="1">

		<GOK:handler name="keyenter" state="enter">
			<GOK:effect call="SetSelectedKey" />
			<GOK:effect call="ChunkerKeyHighlight" />
			<GOK:effect call="Feedback" name="feedbackmovement" />
		</GOK:handler>

		<GOK:handler name="keyleave" state="leave">
			<GOK:effect call="ChunkerKeyUnHighlight" />
			<GOK:effect call="SetSelectedKey" />
		</GOK:handler>

		<GOK:handler name="outputselected">
			<GOK:effect call="OutputSelectedKey" />
			<GOK:effect call="Feedback" name="feedbackselection" />
		</GOK:handler>

	</GOK:state>

<!-- For repeat state choose a handler for turning repeat off. -->
	<GOK:state name="repeat">
		<GOK:handler name="keyleave" state="leave">
			<GOK:effect call="StateReset" />
			<GOK:effect call="UnhighlightAll" />
		</GOK:handler>
	</GOK:state>

</GOK:accessmethod>
</GOK:accessmethodroot>