rwddemo 0.8 → 0.90

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 (144) hide show
  1. data/Readme.txt +46 -0
  2. data/code/{ag1core/aa0begin.rb → 01rwdcore/01rwdcore.rb} +2 -0
  3. data/code/01rwdcore/02helptexthashbegin.rb +4 -0
  4. data/code/01rwdcore/03helptexthash.rb +31 -0
  5. data/code/01rwdcore/04helptextend.rb +6 -0
  6. data/code/01rwdcore/openhelpwindow.rb +31 -0
  7. data/code/01rwdcore/returntomain.rb +10 -0
  8. data/code/{ag1core → 01rwdcore}/rwdtinkerversion.rb +0 -0
  9. data/code/01rwdcore/rwdwindowreturn.rb +11 -0
  10. data/code/{dd0shelleval → rwdcalc}/changescriptname.rb +0 -0
  11. data/code/rwdcalc/clearscriptscreendisplay.rb +9 -0
  12. data/code/rwdcalc/deletescriptrecord.rb +20 -0
  13. data/code/rwdcalc/helptexthashrwdcalc.rb +14 -0
  14. data/code/rwdcalc/listscripts.rb +13 -0
  15. data/code/rwdcalc/loadscriptrecord.rb +20 -0
  16. data/code/rwdcalc/mathcommands.rb +53 -0
  17. data/code/rwdcalc/openhelpwindowrwdcalc.rb +21 -0
  18. data/code/rwdcalc/playscript.rb +22 -0
  19. data/code/rwdcalc/renamecalcrecord.rb +14 -0
  20. data/code/rwdcalc/runrwdcalcwindow.rb +1 -0
  21. data/code/rwdcalc/savechangedscript.rb +19 -0
  22. data/code/rwdcalc/viewscript.rb +18 -0
  23. data/code/superant.com.rwdcalendar/gh9calendar.rb +40 -16
  24. data/code/superant.com.rwdshell/changescriptname.rb +16 -0
  25. data/code/{dd0shelleval → superant.com.rwdshell}/clearscriptscreendisplay.rb +0 -0
  26. data/code/{dd0shelleval → superant.com.rwdshell}/deletescriptrecord.rb +0 -0
  27. data/code/superant.com.rwdshell/helptexthashrubyslippers.rb +81 -0
  28. data/code/superant.com.rwdshell/listrubyscripts.rb +13 -0
  29. data/code/{dd0shelleval → superant.com.rwdshell}/listscripts.rb +0 -0
  30. data/code/superant.com.rwdshell/loadconfigurationrecord.rb +33 -0
  31. data/code/superant.com.rwdshell/loadconfigurationvariables.rb +13 -0
  32. data/code/{dd0shelleval → superant.com.rwdshell}/loadscriptrecord.rb +0 -0
  33. data/code/superant.com.rwdshell/openhelpwindowrubyslippers.rb +50 -0
  34. data/code/superant.com.rwdshell/playrubyscript.rb +22 -0
  35. data/code/{dd0shelleval → superant.com.rwdshell}/playscript.rb +0 -0
  36. data/code/superant.com.rwdshell/returntomain.rb +10 -0
  37. data/code/{dd0shelleval → superant.com.rwdshell}/rubyeval.rb +0 -0
  38. data/code/superant.com.rwdshell/runrwdshellbackwindow.rb +10 -0
  39. data/code/superant.com.rwdshell/runrwdshellmenu1.rb +57 -0
  40. data/code/{dd0shelleval → superant.com.rwdshell}/runrwdshellwindow.rb +0 -0
  41. data/code/{dd0shelleval → superant.com.rwdshell}/rwdshellversion.rb +0 -0
  42. data/code/{dd0shelleval → superant.com.rwdshell}/savechangedscript.rb +0 -0
  43. data/code/superant.com.rwdshell/saveconfigurationrecord.rb +18 -0
  44. data/code/{dd0shelleval → superant.com.rwdshell}/shelleval.rb +0 -0
  45. data/code/superant.com.rwdshell/viewrubyscript.rb +18 -0
  46. data/code/{dd0shelleval → superant.com.rwdshell}/viewscript.rb +0 -0
  47. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +99 -0
  48. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/diagnostictab.rb +0 -0
  49. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +58 -0
  50. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/installapplet.rb +9 -8
  51. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -0
  52. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -0
  53. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  54. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +54 -0
  55. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/listinstalledfiles.rb +0 -0
  56. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +31 -0
  57. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/loadconfigurationrecord.rb +1 -1
  58. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/loadconfigurationvariables.rb +1 -1
  59. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  60. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/openappletname.rb +0 -0
  61. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +42 -0
  62. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  63. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/removeapplet.rb +0 -0
  64. data/code/{xa5rwdtinkercallable/callable.rb → superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb} +2 -3
  65. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/rwdtinkerwin2version.rb +0 -0
  66. data/code/{xb1rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/saveconfigurationrecord.rb +1 -1
  67. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -0
  68. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +21 -0
  69. data/configuration/{rwdplayscripts.cnf → playscripts.cnf} +0 -2
  70. data/configuration/rwdapplicationidentity.cnf +3 -0
  71. data/configuration/rwdcalc.cnf +1 -0
  72. data/configuration/rwdcalendar.cnf +4 -27
  73. data/configuration/rwdcalendarversion.cnf +4 -0
  74. data/configuration/rwdshellversion.cnf +2 -0
  75. data/configuration/rwdtinker.cnf +6 -2
  76. data/configuration/rwdtinkerversion.cnf +1 -1
  77. data/configuration/tinkerwin2variables.cnf +7 -3
  78. data/configuration/tinkerwin2version.cnf +1 -1
  79. data/ev/rwd.rb +4 -3
  80. data/extras/cal.rb +158 -0
  81. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  82. data/gui/frontwindow0/superant.com.tinkercalendar/hl9calendar.rwd +27 -20
  83. data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +1 -1
  84. data/gui/frontwindowselections/superant.com.rwdshellselectiontab/rwdshellbackwindowselectiontab.rwd +12 -0
  85. data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +1 -1
  86. data/gui/frontwindowtdocuments/{ub7rubyeval → superant.com.rubyeval}/rubyeval.rwd +0 -0
  87. data/gui/frontwindowtdocuments/{vv1docshellxp → superant.com.shelldocument}/vvdocshellxp.rwd +0 -0
  88. data/gui/frontwindowtdocuments/uu6rwdcalcdocument/uu5documents.rwd +6 -0
  89. data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +5 -0
  90. data/gui/helpaboutinstalled/{yl4rwdshellhelpabout → superant.com.shellhelpabout}/1appname.rwd +0 -0
  91. data/gui/helpaboutinstalled/{yl2rwddemohelpabout → superant.com.shellhelpabout}/3copyright.rwd +0 -0
  92. data/gui/helpaboutinstalled/{yl4rwdshellhelpabout → superant.com.shellhelpabout}/5version.rwd +0 -0
  93. data/gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd +1 -1
  94. data/gui/tinkerbackwindows/superant.com.rwdcalc/{floatrwdcalc.rwd → 20floatrwdcalc.rwd} +0 -0
  95. data/gui/tinkerbackwindows/superant.com.rwdcalc/{intrwdcalc.rwd → 30intrwdcalc.rwd} +0 -0
  96. data/gui/tinkerbackwindows/superant.com.rwdcalc/35mathcommands.rwd +25 -0
  97. data/gui/tinkerbackwindows/superant.com.rwdcalc/44listplayscripts.rwd +19 -0
  98. data/gui/tinkerbackwindows/superant.com.rwdcalc/45listscripts.rwd +25 -0
  99. data/gui/tinkerbackwindows/superant.com.rwdcalc/46editscriptrecord.rwd +30 -0
  100. data/gui/tinkerbackwindows/superant.com.rwdcalc/4scriptutilities.rwd +25 -0
  101. data/gui/tinkerbackwindows/superant.com.rwdcalc/98returntab.rwd +11 -0
  102. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/1appname.rwd +5 -0
  103. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/44listplayscripts.rwd +19 -0
  104. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/45listscripts.rwd +25 -0
  105. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +30 -0
  106. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/92viewconfiguration.rwd +38 -0
  107. data/gui/tinkerbackwindows/{superant.com.tinkerbackwindow/3arwddiagnostics.rwd → superant.com.rwdshellbackwindow/94rwddiagnostics.rwd} +0 -0
  108. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/v9returntab.rwd +11 -0
  109. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/zbackend.rwd +6 -0
  110. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +42 -0
  111. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  112. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +1 -1
  113. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +38 -0
  114. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +33 -0
  115. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +33 -0
  116. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +1 -1
  117. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
  118. data/gui/tinkerbackwindows/{superant.com.tinercallablewindow → superant.com.tinkerhelpwindow}/9end.rwd +0 -0
  119. data/init.rb +38 -2
  120. data/lang/en/rwdcalendar/calendar-en.rb +6 -0
  121. data/lang/es/rwdcalendar/calendar-nl.rb +6 -0
  122. data/lang/nl/rwdcalendar/calendar-nl.rb +6 -0
  123. data/lang/templangfile.rb +7 -1
  124. data/lang/xlocallangfile.rb +7 -1
  125. data/rwd_files/HowTo_RwdDemo.txt +20 -82
  126. data/rwd_files/HowTo_Shell.txt +15 -1
  127. data/rwd_files/HowTo_Tinker.txt +63 -6
  128. data/rwddemo-0.90.gem +0 -0
  129. data/scripts/test02.math +2 -0
  130. data/scripts/test02.rb +2 -0
  131. metadata +153 -89
  132. data/code/dd0shelleval/rwddemohelpabout.rb +0 -14
  133. data/code/xb1rwdtinkerbackwindow/listzips.rb +0 -16
  134. data/configuration/rwddemoversion.cnf +0 -2
  135. data/configuration/rwdplayscriptsversion.cnf +0 -2
  136. data/gui/frontwindowtdocuments/uk5rwddemodocuments/documents.rwd +0 -4
  137. data/gui/helpaboutinstalled/yl2rwddemohelpabout/1appname.rwd +0 -4
  138. data/gui/helpaboutinstalled/yl2rwddemohelpabout/5version.rwd +0 -9
  139. data/gui/helpaboutinstalled/yl4rwdshellhelpabout/3copyright.rwd +0 -3
  140. data/gui/tinkerbackwindows/superant.com.tinercallablewindow/1appname.rwd +0 -17
  141. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd +0 -36
  142. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd +0 -35
  143. data/installed/rwdshell-0.92.inf +0 -14
  144. data/rwd_files/HowTo_RwdCalc.txt +0 -103
@@ -0,0 +1,25 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"scriptutilitiesrwdshell\" caption=\"Script Utilities\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">Script Title:</p> <text name=\"a_calcscriptfilename\"/> </row>
7
+ <row> <p align=\"right\">New Name:</p> <text name=\"a_changecalcscriptname\"/> </row>
8
+
9
+ </table>
10
+
11
+ <horizontal>
12
+ <button caption=\"Rename Script \" action=\"changecalcscriptname\"/>
13
+ <button caption=\"Delete Script\" action=\"deletecalcscriptrecord\"/>
14
+ <button caption=\"Help\" action=\"runhelpwindowrwdcalc\"/>
15
+ </horizontal>
16
+
17
+ <p>%%calcscriptfilechangeresult%%</p>
18
+ <horizontal>
19
+ <button caption=\"List Scripts\" action=\"listcalcscripts\"/>
20
+
21
+
22
+ </horizontal>
23
+
24
+ <p>%%listcalcscriptresult%%</p>
25
+ </tab>"
@@ -0,0 +1,11 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"backtab\" caption=\"Back Tab\">
4
+
5
+ <row> You can return to the Main 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,5 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"rwdshellbackwindow\" title=\"RwdShell Back Window\">
4
+
5
+ <tabs>"
@@ -0,0 +1,19 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"rwdrubyscriptlister\" caption=\"List\\Run Ruby Scripts\">
4
+ <horizontal>
5
+ <text name=\"a_rwdrubyx\"/>
6
+ <text name=\"a_rwdrubyy\"/>
7
+ </horizontal>
8
+ <table>
9
+ <row> <p align=\"right\">Script Name:</p> <text name=\"a_rubyscriptcmd\"/> </row>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=\"Execute\" action=\"playrubyscript\"/>
15
+
16
+
17
+ </horizontal>
18
+ <p>%playrubyscript_display%</p>"
19
+
@@ -0,0 +1,25 @@
1
+ $rwdguivar=
2
+ "
3
+ <table>
4
+ <row> <p align=\"right\">ScriptName:</p> <text name=\"a_rubyscriptfilename\"/> </row>
5
+
6
+ </table>
7
+
8
+ <horizontal>
9
+ <button caption=\"ViewScript\" action=\"viewrubyscript\"/>
10
+ <button caption=\"Help\" action=\"runhelpwindowrwdshell\"/>
11
+
12
+ </horizontal>
13
+ <p>%displayrubyscripttext%</p>
14
+
15
+ <horizontal>
16
+
17
+ <button caption=\"ListFiles\" action=\"listrubyscripts\"/>
18
+ <button caption=\"Cancel\" action=\"main\"/>
19
+
20
+ </horizontal>
21
+ <p>%%listrubyscriptresult%%</p>
22
+ </tab>"
23
+
24
+
25
+
@@ -0,0 +1,30 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"editeventrecordfile\" caption=\"Edit Script\">
4
+ <table>
5
+ <row> <p> </row>
6
+ <row> <p align=\"right\">NOT YET WORKING:You will be able to create a new record here or edit one</row>
7
+ <row> <p> </row>
8
+ <horizontal>
9
+ <button caption=\"Fill Record\" action=\"loadrubyscriptrecord\"/>
10
+ <button caption=\"Save Changes\" action=\"saverubyrecord\"/>
11
+ <button caption=\"Clear\" action=\"clearrubyscreendisplay\"/>
12
+ <button caption=\"Help\" action=\"runhelpwindowrwdruby\"/>
13
+ </horizontal>
14
+ <horizontal>
15
+ <row> <p align=\"right\">FileName:</p>
16
+ <text name=\"a_calcscriptfilename\"/>
17
+ </horizontal>
18
+ <table>
19
+ <textarea name=\"a_calcscriptrecord\"/> </row>
20
+
21
+
22
+ </table>
23
+
24
+ <p>
25
+ <p>%neweventresult%</p>
26
+
27
+
28
+
29
+ </tab>"
30
+
@@ -0,0 +1,38 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"viewrwdshellconfiguration\" caption=\"RwdShell Configuration\">
4
+
5
+
6
+
7
+ <table>
8
+ <row> <p> </row>
9
+ <row> <p align=\"right\">You can view or edit the RwdShell configuration file here</row>
10
+ <row> <p> </row>
11
+ <horizontal>
12
+ <button caption=\"Fill Record\" action=\"loadrwdshellconfiguration\"/>
13
+ <button caption=\"Save Changes\" action=\"saverwdshellconfiguration\"/>
14
+ <button caption=\"Reload Variables\" action=\"loadrwdshellconfigurationvariables\"/>
15
+ <button caption=\"Help\" action=\"runhelpwindowrwdshell\"/>
16
+ </horizontal>
17
+ <table>
18
+
19
+ <row> <p align=\"right\">FileName:</p> <text size=70 name=\"a_rshellconfigurationfilename\"/> </row>
20
+ <row> <p align=\"right\">1:</p> <text size=70 name=\"a_rshellhellconfigline1\"/> </row>
21
+ <row> <p align=\"right\">2:</p> <text size=70 name=\"a_rshellconfigline2\"/> </row>
22
+ <row> <p align=\"right\">3:</p> <text size=70 name=\"a_rshellconfigline3\"/> </row>
23
+ <row> <p align=\"right\">4:</p> <text size=70 name=\"a_rshellconfigline4\"/> </row>
24
+ <row> <p align=\"right\">5:</p> <text size=70 name=\"a_rshellconfigline5\"/> </row>
25
+ <row> <p align=\"right\">6:</p> <text size=70 name=\"a_rshellconfigline6\"/> </row>
26
+ <row> <p align=\"right\">7:</p> <text size=70 name=\"a_rshellconfigline7\"/> </row>
27
+ <row> <p align=\"right\">8:</p> <text size=70 name=\"a_rshellconfigline8\"/> </row>
28
+ <row> <p align=\"right\">9:</p> <text size=70 name=\"a_rshellconfigline9\"/> </row>
29
+
30
+ </table>
31
+
32
+ <p>
33
+ <p>%newrshellconfigurationresult%</p>
34
+
35
+
36
+
37
+ </tab>"
38
+
@@ -0,0 +1,11 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"backtab\" caption=\"Back Tab\">
4
+
5
+ <row> You can return to the Main window</row>
6
+ <row><p> </row>
7
+ <row><p> </row>
8
+ <button caption=\"Return to top menu\" action=\"returntomain\"/>
9
+
10
+ </tab>"
11
+
@@ -0,0 +1,6 @@
1
+ $rwdguivar=
2
+ "
3
+ </tabs>
4
+ </window>"
5
+
6
+
@@ -0,0 +1,42 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"rwdzipslister\" caption=\"List Zips\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">File Name:</p> <text size=70 name=\"a_installapplet\"/> </row>
7
+
8
+ </table>
9
+
10
+
11
+ <horizontal>
12
+
13
+
14
+ <button caption=\"install (rwdtinker) applet\" action=\"installgemapplet\"/>
15
+ <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
16
+
17
+ </horizontal>
18
+ <p>%installapplettext%</p>
19
+
20
+ <horizontal>
21
+
22
+ <button caption=\"view (rwdtinker) applet contents\" action=\"viewgemappletcontents\"/>
23
+ </horizontal>
24
+ <p>%appletcontentstext%</p>
25
+ <table>
26
+ <row> <p align=\"right\">Click below to view the list of zip files </row>
27
+
28
+ </table>
29
+
30
+ <horizontal>
31
+ <button caption=\"List (zip directory) applets available for installing\" action=\"listzipfilestoinstall\"/>
32
+
33
+ <button caption=\"List applets (in the GEM Directory) available for installing\" action=\"listgemzips\"/>
34
+
35
+ </horizontal>
36
+
37
+ <p>%%zipslistresult%%</p>
38
+
39
+ </tab>"
40
+
41
+
42
+
@@ -0,0 +1,44 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"superantcomremotezipsinstall\" caption=\"Install Remote Applets\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">File Name:</p> <text size=70 name=\"superantcominstallremoteappletinput\"/> </row>
7
+
8
+ </table>
9
+ <horizontal>
10
+ <button caption=\"install remote Gem applet package\" action=\"superantcominstallremotegemapplet\"/>
11
+ <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
12
+
13
+ </horizontal>
14
+ <p>%superantcominstallremotegemappletresult%</p>
15
+
16
+ <horizontal>
17
+
18
+
19
+
20
+ <button caption=\"view already installed GEM applets\" action=\"superantcomshowgemfiledirs\"/>
21
+ </horizontal>
22
+ <p>%%superantcomshowgemappletdirsresult%%</p>
23
+
24
+
25
+
26
+
27
+
28
+ <table>
29
+ <row> <p align=\"right\">Click below to view the list of zip files </row>
30
+
31
+ </table>
32
+
33
+ <horizontal>
34
+
35
+ <button caption=\"List applets in the Remote GEM Repository available for downloading\" action=\"superantcomremotegemlist\"/>
36
+
37
+ </horizontal>
38
+ <p>%superantcomremotegemappletsfullresult%</p>
39
+ <p>%%superantcomremotegemappletsresult%%</p>
40
+
41
+ </tab>"
42
+
43
+
44
+
@@ -10,7 +10,7 @@ $rwdguivar=
10
10
 
11
11
  <horizontal>
12
12
  <button caption=\"View Install Text\" action=\"openappletname\"/>
13
- <button caption=\"Cancel\" action=\"main\"/>
13
+ <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
14
14
  </horizontal>
15
15
  <p>%displaytext%</p>
16
16
 
@@ -0,0 +1,38 @@
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=\"Save Changes\" action=\"saveconfigurationrecord\"/>
11
+ <button caption=\"Reload Variables\" action=\"loadconfigurationvariables\"/>
12
+ <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
13
+
14
+
15
+
16
+
17
+ </horizontal>
18
+ <table>
19
+ <row> <p align=\"right\" >FileName:</p> <text size=70 name=\"a_configurationfilename\"/> </row>
20
+ <row> <p align=\"right\">1:</p> <text size=70 name=\"a_configline1\"/> </row>
21
+ <row> <p align=\"right\">2:</p> <text size=70 name=\"a_configline2\"/> </row>
22
+ <row> <p align=\"right\">3:</p> <text size=70 name=\"a_configline3\"/> </row>
23
+ <row> <p align=\"right\">4:</p> <text size=70 name=\"a_configline4\"/> </row>
24
+ <row> <p align=\"right\">5:</p> <text size=70 name=\"a_configline5\"/> </row>
25
+ <row> <p align=\"right\">6:</p> <text size=70 name=\"a_configline6\"/> </row>
26
+ <row> <p align=\"right\">7:</p> <text size=70 name=\"a_configline7\"/> </row>
27
+ <row> <p align=\"right\">8:</p> <text size=70 name=\"a_configline8\"/> </row>
28
+
29
+
30
+ </table>
31
+ <p>%extraconfigdatadisplay%</p>
32
+ <p>
33
+ <p>%newconfigurationresult%</p>
34
+
35
+
36
+
37
+ </tab>"
38
+
@@ -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,33 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"rwdremotecontrol\" caption=\"Remote Controls\">
4
+ <p></p>
5
+ Query remote rwdtinker applications (not yet functional on XP)
6
+ <horizontal>
7
+ <button caption=\"Start the Remote Control for This Application\" action=\"network_start\"/>
8
+ <button caption=\"Help\" action=\"runhelpwindowtinkerwin2\"/>
9
+
10
+ </horizontal>
11
+ <p>%viewremotecommandresult%</p>
12
+ <horizontal>
13
+
14
+ <button caption=\"Show remote Command Choices\" action=\"showremoteportoptions\"/>
15
+
16
+ </horizontal>
17
+ <table>
18
+ <select name=\"a_remoteportinput\"> %%remoteportoptions%% </select>
19
+
20
+ </table>
21
+
22
+ <table>
23
+ <select name=\"a_remotecommandinput\"> %%remotecommandoptions%% </select>
24
+
25
+ </table>
26
+ <horizontal>
27
+ <button caption=\"Run Command\" action=\"runcontrolcommand\"/>
28
+ <button caption=\"Cancel\" action=\"main\"/>
29
+ </horizontal>
30
+ <p> Remote Port</p>
31
+ <p>%lastremotecommand%</p>
32
+ <p>%remotecommandresult%</p>
33
+ </tab>"
@@ -5,7 +5,7 @@ $rwdguivar=
5
5
  <row> You can return to the previous window</row>
6
6
  <row><p> </row>
7
7
  <row><p> </row>
8
- <button caption=\"Return to top menu\" action=\"main\"/>
8
+ <button caption=\"Return to top menu\" action=\"returntomain\"/>
9
9
 
10
10
  </tab>"
11
11
 
@@ -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
+ "
data/init.rb CHANGED
@@ -228,6 +228,42 @@ Dir.chdir($progdir)
228
228
  fileB.write($tempdoc) #writes the contents of doc into the file
229
229
  fileB.close
230
230
 
231
-
231
+ require 'socket' # Network stuff
232
+ host = "127.0.0.1"
233
+ port = $port
234
+
235
+ # Create a socket to listen on and bind it to the host and port
236
+ freeportfound = false
237
+ until freeportfound
238
+ begin
239
+ @socket = UDPSocket::new()
240
+ @socket.bind(host, port)
241
+ freeportfound = true
242
+ $port = port
243
+ # Rescue the "Address in use" error
244
+ rescue Errno::EADDRINUSE
245
+ puts "RWD Startup: Port #{port} on host #{host} is already in use."
246
+ port=port +1
247
+ puts "trying port: #{port}"
248
+ # Rescue the "Address not available' error
249
+ rescue Errno::EADDRNOTAVAIL
250
+ puts "RWD Startup: Address #{host} is not available to bind."
251
+ port =port + 1
252
+ puts "trying port: #{port}"
253
+ # Rescue "permission denied errors
254
+ rescue Errno::EACCES
255
+ puts "RWD Startup: Access denied when binding interface addresses. ?"
256
+ port =port + 1
257
+ puts "trying port: #{port}"
258
+ # Rescue all other errors
259
+ rescue
260
+ puts "RWD Startup: An error occured."
261
+ port =port + 1
262
+ puts "trying port: #{port}"
263
+ # Rescue all other errors
264
+ end
265
+
266
+ end
267
+
232
268
 
233
- RwdTinker.file(RWDFile).serve($port) # start the main class and program
269
+ RwdTinker.file(RWDFile).serve(port) # start the main class and program
@@ -0,0 +1,6 @@
1
+ # Lang file for rwdclandar - en
2
+
3
+ :year => "Year:",
4
+ :month => "Month:",
5
+ :show_month => '"Show Month"',
6
+
@@ -0,0 +1,6 @@
1
+ # Lang file for rwdclandar - nl
2
+
3
+ :year => "Jaar:",
4
+ :month => "Maand:",
5
+
6
+
@@ -0,0 +1,6 @@
1
+ # Lang file for rwdclandar - nl
2
+
3
+ :year => "Jaar:",
4
+ :month => "Maand:" ,
5
+ :show_month => '"Zie Maand"',
6
+
data/lang/templangfile.rb CHANGED
@@ -1,4 +1,10 @@
1
- # English Language files for RwdTinker core
1
+ # Lang file for rwdclandar - en
2
+
3
+ :year => "Year:",
4
+ :month => "Month:",
5
+ :show_month => '"Show Month"',
6
+
7
+ # English Language files for RwdTinker core
2
8
 
3
9
 
4
10
  :applet_installed => "applet installed!.",
@@ -1,4 +1,10 @@
1
- # English Language files for RwdTinker core
1
+ # Lang file for rwdclandar - en
2
+
3
+ :year => "Year:",
4
+ :month => "Month:",
5
+ :show_month => '"Show Month"',
6
+
7
+ # English Language files for RwdTinker core
2
8
 
3
9
 
4
10
  :applet_installed => "applet installed!.",
@@ -1,14 +1,11 @@
1
- = HowTo use the Shell Program
1
+ = HowTo use the RwdCalc Program
2
2
 
3
- How to Use the Shell Program (rwdshell)
4
3
 
5
- rwdshell is a web brower interface to operating system shell commands
4
+ rwdcalc is a web brower interface to arithmetic commands
6
5
 
7
6
 
8
- 1. run shell commands
9
- 2. run Ruby commands in the browser
10
7
  3. use a calculator
11
- 4. Open brower windows with html documents
8
+
12
9
 
13
10
  The GUI interface used is RubyWebDialogs
14
11
 
@@ -20,85 +17,15 @@ Then point your web browser to:
20
17
  http://localhost:7705/
21
18
 
22
19
 
23
- == To use a shell command
24
-
25
-
26
- Enter the shell command you want to run for in the browser form and press execute.
27
- After a second the browser should fill with the results of the command.
28
- try ls, df, cat "filename", and other shell commands
29
- You should be able to run one command after another
30
-
31
-
32
- There are two ways to add scripts to rwdshell directory.
33
-
34
-
35
-
36
- == Creating a script
37
-
38
-
39
- 1. Use the "Create New Script" tab
40
- <blockquote>
41
- The first field is the most important. It is the filename that
42
- will be created.
43
- myshellscript
44
-
45
- The following line for entry is a shell command.
46
-
47
- The last line is for comment to describe the script
48
- When you are finished press the CreateFile button
49
-
50
-
51
- 2. Manually add an entry for a script
52
-
53
- You can use a text editor to create a record
54
- put information on separate lines. You can have as many lines as you want
55
- name the file with caps and no spaces and end with .sh
56
- mynextscript.sh
57
-
58
- Save your file to the scripts/ subdirectory
59
-
60
-
61
- == Viewing a recorded script entry:
62
-
63
-
64
- * Go to "List Scripts" tab
65
-
66
-
67
- You can get a list of all scripts by clicking the listfiles button
68
-
69
- To see the text of a script
70
- Type in the name of the script you want.
71
-
72
- type it without the sh ending
73
- myscript
74
-
75
- Then click the "ViewScript" button
76
-
77
- If it finds the script it will open it. It displays the text the search box.
78
-
79
-
80
- == Ruby Commands
81
-
82
-
83
- At the Ruby tab here are some commands you might try
84
-
85
- print "hello" + "\n"
86
-
87
- bar=46; print "%s" % bar, "\n"
88
-
89
- "abc".each_byte{|c| printf "<%c>", c}; print "\n"
90
-
91
- "a\nb\nc\n".each_line{|l| print l}
92
-
93
- for l in "a\nb\nc\n" ; print l ; end
94
-
95
- print "%s" % "abcdef".length
96
20
 
97
21
 
98
22
  == Calculator
99
23
 
100
24
  add or multiply 2 numbers together
101
25
 
26
+ subtract or divide
27
+
28
+ see a running tape
102
29
 
103
30
 
104
31
 
@@ -163,10 +90,21 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
163
90
  Thanks, Steven Gibson
164
91
 
165
92
  == Changelog
93
+ Version 0.5
94
+ corrected selectiontab
95
+ added sample math demos
96
+ added script running tab
97
+ added script editing
98
+ added script rename, delete
99
+ updated for rwdtinker 1.51
166
100
 
167
101
  Version 0.3
168
- Changed directory structure to work with rwdtinker 0.9 or greater.
169
- Improved the filename selection
170
- Changed the layout on the list screen
102
+ Changed directory structure to work with rwdtinker 1.4.
103
+ Added running tape
104
+ Added subtraction and division
105
+ moved to second window
106
+
107
+ Version 0.2
108
+ converted to rwdtinker applet
171
109
 
172
110