rwddemo 0.91 → 0.92

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. data/Readme.txt +32 -305
  2. data/code/01rwdcore/01rwdcore.rb +15 -13
  3. data/code/01rwdcore/jumplinkcommand.rb +30 -0
  4. data/code/01rwdcore/openhelpwindow.rb +26 -26
  5. data/code/01rwdcore/returntomain.rb +8 -8
  6. data/code/01rwdcore/rwdtinkerversion.rb +12 -13
  7. data/code/01rwdcore/rwdwindowreturn.rb +3 -5
  8. data/code/01rwdcore/test_cases.rb +115 -0
  9. data/code/01rwdcore/test_harness.rb +12 -0
  10. data/code/01rwdcore/uploadreturns.rb +62 -0
  11. data/code/dd0viewphoto/dd0viewphoto.rb +3 -4
  12. data/code/superant.com.rwdcalc/jumplinkupdate.rb +11 -0
  13. data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +14 -0
  14. data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +17 -0
  15. data/code/superant.com.rwdshell/helptexthashshell.rb +8 -1
  16. data/code/superant.com.rwdshell/openhelpwindowshell.rb +6 -0
  17. data/code/superant.com.rwdshell/runrwdshellwindow.rb +4 -1
  18. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
  19. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +16 -18
  20. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
  21. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
  22. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
  23. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
  24. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
  25. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
  26. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
  27. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
  28. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
  29. data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
  30. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
  31. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
  32. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
  33. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
  34. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
  35. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
  36. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
  37. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
  38. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
  39. data/configuration/language.dist +1 -1
  40. data/configuration/rwddemo.dist +3 -0
  41. data/configuration/rwdtinker.dist +3 -3
  42. data/configuration/tinkerwin2variables.dist +1 -1
  43. data/gui/frontwindow0/superant.com.rwdcalendar/hl9calendar.rwd +1 -1
  44. data/gui/frontwindow0/superant.com.shellscripts/3editscripts.rwd +1 -0
  45. data/gui/frontwindow0/viewlogo/cc0openphoto.rwd +22 -0
  46. data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
  47. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
  48. data/gui/frontwindowselections/viewselectionzend/viewselectionend.rwd +3 -0
  49. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +1 -1
  50. data/gui/tinkerbackwindows/superant.com.rwdcalc/81jumplinkcommands.rwd +17 -0
  51. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +1 -1
  52. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/94rwddiagnostics.rwd +0 -17
  53. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/98jumplinkcommands.rwd +17 -0
  54. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +12 -16
  55. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  56. data/init.rb +231 -228
  57. data/rwd_files/HowTo_Tinker.txt +20 -0
  58. data/rwdconfig.dist +6 -2
  59. data/tests/makedist.rb +36 -7
  60. metadata +54 -69
  61. data/code/superant.com.rwdshell/runrwdshellmenu1.rb +0 -57
  62. data/configuration/language.cnf +0 -7
  63. data/configuration/rwdapplicationidentity.cnf +0 -3
  64. data/configuration/rwdcalc.cnf +0 -7
  65. data/configuration/rwdcalendar.cnf +0 -10
  66. data/configuration/rwdshell.cnf +0 -3
  67. data/configuration/rwdtinker.cnf +0 -15
  68. data/configuration/tinkerwin2variables.cnf +0 -17
  69. data/extras/cmdline_parse +0 -47
  70. data/extras/config_file +0 -69
  71. data/extras/errorMsg +0 -19
  72. data/extras/makePlaylist +0 -34
  73. data/extras/mp3controld +0 -289
  74. data/extras/playlist +0 -186
  75. data/extras/showHelp +0 -18
  76. data/gui/frontwindowselections/superant.com.rwdcalcselectiontab/rwdcalc.rwd +0 -12
  77. data/gui/frontwindowselections/superant.com.rwdshellselectiontab/rwdshellbackwindowselectiontab.rwd +0 -12
  78. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
  79. data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +0 -4
  80. data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +0 -3
  81. data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +0 -10
  82. data/gui/tinkerbackwindows/superant.com.rwdcalc/98returntab.rwd +0 -11
  83. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/v9returntab.rwd +0 -11
  84. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
  85. data/rwdconfig.cnf +0 -6
data/Readme.txt CHANGED
@@ -1,14 +1,11 @@
1
- = RwdTinker framework for RubyWebDialogs
1
+ = HowTo use the RwdCalc Program
2
2
 
3
- RwdTinker is a web brower interface to and system for developing programs
4
3
 
5
- == Usage
4
+ rwdcalc is a web brower interface to arithmetic commands
6
5
 
7
- How to Use the Tinker framework Program (rwdtinker)
8
6
 
9
- 1. stand alone application
10
- 2. framework for building applications
11
- 3. Open brower windows with html documents
7
+ 3. use a calculator
8
+
12
9
 
13
10
  The GUI interface used is RubyWebDialogs
14
11
 
@@ -19,173 +16,52 @@ ruby init.rb
19
16
  Then point your web browser to:
20
17
  http://localhost:7705/
21
18
 
22
- == Viewing installed Applets:
23
-
24
- Go to "List Scripts" tab
25
-
26
- You can get a list of all installed applets by clicking the listfiles button
27
-
28
- To see the text of a install file
29
- Type in the name of the file you want.
30
-
31
- type it without the inf ending
32
- rwdapplet-0.1
33
-
34
- Then click the "View Installed File" button
35
-
36
- If it finds the file it will open it. It displays the text the search box.
37
-
38
- You can uninstall applets on this screen
39
-
40
- == Installing Applets
41
-
42
- click on the "Selection Panel"
43
- click on Rwdtinker Back Window
44
-
45
- You can download an applet created by someone else
46
- put the file in the zips directory
47
-
48
- click on the "list zips" tab
49
- click on "list applets available for installing"
50
-
51
- chose the applet you want
52
- click on "install applet"
53
- If all goes well the applet should be installed.
54
- You will need to restart rwdtinker to see the new screens
55
-
56
-
57
- == Changing configuration file
58
-
59
- click on "Edit Configuration"
60
- You can view the configuration file
61
-
62
- You can edit the configuration
63
-
64
- Remember to reload the configuration variables if you want your
65
- changes used.
66
-
67
- == Manually installing applets
68
-
69
- * unzip an applet
70
-
71
- unzip the applet into the program directoy
72
- unzip randomapplet.zip
73
-
74
- This should place the needed files in the correct directories
75
-
76
-
77
- == Creating Applets
78
-
79
- To add code, commands and gui tabs
80
-
81
- Move program files into a directory under the code directory.
82
- Move gui files into a directory under the gui directory.
83
- The gui directory name you create is important, because the gui
84
- rwd file is built in alpha order by directory name
85
19
 
86
20
 
87
- There are two ways to add applets to the directories.
88
21
 
89
- Creating code
22
+ == Calculator
90
23
 
24
+ add or multiply 2 numbers together
91
25
 
92
- * Manually write code and gui files
26
+ subtract or divide
93
27
 
94
- The files go into your code directory
95
- the filenames for code do not matter
96
-
97
- The gui files go into your gui directory
98
- The gui files need to be in order by name and end with .rwd
99
-
28
+ see a running tape
100
29
 
101
-
102
- If you need a config file that goes in the configuration directory
103
30
 
104
- internationalization and localization are helped by replacing the
105
- gui files in the subdirectories under gui
106
31
 
107
-
108
32
  == Documents
109
-
110
-
33
+
111
34
  when you click on a document name, the document should pop up in a
112
35
  browser window, or in another browser tab.
113
36
 
114
37
  To exit, press the x inside the browser window.
115
38
 
116
- == To add context sensitive help
117
-
118
- You need to add a hash file that just needs to contain
119
- Helptext.update( :myapplet_generalhelp => " This is the general help
120
- You can add help text hear")
121
-
122
- And you need to add a help run script that will call runhelpwindow
123
- This should have a method that includes:
124
- setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
125
-
126
- if @rwd_tab == "gemservescan"
127
- $help_topic = "gemdocs_help"
128
- end
129
- $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
130
- if @rwd_window != "rwdtinkerhelpwindow"
131
- $previouswindow = @rwd_window
132
- $previoustab = @rwd_tab
133
- end
134
- runhelpwindow
135
- end
136
-
137
- == Languages
138
-
139
-
140
- You can add tranlations in the lang subdirectory
141
- You change the $lang constant in Tinker config file in the configuration directory
142
- You can see one translation on the install applet tab, after you have installed and applet
143
-
144
- == Using over a Network
145
-
146
- To serve the application over your local LAN,change the last line in the
147
- init.rb file to something like:
148
- RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
149
- Then you should be able to login at: http://yourhostname:8080
150
-
151
- You have to authorize yourself. The .rwuids example is a string with
152
- the name of the authorization file, relative to the home directory
153
- of the user that started the service. This file has to be in the form of:
154
39
 
155
- user1 = password
156
- user2 = pass phrase
157
40
 
158
- Thus the file .rwduids might contain:
159
41
 
160
- erik = secret
161
-
162
- == Requirements:
163
- RubyWebDialogs - I am using 0.1.2
164
- This package you downloaded should have a runtime version of
42
+ Requirements:
43
+ RubyWebDialogs - I am using 0.0.11 2004-3-9
44
+ This package you downloaded rwddemo should have a runtime version of
165
45
  the needed rubywebdialog files
166
46
 
167
47
  Ruby I am using version 1.8.2
168
48
 
169
49
  I have tested this under Linux-Debian kernel 2.6.9
170
50
 
171
- = Operation:
51
+ Operation:
172
52
  The code files reside in the code directory and are combined before
173
53
  the main Class is loaded
174
54
 
175
55
  The rwd files in gui are combined before the gui is activated
176
56
 
177
- Translated text reside in the lang directory
178
-
179
- == Installing:
57
+ Installing:
180
58
 
181
59
  untar the file
182
- tar zxvf rwdtinker-x.y.tar.gz
60
+ tar zxvf rwdshell-x.y.tar.gz
183
61
  then cd to the directory
184
62
  cd rwdshell-x.y
185
63
  then start the init.rb program file
186
64
  ruby init.rb
187
- Then point your browser at http://localhost:7705
188
- or where it tells you.
189
65
  Trouble shooting:
190
66
 
191
67
  If the program is not working, try looking at the ev subdirectory. That is where
@@ -203,22 +79,9 @@ Don't use the back-button of the browser! Strange and unpredictable things may a
203
79
 
204
80
  RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
205
81
 
206
- == Credits
207
-
208
- Thanks go to:
209
-
210
- * Matz, for creating Ruby in the first place.
211
- * Erik, for creating RubyWebDialogs.
212
- * Charlotte, my wife for coming up for the name Tinker.
213
-
214
- == License
215
-
216
- rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
217
- under the terms of the GPL licence:
218
-
219
- == Contact
82
+
220
83
  For more information see:
221
- http://rwdapplications.rubyforge.org/wiki/wiki.pl
84
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
222
85
 
223
86
 
224
87
  For more information about RubyWebDialogs see:
@@ -227,157 +90,21 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
90
  Thanks, Steven Gibson
228
91
 
229
92
  == Changelog
230
- version 1.56
231
- refactored gui files to load without intermediate files
232
- refactored code files to load without intermediate files
233
-
234
- version 1.55
235
- refactored language files to load without intermediate files
236
- refactored language files to load without intermediate files
237
-
238
- version 1.54
239
- refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
240
- corrected some program logic errors in remote control code including close socket
241
-
242
- version 1.53
243
- added search of Gems repository for rwdtinker gems
244
- download and install of Gems
245
-
246
- version 1.52
247
- added function to install applets from gem directory
248
-
249
- version 1.51
250
- changed return to main
251
- changed configuration of remote ports
252
- updated context sensitive help
253
-
254
- version 1.50
255
- changed unzip applet to be internal code - no exec to unzip program
256
- changed order of tabs on back window - list applets now first
257
- added rwdwcalc applet in to zips directory
258
- changed width of text fields with help from RubyWebDialogs author
259
- changed listing of help options, vertical instead of horizontal
260
-
261
- version 1.49
262
- added demon function for remote queries
263
- startup application on first available port
93
+ Version 0.5
94
+ corrected selectiontab
95
+ added sample math demos
96
+ added script running tab
97
+ added script editing
98
+ added script rename, delete
99
+ updated for rwdtinker 1.51
100
+
101
+ Version 0.3
102
+ Changed directory structure to work with rwdtinker 1.4.
103
+ Added running tape
104
+ Added subtraction and division
105
+ moved to second window
264
106
 
265
- version 1.48
266
- fix in context sensitive help so that applets can use it better
267
-
268
- version 1.47
269
- change to context sensitive help
270
-
271
- version 1.46
272
- more work on context help
273
- window calls point to tab as well as windows
274
- help added help buttons on Document, Selection, View Applet, tabs
275
-
276
- version 1.45
277
- first steps toward context sensitive help
278
- added help button on main window/tab
279
-
280
- version 1.44
281
- updated directory structure - refactored gui files
282
- Changed gui directory names - more like Java package titles
283
-
284
- version 1.43
285
- changed setup variables file for live changes
286
- added editing and reloading of config file
287
- added unzip filename to config file
288
-
289
- version 1.42
290
- update for live update system
291
- update applets for live update
292
- code file name cleanup
293
-
294
- version 1.41
295
- l10n work es,nl, jp
296
- separated out languge.cnf
297
- added zip applets refreshacpi, rwdcalc
298
-
299
- version 1.40
300
- removed extra lines from init.rb
301
- fixed help second window
302
- added some tranlations for Spanish
303
- More work on l10n
304
-
305
- version 1.3
306
- refactored gui files to do easier i10n
307
- removed lang directories under gui
308
- added lang files under lang dir
309
- removed redundant code files left from moving applet handling to back window
310
- removed zipped applets not yet refactored
311
-
312
- version 1.24
313
- added internet usage instructions to HowTo_Tinker.txt
314
- removed HowTo_Tinker.html
315
- added panels for Helpabout
316
- changed photo logo tab to only have embedded picture, no button
317
-
318
- version 1.23
319
- moving diagnostic tab and applet handling tabs to second window
320
- added selection panel tab to choose secondary windows.
321
-
322
- version 1.21
323
- changing version on help screen to be button
324
- added version window
325
- added diagnostic tab
326
-
327
- version 1.2
328
- added gemspec for creating a rwdtinker.gem
329
- added rdoc comments
330
- changed order on remove applets tab
331
-
332
- version 1.1
333
- changed order of elements on install applet tab
334
- Add more i81n ablility - added lang directorys for language hash files
335
- added in test file using WATIR stands for "Web Application Testing In Ruby,
336
-
337
- version 1.0
338
- Improved name selection in zips and applet screens
339
- added rubyslippers applet and rwdrefreshacpi applets as zips
340
-
341
- version 0.9
342
- Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
343
- updated RubyWebDialogs for people who do not have it installed
344
- added rwdschedule applet as zip file
345
-
346
- version 0.8
347
- changed location of code files
348
- only directory of code files needs to be added to inf file
349
- changed location of gui files
350
- only directory of gui files needs to be added to inf file
351
- Added constants in conf file for code location and gui location
352
- removed all zips not yt updated to new directory layout
353
- change loading of conf files to not need intermediate file
354
- and favicon.ico
355
-
356
- version 0.7
357
- moved changelog to HowTo_Tinker.html
358
- copied english gui text to the dirs I think we should translate to
359
- update backup zip files to newest versions
360
- upgraded the ev directory - for those who don't have RubyWebDialogs
361
-
362
- version 0.6
363
- updated version number
364
- changed merge name to rwdtinker.rb
365
-
366
- version 0.4
367
- added zip listing and installing - Linux only
368
-
369
- Version 0,3
370
- changed name to Tinker
371
-
372
107
  Version 0.2
373
- added some i18n directories for the gui files
374
-
375
- Version 0.1
376
- first public version released
377
- includes document screen
378
- Open Photo screen
379
- included configuration directory
380
- zips directories
381
- installed directory
382
- installed applet lister
108
+ converted to rwdtinker applet
109
+
383
110
 
@@ -3,18 +3,20 @@
3
3
  # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
4
  # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
5
  # This class is the top class for the RwdTinker application
6
-
6
+
7
7
  class RwdTinker < RWDialog
8
-
9
- def main
10
- @rwd_window = "main"
11
- @result = "idle"
12
- @display= "idle"
13
8
 
14
-
15
- end
16
-
17
- def inspect
18
- "Rwdtinker Application "
19
- end
20
-
9
+ def main
10
+ @rwd_window = "main"
11
+ @result = "idle"
12
+ @display= "idle"
13
+ if TestNow
14
+
15
+ rwdtest_harness
16
+ end
17
+ end
18
+
19
+ def inspect
20
+ "Rwdtinker Application "
21
+ end
22
+
@@ -0,0 +1,30 @@
1
+ # Bind message passing socket to rwdtinker application
2
+ JumpLink = Hash.new { |hh, kk| hh[kk] = "ERROR: link not found: #{kk.inspect}."; hh[kk] }
3
+ locationlink = {
4
+ :helpscreen=> "runhelpwindow",
5
+ :tinkerbackwindow=>"runrwdtinkerbackwindow",
6
+ :returntomain=>"returntomain"
7
+ }
8
+ locationlink.each { |kk, vv| JumpLink[kk] = vv }
9
+
10
+ def runjumplinkcommand
11
+
12
+ runjumplocation = "#{JumpLink[:"#{@a_jumplinkinput}"]}"
13
+
14
+ self.send(runjumplocation)
15
+
16
+
17
+
18
+
19
+ end
20
+
21
+
22
+
23
+ # list the remote control options on the screen
24
+ def showjumplinkoptions
25
+
26
+
27
+
28
+ @jumplinkoptions = $rwdjumplink.rwd_options
29
+
30
+ end