rwdlanguage 0.01

Sign up to get free protection for your applications and to get access to all the features.
Files changed (187) hide show
  1. data/Readme.txt +475 -0
  2. data/bin/rwdlanguage +19 -0
  3. data/code/01rwdcore/01rwdcore.rb +29 -0
  4. data/code/01rwdcore/02helptexthashbegin.rb +16 -0
  5. data/code/01rwdcore/03helptexthash.rb +21 -0
  6. data/code/01rwdcore/jumplinkcommand.rb +36 -0
  7. data/code/01rwdcore/openhelpwindow.rb +38 -0
  8. data/code/01rwdcore/returntomain.rb +10 -0
  9. data/code/01rwdcore/rundocuments.rb +10 -0
  10. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  11. data/code/01rwdcore/runhelpabout.rb +15 -0
  12. data/code/01rwdcore/runopentinkerdocument.rb +7 -0
  13. data/code/01rwdcore/runtab.rb +15 -0
  14. data/code/01rwdcore/rwdtinkerversion.rb +22 -0
  15. data/code/01rwdcore/rwdwindowreturn.rb +9 -0
  16. data/code/01rwdcore/selectiontab.rb +11 -0
  17. data/code/01rwdcore/setuphelpaboutoptions.rb +15 -0
  18. data/code/01rwdcore/setuptinkerdocuments.rb +7 -0
  19. data/code/01rwdcore/test_cases.rb +158 -0
  20. data/code/01rwdcore/test_harness.rb +20 -0
  21. data/code/01rwdcore/uploadreturns.rb +65 -0
  22. data/code/dd0viewphoto/dd0viewphoto.rb +5 -0
  23. data/code/superant.com.language/0uninstallapplet.rb +22 -0
  24. data/code/superant.com.language/googlelang.rb +25 -0
  25. data/code/superant.com.language/helptexthashload.rb +22 -0
  26. data/code/superant.com.language/loadconfigurationrecord.rb +22 -0
  27. data/code/superant.com.language/loadconfigurationvariables.rb +14 -0
  28. data/code/superant.com.language/openhelpwindow.rb +24 -0
  29. data/code/superant.com.language/rubySteak.rb +40 -0
  30. data/code/superant.com.language/runappletwindow.rb +12 -0
  31. data/code/superant.com.language/runrwdshellwindow.rb +12 -0
  32. data/code/superant.com.language/runrwdwordsbackwindow.rb +10 -0
  33. data/code/superant.com.language/rwdtinkerversion.rb +10 -0
  34. data/code/superant.com.language/saveconfigurationrecord.rb +20 -0
  35. data/code/superant.com.language/test_cases.rb +20 -0
  36. data/code/superant.com.rwdtinkerbackwindow/changelocale.rb +84 -0
  37. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
  38. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +169 -0
  39. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +38 -0
  40. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +20 -0
  41. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  42. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +55 -0
  43. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +14 -0
  44. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +37 -0
  45. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +24 -0
  46. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -0
  47. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  48. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +19 -0
  49. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +40 -0
  50. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  51. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +46 -0
  52. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  53. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  54. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +15 -0
  55. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
  56. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -0
  57. data/code/superant.com.rwdtinkerbackwindow/showlocaleoptions.rb +9 -0
  58. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +23 -0
  59. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
  60. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +16 -0
  61. data/code/superant.com.thesaurus/clearhttpview3.rb +9 -0
  62. data/code/superant.com.thesaurus/listwordlookup.rb +37 -0
  63. data/code/superant.com.thesaurus/runappletwindow.rb +12 -0
  64. data/code/superant.com.words/dictlookup.rb +20 -0
  65. data/code/superant.com.words/runrwdwordsbackwindow.rb +10 -0
  66. data/code/superant.com.words/rwdtinkerversion.rb +10 -0
  67. data/code/zz0applicationend/zz0end.rb +5 -0
  68. data/configuration/rwdtinker.dist +15 -0
  69. data/configuration/rwdwlanguage.dist +21 -0
  70. data/configuration/tinkerwin2variables.dist +23 -0
  71. data/gui/00coreguibegin/applicationguitop.rwd +9 -0
  72. data/gui/frontwindow0/cc0openphoto.rwd +22 -0
  73. data/gui/frontwindowselections/00selectiontabbegin.rwd +11 -0
  74. data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
  75. data/gui/frontwindowselections/wwselectionend.rwd +3 -0
  76. data/gui/frontwindowtdocuments/00documentbegin.rwd +6 -0
  77. data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
  78. data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
  79. data/gui/helpaboutbegin/zzzrwdlasttab.rwd +6 -0
  80. data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
  81. data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
  82. data/gui/helpaboutzend/helpscreenend.rwd +3 -0
  83. data/gui/helpaboutzend/zhelpscreenstart2.rwd +3 -0
  84. data/gui/helpaboutzend/zzzzhelpabout2.rwd +15 -0
  85. data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +3 -0
  86. data/gui/tinkerbackwindows/superant.com.language/1appname.rwd +4 -0
  87. data/gui/tinkerbackwindows/superant.com.language/22google.rwd +38 -0
  88. data/gui/tinkerbackwindows/superant.com.language/44germany.rwd +19 -0
  89. data/gui/tinkerbackwindows/superant.com.language/67viewconfiguration.rwd +27 -0
  90. data/gui/tinkerbackwindows/superant.com.language/77jumplinkcommands.rwd +17 -0
  91. data/gui/tinkerbackwindows/superant.com.language/z9end.rwd +6 -0
  92. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
  93. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +41 -0
  94. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  95. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
  96. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +30 -0
  97. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
  98. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
  99. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80localechanger.rwd +17 -0
  100. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  101. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -0
  102. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
  103. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -0
  104. data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -0
  105. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
  106. data/gui/tinkerbackwindows/superant.com.words/1appname.rwd +4 -0
  107. data/gui/tinkerbackwindows/superant.com.words/1dictionary.rwd +19 -0
  108. data/gui/tinkerbackwindows/superant.com.words/4thesaurus.rwd +36 -0
  109. data/gui/tinkerbackwindows/superant.com.words/77jumplinkcommands.rwd +17 -0
  110. data/gui/tinkerbackwindows/superant.com.words/z9end.rwd +6 -0
  111. data/gui/zzcoreguiend/yy9rwdend.rwd +4 -0
  112. data/init.rb +179 -0
  113. data/installed/rwdwlanguage.inf +24 -0
  114. data/installed/temp.rb +1 -0
  115. data/lang/en/rwdcore/en.po +197 -0
  116. data/lang/en/rwdlanguage/en.po +32 -0
  117. data/lang/es/rwdcore/es.po +184 -0
  118. data/lang/es/rwdlanguage/en.po +32 -0
  119. data/lang/fr/rwdcore/fr.po +169 -0
  120. data/lang/fr/rwdlanguage/en.po +32 -0
  121. data/lang/hi/rwdcore/hi.po +173 -0
  122. data/lang/hi/rwdlanguage/en.po +32 -0
  123. data/lang/ja/rwdcore/ja.po +171 -0
  124. data/lang/ja/rwdlanguage/en.po +32 -0
  125. data/lang/nl/rwdcore/nl.po +169 -0
  126. data/lang/nl/rwdlanguage/en.po +32 -0
  127. data/lib/dict.rb +438 -0
  128. data/lib/g_translate.rb +43 -0
  129. data/lib/g_translate/client.rb +84 -0
  130. data/lib/g_translate/translator.rb +57 -0
  131. data/lib/ger-eng.txt +111283 -0
  132. data/lib/oothesaurus.rb +76 -0
  133. data/lib/rconftool.rb +387 -0
  134. data/lib/rwd/browser.rb +123 -0
  135. data/lib/rwd/ftools.rb +174 -0
  136. data/lib/rwd/mime.rb +328 -0
  137. data/lib/rwd/net.rb +877 -0
  138. data/lib/rwd/ruby.rb +889 -0
  139. data/lib/rwd/rwd.rb +1425 -0
  140. data/lib/rwd/sgml.rb +236 -0
  141. data/lib/rwd/thread.rb +63 -0
  142. data/lib/rwd/tree.rb +371 -0
  143. data/lib/rwd/xml.rb +101 -0
  144. data/lib/rwdthemes/default.rwd +317 -0
  145. data/lib/rwdthemes/pda.rwd +72 -0
  146. data/lib/rwdthemes/windowslike.rwd +171 -0
  147. data/lib/rwdtinker/rwdcodedir.rb +56 -0
  148. data/lib/rwdtinker/rwdguidir.rb +57 -0
  149. data/lib/rwdtinker/rwdlangdir.rb +60 -0
  150. data/lib/rwdtinker/rwdtinkertools.rb +25 -0
  151. data/lib/zip/ioextras.rb +155 -0
  152. data/lib/zip/stdrubyext.rb +111 -0
  153. data/lib/zip/tempfile_bugfixed.rb +195 -0
  154. data/lib/zip/zip.rb +1847 -0
  155. data/lib/zip/zipfilesystem.rb +609 -0
  156. data/lib/zip/ziprequire.rb +90 -0
  157. data/rwd_files/HowTo_Language.txt +179 -0
  158. data/rwd_files/HowTo_Tinker.txt +515 -0
  159. data/rwd_files/HowTo_TinkerWin2.txt +202 -0
  160. data/rwd_files/Readme.txt +57 -0
  161. data/rwd_files/RubyWebDialogs.html +6 -0
  162. data/rwd_files/Tinkerhelptexthash.txt +84 -0
  163. data/rwd_files/favicon.ico +0 -0
  164. data/rwd_files/log/rwdtinker.log +726 -0
  165. data/rwd_files/rdoc-style.css +175 -0
  166. data/rwd_files/rwdapplications.html +76 -0
  167. data/rwd_files/rwdlanguagehelpfiles.txt +34 -0
  168. data/rwd_files/tinker.png +0 -0
  169. data/rwdconfig.dist +24 -0
  170. data/rwdlanguage.rb +1 -0
  171. data/tests/RubyGauge.rb +179 -0
  172. data/tests/checkdepends.sh +4 -0
  173. data/tests/cleancnf.sh +6 -0
  174. data/tests/makedist-rwdwlanguage.rb +56 -0
  175. data/tests/makedist.rb +66 -0
  176. data/tests/rdep.rb +354 -0
  177. data/tests/totranslate.lang +93 -0
  178. data/zips/rwdwcalc-0.63.zip +0 -0
  179. data/zips/rwdwfoldeditor-0.08.zip +0 -0
  180. data/zips/rwdwhypernote-0.16.zip +0 -0
  181. data/zips/rwdwlanguage-0.01.zip +0 -0
  182. data/zips/rwdwmovies-0.98.zip +0 -0
  183. data/zips/rwdwruby-1.08.zip +0 -0
  184. data/zips/temp.rb +1 -0
  185. data/zips/tinkerbellw-0.04.zip +0 -0
  186. data/zips/wrubyslippers-1.08.zip +0 -0
  187. metadata +246 -0
@@ -0,0 +1,90 @@
1
+ # With ziprequire you can load ruby modules from a zip file. This means
2
+ # ruby's module include path can include zip-files.
3
+ #
4
+ # The following example creates a zip file with a single entry
5
+ # <code>log/simplelog.rb</code> that contains a single function
6
+ # <code>simpleLog</code>:
7
+ #
8
+ # require 'zip/zipfilesystem'
9
+ #
10
+ # Zip::ZipFile.open("my.zip", true) {
11
+ # |zf|
12
+ # zf.file.open("log/simplelog.rb", "w") {
13
+ # |f|
14
+ # f.puts "def simpleLog(v)"
15
+ # f.puts ' Kernel.puts "INFO: #{v}"'
16
+ # f.puts "end"
17
+ # }
18
+ # }
19
+ #
20
+ # To use the ruby module stored in the zip archive simply require
21
+ # <code>zip/ziprequire</code> and include the <code>my.zip</code> zip
22
+ # file in the module search path. The following command shows one
23
+ # way to do this:
24
+ #
25
+ # ruby -rzip/ziprequire -Imy.zip -e " require 'log/simplelog'; simpleLog 'Hello world' "
26
+
27
+ #$: << 'data/rubycode.zip' << 'data/rubycode2.zip'
28
+
29
+
30
+ require 'lib/zip/zip'
31
+
32
+ class ZipList #:nodoc:all
33
+ def initialize(zipFileList)
34
+ @zipFileList = zipFileList
35
+ end
36
+
37
+ def get_input_stream(entry, &aProc)
38
+ @zipFileList.each {
39
+ |zfName|
40
+ Zip::ZipFile.open(zfName) {
41
+ |zf|
42
+ begin
43
+ return zf.get_input_stream(entry, &aProc)
44
+ rescue Errno::ENOENT
45
+ end
46
+ }
47
+ }
48
+ raise Errno::ENOENT,
49
+ "No matching entry found in zip files '#{@zipFileList.join(', ')}' "+
50
+ " for '#{entry}'"
51
+ end
52
+ end
53
+
54
+
55
+ module Kernel #:nodoc:all
56
+ alias :oldRequire :require
57
+
58
+ def require(moduleName)
59
+ zip_require(moduleName) || oldRequire(moduleName)
60
+ end
61
+
62
+ def zip_require(moduleName)
63
+ return false if already_loaded?(moduleName)
64
+ get_resource(ensure_rb_extension(moduleName)) {
65
+ |zis|
66
+ eval(zis.read); $" << moduleName
67
+ }
68
+ return true
69
+ rescue Errno::ENOENT => ex
70
+ return false
71
+ end
72
+
73
+ def get_resource(resourceName, &aProc)
74
+ zl = ZipList.new($:.grep(/\.zip$/))
75
+ zl.get_input_stream(resourceName, &aProc)
76
+ end
77
+
78
+ def already_loaded?(moduleName)
79
+ moduleRE = Regexp.new("^"+moduleName+"(\.rb|\.so|\.dll|\.o)?$")
80
+ $".detect { |e| e =~ moduleRE } != nil
81
+ end
82
+
83
+ def ensure_rb_extension(aString)
84
+ aString.sub(/(\.rb)?$/i, ".rb")
85
+ end
86
+ end
87
+
88
+ # Copyright (C) 2002 Thomas Sondergaard
89
+ # rubyzip is free software; you can redistribute it and/or
90
+ # modify it under the terms of the ruby license.
@@ -0,0 +1,179 @@
1
+ = RwdLanguage program for RwdTinker using RubyWebDialogs
2
+
3
+ RwdLanguage is an application to research words and means
4
+
5
+ == Usage
6
+
7
+
8
+ The GUI interface used is RubyWebDialogs
9
+
10
+
11
+ Start the program by typing
12
+ ruby init.rb
13
+
14
+ Then point your web browser to:
15
+ http://localhost:7705/
16
+
17
+ == Language and words
18
+
19
+ This program is just starting to be developed
20
+
21
+ at this version '0.01' i
22
+
23
+
24
+
25
+ == Installing Applets
26
+
27
+ click on the "Selection Panel"
28
+ click on Rwdtinker Back Window
29
+
30
+ You can download an applet created by someone else
31
+ put the file in the zips directory
32
+
33
+ click on the "list zips" tab
34
+ click on "list applets available for installing"
35
+
36
+ chose the applet you want
37
+ click on "install applet"
38
+ If all goes well the applet should be installed.
39
+ You will need to restart rwdtinker to see the new screens
40
+
41
+
42
+ == Changing configuration file
43
+
44
+ click on "Edit Configuration"
45
+ You can view the configuration file
46
+
47
+ You can edit the configuration
48
+
49
+ Remember to reload the configuration variables if you want your
50
+ changes used.
51
+
52
+
53
+ == Documents
54
+
55
+
56
+ when you click on a document name, the document should pop up in a
57
+ browser window, or in another browser tab.
58
+
59
+ To exit, press the x inside the browser window.
60
+
61
+ == To add context sensitive help
62
+
63
+ You need to add a hash file that just needs to contain
64
+ Helptext.update( :myapplet_generalhelp => " This is the general help
65
+ You can add help text hear")
66
+
67
+ And you need to add a help run script that will call runhelpwindow
68
+ This should have a method that includes:
69
+ setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
70
+
71
+ if @rwd_tab == "gemservescan"
72
+ $help_topic = "gemdocs_help"
73
+ end
74
+ $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
75
+ if @rwd_window != "rwdtinkerhelpwindow"
76
+ $previouswindow = @rwd_window
77
+ $previoustab = @rwd_tab
78
+ end
79
+ runhelpwindow
80
+ end
81
+
82
+ == Languages
83
+
84
+
85
+ You can add tranlations in the lang subdirectory
86
+ You change the $lang constant in Tinker config file in the configuration directory
87
+ You can see one translation on the install applet tab, after you have installed and applet
88
+
89
+ == Using over a Network
90
+
91
+ To serve the application over your local LAN,change the last line in the
92
+ init.rb file to something like:
93
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
94
+ Then you should be able to login at: http://yourhostname:8080
95
+
96
+ You have to authorize yourself. The .rwuids example is a string with
97
+ the name of the authorization file, relative to the home directory
98
+ of the user that started the service. This file has to be in the form of:
99
+
100
+ user1 = password
101
+ user2 = pass phrase
102
+
103
+ Thus the file .rwduids might contain:
104
+
105
+ erik = secret
106
+
107
+ == Requirements:
108
+ RubyWebDialogs - I am using 0.1.2
109
+ This package you downloaded should have a runtime version of
110
+ the needed rubywebdialog files
111
+
112
+ Ruby I am using version 1.8.2
113
+
114
+ I have tested this under Linux-Debian kernel 2.6.9
115
+
116
+ = Operation:
117
+ The code files reside in the code directory and are combined before
118
+ the main Class is loaded
119
+
120
+ The rwd files in gui are combined before the gui is activated
121
+
122
+ Translated text reside in the lang directory
123
+
124
+ == Installing:
125
+
126
+ untar the file
127
+ tar zxvf rwdtinker-x.y.tar.gz
128
+ then cd to the directory
129
+ cd rwdshell-x.y
130
+ then start the init.rb program file
131
+ ruby init.rb
132
+ Then point your browser at http://localhost:7705
133
+ or where it tells you.
134
+ Trouble shooting:
135
+
136
+ If the program is not working, try looking at the ev subdirectory. That is where
137
+ the runtime of rubywebdialogs are.
138
+
139
+ for long term installation, I would suggest putting most files in a lib directory
140
+ like /usr/lib/rwdshell
141
+ then make a writable directory the local directory for command files to be written
142
+ like ~/rwdshell
143
+
144
+
145
+ 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.
146
+
147
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
148
+
149
+ 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/
150
+
151
+ == Credits
152
+
153
+ Thanks go to:
154
+
155
+ * Matz, for creating Ruby in the first place.
156
+ * Erik, for creating RubyWebDialogs.
157
+ * Charlotte, my wife for coming up for the name Tinker.
158
+
159
+ == License
160
+
161
+ rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
162
+ under the terms of the GPL licence:
163
+
164
+ == Contact
165
+ For more information see:
166
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
167
+
168
+
169
+ For more information about RubyWebDialogs see:
170
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
171
+
172
+ Thanks, Steven Gibson
173
+
174
+ == Changelog
175
+ Version 0.01
176
+ added oothesaurus for lookup of words
177
+ added word lookup
178
+ German word lookup
179
+ Google phrase translator
@@ -0,0 +1,515 @@
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
+ If you need a config file that goes in the configuration directory
102
+
103
+ internationalization and localization are helped by replacing the
104
+ gui files in the subdirectories under gui
105
+
106
+
107
+ == Documents
108
+
109
+
110
+ when you click on a document name, the document should pop up in a
111
+ browser window, or in another browser tab.
112
+
113
+ To exit, press the x inside the browser window.
114
+
115
+ == To add context sensitive help
116
+
117
+ You need to add a hash file that just needs to contain
118
+ Helptext.update( :myapplet_generalhelp => " This is the general help
119
+ You can add help text hear")
120
+
121
+ And you need to add a help run script that will call runhelpwindow
122
+ This should have a method that includes:
123
+ setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
124
+
125
+ if @rwd_tab == "gemservescan"
126
+ $help_topic = "gemdocs_help"
127
+ end
128
+ $helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
129
+ if @rwd_window != "rwdtinkerhelpwindow"
130
+ $previouswindow = @rwd_window
131
+ $previoustab = @rwd_tab
132
+ end
133
+ runhelpwindow
134
+ end
135
+
136
+ == Languages
137
+
138
+ You can add tranlations in the lang subdirectory
139
+ You change the $langarray constant in Tinker config file in the configuration directory
140
+
141
+ to change language => in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
142
+
143
+ You can see one translation on the install applet tab, after you have installed and applet
144
+
145
+ == Using over a Network
146
+
147
+ To serve the application over your local LAN,change the last line in the
148
+ init.rb file to something like:
149
+ RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
150
+ Then you should be able to login at: http://yourhostname:8080
151
+
152
+ You have to authorize yourself. The .rwuids example is a string with
153
+ the name of the authorization file, relative to the home directory
154
+ of the user that started the service. This file has to be in the form of:
155
+
156
+ user1 = password
157
+ user2 = pass phrase
158
+
159
+ Thus the file .rwduids might contain:
160
+
161
+ erik = secret
162
+
163
+ == Requirements:
164
+ RubyWebDialogs - I am using 0.1.2
165
+ This package you downloaded should have a runtime version of
166
+ the needed rubywebdialog files
167
+
168
+ Ruby I am using version 1.8.2
169
+
170
+ I have tested this under Linux-Debian kernel 2.6.9
171
+
172
+ == Operation:
173
+
174
+ The code files reside in the code directory and are combined before
175
+ the main Class is loaded
176
+
177
+ The rwd files in gui are combined before the gui is activated
178
+
179
+ Translated text reside in the lang directory
180
+
181
+ == Installing:
182
+
183
+ untar the file
184
+ tar zxvf rwdtinker-x.y.tar.gz
185
+ then cd to the directory
186
+ cd rwdshell-x.y
187
+ then start the init.rb program file
188
+ ruby init.rb
189
+ Then point your browser at http://localhost:7705
190
+ or where it tells you.
191
+ Trouble shooting:
192
+
193
+ If the program is not working, try looking at the ev subdirectory. That is where
194
+ the runtime of rubywebdialogs are.
195
+
196
+ for long term installation, I would suggest putting most files in a lib directory
197
+ like /usr/lib/rwdshell
198
+ then make a writable directory the local directory for command files to be written
199
+ like ~/rwdshell
200
+
201
+
202
+ 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.
203
+
204
+ Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
205
+
206
+ 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/
207
+
208
+ == Credits
209
+
210
+ Thanks go to:
211
+
212
+ * Matz, for creating Ruby in the first place.
213
+ * Erik, for creating RubyWebDialogs.
214
+ * Charlotte, my wife for coming up for the name Tinker.
215
+
216
+ == License
217
+
218
+ rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
219
+ under the terms of the GPL licence:
220
+
221
+ == Contact
222
+ For more information see:
223
+ http://rwdapplications.rubyforge.org/wiki/wiki.pl
224
+
225
+ For more information about RubyWebDialogs see:
226
+ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
+
228
+ Thanks, Steven Gibson
229
+
230
+ == Changelog
231
+ version 1.85
232
+ added TabHash way of adding menu choices
233
+ fixed zip listing tab - showing old files bug 22302
234
+
235
+ version 1.84
236
+ added locale changer tab (have: en,es,ja,hi,nl,fr)
237
+ updated to newer Rubyzip library
238
+ replaced testharness framework
239
+
240
+ version 1.83
241
+ adding more Spanish and Hindu po strings
242
+ changed handling of log file
243
+
244
+ version 1.82
245
+ switch to po files for translation files
246
+ add beginning of Hindi po file
247
+ added more Japanese strings
248
+ changed handling of lang change = in the tinkerwin2variables.cnf file the [0] setting of $langarray will be the language choosen.
249
+ refactored init.rb to move routines into lib/rwdtinker modules
250
+
251
+ version 1.81
252
+ condensed config files from 4 -> 2
253
+ fixed document launch bug
254
+ add $KCODE = 'u'
255
+ move help files to rwd_files directory
256
+
257
+ version 1.80
258
+ changed pda handling in rwd.rb
259
+ added logging
260
+ added log review screen on tinker back window
261
+ changed handling of live applet loading, to not list version in file names
262
+
263
+ version 1.79
264
+ edited net.rb to fix text editing
265
+
266
+ version 1.78
267
+ modify config files
268
+ modify rconftools.rb to handle \r\n dos vs unix
269
+
270
+ Version 1.77
271
+ Fixed zips location to be relative or absolute
272
+ Made themes loadable
273
+
274
+ Version 1.76
275
+ Move rwd code files into lib directory - bug - 21886
276
+ change tab name list applets - bug - 21864
277
+ change extra folder to be lib folder - bug 21887
278
+ remove duplicate intall applet code - bug 21885
279
+ On Menu tab/Selection Tab - add help button - bug 21884
280
+ clean up directory structure in gui directory - bug 21882
281
+
282
+ Version 1.75
283
+ change rwd.rb to use UTF-8 for web pages
284
+ add language load for applets
285
+
286
+ Version 1.74
287
+ remove remote control from help
288
+ more dependable gui loading for applets
289
+
290
+ Version 1.73
291
+ more debug info in initiateapplet
292
+ remove gutenberg lang translations
293
+ correct gui building error recovery
294
+
295
+ Version 1.72
296
+ additional cleanup for live applet add and removal
297
+ after applet removal focus returns to proper tab
298
+ error messages are reduced unless $DEBUG=true
299
+
300
+ Version 1.70
301
+ major update to applet loading routines
302
+ a properly prepared applet should be loadable and unloadable live with not restarting
303
+ localization is not yet updated in live applet loading
304
+ remove network line debugging output
305
+
306
+ Version 1.69
307
+ More work on translations - Spanish almost done
308
+ removed remote control
309
+
310
+ Version 1.68
311
+ updated to newest Ruby webdialogs
312
+
313
+ Version 1.67
314
+ Add html for help
315
+
316
+ Version 1.66
317
+ Fixed directory layout
318
+ increased size of config edit screen
319
+
320
+ Version 1.65
321
+ Changed documents listing screen - now using hash
322
+ Changed helpabout screen - now using hash
323
+ added more lines for config edit
324
+ added help about to back window
325
+
326
+ Version 1.64
327
+ fixed jump with no location
328
+
329
+ Version 1.63
330
+ changed handling of application name returned
331
+ added jump seletion options
332
+ added some unit tests
333
+
334
+ version 1.62
335
+ improve distro release script
336
+ code cleanup
337
+ removed redundent network code
338
+ change handling of window and tab jumps
339
+
340
+ version 1.61
341
+ add in test harness
342
+ rwdtinkerwin2 help about removed
343
+ load main config file in init.rb
344
+
345
+ version 1.60
346
+ add rwdapplication info to diagnostic
347
+ turn rescue on in diagnostic upload
348
+
349
+ version 1.59
350
+ removed rwdtinkerwin2 inf file
351
+ refactored diagnotic page - one button to see all information
352
+ added bug report upload to diagnostic page
353
+
354
+ version 1.58
355
+ check for zlib
356
+ check for files to delete
357
+
358
+ version 1.57
359
+ added rconftool use to update configuration files
360
+ changed applets remove to not used external rm
361
+
362
+ version 1.56
363
+ refactored gui files to load without intermediate files
364
+ refactored code files to load without intermediate files
365
+
366
+ version 1.55
367
+ refactored language files to load without intermediate files
368
+ refactored language files to load without intermediate files
369
+
370
+ version 1.54
371
+ refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
372
+ corrected some program logic errors in remote control code including close socket
373
+
374
+ version 1.53
375
+ added search of Gems repository for rwdtinker gems
376
+ download and install of Gems
377
+
378
+ version 1.52
379
+ added function to install applets from gem directory
380
+
381
+ version 1.51
382
+ changed return to main
383
+ changed configuration of remote ports
384
+ updated context sensitive help
385
+
386
+ version 1.50
387
+ changed unzip applet to be internal code - no exec to unzip program
388
+ changed order of tabs on back window - list applets now first
389
+ added rwdwcalc applet in to zips directory
390
+ changed width of text fields with help from RubyWebDialogs author
391
+ changed listing of help options, vertical instead of horizontal
392
+
393
+ version 1.49
394
+ added demon function for remote queries
395
+ startup application on first available port
396
+
397
+ version 1.48
398
+ fix in context sensitive help so that applets can use it better
399
+
400
+ version 1.47
401
+ change to context sensitive help
402
+
403
+ version 1.46
404
+ more work on context help
405
+ window calls point to tab as well as windows
406
+ help added help buttons on Document, Selection, View Applet, tabs
407
+
408
+ version 1.45
409
+ first steps toward context sensitive help
410
+ added help button on main window/tab
411
+
412
+ version 1.44
413
+ updated directory structure - refactored gui files
414
+ Changed gui directory names - more like Java package titles
415
+
416
+ version 1.43
417
+ changed setup variables file for live changes
418
+ added editing and reloading of config file
419
+ added unzip filename to config file
420
+
421
+ version 1.42
422
+ update for live update system
423
+ update applets for live update
424
+ code file name cleanup
425
+
426
+ version 1.41
427
+ l10n work es,nl, jp
428
+ separated out languge.cnf
429
+ added zip applets refreshacpi, rwdcalc
430
+
431
+ version 1.40
432
+ removed extra lines from init.rb
433
+ fixed help second window
434
+ added some tranlations for Spanish
435
+ More work on l10n
436
+
437
+ version 1.3
438
+ refactored gui files to do easier i10n
439
+ removed lang directories under gui
440
+ added lang files under lang dir
441
+ removed redundant code files left from moving applet handling to back window
442
+ removed zipped applets not yet refactored
443
+
444
+ version 1.24
445
+ added internet usage instructions to HowTo_Tinker.txt
446
+ removed HowTo_Tinker.html
447
+ added panels for Helpabout
448
+ changed photo logo tab to only have embedded picture, no button
449
+
450
+ version 1.23
451
+ moving diagnostic tab and applet handling tabs to second window
452
+ added selection panel tab to choose secondary windows.
453
+
454
+ version 1.21
455
+ changing version on help screen to be button
456
+ added version window
457
+ added diagnostic tab
458
+
459
+ version 1.2
460
+ added gemspec for creating a rwdtinker.gem
461
+ added rdoc comments
462
+ changed order on remove applets tab
463
+
464
+ version 1.1
465
+ changed order of elements on install applet tab
466
+ Add more i81n ablility - added lang directorys for language hash files
467
+ added in test file using WATIR stands for "Web Application Testing In Ruby,
468
+
469
+ version 1.0
470
+ Improved name selection in zips and applet screens
471
+ added rubyslippers applet and rwdrefreshacpi applets as zips
472
+
473
+ version 0.9
474
+ Fixed bug introduced in 0.8 - code files not sorted correctly - class end was not in correct location
475
+ updated RubyWebDialogs for people who do not have it installed
476
+ added rwdschedule applet as zip file
477
+
478
+ version 0.8
479
+ changed location of code files
480
+ only directory of code files needs to be added to inf file
481
+ changed location of gui files
482
+ only directory of gui files needs to be added to inf file
483
+ Added constants in conf file for code location and gui location
484
+ removed all zips not yt updated to new directory layout
485
+ change loading of conf files to not need intermediate file
486
+ and favicon.ico
487
+
488
+ version 0.7
489
+ moved changelog to HowTo_Tinker.html
490
+ copied english gui text to the dirs I think we should translate to
491
+ update backup zip files to newest versions
492
+ upgraded the ev directory - for those who don't have RubyWebDialogs
493
+
494
+ version 0.6
495
+ updated version number
496
+ changed merge name to rwdtinker.rb
497
+
498
+ version 0.4
499
+ added zip listing and installing - Linux only
500
+
501
+ Version 0,3
502
+ changed name to Tinker
503
+
504
+ Version 0.2
505
+ added some i18n directories for the gui files
506
+
507
+ Version 0.1
508
+ first public version released
509
+ includes document screen
510
+ Open Photo screen
511
+ included configuration directory
512
+ zips directories
513
+ installed directory
514
+ installed applet lister
515
+