File: gok-with-references.schemas.m4

package info (click to toggle)
gok 1.0.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 11,396 kB
  • ctags: 3,370
  • sloc: ansic: 32,741; xml: 12,498; sh: 10,844; makefile: 313; perl: 300
file content (233 lines) | stat: -rw-r--r-- 9,257 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
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
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
dnl If you modify this file and commit the new version to CVS please
dnl generate gok-with-references.schemas.in and also
dnl and commit it to CVS. Build it with this command ('make' should do this):
dnl     m4 gok-with-references.schemas.m4 > gok-with-references.schemas.in
dnl
dnl gok-with-references.schemas.in is needed by intltool-update
dnl
dnl Here is how gok.schemas is generated:
dnl     gok-with-references.schemas.m4
dnl         m4
dnl     gok-with-references.schemas.in
dnl         @INTLTOOL_SCHEMAS_RULE@
dnl     gok-with-references.schemas
dnl         sed
dnl     gok.schemas

dnl Define a macro that expands into a schema
dnl $1 = key
dnl $2 = type
dnl $3 = default
dnl $4 = short description
dnl $5 = long description
define(`mkschema', `<schema>
      <key>/schemas/apps/gok/$1</key>
      <applyto>/apps/gok/$1</applyto>
      <owner>gok</owner>
      <type>$2</type>
      <default>$3</default>
      <locale name="C">
        <short>$4</short>
        <long>$5</long>
      </locale>
    </schema>')

define(`mkschema_i18n_default', `<schema>
      <key>/schemas/apps/gok/$1</key>
      <applyto>/apps/gok/$1</applyto>
      <owner>gok</owner>
      <type>$2</type>
      <locale name="C">
        <default>$3</default>
        <short>$4</short>
        <long>$5</long>
      </locale>
    </schema>')

dnl Define a macro that expands into keys for an action
dnl $1 = name
dnl $2 = displayname
dnl $3 = type
dnl $4 = state
dnl $5 = number
dnl $6 = rate
dnl $7 = permanent
dnl $8 = key_averaging
define(`mkaction', mkschema_i18n_default(`actions/$1/displayname', `string', $2,
                       `The name to display to the user for this action',
                       `')
    mkschema(`actions/$1/type', `string', $3,
             `The type of this action',
             `')
    mkschema(`actions/$1/state', `string', $4,
             `The state in which this action is activated',
             `')
    mkschema(`actions/$1/number', `int', $5,
             `The number if applicable',
             `')
    mkschema(`actions/$1/rate', `int', $6,
             `The rate for this action',
             `')
    mkschema(`actions/$1/permanent', `bool', $7,
             `Is this action permanent',
             `')
    mkschema(`actions/$1/key_averaging', `bool', $8,
             `Does this action use key averaging',
             `'))

define(`switch_action', mkaction($1, $2, switch, press, $3, 0, true, false))
define(`mousebutton_action', mkaction($1, $2, mousebutton, press, $3, 0, true, false))
define(`mousepointer_action', mkaction($1, $2, mousepointer, press, 0, 0, true, false))
define(`dwell_action', mkaction($1, $2, dwell, press, 0, 100, true, false))

dnl Define a macro that expands into keys for a feedback
dnl $1 = name
dnl $2 = displayname
dnl $3 = flash
dnl $4 = number of flashes
dnl $5 = sound
dnl $6 = soundname
dnl $7 = permanent
define(`mkfeedback', mkschema_i18n_default(`feedbacks/$1/displayname', `string', $2,
                         `The name to display to the user for this feedback',
                         `')
    mkschema(`feedbacks/$1/flash', `bool', $3,
             `Does this feedback flash',
             `')
    mkschema(`feedbacks/$1/number_flashes', `int', $4,
             `The number of times this feedback will flash',
             `')
    mkschema(`feedbacks/$1/sound', `bool', $5,
             `Does this feedback play a sound',
             `')
    mkschema(`feedbacks/$1/soundname', `string', $6,
             `The name of the sound that this feedback will play',
             `')
    mkschema(`feedbacks/$1/speech', `bool', $5,
             `Does this feedback speak the label of a GOK key',
             `')
    mkschema(`feedbacks/$1/permanent', `bool', $7,
             `Is this feedback permanent',
             `'))

<!-- Please do not modify this file directly but rather modify
     gok-with-references.schemas.m4, this file is generated from it.
     If you modify gok-with-references.schemas.m4 and commit it to CVS
     then please also commit the new gok-with-references.schemas.in
     that is generated from it to CVS.

     Here is how gok.schemas is generated:
         gok-with-references.schemas.m4
             m4
         gok-with-references.schemas.in
             @INTLTOOL_SCHEMAS_RULE@
         gok-with-references.schemas
             sed
         gok.schemas
-->

<gconfschemafile>
  <schemalist>
    mkschema(`layout/key_spacing', `int', `3',
             `The space between keys',
             `')
    mkschema(`layout/key_width', `int', `60',
             `The key width',
             `')
    mkschema(`layout/key_height', `int', `40',
             `The key height',
              `')
    mkschema(`layout/keyboard_x', `int', `100',
             `The keyboards X coordinate',
             `')
    mkschema(`layout/keyboard_y', `int', `200',
             `The keyboards Y coordinate',
             `')
    mkschema(`access_method', `string', `directselection',
             `The access method to use',
             `')
    mkschema(`input_device', `string',`',
	     `The name of the xinput device to use',
	     `')
    mkschema(`valuator_sensitivity', `float',`0.25',
	     `A multiplier to be applied to input device valuator events before processing',
	     `')
    mkschema(`use_aux_dicts', `bool',`false',
	     `Whether to use additional word lists when searching for GOK word-completion candidates',
	     `')
    mkschema(`aux_dictionaries', `string',`',
	     `A semicolon-delimited list of fully specified paths to additional word-completion dictionaries',
	     `')
    mkschema(`prefs_locked', `bool', `false',
             `Are the preferences to be restricted?',
             `')
    mkschema(`spy/gui_search_depth', `int',`18',
	     `How many levels down the GUI tree to search for accessible objects',
	     `')
    mkschema(`spy/gui_search_breadth', `int',`100',
	     `How many children of each node in the GUI tree to search for accessible objects',
	     `')
    mkschema(`word_complete', `bool', `true',
             `Is word completion on',
             `')
    mkschema(`number_predictions', `int', `5',
             `The number of predictions for word completion',
             `')
    mkschema(`keyboard_directory', `string', `$pkgdatadir',
             `The primary directory to load keyboard files from. Default is a system directory.',
             `')
    mkschema(`aux_keyboard_directory', `string', `$pkgdatadir',
             `The directory to load user-specific or custom keyboard files from.',
             `')
    mkschema(`access_method_directory', `string', `$pkgdatadir',
             `The directory to load access method files from.',
             `')
    mkschema(`dictionary_directory', `string', `$pkgdatadir',
             `The directory to load dictionary files from.',
             `')
    mkschema(`per_user_dictionary', `bool', `true',
             `Does each GOK user have a private copy of the word prediction dictionary?',
             `')
    mkschema(`resource_directory', `string', `$pkgdatadir',
             `The directory to load the gok resource file from.',
             `')
    mkschema(`drive_corepointer',`bool', `false',
	     `Does the core pointer follow the GOK keyboard pointer?',
	     `')
    mkschema(`expand',`bool', `False',
	     `Does the GOK window expand to fill the full screen width?',
	     `')
    mkschema(`use_xkb_geom',`bool', `true',
	     `Does GOK generate its compose keyboard dynamically based on information from the X Server?',
	     `')
    mkschema(`compose_kbd_type',`string', `xkb',
	     `Determines the keyboard type used for the default compose keyboard',
	     `Should be one of the following: "xkb", "default", "alpha", "alpha-freq", "custom"; if "custom", "custom_compose_keyboard" should be defined.')
    mkschema(`custom_compose_kbd',`string', `',
	     `The full pathname to a file which defines a custom GOK compose keyboard',
	     `')
    mkschema(`dock_type',`string',`',
	     `GOK main window anchor location (if a dock), or empty string if not',`')
    switch_action(`switch1', `Switch 1', 1)
    switch_action(`switch2', `Switch 2', 2)
    switch_action(`switch3', `Switch 3', 3)
    switch_action(`switch4', `Switch 4', 4)
    switch_action(`switch5', `Switch 5', 5)
    mousebutton_action(`mousebutton1', `Left Mouse Button', 1)
    mousebutton_action(`mousebutton2', `Middle Mouse Button', 2)
    mousebutton_action(`mousebutton3', `Right Mouse Button', 3)
    mousebutton_action(`mousebutton4', `Mouse Button 4', 4)
    mousebutton_action(`mousebutton5', `Mouse Button 5', 5)
    mousepointer_action(`mousepointer', `Mouse Pointer')
    dwell_action(`dwell', `Dwell')
    mkfeedback(`none', `None', `false', `0', `false', `none', `false', `true')
    mkfeedback(`key_flashing', `Key flashing', `true', `4', `false', `none',
               `false', `true')
    mkfeedback(`goksound1', `Sound one', `false', `0', `true',
               `$pkgdatadir/goksound1.wav', `false', `true')
    mkfeedback(`goksound2', `Sound two', `false', `0', `true',
               `$pkgdatadir/goksound2.wav', `false', `true')
    mkfeedback(`gokspeech', `Speech', `false', `0', `false',
               `none', `true', `true')
  </schemalist>
</gconfschemafile>