rwdtinker 1.2 → 1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. data/code/ag1core/aa0begin.rb +1 -0
  2. data/code/ag1core/rwdtinkerversion.rb +15 -0
  3. data/code/xa5rwdtinkercallable/callable.rb +13 -0
  4. data/code/{ll0listapplets → xb1rwdtinkerbackwindow}/05listinstalledfiles.rb +0 -0
  5. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +21 -0
  6. data/code/{ll0listapplets → xb1rwdtinkerbackwindow}/ll1openname.rb +0 -0
  7. data/code/{lm1installapplets → xb1rwdtinkerbackwindow}/ll5listzips.rb +0 -0
  8. data/code/{lm1installapplets → xb1rwdtinkerbackwindow}/lm1installapplet.rb +0 -0
  9. data/code/{ll0listapplets → xb1rwdtinkerbackwindow}/mm1removeapplet.rb +0 -0
  10. data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -0
  11. data/configuration/aa0rwdframework.cnf +5 -3
  12. data/configuration/ab1tinkerwin2.cnf +4 -0
  13. data/gui/aa2core/aa0rwdtop.rwd +4 -0
  14. data/gui/cc0viewphoto/cc0openphoto.rwd +17 -0
  15. data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
  16. data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
  17. data/gui/lz1selectiontabend/endselectiontab.rwd +3 -0
  18. data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
  19. data/gui/{es/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +9 -7
  20. data/gui/uu6rwdtinkerwin2documents/uu5documents.rwd +6 -0
  21. data/gui/ww0documentsend/ww0documentend.rwd +7 -0
  22. data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
  23. data/gui/xa1versionwindow/1appname.rwd +19 -0
  24. data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
  25. data/gui/xa5rwdtinkercallablewindow/9end.rwd +4 -0
  26. data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
  27. data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
  28. data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
  29. data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
  30. data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
  31. data/gui/xb1rwdtinkerbackwindow/9backend.rwd +6 -0
  32. data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
  33. data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
  34. data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
  35. data/gui/yg5rwdhelpabout/5version.rwd +10 -0
  36. data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
  37. data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
  38. data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
  39. data/gui/yy5helpaboutend/helpscreenend.rwd +3 -0
  40. data/gui/za1applicationend/yy9rwdend.rwd +4 -0
  41. data/init.rb +91 -6
  42. data/installed/rwdtinkerwin2-0.5.inf +8 -0
  43. data/installed/rwdviewlogo-0.4.inf +4 -0
  44. data/{code/al5languagefiles → lang}/alanguagehashbegin.rb +0 -0
  45. data/lang/en/rwdcore/languagefile.rb +3 -2
  46. data/lang/es/rwdcore/languagefile.rb +1 -2
  47. data/{code/al5languagefiles → lang}/languagehash.rb +0 -0
  48. data/lang/nl/rwdcore/languagefile.rb +1 -1
  49. data/lang/templangfile.rb +7 -0
  50. data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
  51. data/lang/wlocallangstart.rb +5 -0
  52. data/lang/xlocallangfile.rb +7 -0
  53. data/lang/zlocallangend.rb +2 -0
  54. data/rwd_files/HowTo_Tinker.txt +42 -0
  55. data/rwd_files/HowTo_TinkerWin2.txt +202 -0
  56. data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
  57. metadata +52 -65
  58. data/code/al5languagefiles/templangfile.rb +0 -6
  59. data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
  60. data/gui/en/cc0viewphoto/cc0openphoto.rwd +0 -17
  61. data/gui/en/ll5listapplets/ll0rwdlistapplets.rwd +0 -42
  62. data/gui/en/ll9rwdlistzips/ll5rwdlistzips.rwd +0 -33
  63. data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  64. data/gui/en/uu5rwddocuments/uu5documents.rwd +0 -13
  65. data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
  66. data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  67. data/gui/en/xx9photoview/xx9photoview.rwd +0 -3
  68. data/gui/en/ya1helpbegin/ya0helpscreenstart.rwd +0 -1
  69. data/gui/en/yg5rwdhelp/yf0helpscreen.rwd +0 -2
  70. data/gui/en/yg5rwdhelp/yf6rwdtinker.rwd +0 -3
  71. data/gui/en/yg5rwdhelp/yg0helpscreen.rwd +0 -1
  72. data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
  73. data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
  74. data/gui/es/cc0viewphoto/cc0openphoto.rwd +0 -17
  75. data/gui/es/ll5listapplets/ll0rwdlistapplets.rwd +0 -41
  76. data/gui/es/ll9rwdlistzips/ll5rwdlistzips.rwd +0 -33
  77. data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  78. data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
  79. data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  80. data/gui/es/xx9photoview/xx9photoview.rwd +0 -3
  81. data/gui/es/ya1helpbegin/ya0helpscreenstart.rwd +0 -1
  82. data/gui/es/yg5rwdhelp/yf0helpscreen.rwd +0 -2
  83. data/gui/es/yg5rwdhelp/yf6rwdtinker.rwd +0 -3
  84. data/gui/es/yg5rwdhelp/yg0helpscreen.rwd +0 -1
  85. data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
  86. data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
  87. data/gui/nl/cc0viewphoto/cc0openphoto.rwd +0 -17
  88. data/gui/nl/ll5listapplets/ll0rwdlistapplets.rwd +0 -41
  89. data/gui/nl/ll9rwdlistzips/ll5rwdlistzips.rwd +0 -33
  90. data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  91. data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
  92. data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
  93. data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  94. data/gui/nl/xx9photoview/xx9photoview.rwd +0 -3
  95. data/gui/nl/ya1helpbegin/ya0helpscreenstart.rwd +0 -1
  96. data/gui/nl/yg5rwdhelp/yf0helpscreen.rwd +0 -2
  97. data/gui/nl/yg5rwdhelp/yf6rwdtinker.rwd +0 -3
  98. data/gui/nl/yg5rwdhelp/yg0helpscreen.rwd +0 -1
  99. data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
  100. data/installed/rwdlistapplets-0.4.inf +0 -5
  101. data/installed/rwdlistzips-0.4.inf +0 -4
  102. data/installed/rwdviewphoto-0.3.inf +0 -9
  103. data/rwd_files/HowTo_Tinker.html +0 -365
  104. data/zips/arubyslippers-0.7.zip +0 -0
  105. data/zips/rwdamovies-0.5.zip +0 -0
  106. data/zips/rwdaschedule-0.3.zip +0 -0
  107. data/zips/rwdaviewphoto-0.3.zip +0 -0
  108. data/zips/rwdlistapplets-0.4.zip +0 -0
  109. data/zips/rwdlistzips-0.4.zip +0 -0
  110. data/zips/rwdrefreshacpi-0.1.zip +0 -0
@@ -7,6 +7,7 @@
7
7
  class RwdTinker < RWDialog
8
8
 
9
9
  def main
10
+ @rwd_window = "main"
10
11
  @result = "idle"
11
12
  @display= "idle"
12
13
  end
@@ -0,0 +1,15 @@
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
+
6
+ # return the version constant defined in the config file
7
+ def runrwdtinkerversion
8
+ @rwd_window = "applicationversion"
9
+ @versionappnamedisplay = "RwdTinker"
10
+ @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
+ @versionnumberdisplay = "Version " + RwdTinkerVersion
12
+
13
+ end
14
+
15
+
@@ -0,0 +1,13 @@
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
+
6
+ # call the rwdtinker helpwindow
7
+ def runrwdtinkerhelpwindow
8
+ @rwd_window = "rwdtinkerhelpwindow"
9
+ end
10
+ def runrwdtinkerbackwindow
11
+ @rwd_window = "tinkerbackwindow"
12
+ end
13
+
@@ -0,0 +1,21 @@
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
+
6
+ # return the Ruby constant
7
+ def runrubyversion
8
+ @rubyversion = "Version " + VERSION
9
+ end
10
+
11
+ # return the platform constan
12
+ def runviewplatform
13
+ @platformdisplay = "Platform is " + RUBY_PLATFORM
14
+ end
15
+
16
+ # return Rwdtinker version to diagnostic tab
17
+ def rwdtinkerversiondiagnostic
18
+ @rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
19
+ end
20
+
21
+
@@ -0,0 +1,14 @@
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
+
6
+ # return the version constant defined in the config file
7
+ def runrwdtinkerwin2version
8
+ @rwd_window = "applicationversion"
9
+ @versionappnamedisplay = "RwdTinkerWin2"
10
+ @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
+ @versionnumberdisplay = "Version " + RwdTinkerWin2Version
12
+
13
+ end
14
+
@@ -1,11 +1,13 @@
1
-
1
+ RwdTinkerVersion = "1.3"
2
2
  CodeName = "rwdtinker"
3
3
  CodeNameFile = CodeName + ".rb"
4
+ LangNameFile = "rwdlanguage.rb"
4
5
  RWDFile = "rwdtinker.rwd"
5
6
  $lang = "en"
6
7
  @@codedir = "code"
7
- @@guidir = "gui" + "/" + $lang
8
+ @@guidir = "gui"
8
9
  @@langdir = "lang"
9
10
 
10
- TempLangHashFile = @@codedir + "/" + "al5languagefiles" + "/" + "templangfile.rb"
11
+ TempLangHashFile = @@langdir + "/" + "templangfile.rb"
12
+ LocalLangHashFile = @@langdir + "/" + "xlocallangfile.rb"
11
13
  $port = 7705
@@ -0,0 +1,4 @@
1
+
2
+ RwdTinkerWin2Version = "0.5"
3
+ ZipsLocation = "zips" # not yet functional
4
+
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "<application>
3
+ <window name=\"main\" title=\"Tinker - RubyWebDialogs\">
4
+ <tabs>"
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+
3
+ "
4
+ <tab name=\"viewtinkerlogo\" caption=\"Tinker\">
5
+
6
+ <table>
7
+ <row> <p align=\"right\">Tinker Logo</row>
8
+
9
+ </table>
10
+ <image src=\"tinker.png\"> </image>
11
+ <table>
12
+ <row> <p></row>
13
+
14
+ </table>
15
+
16
+
17
+ </tab>"
@@ -0,0 +1,16 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"selectiontab\" caption=\"Selection Panel\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">Open a new window with callable applets you have loaded</row>
7
+
8
+ </table>
9
+ <horizontal>
10
+
11
+ <button caption=\"RwdTinker Help Window\" action=\"runrwdtinkerhelpwindow\"/>
12
+
13
+
14
+ </horizontal>"
15
+
16
+
@@ -0,0 +1,12 @@
1
+ $rwdguivar=
2
+ "
3
+ <row> <p></row>
4
+
5
+ <horizontal>
6
+
7
+ <button caption=\"RwdTinker Back Window\" action=\"runrwdtinkerbackwindow\"/>
8
+
9
+
10
+ </horizontal>"
11
+
12
+
@@ -0,0 +1,3 @@
1
+ $rwdguivar=
2
+ "
3
+ </tab>"
@@ -0,0 +1,6 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"one\" caption=\"Documents\">
4
+ <horizontal>
5
+ <table>"
6
+
@@ -1,13 +1,15 @@
1
- <row> <p align="left">
2
- <a href=HowTo_Tinker.html>Howto_Tinker.html</a></p></row>
3
- <row> <p align="left">
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"left\">
4
+ <a href=HowTo_Tinker.txt>Howto_Tinker.txt</a></p></row>
5
+ <row> <p align=\"left\">
4
6
  <a href=Readme.txt>Readme.txt</a></p></row>
5
- <row> <p align="left">
7
+ <row> <p align=\"left\">
6
8
  <a href=COPYING>GPL License </a></p></row>
7
- <row> <p align="left">
9
+ <row> <p align=\"left\">
8
10
  <a href=rwdapplications.html>more information about rwdapplications </a></p></row>
9
- <row> <p align="left">
10
- <a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>
11
+ <row> <p align=\"left\">
12
+ <a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>"
11
13
 
12
14
 
13
15
 
@@ -0,0 +1,6 @@
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"left\">
4
+ <a href=HowTo_TinkerWin2.txt>Howto_TinkerWin2.txt</a></p></row>"
5
+
6
+
@@ -0,0 +1,7 @@
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"left\"><a href=.>Spawn a clone Dialog window</a></p></row>
4
+ </table>
5
+ </horizontal>
6
+ </tab>"
7
+
@@ -0,0 +1,6 @@
1
+ $rwdguivar=
2
+ "
3
+ </tabs>
4
+ </window>"
5
+
6
+
@@ -0,0 +1,19 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"applicationversion\" title=\"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
+ <cancel/>
15
+ </horizontal>
16
+
17
+ </window>"
18
+
19
+
@@ -0,0 +1,17 @@
1
+ $guivargui=
2
+ "
3
+ <window name = \"rwdtinkerhelpwindow\" title=\"RwdTinker Help\">
4
+ <tabs>
5
+ <tab name=\"main\" caption=\"Help\">
6
+ <row> <p></row>
7
+ <row> <p>RwdTinker</row>
8
+ <cancel/>
9
+ </tab>
10
+
11
+ <tab name=\"nexttab\" caption=\"Next\">
12
+ <row> <p></row>
13
+ <row> <p>RwdTinker Help</row>
14
+ <cancel/>
15
+ </tab>
16
+
17
+ </tabs>"
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "</window>"
3
+
4
+
@@ -0,0 +1,5 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"tinkerbackwindow\" title=\"Tinker Back Window\">
4
+
5
+ <tabs>"
@@ -0,0 +1,11 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"backone\" caption=\"Back Tab\">
4
+
5
+ <row> You can return to the previous window</row>
6
+ <row><p> </row>
7
+ <row><p> </row>
8
+ <button caption=\"Return to top menu\" action=\"main\"/>
9
+
10
+ </tab>"
11
+
@@ -0,0 +1,33 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
4
+ <horizontal>
5
+ <button caption=\"View Ruby Version\" action=\"runrubyversion\"/>
6
+
7
+
8
+ </horizontal>
9
+ <p>%rubyversion%</p>
10
+
11
+
12
+ <table>
13
+ <row> <p> </row>
14
+
15
+ </table>
16
+
17
+ <horizontal>
18
+ <button caption=\"view platform\" action=\"runviewplatform\"/>
19
+
20
+ </horizontal>
21
+
22
+ <p>%platformdisplay%</p>
23
+ <horizontal>
24
+ <button caption=\"View rwdtinker Version\" action=\"rwdtinkerversiondiagnostic\"/>
25
+
26
+ </horizontal>
27
+
28
+ <p>%rwdtinkerversionreturn%</p>
29
+
30
+ </tab>"
31
+
32
+
33
+
@@ -0,0 +1,44 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"filelister\" caption=\"List Applets\">
4
+
5
+
6
+ <table>
7
+ <row> <p align=\"right\">File Name:</p> <text name=\"a_installlist\"/> </row>
8
+
9
+ </table>
10
+
11
+ <horizontal>
12
+ <button caption=\"View Install Text\" action=\"openname\"/>
13
+ <button caption=\"Cancel\" action=\"main\"/>
14
+ </horizontal>
15
+ <p>%displaytext%</p>
16
+
17
+ <table>
18
+ <row> <p align=\"right\">File Name:</p> <text name=\"a_removeapplet\"/> </row>
19
+
20
+ </table>
21
+
22
+ <p>%removeapplettext%</p>
23
+ <horizontal>
24
+ <button caption=\"remove applet\" action=\"removeapplet\"/>
25
+ <button caption=\"Cancel\" action=\"main\"/>
26
+
27
+ </horizontal>
28
+ <table>
29
+ <row> <p> </row>
30
+ <row> <p align=\"right\">View the list of installation files </row>
31
+
32
+ </table>
33
+ <horizontal>
34
+
35
+ <button caption=\"List Files\" action=\"listinstalledfiles\"/>
36
+
37
+ </horizontal>
38
+
39
+ <p>%%filesresult%%</p>
40
+
41
+ </tab>"
42
+
43
+
44
+
@@ -0,0 +1,35 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"zipslister\" caption=\"List Zips\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">File Name:</p> <text name=\"a_installapplet\"/> </row>
7
+
8
+ </table>
9
+
10
+ <horizontal>
11
+ <button caption=\"install applet\" action=\"installapplet\"/>
12
+ <button caption=\"Cancel\" action=\"main\"/>
13
+
14
+ </horizontal>
15
+ <p>%installapplettext%</p>
16
+
17
+
18
+ <table>
19
+ <row> <p align=\"right\">Click below to view the list of zip files </row>
20
+
21
+ </table>
22
+
23
+ <horizontal>
24
+ <button caption=\"List applets available for installing\" action=\"listzipfilestoinstall\"/>
25
+
26
+
27
+
28
+ </horizontal>
29
+
30
+ <p>%%zipslistresult%%</p>
31
+
32
+ </tab>"
33
+
34
+
35
+
@@ -0,0 +1,6 @@
1
+ $rwdguivar=
2
+ "
3
+ </tabs>
4
+ </window>"
5
+
6
+
@@ -0,0 +1,3 @@
1
+ $rwdguivar=
2
+ "
3
+ <helpwindow name=\"main\" title=\"Help About\">"
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "
3
+ <panel>
4
+ <row> <p align=\"center\">#{Message[:rwdtinker]}</p></row>"
@@ -0,0 +1,3 @@
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"center\">copyright s. gibson 2004</p></row>"
@@ -0,0 +1,10 @@
1
+ $rwdguivar=
2
+ "
3
+ <horizontal>
4
+ <button caption=\"Click for Version\" action=\"runrwdtinkerversion\"/>
5
+ </horizontal>
6
+ </panel>"
7
+
8
+
9
+
10
+
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "
3
+ <panel>
4
+ <row> <p align=\"center\">#{Message[:rwdtinker_window_2]}</p></row>"
@@ -0,0 +1,3 @@
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"center\">copyright s. gibson 2004</p></row>"
@@ -0,0 +1,10 @@
1
+ $rwdguivar=
2
+ "
3
+ <horizontal>
4
+ <button caption=#{Message[:clickfor_version]} action=\"runrwdtinkerwin2version\"/>
5
+ </horizontal>
6
+ <p>%rwdtinkerwin2versiondisplay%</p>
7
+
8
+ </panel>"
9
+
10
+
@@ -0,0 +1,3 @@
1
+ $rwdguivar=
2
+ "
3
+ </helpwindow>"
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "
3
+ </application>"
4
+
data/init.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  #***********************************************************************
3
3
  #* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
4
- #* Copyright (c) 2004 by Steven Gibson. All Rights Reserved.
4
+ #* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
5
5
  #*
6
6
  #* This library is free software; you can redistribute it and/or
7
7
  #* modify it under the terms of the GNU General Public
@@ -43,7 +43,35 @@ $progdir = File::expand_path( File.dirname(__FILE__))
43
43
  end
44
44
  end
45
45
  end
46
-
46
+ def findfilelines(d)
47
+ a = Array.new(Dir[d].entries.sort)
48
+ #loop through and get the files names
49
+ a.each do |x|
50
+ #adjust the filters to the files you want to see...
51
+ if(!test(?d,x))
52
+ # only rwd files
53
+ if x =~ /rb|rwd|txt/
54
+ fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
55
+ $tempdoc+=fileA.read #reads the file into the doc string
56
+ fileA.close
57
+ end
58
+ end
59
+ end
60
+ end
61
+ def loadguifile(d)
62
+ a = Array.new(Dir[d].entries.sort)
63
+ #loop through and get the files names
64
+ a.each do |x|
65
+ #adjust the filters to the files you want to see...
66
+ if(!test(?d,x))
67
+ # only rwd files
68
+ if x =~ /rb|rwd|txt/
69
+ load x #opens the file thats in fileName and reads it
70
+ $tempdoc += $rwdguivar # adds the file into the doc string
71
+ end
72
+ end
73
+ end
74
+ end
47
75
 
48
76
  # Read in the configuration files
49
77
 
@@ -59,8 +87,8 @@ $progdir = File::expand_path( File.dirname(__FILE__))
59
87
 
60
88
  Dir.chdir($progdir) # change back to top program directory
61
89
 
62
- # build the Language hash file from the parts
63
- startlangdir = @@langdir +"/" + $lang
90
+ # build the English Language hash file from the parts
91
+ startlangdir = @@langdir +"/" + "en"
64
92
  #get a list of the files and subdirectories on the starting directory only
65
93
  alanghash = Array.new(Dir[startlangdir].entries.sort)
66
94
  #loop through the list, ignore the files and add all new directories found
@@ -93,6 +121,63 @@ $progdir = File::expand_path( File.dirname(__FILE__))
93
121
  # END of Lang building
94
122
  $tempdoc = " "
95
123
  Dir.chdir($progdir) # change back to top program directory
124
+
125
+ # build the local Language hash file from the parts
126
+ startlangdir = @@langdir +"/" + $lang
127
+ #get a list of the files and subdirectories on the starting directory only
128
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
129
+ #loop through the list, ignore the files and add all new directories found
130
+ alanghash.each do |x|
131
+ #if a directory...
132
+ if(test(?d,x))
133
+ # add to the original list of directories
134
+ @@tmproot = x + "/**"
135
+ #adds the new ones to the array
136
+ blanghash = Dir[@@tmproot].entries.sort
137
+ blanghash.each do |x|
138
+ if(test(?d,x))
139
+ alanghash.push(x) #appends to the end of the array...
140
+ end
141
+ end
142
+ end
143
+ end
144
+ alanghash.each do |x|
145
+ #if it is a file...
146
+ if(!test(?d,x))
147
+ alanghash.delete(x)
148
+ else #it is a directory...
149
+ findfiles(x + "/**")
150
+ end
151
+ end
152
+
153
+ filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
154
+ filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
155
+ filelocalLangHash.close
156
+
157
+ $tempdoc = " "
158
+
159
+ Dir.chdir($progdir) # change back to top program directory
160
+
161
+ # build the language hash constant object from the lang parts
162
+ #get a list of the files in lang directory only
163
+ alangfile = Dir.new(@@langdir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
164
+ alangfile.length.times{
165
+ fileName = alangfile.pop
166
+ print fileName
167
+ Dir.chdir($progdir)
168
+ Dir.chdir(@@langdir)
169
+ fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
170
+ $tempdoc += fileLangA.read #reads the file into the doc string
171
+ fileLangA.close
172
+ }
173
+
174
+ Dir.chdir($progdir)
175
+ fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
176
+ fileLangB.write($tempdoc) #writes the contents of doc into the file
177
+ fileLangB.close
178
+ load LangNameFile # load the file
179
+
180
+ $tempdoc = " "
96
181
 
97
182
  # build the actual program from the code parts
98
183
  #get a list of the files and subdirectories on the starting directory only
@@ -117,7 +202,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
117
202
  if(!test(?d,x))
118
203
  a.delete(x)
119
204
  else #it is a directory...
120
- findfiles(x + "/**")
205
+ findfilelines(x + "/**")
121
206
  end
122
207
  end
123
208
 
@@ -151,7 +236,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
151
236
  a.delete(x)
152
237
 
153
238
  else #it is a directory...
154
- findfiles(x + "/**")
239
+ loadguifile(x + "/**")
155
240
  end
156
241
  end
157
242
 
@@ -0,0 +1,8 @@
1
+ # rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
2
+ configuration/ab1tinkerwin2.cnf
3
+ code/xb1rwdtinkerbackwindow
4
+ gui/ll5rwdtinkerwin2selectiontab
5
+ gui/xb1rwdtinkerbackwindow
6
+ gui/uu6rwdtinkerwin2documents
7
+ gui/yg6rwdwin2helpabout
8
+ rwd_files/HowTo_TinkerWin2.txt
@@ -0,0 +1,4 @@
1
+ # rwdviewlogo - small applet to display one picture
2
+ code/dd0viewphoto
3
+ gui/cc0viewphoto
4
+ rwd_files/tinker.png
@@ -2,5 +2,6 @@
2
2
 
3
3
  :module_unknown => "Module unknown",
4
4
  :applet_installed => "applet installed!.",
5
-
6
-
5
+ :clickfor_version => '"click for version"',
6
+ :rwdtinker_window_2 => "RwdTinker Window 2",
7
+ :rwdtinker => "RwdTinker",
@@ -1,4 +1,3 @@
1
1
  :module_unknown => "Module desconocido.",
2
2
  :applet_installed => "applet instalado! ",
3
-
4
-
3
+ :rwdtinker_window_2 => "RwdTinker Ventana 2"
File without changes