1
/* fallback.h generated by gen_fallback from XBall.ad - do not edit! */
3
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
4
"! XBall.ad - xball resource file",
6
"! Copyright 1991, David Nedde",
8
"! Permission to use, copy, modify, and distribute this",
9
"! software and its documentation for any purpose and without fee",
10
"! is granted provided that the above copyright notice appears in all copies.",
11
"! It is provided 'as is' without express or implied warranty.",
12
"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!",
14
"XBall.title: XBall - Written by David Nedde",
16
"XBall*form.horizontalSpacing: 2",
17
"XBall*form.verticalSpacing: 2",
18
"XBall*form.width: 400",
19
"XBall*form.height: 400",
20
"XBall.allowShellResize: True",
21
"XBall*resizable: True",
28
"XBall*menuBar.rightAttachment: ATTACH_FORM",
29
"XBall*menuBar.leftAttachment: ATTACH_FORM",
31
"XBall*menuBar*MenuButton.borderWidth: 0",
32
"XBall*menuBar.borderWidth: 1",
33
"XBall.formAW*translations: #override \n\
34
<Key>q: menu_action( quit) \n\
35
Ctrl<Key>q: menu_action( quit) \n\
36
Ctrl<Key>c: menu_action( quit) \n\
37
<Key>c: menu_action( clear) \n\
38
<Key>r: menu_action( randomize) \n\
39
<Key>s: menu_action( stepSim) \n\
40
<Key>p: menu_action( perpetual) \n\
41
<Key>b: menu_action( ballCollide) \n\
42
<Key>h: menu_action( haltSim) \n\
43
<Key>l: menu_action( loadBitmap) \n\
44
<Key>d: menu_action( runDemo) \n\
45
<Key>a: menu_action( about) \n\
50
"XBall*file.labelString: File",
51
"XBall*file.label: File",
52
"XBall*file.mnemonic: F",
53
"XBall*about.labelString: About...",
54
"XBall*about.label: About... A",
55
"XBall*about.mnemonic: A",
56
"XBall*about.accelerator: <Key>A",
57
"XBall*about.acceleratorText: A",
58
"XBall*runDemo.labelString: Run Demo...",
59
"XBall*runDemo.label: Run Demo... D",
60
"XBall*runDemo.mnemonic: D",
61
"XBall*runDemo.accelerator: <Key>D",
62
"XBall*runDemo.acceleratorText: D",
63
"XBall*loadBitmap.labelString: Load Bitmap...",
64
"XBall*loadBitmap.label: Load Bitmap... L",
65
"XBall*loadBitmap.mnemonic: L",
66
"XBall*loadBitmap.accelerator: <Key>L",
67
"XBall*loadBitmap.acceleratorText: L",
68
"XBall*quit.labelString: Quit",
69
"XBall*quit.label: Quit Q",
70
"XBall*quit.mnemonic: Q",
71
"XBall*quit.accelerator: <Key>Q",
72
"XBall*quit.acceleratorText: Q",
75
"XBall*actions.labelString: Actions",
76
"XBall*actions.label: Actions",
77
"XBall*actions.mnemonic: A",
78
"XBall*clear.labelString: Clear",
79
"XBall*clear.label: Clear C",
80
"XBall*clear.mnemonic: C",
81
"XBall*clear.acceleratorText: C",
82
"XBall*clear.accelerator: <Key>C",
83
"XBall*randomize.labelString: Randomize",
84
"XBall*randomize.label: Randomize R",
85
"XBall*randomize.mnemonic: R",
86
"XBall*randomize.acceleratorText:R",
87
"XBall*randomize.accelerator: <Key>R",
88
"XBall*stopDemo.labelString: Stop Demo",
89
"XBall*stopDemo.label: Stop Demo",
90
"XBall*stepSim.labelString: Step Simulation",
91
"XBall*stepSim.label: Step Simulation S",
92
"XBall*stepSim.mnemonic: S",
93
"XBall*stepSim.acceleratorText: S",
94
"XBall*stepSim.accelerator: <Key>S",
97
"XBall*options.labelString: Options",
98
"XBall*options.label: Options",
99
"XBall*options.mnemonic: O",
100
"XBall*perpetual.labelString: Perpetual",
101
"XBall*perpetual.label: Perpetual P",
102
"XBall*perpetual.mnemonic: P",
103
"XBall*perpetual.acceleratorText: P",
104
"XBall*perpetual.accelerator: <Key>P",
105
"XBall*ballCollide.labelString: Ball Collide",
106
"XBall*ballCollide.label: Ball Collide B",
107
"XBall*ballCollide.mnemonic: B",
108
"XBall*ballCollide.acceleratorText: B",
109
"XBall*ballCollide.accelerator: <Key>B",
110
"XBall*haltSim.labelString: Halt Simulation",
111
"XBall*haltSim.label: Halt Simulation H",
112
"XBall*haltSim.mnemonic: H",
113
"XBall*haltSim.acceleratorText: H",
114
"XBall*haltSim.accelerator: <Key>H",
117
"XBall*help.labelString: Help",
118
"XBall*help.label: Help",
119
"XBall*help.mnemonic: H",
120
"XBall*onAuthor.labelString: On Author...",
121
"XBall*onAuthor.label: On Author...",
122
"XBall*onMenus.labelString: On Menus...",
123
"XBall*onMenus.label: On Menus...",
124
"XBall*onScroll.labelString: On Scrollbars...",
125
"XBall*onScroll.label: On Scrollbars...",
126
"XBall*onButtons.labelString: On Buttons...",
127
"XBall*onButtons.label: On Buttons...",
128
"XBall*onDemos.labelString: On Demos...",
129
"XBall*onDemos.label: On Demos...",
130
"XBall*onParams.labelString: On Parameters...",
131
"XBall*onParams.label: On Parameters...",
134
"XBall*elasticityBar.topAttachment: ATTACH_WIDGET",
135
"XBall*elasticityBar.topWidget: menuBar",
136
"XBall*elasticityBar.leftAttachment: ATTACH_FORM",
138
"XBall*elasticityBar.label.labelString: Elasticity",
139
"XBall*elasticityBar.label.leftAttachment: ATTACH_FORM",
140
"XBall*elasticityBar.label.leftOffset: 10",
141
"XBall*elasticityBar.label.topAttachment: ATTACH_FORM",
142
"XBall*elasticityBar.label.bottomAttachment: ATTACH_FORM",
143
"! Athena resources",
144
"XBall*elasticityBar.fromVert: menuBar",
145
"XBall*elasticityBar.label.label: Elasticity",
146
"XBall*elasticityBar.label.borderWidth: 0",
148
"XBall*elasticityBar.bar.width: 100",
149
"XBall*elasticityBar.bar.orientation: HORIZONTAL",
150
"XBall*elasticityBar.bar.maximum: 100",
151
"XBall*elasticityBar.bar.minimum: 0",
152
"XBall*elasticityBar.bar.showValue: True",
153
"! Athena resources",
154
"XBall*elasticityBar.bar.shown: 0.1",
155
"XBall*elasticityBar.borderWidth: 0",
156
"XBall*elasticityBar.label.borderWidth: 0",
157
"XBall*elasticityBar.feedback.borderWidth: 0",
158
"XBall*elasticityBar.defaultDistance: 0",
162
"XBall*gravityBar.label.labelString: Gravity",
163
"XBall*gravityBar.label.leftAttachment: ATTACH_FORM",
164
"XBall*gravityBar.label.topAttachment: ATTACH_FORM",
165
"XBall*gravityBar.label.bottomAttachment: ATTACH_FORM",
166
"! Athena resources",
167
"XBall*gravityBar.label.label: Gravity",
168
"XBall*gravityBar.label.borderWidth: 0",
170
"XBall*gravityBar.leftAttachment: ATTACH_WIDGET",
171
"XBall*gravityBar.leftWidget: elasticityBar",
172
"XBall*gravityBar.leftOffset: 20",
173
"XBall*gravityBar.topAttachment: ATTACH_WIDGET",
174
"XBall*gravityBar.topWidget: menuBar",
175
"XBall*gravityBar.bar.width: 100",
176
"XBall*gravityBar.bar.orientation: HORIZONTAL",
177
"XBall*gravityBar.bar.maximum: 100",
178
"XBall*gravityBar.bar.minimum: 0",
179
"XBall*gravityBar.bar.showValue: True",
180
"! Athena resources",
181
"XBall*gravityBar.fromVert: menuBar",
182
"XBall*gravityBar.horizDistance: 20",
183
"XBall*gravityBar.fromHoriz: elasticityBar",
184
"XBall*gravityBar.bar.shown: 0.1",
185
"XBall*gravityBar.borderWidth: 0",
186
"XBall*gravityBar.label.borderWidth: 0",
187
"XBall*gravityBar.feedback.borderWidth: 0",
188
"XBall*gravityBar.defaultDistance: 0",
190
"XBall*canvas.resizable: True",
191
"XBall*canvas.borderWidth: 1",
192
"XBall*canvas.topAttachment: ATTACH_WIDGET",
193
"XBall*canvas.topWidget: gravityBar",
194
"XBall*canvas.bottomAttachment: ATTACH_FORM",
195
"XBall*canvas.rightAttachment: ATTACH_FORM",
196
"XBall*canvas.leftAttachment: ATTACH_FORM",
197
"! Athena resources",
198
"XBall*canvas.fromVert: gravityBar",
199
"XBall*canvas.width: 400",
200
"XBall*canvas.height: 330",
203
"XBall*help_dialog_popup.title: XBall Information",
204
"XBall*help_dialog_action_area.leftAttachment: ATTACH_FORM",
205
"XBall*help_dialog_action_area.rightAttachment: ATTACH_FORM",
206
"XBall*help_dialog_action_area.bottomAttachment: ATTACH_FORM",
207
"XBall*help_dialog_action_area.close.labelString: Close",
208
"XBall*help_dialog.close.label: Close",
209
"XBall*help_dialog.separator.rightAttachment: ATTACH_FORM",
210
"XBall*help_dialog.separator.leftAttachment: ATTACH_FORM",
211
"XBall*help_dialog.separator.topOffset: 5",
212
"XBall*help_dialog.separator.bottomAttachment: ATTACH_WIDGET",
213
"XBall*help_dialog.separator.bottomWidget: help_dialog_action_area",
214
"XBall*help_dialog*help_text.rows: 12",
215
"XBall*help_dialog*help_text.columns: 60",
216
"! Athena Resources",
217
"XBall*help_dialog*help_textAW.displayCaret: False",
218
"XBall*help_dialog*help_textAW.height: 150",
219
"XBall*help_dialog*help_textAW.width: 470",
220
"XBall*help_dialog*help_textAW.scrollHorizontal: WhenNeeded",
221
"XBall*help_dialog*help_textAW.scrollVertical: WhenNeeded",
223
"XBall*help_dialog*close.accelerators: \
224
<KeyPress>Escape: set() notify() unset() \n\
225
<KeyPress>Return: set() notify() unset() \n\
234
"! Note that since fallback resources cannot handle \n in the text,",
235
"! a ~ is used to indicate a newline.",
239
"XBall.pointerHelp: \
240
MOUSE BUTTON USAGE ~~~\
241
Button 1: o Hold down to create a ball. ~\
242
o Throw the ball by moving the mouse and ~\
243
letting go of button 1. ~\
244
o The ball will be going the speed of the ~\
245
pointer at release time. ~\
246
Button 2: o Hold down and move the mouse to create ~\
247
random velocity balls. ~\
248
Button 3: o Hold down and move the mouse to create ~\
249
zero velocity balls. \
253
PULLDOWN MENU USAGE~~~\
255
About... A description of the program and author~\
256
Run Demo... Allows you to execute XBall demo files~\
257
See 'Help On Demos' for demo file format~\
258
Load Bitmap... Load an X bitmap as a set of balls~\
259
Analogous Demo command: ~\
260
bitmap filename posx,posy~\
261
Quit Exits the program~~\
263
Clear Clear the screen of balls~\
264
Analogous Demo command: clear~\
265
Randomize Give each ball a random velocity~\
266
Analogous Demo command: ~\
267
randomize minx,maxx,miny,maxy~\
268
Stop Demo Stops the execution of a demo in progress~\
269
Enabled by the Run Demo... menu option~\
270
Analogous Demo command: stop~\
271
Step Simulation Perform one step of the Halted simulation~\
272
Enabled by the Halt Simulation menu option~~\
274
Perpetual If toggled on, balls will live forever~\
275
Analogous Demo command: perpetual on|off~\
276
Command line option: -perpetual True|False~\
277
Ball Collide If on, balls will collide with one another~\
278
Analogous Demo command: collide on|off~\
279
Command line option: -collide True|False~~\
280
Help Simulation Stop the simulation. You can then step the~\
281
simulation using Step Simulation menu option~~\
283
On Menus Help using the menu system~\
284
On Scrollbars Help on the Elasticity and Gravity bars~\
285
On Buttons Help on using the mouse buttons to create balls~\
286
On Demos Help on the Demo language and how to run demos~\
287
On Parameters Help with command-line arguments to xball \
291
"XBall.scrollbarHelp: \
294
o This scrollbar controls the balls' elasticity, or how~\
295
much energy is lost each time the balls hit the ground.~\
296
o Scrollbar to left: low elasticity (eggs)~\
297
o Scrollbar to right: high elasticity (superballs)~\
298
o Demo command: elasticity %d~\
299
o Command line options: -elasticity %d~~~\
301
o This scrollbar controls the gravity, or how~\
302
much vertical velocity is added (subtracted)~\
303
from the balls for each iteration.~\
304
o Scrollbar to the left: Zero gravity (outer space)~\
305
o Scrollbar to the right: Large gravity (Jupiter)~\
306
o Demo command: gravity %d~\
307
o Command line options: -gravity %d \
312
DEMO FILE COMMANDS~~\
313
%s1, %s2... - Replace with a string~\
314
%d1, %d2... - Replace with an integer~~\
315
create %d1,%d2,%d3,%d4: Create a ball with x,y position~\
316
%d1,%d2 and an x & y velocity~\
318
randomize %d1,%d2,%d3,%d4: randomize velocities of all ~\
319
balls on screen with:~\
320
a max negative x velocity of %d1,~\
321
a max positive x velocity of %d2,~\
322
a max negative y velocity of %d3,~\
323
a max positive y velocity of %d4,~\
324
load_bitmap %s %d1,%d2: load a bitmap file (where %s is~\
325
the file path) to an x,y position~\
326
of %d1,%d2 on the screen~\
327
set_velocity %s %d1,%d2: set ball velocities (%s is~\
328
relative or absolute) to the x ~\
329
and y velocities %d1,%d2~\
330
gravity %d: set gravity to %d~\
331
elasticity %d: set elasticity to %d~\
332
backwards %d: Run simulation backwards %d iterations~\
333
visible %s: Make ball display 'on' or 'off'~\
334
iterate %d: simulate for %d iterations~\
335
sleep %d: sleep for %d seconds~\
336
perpetual %s: toggle perpetual (%s is 'on' or 'off')~\
337
collide %s: toggle ball collision (%s is 'on' or 'off')~\
338
window_width %d: Change window width to %d~\
339
window_height %d: Change window height to %d~\
340
backwards %d: Iterate backwards %d steps~\
341
clear: delete all balls in window~\
342
create_random %d1,%d2: create %d1 random balls with a ~\
343
max velocity of %d2~\
344
exit or quit: quit the xball program if demo is not~\
346
stop: stop demo but leave program alive \
349
"XBall.startupHelp: \
350
PROGRAM STARTUP PARAMETERS~~~\
351
Run xball -help for a list of command-line startup~\
355
"XBall.aboutString: \
356
XBall Version 3.0.1~~\
358
The Premire Ball Bouncing Software~~\
359
Allows you to throw 3-D balls around in a 2-D space.~~\
360
Author (Send bugs, comments, and interesting demos to):~\
363
Computer Science Department~\
364
Worcester Polytechnic Institute~\
365
Worcester, MA 01609~~\
366
Copyright 1990, 1993 David Nedde~\
367
Permission to use, copy, modify, and distribute this~\
368
software and its documentation for any purpose and~\
369
without fee is granted provided that the above~\
370
copyright notice appears in all copies. It is~\
371
provided \"as is\" without express or implied warranty. \
381
"! widgetName,widgetClass,menuCallbackName,optionalParams...~",
383
"! The widgetName is referenced above to set the menu's label.",
385
"! Note that the pulldownName of 'help' is automatically used as the help ",
388
"! Avaliable WidgetClasses are:",
389
"! PushButton - push it and cause the action",
390
"! ToggleButton - Push it and toggle the state",
391
"! Separator - A line in the menu",
393
"! Avaliable menuCallbackNames avaliable (none take optional parameters):",
394
"! runDemo - Lets user select a demo and run the demo",
395
"! loadBitmap - Lets user load a bitmap file",
396
"! quit - quits xball program",
397
"! clear - Clear all balls from the screen",
398
"! randomize - Randomize all balls from the screen",
399
"! stopDemo - Stop a demo in progress",
400
"! stepSim - Steps the simulation once (if simulation halted)",
401
"! perpetual - Toggles perpetual balls state",
402
"! ballCollide - Toggles colliding ball state",
403
"! haltSim - Toggles halting the simulation",
404
"! about - Displays help about the program",
405
"! onMenus - Displays help on the menus",
406
"! onScroll - Displays help on setting elasticity and gravity",
407
"! onButtons - Displays help on using the mouse buttons to create balls",
408
"! onDemos - Displays help on writing a demo",
409
"! onParams - Displays help on command-line arguments",
416
about,PushButton,about~\
417
runDemo,PushButton,runDemo~\
418
loadBitmap,PushButton,loadBitmap~\
419
separator,Separator~\
420
quit,PushButton,quit~\
422
clear,PushButton,clear~\
423
randomize,PushButton,randomize~\
424
stopDemo,PushButton,stopDemo~\
425
stepSim,PushButton,stepSim~\
427
perpetual,ToggleButton,perpetual~\
428
ballCollide,ToggleButton,ballCollide~\
429
haltSim,ToggleButton,haltSim~\
431
about,PushButton,about~\
432
onMenus,PushButton,onMenus~\
433
onScroll,PushButton,onScroll~\
434
onButtons,PushButton,onButtons~\
435
onDemos,PushButton,onDemos~\
436
onParams,PushButton,onParams~\