rwddialogmap 0.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (170) hide show
  1. data/Readme.txt +475 -0
  2. data/bin/rwddialogmap +19 -0
  3. data/code/01rwdcore/01rwdcore.rb +29 -0
  4. data/code/01rwdcore/02helptexthashbegin.rb +4 -0
  5. data/code/01rwdcore/03helptexthash.rb +23 -0
  6. data/code/01rwdcore/04helptextend.rb +6 -0
  7. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  8. data/code/01rwdcore/openhelpwindow.rb +31 -0
  9. data/code/01rwdcore/returntomain.rb +10 -0
  10. data/code/01rwdcore/rundocuments.rb +10 -0
  11. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  12. data/code/01rwdcore/runhelpabout.rb +10 -0
  13. data/code/01rwdcore/runopentinkerdocument.rb +7 -0
  14. data/code/01rwdcore/rwdtinkerversion.rb +22 -0
  15. data/code/01rwdcore/rwdwindowreturn.rb +9 -0
  16. data/code/01rwdcore/selectiontab.rb +9 -0
  17. data/code/01rwdcore/setuphelpaboutoptions.rb +13 -0
  18. data/code/01rwdcore/setuptinkerdocuments.rb +6 -0
  19. data/code/01rwdcore/test_cases.rb +109 -0
  20. data/code/01rwdcore/test_harness.rb +13 -0
  21. data/code/01rwdcore/uploadreturns.rb +62 -0
  22. data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
  23. data/code/superant.com.dialogmap/0uninstallapplet.rb +12 -0
  24. data/code/superant.com.dialogmap/changedir.rb +31 -0
  25. data/code/superant.com.dialogmap/clearhypernotescreendisplay.rb +14 -0
  26. data/code/superant.com.dialogmap/clearlinkscreendisplay.rb +13 -0
  27. data/code/superant.com.dialogmap/createnewnote.rb +28 -0
  28. data/code/superant.com.dialogmap/helptexthashrwdhypernote.rb +38 -0
  29. data/code/superant.com.dialogmap/launchurlfile.rb +35 -0
  30. data/code/superant.com.dialogmap/listdirectories.rb +19 -0
  31. data/code/superant.com.dialogmap/listdirectories3.rb +25 -0
  32. data/code/superant.com.dialogmap/listnotedirshtml3.rb +54 -0
  33. data/code/superant.com.dialogmap/loadconfigurationrecord.rb +22 -0
  34. data/code/superant.com.dialogmap/loadconfigurationvariables.rb +14 -0
  35. data/code/superant.com.dialogmap/loadhtmlnoterecord.rb +24 -0
  36. data/code/superant.com.dialogmap/openhelpwindowrwdhyernote.rb +38 -0
  37. data/code/superant.com.dialogmap/runhypernote.rb +10 -0
  38. data/code/superant.com.dialogmap/runwrdhypernotetxtwindow.rb +10 -0
  39. data/code/superant.com.dialogmap/rwdhypernoteresetdir.rb +7 -0
  40. data/code/superant.com.dialogmap/rwdtinkerversion.rb +10 -0
  41. data/code/superant.com.dialogmap/saveconfigurationrecord.rb +20 -0
  42. data/code/superant.com.dialogmap/savelinkrecord.rb +23 -0
  43. data/code/superant.com.dialogmap/viewdialogmaphtml3.rb +66 -0
  44. data/code/superant.com.dialogmap/xmlprettyprint.rb +65 -0
  45. data/code/superant.com.dialogmap/xmlprettyprint2.rb +74 -0
  46. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
  47. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +61 -0
  48. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +240 -0
  49. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +34 -0
  50. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +20 -0
  51. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  52. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +53 -0
  53. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +12 -0
  54. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +33 -0
  55. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +22 -0
  56. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -0
  57. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  58. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +19 -0
  59. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +38 -0
  60. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  61. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +46 -0
  62. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  63. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  64. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +15 -0
  65. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
  66. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -0
  67. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +22 -0
  68. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
  69. data/code/zz0applicationend/zz0end.rb +4 -0
  70. data/configuration/language.dist +8 -0
  71. data/configuration/rwdapplicationidentity.dist +3 -0
  72. data/configuration/rwdtinker.dist +15 -0
  73. data/configuration/rwdwdialogmap-0.01.dist +13 -0
  74. data/configuration/tinkerwin2variables.dist +18 -0
  75. data/gui/00coreguibegin/applicationguitop.rwd +4 -0
  76. data/gui/frontwindow0/cc0openphoto.rwd +22 -0
  77. data/gui/frontwindowselections/00selectiontabbegin.rwd +11 -0
  78. data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
  79. data/gui/frontwindowselections/wwselectionend.rwd +3 -0
  80. data/gui/frontwindowtdocuments/00documentbegin.rwd +6 -0
  81. data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
  82. data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
  83. data/gui/helpaboutbegin/zzzrwdlasttab.rwd +6 -0
  84. data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
  85. data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
  86. data/gui/helpaboutzend/helpscreenend.rwd +3 -0
  87. data/gui/helpaboutzend/zhelpscreenstart2.rwd +3 -0
  88. data/gui/helpaboutzend/zzzzhelpabout2.rwd +15 -0
  89. data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +3 -0
  90. data/gui/tinkerbackwindows/superant.com.dialogmap/10appletbegin.rwd +4 -0
  91. data/gui/tinkerbackwindows/superant.com.dialogmap/12dialogview.rwd +65 -0
  92. data/gui/tinkerbackwindows/superant.com.dialogmap/15aviewxml.rwd +32 -0
  93. data/gui/tinkerbackwindows/superant.com.dialogmap/17aviewxml.rwd +28 -0
  94. data/gui/tinkerbackwindows/superant.com.dialogmap/21editnote.rwd +33 -0
  95. data/gui/tinkerbackwindows/superant.com.dialogmap/67viewconfiguration.rwd +29 -0
  96. data/gui/tinkerbackwindows/superant.com.dialogmap/81jumplinkcommands.rwd +17 -0
  97. data/gui/tinkerbackwindows/superant.com.dialogmap/9end.rwd +6 -0
  98. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
  99. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +41 -0
  100. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  101. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
  102. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +30 -0
  103. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
  104. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  105. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -0
  106. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
  107. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -0
  108. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -0
  109. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
  110. data/gui/zzcoreguiend/yy9rwdend.rwd +4 -0
  111. data/init.rb +277 -0
  112. data/installed/dialogmapdata2.inf +2 -0
  113. data/installed/rwdwdialogmap-0.01.inf +8 -0
  114. data/installed/temp.rb +1 -0
  115. data/lang/en/rwdcore/languagefile.rb +58 -0
  116. data/lang/es/rwdcore/languagefile-es.rb +62 -0
  117. data/lang/fr/rwdcore/languagefile.rb +64 -0
  118. data/lang/jp/rwdcore/languagefile.rb +72 -0
  119. data/lang/nl/rwdcore/languagefile.rb +75 -0
  120. data/lib/rconftool.rb +387 -0
  121. data/lib/rwd/browser.rb +123 -0
  122. data/lib/rwd/ftools.rb +174 -0
  123. data/lib/rwd/mime.rb +328 -0
  124. data/lib/rwd/net.rb +876 -0
  125. data/lib/rwd/ruby.rb +889 -0
  126. data/lib/rwd/rwd.rb +1422 -0
  127. data/lib/rwd/sgml.rb +236 -0
  128. data/lib/rwd/thread.rb +63 -0
  129. data/lib/rwd/tree.rb +371 -0
  130. data/lib/rwd/xml.rb +101 -0
  131. data/lib/rwdthemes/default.rwd +317 -0
  132. data/lib/rwdthemes/pda.rwd +72 -0
  133. data/lib/rwdthemes/windowslike.rwd +171 -0
  134. data/lib/zip/ioextras.rb +114 -0
  135. data/lib/zip/stdrubyext.rb +111 -0
  136. data/lib/zip/tempfile_bugfixed.rb +195 -0
  137. data/lib/zip/zip.rb +1378 -0
  138. data/lib/zip/zipfilesystem.rb +558 -0
  139. data/lib/zip/ziprequire.rb +61 -0
  140. data/rwd_files/HowTo_DialogMap.txt +233 -0
  141. data/rwd_files/HowTo_Tinker.txt +482 -0
  142. data/rwd_files/HowTo_TinkerWin2.txt +202 -0
  143. data/rwd_files/Notes/Another Brain Jam.mm +116 -0
  144. data/rwd_files/Notes/HR.xml +2 -0
  145. data/rwd_files/Notes/TaoistBooks.mm +82 -0
  146. data/rwd_files/Readme.txt +57 -0
  147. data/rwd_files/RubyWebDialogs.html +6 -0
  148. data/rwd_files/favicon.ico +0 -0
  149. data/rwd_files/rdoc-style.css +175 -0
  150. data/rwd_files/rwdapplications.html +54 -0
  151. data/rwd_files/tinker.png +0 -0
  152. data/rwdconfig.dist +22 -0
  153. data/rwddialogmap.rb +1 -0
  154. data/tests/RubyGauge.rb +179 -0
  155. data/tests/checkdepends.sh +4 -0
  156. data/tests/cleancnf.sh +6 -0
  157. data/tests/makedist-rwdwdialogmap.rb +58 -0
  158. data/tests/makedist.rb +65 -0
  159. data/tests/rdep.rb +354 -0
  160. data/tests/totranslate.lang +93 -0
  161. data/zips/rwdwaddresses-1.06.zip +0 -0
  162. data/zips/rwdwcalc-0.62.zip +0 -0
  163. data/zips/rwdwdialogmap-0.01.zip +0 -0
  164. data/zips/rwdwfoldeditor-0.04.zip +0 -0
  165. data/zips/rwdwgutenberg-0.09.zip +0 -0
  166. data/zips/rwdwruby-1.07.zip +0 -0
  167. data/zips/temp.rb +1 -0
  168. data/zips/tinkerbellw-0.02.zip +0 -0
  169. data/zips/wrubyslippers-1.06.zip +0 -0
  170. metadata +226 -0
data/Readme.txt ADDED
@@ -0,0 +1,475 @@
1
+ = RwdTinker framework for RubyWebDialogs
2
+
3
+ RwdTinker is a web brower interface to and system for developing programs
4
+
5
+ == Usage
6
+
7
+ How to Use the Tinker framework Program (rwdtinker)
8
+
9
+ 1. stand alone application
10
+ 2. framework for building applications
11
+ 3. Open brower windows with html documents
12
+
13
+ The GUI interface used is RubyWebDialogs
14
+
15
+
16
+ Start the program by typing
17
+ ruby init.rb
18
+
19
+ Then point your web browser to:
20
+ http://localhost:7705/
21
+
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
+
86
+
87
+ There are two ways to add applets to the directories.
88
+
89
+ Creating code
90
+
91
+
92
+ * Manually write code and gui files
93
+
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
+
100
+
101
+
102
+ If you need a config file that goes in the configuration directory
103
+
104
+ internationalization and localization are helped by replacing the
105
+ gui files in the subdirectories under gui
106
+
107
+
108
+ == Documents
109
+
110
+
111
+ when you click on a document name, the document should pop up in a
112
+ browser window, or in another browser tab.
113
+
114
+ To exit, press the x inside the browser window.
115
+
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
+
155
+ user1 = password
156
+ user2 = pass phrase
157
+
158
+ Thus the file .rwduids might contain:
159
+
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
165
+ the needed rubywebdialog files
166
+
167
+ Ruby I am using version 1.8.2
168
+
169
+ I have tested this under Linux-Debian kernel 2.6.9
170
+
171
+ = Operation:
172
+ The code files reside in the code directory and are combined before
173
+ the main Class is loaded
174
+
175
+ The rwd files in gui are combined before the gui is activated
176
+
177
+ Translated text reside in the lang directory
178
+
179
+ == Installing:
180
+
181
+ untar the file
182
+ tar zxvf rwdtinker-x.y.tar.gz
183
+ then cd to the directory
184
+ cd rwdshell-x.y
185
+ then start the init.rb program file
186
+ ruby init.rb
187
+ Then point your browser at http://localhost:7705
188
+ or where it tells you.
189
+ Trouble shooting:
190
+
191
+ If the program is not working, try looking at the ev subdirectory. That is where
192
+ the runtime of rubywebdialogs are.
193
+
194
+ for long term installation, I would suggest putting most files in a lib directory
195
+ like /usr/lib/rwdshell
196
+ then make a writable directory the local directory for command files to be written
197
+ like ~/rwdshell
198
+
199
+
200
+ Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
201
+
202
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
203
+
204
+ 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
+
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
220
+ For more information see:
221
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
222
+
223
+
224
+ For more information about RubyWebDialogs see:
225
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
226
+
227
+ Thanks, Steven Gibson
228
+
229
+ == Changelog
230
+ Version 1.77
231
+ Fixed zips location to be relative or absolute
232
+ Made themes loadable
233
+
234
+ Version 1.76
235
+ Move rwd code files into lib directory - bug - 21886
236
+ change tab name list applets - bug - 21864
237
+ change extra folder to be lib folder - bug 21887
238
+ remove duplicate intall applet code - bug 21885
239
+ On Menu tab/Selection Tab - add help button - bug 21884
240
+ clean up directory structure in gui directory - bug 21882
241
+
242
+ Version 1.75
243
+ change rwd.rb to use UTF-8 for web pages
244
+ add language load for applets
245
+
246
+ Version 1.74
247
+ remove remote control from help
248
+ more dependable gui loading for applets
249
+
250
+ Version 1.73
251
+ more debug info in initiateapplet
252
+ remove gutenberg lang translations
253
+ correct gui building error recovery
254
+
255
+ Version 1.72
256
+ additional cleanup for live applet add and removal
257
+ after applet removal focus returns to proper tab
258
+ error messages are reduced unless $DEBUG=true
259
+
260
+ Version 1.70
261
+ major update to applet loading routines
262
+ a properly prepared applet should be loadable and unloadable live with not restarting
263
+ localization is not yet updated in live applet loading
264
+ remove network line debugging output
265
+
266
+ Version 1.69
267
+ More work on translations - Spanish almost done
268
+ removed remote control
269
+
270
+ Version 1.68
271
+ updated to newest Ruby webdialogs
272
+
273
+ Version 1.67
274
+ Add html for help
275
+
276
+ Version 1.66
277
+ Fixed directory layout
278
+ increased size of config edit screen
279
+
280
+ Version 1.65
281
+ Changed documents listing screen - now using hash
282
+ Changed helpabout screen - now using hash
283
+ added more lines for config edit
284
+ added help about to back window
285
+
286
+ Version 1.64
287
+ fixed jump with no location
288
+
289
+ Version 1.63
290
+ changed handling of application name returned
291
+ added jump seletion options
292
+ added some unit tests
293
+
294
+ version 1.62
295
+ improve distro release script
296
+ code cleanup
297
+ removed redundent network code
298
+ change handling of window and tab jumps
299
+
300
+ version 1.61
301
+ add in test harness
302
+ rwdtinkerwin2 help about removed
303
+ load main config file in init.rb
304
+
305
+ version 1.60
306
+ add rwdapplication info to diagnostic
307
+ turn rescue on in diagnostic upload
308
+
309
+ version 1.59
310
+ removed rwdtinkerwin2 inf file
311
+ refactored diagnotic page - one button to see all information
312
+ added bug report upload to diagnostic page
313
+
314
+ version 1.58
315
+ check for zlib
316
+ check for files to delete
317
+
318
+ version 1.57
319
+ added rconftool use to update configuration files
320
+ changed applets remove to not used external rm
321
+
322
+ version 1.56
323
+ refactored gui files to load without intermediate files
324
+ refactored code files to load without intermediate files
325
+
326
+ version 1.55
327
+ refactored language files to load without intermediate files
328
+ refactored language files to load without intermediate files
329
+
330
+ version 1.54
331
+ refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
332
+ corrected some program logic errors in remote control code including close socket
333
+
334
+ version 1.53
335
+ added search of Gems repository for rwdtinker gems
336
+ download and install of Gems
337
+
338
+ version 1.52
339
+ added function to install applets from gem directory
340
+
341
+ version 1.51
342
+ changed return to main
343
+ changed configuration of remote ports
344
+ updated context sensitive help
345
+
346
+ version 1.50
347
+ changed unzip applet to be internal code - no exec to unzip program
348
+ changed order of tabs on back window - list applets now first
349
+ added rwdwcalc applet in to zips directory
350
+ changed width of text fields with help from RubyWebDialogs author
351
+ changed listing of help options, vertical instead of horizontal
352
+
353
+ version 1.49
354
+ added demon function for remote queries
355
+ startup application on first available port
356
+
357
+ version 1.48
358
+ fix in context sensitive help so that applets can use it better
359
+
360
+ version 1.47
361
+ change to context sensitive help
362
+
363
+ version 1.46
364
+ more work on context help
365
+ window calls point to tab as well as windows
366
+ help added help buttons on Document, Selection, View Applet, tabs
367
+
368
+ version 1.45
369
+ first steps toward context sensitive help
370
+ added help button on main window/tab
371
+
372
+ version 1.44
373
+ updated directory structure - refactored gui files
374
+ Changed gui directory names - more like Java package titles
375
+
376
+ version 1.43
377
+ changed setup variables file for live changes
378
+ added editing and reloading of config file
379
+ added unzip filename to config file
380
+
381
+ version 1.42
382
+ update for live update system
383
+ update applets for live update
384
+ code file name cleanup
385
+
386
+ version 1.41
387
+ l10n work es,nl, jp
388
+ separated out languge.cnf
389
+ added zip applets refreshacpi, rwdcalc
390
+
391
+ version 1.40
392
+ removed extra lines from init.rb
393
+ fixed help second window
394
+ added some tranlations for Spanish
395
+ More work on l10n
396
+
397
+ version 1.3
398
+ refactored gui files to do easier i10n
399
+ removed lang directories under gui
400
+ added lang files under lang dir
401
+ removed redundant code files left from moving applet handling to back window
402
+ removed zipped applets not yet refactored
403
+
404
+ version 1.24
405
+ added internet usage instructions to HowTo_Tinker.txt
406
+ removed HowTo_Tinker.html
407
+ added panels for Helpabout
408
+ changed photo logo tab to only have embedded picture, no button
409
+
410
+ version 1.23
411
+ moving diagnostic tab and applet handling tabs to second window
412
+ added selection panel tab to choose secondary windows.
413
+
414
+ version 1.21
415
+ changing version on help screen to be button
416
+ added version window
417
+ added diagnostic tab
418
+
419
+ version 1.2
420
+ added gemspec for creating a rwdtinker.gem
421
+ added rdoc comments
422
+ changed order on remove applets tab
423
+
424
+ version 1.1
425
+ changed order of elements on install applet tab
426
+ Add more i81n ablility - added lang directorys for language hash files
427
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
428
+
429
+ version 1.0
430
+ Improved name selection in zips and applet screens
431
+ added rubyslippers applet and rwdrefreshacpi applets as zips
432
+
433
+ version 0.9
434
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
435
+ updated RubyWebDialogs for people who do not have it installed
436
+ added rwdschedule applet as zip file
437
+
438
+ version 0.8
439
+ changed location of code files
440
+ only directory of code files needs to be added to inf file
441
+ changed location of gui files
442
+ only directory of gui files needs to be added to inf file
443
+ Added constants in conf file for code location and gui location
444
+ removed all zips not yt updated to new directory layout
445
+ change loading of conf files to not need intermediate file
446
+ and favicon.ico
447
+
448
+ version 0.7
449
+ moved changelog to HowTo_Tinker.html
450
+ copied english gui text to the dirs I think we should translate to
451
+ update backup zip files to newest versions
452
+ upgraded the ev directory - for those who don't have RubyWebDialogs
453
+
454
+ version 0.6
455
+ updated version number
456
+ changed merge name to rwdtinker.rb
457
+
458
+ version 0.4
459
+ added zip listing and installing - Linux only
460
+
461
+ Version 0,3
462
+ changed name to Tinker
463
+
464
+ Version 0.2
465
+ added some i18n directories for the gui files
466
+
467
+ Version 0.1
468
+ first public version released
469
+ includes document screen
470
+ Open Photo screen
471
+ included configuration directory
472
+ zips directories
473
+ installed directory
474
+ installed applet lister
475
+
data/bin/rwddialogmap ADDED
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+ #--
3
+ # Copyright 2004 Steven Gibson <steven@superant.com>
4
+ # RwdTinker application
5
+ #
6
+ # This program is free software. It may be redistributed and/or modified under
7
+ # the terms of the GPL version 2 (or later), or the
8
+ # Ruby licence.
9
+ #
10
+ #++
11
+
12
+
13
+ $progdir = File::expand_path( File.dirname(__FILE__))
14
+
15
+ Dir.chdir($progdir)
16
+
17
+ Dir.chdir("..")
18
+
19
+ `ruby init.rb`
@@ -0,0 +1,29 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
+ # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
+ # This class is the top class for the RwdTinker application
6
+
7
+ $DEBUG=false
8
+ $VERBOSE=false
9
+
10
+ class RwdTinker < RWDialog
11
+
12
+ def main
13
+ @rwd_window = "main"
14
+ @result = "idle"
15
+
16
+ @display= "idle"
17
+ if TestNow
18
+
19
+ rwdtest_harness
20
+ end
21
+ showjumplinkoptions
22
+ setuptinkerdocuments
23
+ setuphelpaboutoptionspassive
24
+ end
25
+
26
+ def inspect
27
+ "#{$rwdapplicationidentity}"
28
+ end
29
+
@@ -0,0 +1,4 @@
1
+
2
+
3
+ Helptext = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
4
+ helpmessage = {
@@ -0,0 +1,23 @@
1
+ # Help files for RwdTinker core
2
+
3
+
4
+ :general_help => "You can work with Applets: go to 'Selection tab', <br>
5
+ On that back screen you will find:<br>
6
+ List Applets: you can see and delete installed applets<br>
7
+ List Zips: you can see lists of applets that you can install<br>
8
+ Edit Configuration: You can view the rwdtinker configuration and change it<br>
9
+ Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br>
10
+ ",
11
+ :network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br>
12
+ init.rb file to something like:\n<br>
13
+ RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br>
14
+ Then you should be able to login at: http://yourhostname:8080",
15
+
16
+
17
+ :documents_rwdtinker => "<b>Documents:
18
+ <p>
19
+
20
+ when you click on a document name, the document should pop up in a <br>
21
+ browser window, or in another browser tab.</b>
22
+ "
23
+
@@ -0,0 +1,6 @@
1
+
2
+ }
3
+ helpmessage.each { |kk, vv| Helptext[kk] = vv }
4
+
5
+
6
+
@@ -0,0 +1,26 @@
1
+ # Bind message passing socket to rwdtinker application
2
+
3
+ locationlink = {
4
+ :helpscreen=> "runhelpwindow",
5
+ :tinkerbackwindow=>"runrwdtinkerbackwindow",
6
+ :returntomain=>"returntomain",
7
+ :opendocuments=>"runtinkerdocuments",
8
+ :editconfiguration=>"runeditconfiguration"
9
+ }
10
+ locationlink.each { |kk, vv| JumpLink[kk] = vv }
11
+
12
+ def runjumplinkcommand
13
+ if @a_jumplinkinput
14
+ runjumplocation = "#{JumpLink[:"#{@a_jumplinkinput}"]}"
15
+
16
+ self.send(runjumplocation)
17
+ end
18
+ end
19
+
20
+
21
+ # list the remote control options on the screen
22
+ def showjumplinkoptions
23
+
24
+ @jumplinkoptions = $rwdjumplink.rwd_options
25
+
26
+ end
@@ -0,0 +1,31 @@
1
+ # this code is to call the help window
2
+ def runhelpwindow
3
+ $helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration"]
4
+
5
+ if @rwd_window == "main"
6
+ if @rwd_tab == "documentsrwdtinkerone"
7
+ $help_topic = "documents_rwdtinker"
8
+ end
9
+
10
+ end
11
+
12
+ if @rwd_window == "rwdtinkerhelpwindow"
13
+ puts "in help window processing"
14
+ else
15
+ $previouswindow = @rwd_window
16
+ $previoustab = @rwd_tab
17
+ end
18
+
19
+
20
+ @rwdhelptopic = $help_topic
21
+ @rwdhelpdataoutput = "#{Helptext[:"#{$help_topic}"]}"
22
+ @rwdhelpsubchoicesoutput = $helptopicsarray.rwd_method("choosenewhelptopic")
23
+ @rwd_window = "rwdtinkerhelpwindow"
24
+ end
25
+
26
+ def choosenewhelptopic(inffile)
27
+ $help_topic = inffile
28
+ runhelpwindow
29
+ end
30
+
31
+
@@ -0,0 +1,10 @@
1
+ # Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
2
+ #
3
+ # For information see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the window
6
+ def returntomain
7
+ @rwd_window = "main"
8
+ @rwd_tab = "selectiontab"
9
+ end
10
+
@@ -0,0 +1,10 @@
1
+ # Application menu orginally (c) 2004 Steven Gibson under GPL.
2
+ #
3
+ # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the window
6
+ def runtinkerdocuments
7
+ @rwd_window = "main"
8
+ @rwd_tab = "documentsrwdtinkerone"
9
+ end
10
+
@@ -0,0 +1,10 @@
1
+ # Application menu orginally (c) 2004 Steven Gibson under GPL.
2
+ #
3
+ # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the window
6
+ def runeditconfiguration
7
+ @rwd_window = "tinkerbackwindow"
8
+ @rwd_tab = "editconfigurationfile"
9
+ end
10
+
@@ -0,0 +1,10 @@
1
+ # Application menu orginally (c) 2004 Steven Gibson under GPL.
2
+ #
3
+ # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the window
6
+ def runtinkerhelpabout
7
+ @rwd_window = "rwdtinkerhelpwindow"
8
+
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ # open document for rwdtinker application
2
+ def runopentinkerdocument
3
+
4
+ tinkerdocumenturl = "http://localhost:7705/" + @a_tinkerdocumentinput
5
+ Thread.new( tinkerdocumenturl){ |t| `#{Browser_Exe} #{tinkerdocumenturl}` }
6
+ end
7
+
@@ -0,0 +1,22 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # For information see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # return the version constant defined in the config file
6
+ def tinkerhelpaboutsetup
7
+ return ["RwdTinker","(c) 2004-2008 Steven Gibson ","Version #{RwdTinkerVersion}"]
8
+ end
9
+
10
+ def runrwdtinkerversion
11
+ @rwd_window = "applicationversion"
12
+ helpaboutinput = @a_helpaboutinput.downcase
13
+ versionarraysetup = "#{helpaboutinput}helpaboutsetup"
14
+ versionarray= self.send(versionarraysetup)
15
+
16
+ @versionappnamedisplay = versionarray[0].to_s
17
+ @versioncopyrightdisplay = versionarray[1].to_s
18
+ @versionnumberdisplay = versionarray[2].to_s
19
+
20
+ end
21
+
22
+