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,44 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"filelister\" caption=#{Message[:list_applets]}>
4
+
5
+
6
+ <table>
7
+ <row> <p align=\"right\">#{Message[:file_name]}</p> <text name=\"a_installlist\"/> </row>
8
+
9
+ </table>
10
+
11
+ <horizontal>
12
+ <button caption=#{Message[:viewinstalled_text]} action=\"openappletname\"/>
13
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
14
+ </horizontal>
15
+ <p>%displaytext%</p>
16
+
17
+ <table>
18
+ <row> <p align=\"right\">#{Message[:file_name]}</p> <text name=\"a_removeapplet\"/> </row>
19
+
20
+ </table>
21
+
22
+ <p>%removeapplettext%</p>
23
+ <horizontal>
24
+ <button caption=#{Message[:remove_applet]} action=\"removeapplet\"/>
25
+ <button caption=#{Message[:cancel]} action=\"main\"/>
26
+
27
+ </horizontal>
28
+ <table>
29
+ <row> <p> </row>
30
+ <row> <p align=\"right\">#{Message[:viewlistinstall_files]} </row>
31
+
32
+ </table>
33
+ <horizontal>
34
+
35
+ <button caption=#{Message[:list_files]} action=\"listinstalledfiles\"/>
36
+
37
+ </horizontal>
38
+
39
+ <p>%%filesresult%%</p>
40
+
41
+ </tab>"
42
+
43
+
44
+
@@ -0,0 +1,30 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"editconfigurationfile\" caption=\"Edit Configuration\">
4
+ <table>
5
+ <row> <p> </row>
6
+ <row> <p align=\"right\">You can view or edit the rwdtinker applet confiruration file here</row>
7
+ <row> <p> </row>
8
+ <horizontal>
9
+ <button caption=\"Load Record\" action=\"loadconfigurationrecord\"/>
10
+ <button caption=#{Message[:save_changes]} action=\"saveconfigurationrecord\"/>
11
+ <button caption=\"Reload Variables\" action=\"loadconfigurationvariables\"/>
12
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
13
+
14
+
15
+
16
+
17
+ </horizontal>
18
+ <table>
19
+ <textarea name=\"a_configurationfile\"/>
20
+
21
+
22
+ </table>
23
+ <p>%extraconfigdatadisplay%</p>
24
+ <p>
25
+ <p>%newconfigurationresult%</p>
26
+
27
+
28
+
29
+ </tab>"
30
+
@@ -0,0 +1,29 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"diagnostictab\" caption=#{Message[:diagnostic_tab]}>
4
+ <horizontal>
5
+ <button caption=#{Message[:viewplatform_information]} action=\"runviewplatform\"/>
6
+
7
+
8
+ </horizontal>
9
+
10
+ <p>%platformdisplay%</p>
11
+ <horizontal>
12
+
13
+
14
+ </horizontal>
15
+ <horizontal>
16
+ <button caption=\"upload this page of information to the Program Author\" action=\"uploadreturnsfile\"/>
17
+ </horizontal>
18
+ <horizontal>
19
+ <p align=\"right\">Email:(optional)</p> <text size=50 name=\"a_emailupload\"/>
20
+
21
+ </horizontal>
22
+ <p align=\"center\">Comment/Suggestion/Feature Request or Bug Report:(optional)</p> <textarea name=\"a_commentupload\"/>
23
+
24
+ <p>%returnsftpdisplay%</p>
25
+
26
+ </tab>"
27
+
28
+
29
+
@@ -0,0 +1,20 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"rwdlogfiletab\" caption=\"RWD Log Files\">
4
+ <table>
5
+ <horizontal>
6
+
7
+
8
+ <p align=\"left\">Number of lines to display</p> <text size=11 name=\"a_rwdtinkerlognumber\"/>
9
+
10
+ <button caption=#{Message[:viewlogger_information]} action=\"rwdtinkerrunviewlog\"/>
11
+ </horizontal>
12
+
13
+ </table>
14
+
15
+ <p>%returnlogdisplay%</p>
16
+
17
+ </tab>"
18
+
19
+
20
+
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=localechangertab caption=#{Message[:localechangertablabel]}>
4
+ <horizontal>
5
+ <button caption=#{Message[:tinkercoreshowlocale_choices]} action=\"showlocalechoicesoptions\"/>
6
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
7
+ </horizontal>
8
+ <table>
9
+ <select name=\"a_localechooseinput\"> %%localechooseoptions%% </select>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=#{Message[:tinkercorechangelocale]} action=\"runlocalechangercommand\"/>
15
+ </horizontal>
16
+ </tab>
17
+ "
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=selectiontab caption=#{Message[:selection_tab]}>
4
+ <horizontal>
5
+ <button caption=#{Message[:showjump_links]} action=\"showjumplinkoptions\"/>
6
+ <button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
7
+ </horizontal>
8
+ <table>
9
+ <select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=#{Message[:jumptoapplication_location]} action=\"runjumplinkcommand\"/>
15
+ </horizontal>
16
+ </tab>
17
+ "
@@ -0,0 +1,6 @@
1
+ $rwdguivar=
2
+ "
3
+ </tabs>
4
+ </window>"
5
+
6
+
@@ -0,0 +1,31 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"rwdtinkerhelpwindow\" title=#{Message[:rwdtinker_help]}>
4
+ <horizontal>
5
+ %rwdhelptopic%
6
+ </horizontal>
7
+
8
+ <table>
9
+ <row> <p></row>
10
+
11
+ </table>
12
+ <horizontal>
13
+ %%rwdhelpdataoutput%%
14
+ </horizontal>
15
+ <row> <p></row>
16
+ <table>
17
+
18
+
19
+ <row> <p></row>
20
+ </table>
21
+ <horizontal>
22
+
23
+ <button caption=\"Return\" action=\"rwdwindowreturn\"/>
24
+ </horizontal>
25
+ <table>
26
+ <row> <p></row>
27
+
28
+ </table>
29
+
30
+ %%rwdhelpsubchoicesoutput%%
31
+ "
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "</window>"
3
+
4
+
@@ -0,0 +1,19 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"applicationversion\" title=#{Message[:application_version]}>
4
+
5
+ <row> <p></row>
6
+ <p>%versionappnamedisplay%</p>
7
+ <row> <p></row>
8
+ <p>%versioncopyrightdisplay%</p>
9
+
10
+ <row> <p></row>
11
+ <p>%versionnumberdisplay%</p>
12
+
13
+ <horizontal>
14
+ <button caption=#{Message[:return]} action=returntomain/>
15
+ </horizontal>
16
+
17
+ </window>"
18
+
19
+
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name=tinkerhelpabout title=#{Message[:help_about]}>
4
+ <horizontal>
5
+ <button caption=#{Message[:showhelpabout_links]} action=\"setuphelpaboutoptions\"/>
6
+
7
+ </horizontal>
8
+ <table>
9
+ <select name=\"a_helpaboutinput\"> %%helpaboutoptions%% </select>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=#{Message[:openselectedhelp_about]} action=\"runrwdtinkerversion\"/>
15
+ </horizontal>
16
+ </window>
17
+ "
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"rwdwordsbackwindow\" title=\"rwdwords - \">
4
+ <tabs>"
@@ -0,0 +1,19 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"sagdictlookup\" caption=\"Dictionary Lookup\">
4
+
5
+
6
+ <table>
7
+ <row> <p align=\"right\">Word:</p> <text name=\"a_dictionaryinput\"/> </row>
8
+
9
+ </table>
10
+
11
+ <horizontal>
12
+ <button caption=\"Lookup\" action=\"dictlookup\"/>
13
+ <button caption=\"Cancel\" action=\"main\"/>
14
+ <button caption=\"Help\" action=\"runhelpwindowrwdlanguage\"/>
15
+ </horizontal>
16
+ <p>%dictionary_display%</p>
17
+ </tab>
18
+ "
19
+
@@ -0,0 +1,36 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"superantcomthesaurus\" caption=\"Thesaurus View\">
4
+
5
+ <table>
6
+
7
+ <table>
8
+ <row> <p align=\"right\">Word:</p> <text name=\"a_thesaurusinput\"/> </row>
9
+
10
+
11
+
12
+ <row> <p> </row>
13
+
14
+ </table>
15
+ <horizontal>
16
+ <button caption=\"Display word results\" action=\"listwordresults\"/>
17
+
18
+ <button caption=\"Clear file list\" action=\"clearthesaurus\"/>
19
+
20
+ <button caption=\"Help\" action=\"runhelpwindowrwdlanguage\"/>
21
+
22
+ </horizontal>
23
+
24
+
25
+
26
+
27
+
28
+
29
+
30
+
31
+ <table>
32
+ <p>%%a_thesaurusdata%%</p>
33
+
34
+
35
+ </table>
36
+ </tab>"
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=RwdwordsMenu caption=Menu>
4
+ <horizontal>
5
+ <button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
6
+
7
+ </horizontal>
8
+ <table>
9
+ <select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
15
+ </horizontal>
16
+ </tab>
17
+ "
@@ -0,0 +1,6 @@
1
+ $rwdguivar=
2
+ "
3
+ </tabs>
4
+ </window>"
5
+
6
+
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "
3
+ </application>"
4
+
data/init.rb ADDED
@@ -0,0 +1,179 @@
1
+
2
+ #***********************************************************************
3
+ #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
+ #* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
5
+ #*
6
+ #* This library is free software; you can redistribute it and/or
7
+ #* modify it under the terms of the GNU General Public
8
+ #* License as published by the Free Software Foundation; either
9
+ #* .
10
+ #*
11
+ #* These files are distributed in the hope that they will be useful,
12
+ #* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ #* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ #* General Public License for more details.
15
+ #*
16
+ #* You should have received a copy of the GNU General Public
17
+ #* License along with these files; if not, write to the Free Software
18
+ #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
+ #*
20
+ #* For further information please contact the author by e-mail
21
+ #* at "smalllinux@gmail.com".
22
+ #***********************************************************************/
23
+
24
+ require 'logger'
25
+
26
+ LogDirectory = 'rwd_files/log/'
27
+ logfilelocation = File.join(LogDirectory, 'rwdtinker.log')
28
+
29
+ $rwdtinkerlog = Logger.new( logfilelocation , 'weekly' )
30
+ $rwdtinkerlog.level = Logger::INFO
31
+
32
+ require "lib/rwd/rwd"
33
+ require 'fileutils'
34
+ require 'lib/rconftool'
35
+
36
+ $KCODE = 'u'
37
+ require 'jcode'
38
+
39
+ $progdir = File::expand_path( File.dirname(__FILE__))
40
+
41
+ tempdoc = " "
42
+
43
+ # integrate the new configuration files
44
+ MAINconfignew = "rwdconfig.cnf"
45
+ MAINconfigdist = "rwdconfig.dist"
46
+ Rconftool::install(MAINconfigdist,MAINconfignew)
47
+
48
+ #load main config file
49
+ load 'rwdconfig.cnf'
50
+
51
+ Dir.chdir("configuration") #changes the current working directory
52
+
53
+ fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /dist$/) } #creates an Array separated with \n
54
+ @doc = ""
55
+ fileList.length.times{ #opening of a block
56
+ configdist =fileList.pop #pops the first item out of the Array
57
+ tempconfigfile = configdist.gsub(/\.dist$/, "")
58
+ confignew = tempconfigfile + ".cnf"
59
+ Rconftool::install(configdist,confignew) #integrates new file with old
60
+ } #closing block
61
+ # END of configuration integration
62
+ Dir.chdir($progdir)
63
+
64
+ # Read in the configuration files
65
+ Dir.chdir("configuration") #changes the current working directory
66
+
67
+ fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
68
+ @doc = ""
69
+ fileList.length.times{ #opening of a block
70
+ fileName=fileList.pop #pops the first item out of the Array
71
+ load fileName #loads the the config file thats in fileName
72
+ } #closing block
73
+ # END of configuration reading
74
+
75
+ Dir.chdir($progdir) # change back to top program directory
76
+
77
+
78
+ # build the English Language hash file from the parts
79
+ Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
80
+ langmessage = { :clear => "Clear", :rwdtinker => "Rwdtinker" } ; langmessage.each { |kk, vv| Message[kk] = vv }
81
+
82
+ def msgid(programkey)
83
+ $programkey = programkey
84
+ end
85
+
86
+ def msgstr(programmsg)
87
+ if programmsg == ""
88
+ $rwdtinkerlog.info "msgstr: no translation for #{$programkey}"
89
+ else
90
+ Message.update( $programkey.to_sym => programmsg )
91
+ end
92
+ end
93
+
94
+ require 'lib/rwdtinker/rwdlangdir'
95
+
96
+ tempdoc = " "
97
+ #go get all the po language file files in english
98
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
99
+
100
+ #writes the contents of doc into the languagehashvariable
101
+ languagehashvariable = tempdoc
102
+
103
+ # END of en Lang building
104
+ tempdoc = " "
105
+ Dir.chdir($progdir) # change back to top program directory
106
+
107
+ # build the local Language hash file from the parts
108
+
109
+ $lang = $langarray[0] # pick the language of choice
110
+
111
+ # Go get all the po files for the language of choice
112
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
113
+ # the contents of doc into the variable
114
+ languagehashvariable = languagehashvariable + tempdoc
115
+
116
+ Dir.chdir($progdir) # change back to top program directory
117
+
118
+ # lets read those po files, first english then the chosen language
119
+ temp = eval( languagehashvariable )
120
+
121
+
122
+
123
+ # build the actual program from the code parts
124
+ require 'lib/rwdtinker/rwdcodedir'
125
+
126
+ tempdoc = RwdtinkerTools.findprogramfiles(CodeDir)
127
+
128
+ # load the program file
129
+
130
+ tempcoderesult = eval( tempdoc )
131
+
132
+ # build the actual GUI from the gui parts
133
+ require 'lib/rwdtinker/rwdguidir'
134
+
135
+ tempdoc = RwdtinkerTools.findguifiles(GuiDir)
136
+
137
+
138
+ # gui variable is done
139
+ guiRWD = ""
140
+ $rwd_gui_tinker = tempdoc
141
+ require 'socket' # Network stuff
142
+ host = "127.0.0.1"
143
+ port = $port
144
+
145
+ # Create a socket to listen on and bind it to the host and port
146
+ freeportfound = false
147
+ until freeportfound
148
+ begin
149
+ @socket = UDPSocket::new()
150
+ @socket.bind(host, port)
151
+ freeportfound = true
152
+ $port = port
153
+ # Rescue the "Address in use" error
154
+ rescue Errno::EADDRINUSE
155
+ $rwdtinkerlog.warn "RWD Startup: Port #{port} on host #{host} is already in use."
156
+ port=port +1
157
+ $rwdtinkerlog.warn "trying port: #{port}"
158
+ # Rescue the "Address not available' error
159
+ rescue Errno::EADDRNOTAVAIL
160
+ $rwdtinkerlog.warn "RWD Startup: Address #{host} is not available to bind."
161
+ port =port + 1
162
+ $rwdtinkerlog.warn "trying port: #{port}"
163
+ # Rescue "permission denied errors
164
+ rescue Errno::EACCES
165
+ $rwdtinkerlog.warn "RWD Startup: Access denied when binding interface addresses. ?"
166
+ port =port + 1
167
+ $rwdtinkerlog.warn "trying port: #{port}"
168
+ # Rescue all other errors
169
+ rescue
170
+ $rwdtinkerlog.warn "RWD Startup: An error occured."
171
+ port =port + 1
172
+ $rwdtinkerlog.warn "trying port: #{port}"
173
+ # Rescue all other errors
174
+ end
175
+ $port = port
176
+ end
177
+
178
+
179
+ RwdTinker.new( $rwd_gui_tinker ).serve(port) # start the main class and program