rwddemo 0.6 → 0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (204) hide show
  1. data/Readme.txt +1 -1
  2. data/code/dd0shelleval/changescriptname.rb +16 -0
  3. data/code/dd0shelleval/clearscriptscreendisplay.rb +9 -0
  4. data/code/dd0shelleval/deletescriptrecord.rb +20 -0
  5. data/code/{ek0shellscripts/em0listscripts.rb → dd0shelleval/listscripts.rb} +3 -2
  6. data/code/dd0shelleval/loadscriptrecord.rb +20 -0
  7. data/code/{ek0shellscripts/ek0playscript.rb → dd0shelleval/playscript.rb} +0 -0
  8. data/code/{cb7rubyeval/cb7rubyeval.rb → dd0shelleval/rubyeval.rb} +4 -2
  9. data/code/dd0shelleval/runrwdshellwindow.rb +9 -0
  10. data/code/dd0shelleval/rwddemohelpabout.rb +14 -0
  11. data/code/dd0shelleval/rwdshellversion.rb +14 -0
  12. data/code/{ek0shellscripts/en0createnewscript.rb → dd0shelleval/savechangedscript.rb} +7 -6
  13. data/code/dd0shelleval/{dd0shelleval.rb → shelleval.rb} +0 -0
  14. data/code/{ek0shellscripts/em1viewscript.rb → dd0shelleval/viewscript.rb} +2 -2
  15. data/code/{ii3calculator → rwdcalc}/ca2multiply.rb +0 -0
  16. data/code/{ii3calculator → rwdcalc}/ca4add.rb +0 -0
  17. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +2 -1
  18. data/configuration/aa0rwdframework.cnf +5 -3
  19. data/configuration/ab1tinkerwin2.cnf +1 -0
  20. data/configuration/ek0playscripts.cnf +2 -0
  21. data/configuration/gh1rwdcalendar.cnf +1 -0
  22. data/gui/aa2core/aa0rwdtop.rwd +4 -0
  23. data/gui/ek0shellscripts/1listplayscripts.rwd +17 -0
  24. data/gui/ek0shellscripts/2listscripts.rwd +25 -0
  25. data/gui/ek0shellscripts/3editscripts.rwd +25 -0
  26. data/gui/ek0shellscripts/4scriptutilities.rwd +24 -0
  27. data/gui/ek0shellscripts/6rwdshelleval.rwd +16 -0
  28. data/gui/ek0shellscripts/cb7rwdrubyeval.rwd +13 -0
  29. data/gui/hl9calendar/hl9calendar.rwd +20 -0
  30. data/gui/hx1rwdcalc/ca0rwdcalc.rwd +19 -0
  31. data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
  32. data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
  33. data/gui/lz1selectiontabend/endselectiontab.rwd +3 -0
  34. data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
  35. data/gui/{en/ub7rubyeval → ub7rubyeval}/rubyeval.rwd +4 -3
  36. data/gui/uk5rwddemodocuments/documents.rwd +4 -0
  37. data/gui/{en/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +9 -7
  38. data/gui/{nl/uu6rwdtinkerwin2documents → uu6rwdtinkerwin2documents}/uu5documents.rwd +4 -2
  39. data/gui/vv1docshellxp/vvdocshellxp.rwd +5 -0
  40. data/gui/ww0documentsend/ww0documentend.rwd +7 -0
  41. data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
  42. data/gui/{es/xa1versionwindow → xa1versionwindow}/1appname.rwd +4 -2
  43. data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
  44. data/gui/xa5rwdtinkercallablewindow/9end.rwd +4 -0
  45. data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
  46. data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
  47. data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
  48. data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
  49. data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
  50. data/gui/xb1rwdtinkerbackwindow/9backend.rwd +6 -0
  51. data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
  52. data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
  53. data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
  54. data/gui/yg5rwdhelpabout/5version.rwd +10 -0
  55. data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
  56. data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
  57. data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
  58. data/gui/yl2rwddemohelpabout/1appname.rwd +4 -0
  59. data/gui/yl2rwddemohelpabout/3copyright.rwd +3 -0
  60. data/gui/yl2rwddemohelpabout/5version.rwd +9 -0
  61. data/gui/yl4rwdshellhelpabout/1appname.rwd +4 -0
  62. data/gui/yl4rwdshellhelpabout/3copyright.rwd +3 -0
  63. data/gui/yl4rwdshellhelpabout/5version.rwd +9 -0
  64. data/gui/yy5helpaboutend/helpscreenend.rwd +3 -0
  65. data/gui/za1applicationend/yy9rwdend.rwd +4 -0
  66. data/init.rb +74 -5
  67. data/installed/rwdshell-0.92.inf +14 -0
  68. data/installed/rwdtinkerwin2-0.5.inf +4 -12
  69. data/{code/al5languagefiles → lang}/alanguagehashbegin.rb +0 -0
  70. data/lang/en/rwdcore/languagefile.rb +3 -2
  71. data/lang/es/rwdcore/languagefile.rb +1 -2
  72. data/{code/al5languagefiles → lang}/languagehash.rb +0 -0
  73. data/lang/nl/rwdcore/languagefile.rb +1 -1
  74. data/lang/templangfile.rb +2 -0
  75. data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
  76. data/lang/wlocallangstart.rb +5 -0
  77. data/lang/xlocallangfile.rb +1 -0
  78. data/lang/zlocallangend.rb +2 -0
  79. data/rwd_files/HowTo_Shell.txt +230 -0
  80. data/rwd_files/HowTo_Tinker.txt +32 -0
  81. data/scripts/echo2.sh +2 -0
  82. data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
  83. data/zips/rwdwshell-0.91.zip +0 -0
  84. data/zips/wrubyslippers-0.93.zip +0 -0
  85. metadata +91 -154
  86. data/code/al5languagefiles/templangfile.rb +0 -6
  87. data/code/lm1installapplets/ll5listzips.rb +0 -14
  88. data/code/lm1installapplets/lm1installapplet.rb +0 -20
  89. data/code/ssdiagnostictab/diagnostictab.rb +0 -20
  90. data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
  91. data/gui/en/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  92. data/gui/en/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  93. data/gui/en/ek0shellscripts/ek0playscript.rwd +0 -15
  94. data/gui/en/ek0shellscripts/el0listscripts.rwd +0 -25
  95. data/gui/en/ek0shellscripts/en0createscripts.rwd +0 -24
  96. data/gui/en/hl9calendar/hl9calendar.rwd +0 -18
  97. data/gui/en/ii3calculator/ca0rwdcalc.rwd +0 -17
  98. data/gui/en/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  99. data/gui/en/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  100. data/gui/en/lz1selectiontabend/endselectiontab.rwd +0 -1
  101. data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  102. data/gui/en/uk5rwddemodocuments/documents.rwd +0 -3
  103. data/gui/en/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
  104. data/gui/en/vv1docshellxp/vvdocshellxp.rwd +0 -4
  105. data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
  106. data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  107. data/gui/en/xa1versionwindow/1appname.rwd +0 -17
  108. data/gui/en/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  109. data/gui/en/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  110. data/gui/en/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  111. data/gui/en/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  112. data/gui/en/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  113. data/gui/en/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  114. data/gui/en/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  115. data/gui/en/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  116. data/gui/en/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  117. data/gui/en/yg5rwdhelpabout/1appname.rwd +0 -2
  118. data/gui/en/yg5rwdhelpabout/3copyright.rwd +0 -1
  119. data/gui/en/yg5rwdhelpabout/5version.rwd +0 -9
  120. data/gui/en/yg6rwdwin2helpabout/1appname.rwd +0 -2
  121. data/gui/en/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  122. data/gui/en/yg6rwdwin2helpabout/5version.rwd +0 -9
  123. data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
  124. data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
  125. data/gui/es/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  126. data/gui/es/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  127. data/gui/es/ek0shellscripts/ek0playscript.rwd +0 -15
  128. data/gui/es/ek0shellscripts/el0listscripts.rwd +0 -25
  129. data/gui/es/ek0shellscripts/en0createscripts.rwd +0 -24
  130. data/gui/es/hl9calendar/hl9calendar.rwd +0 -18
  131. data/gui/es/ii3calculator/ca0rwdcalc.rwd +0 -17
  132. data/gui/es/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  133. data/gui/es/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  134. data/gui/es/lz1selectiontabend/endselectiontab.rwd +0 -1
  135. data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  136. data/gui/es/ub7rubyeval/rubyeval.rwd +0 -3
  137. data/gui/es/uk5playscripts/uv6docscriptrunner.rwd +0 -3
  138. data/gui/es/uu5rwddocuments/uu5documents.rwd +0 -13
  139. data/gui/es/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
  140. data/gui/es/vv1docshellxp/vvdocshellxp.rwd +0 -4
  141. data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
  142. data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  143. data/gui/es/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  144. data/gui/es/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  145. data/gui/es/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  146. data/gui/es/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  147. data/gui/es/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  148. data/gui/es/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  149. data/gui/es/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  150. data/gui/es/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  151. data/gui/es/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  152. data/gui/es/yg5rwdhelpabout/1appname.rwd +0 -2
  153. data/gui/es/yg5rwdhelpabout/3copyright.rwd +0 -1
  154. data/gui/es/yg5rwdhelpabout/5version.rwd +0 -9
  155. data/gui/es/yg6rwdwin2helpabout/1appname.rwd +0 -2
  156. data/gui/es/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  157. data/gui/es/yg6rwdwin2helpabout/5version.rwd +0 -9
  158. data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
  159. data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
  160. data/gui/nl/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  161. data/gui/nl/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  162. data/gui/nl/ek0shellscripts/ek0playscript.rwd +0 -15
  163. data/gui/nl/ek0shellscripts/el0listscripts.rwd +0 -25
  164. data/gui/nl/ek0shellscripts/en0createscripts.rwd +0 -24
  165. data/gui/nl/hl9calendar/hl9calendar.rwd +0 -18
  166. data/gui/nl/ii3calculator/ca0rwdcalc.rwd +0 -17
  167. data/gui/nl/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  168. data/gui/nl/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  169. data/gui/nl/lz1selectiontabend/endselectiontab.rwd +0 -1
  170. data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  171. data/gui/nl/ub7rubyeval/rubyeval.rwd +0 -3
  172. data/gui/nl/uk5playscripts/uv6docscriptrunner.rwd +0 -3
  173. data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
  174. data/gui/nl/vv1docshellxp/vvdocshellxp.rwd +0 -4
  175. data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
  176. data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  177. data/gui/nl/xa1versionwindow/1appname.rwd +0 -17
  178. data/gui/nl/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  179. data/gui/nl/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  180. data/gui/nl/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  181. data/gui/nl/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  182. data/gui/nl/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  183. data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  184. data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  185. data/gui/nl/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  186. data/gui/nl/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  187. data/gui/nl/yg5rwdhelpabout/1appname.rwd +0 -2
  188. data/gui/nl/yg5rwdhelpabout/3copyright.rwd +0 -1
  189. data/gui/nl/yg5rwdhelpabout/5version.rwd +0 -9
  190. data/gui/nl/yg6rwdwin2helpabout/1appname.rwd +0 -2
  191. data/gui/nl/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  192. data/gui/nl/yg6rwdwin2helpabout/5version.rwd +0 -9
  193. data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
  194. data/installed/rwdrubyeval-0.3.inf +0 -5
  195. data/installed/rwdscriptrunner-0.3.inf +0 -9
  196. data/installed/rwdshellxp-0.4.inf +0 -5
  197. data/rwd_files/HowTo_Tinker.html +0 -370
  198. data/rwd_files/HowTo_shellxp.html +0 -105
  199. data/tests/rwdtinkertestEN.rb +0 -87
  200. data/tests/temptest.out +0 -18
  201. data/zips/rwdaviewphoto-0.3.zip +0 -0
  202. data/zips/rwdrefreshacpi-0.1.zip +0 -0
  203. data/zips/rwdscriptrunner-0.3.zip +0 -0
  204. data/zips/rwdwtinkerwin2-0.5.zip +0 -0
data/Readme.txt CHANGED
@@ -10,7 +10,7 @@ changing to the directory and
10
10
  ruby init.rb
11
11
 
12
12
  Then point your web browser to:
13
- http://localhost:7701/
13
+ http://localhost:7705/
14
14
 
15
15
  Or to the port that shows on the console or in the config.cnf file
16
16
 
@@ -0,0 +1,16 @@
1
+ # this code is to change the contact name
2
+ def changescriptname
3
+ begin
4
+ oldName = $shellscript_directory + "/" + @a_scriptfilename + ".sh"
5
+ newName = $shellscript_directory + "/" + @a_changescriptname + ".sh"
6
+
7
+ File.rename(oldName, newName)
8
+ @scriptfilechangeresult = "File Renamed!"
9
+ $currentscriptname = @a_changescriptname
10
+ rescue
11
+ @scriptfilechangeresult = "rename error"
12
+ end
13
+
14
+ end
15
+
16
+
@@ -0,0 +1,9 @@
1
+ # this method clears the on screen variables
2
+ def clearscriptscreendisplay
3
+
4
+ @a_tmpscriptfilename = ""
5
+ @a_scriptfirstline = ""
6
+ @a_scriptcommentline =""
7
+
8
+
9
+ end
@@ -0,0 +1,20 @@
1
+ # this method views an existing address record
2
+ def deletescriptrecord
3
+
4
+ require 'fileutils'
5
+
6
+ if @a_scriptfilename
7
+ $currentscriptname = @a_scriptfilename
8
+ end
9
+
10
+
11
+ begin # exception trapped block
12
+ fileName = $shellscript_directory + "/" + $currentscriptname + ".sh"
13
+ File.delete(fileName)
14
+ @eventfilechangeresult = "File Deleted!"
15
+ $currentscriptname = ""
16
+ rescue
17
+ @eventfilechangeresult = "File Deletion error"
18
+ end # exception rescue
19
+
20
+ end
@@ -1,12 +1,13 @@
1
1
  # this code is to list the scripts
2
2
  def listscripts
3
- fileList = Dir.new($shellscript_directory).entries.sort.reverse.delete_if { |x| ! (x =~ /sh$/) }
3
+ fileList = Dir.new($shellscript_directory).entries.sort.delete_if { |x| ! (x =~ /sh$/) }
4
4
  @listscriptresult = fileList.rwd_method("fillscriptname")
5
5
  end
6
6
 
7
7
  def fillscriptname(inffile)
8
8
  applet = inffile.gsub(/\.sh$/, "")
9
- @a_scriptlist = applet
9
+ @a_scriptfilename = applet
10
+ $currentscriptname = applet
10
11
  @a_scriptcmd = applet
11
12
  end
12
13
 
@@ -0,0 +1,20 @@
1
+ # this method views an existing address record
2
+ def loadscriptrecord
3
+
4
+ require 'fileutils'
5
+ @a_tmpscriptfilename = $currentscriptname
6
+
7
+ begin # exception trapped block
8
+
9
+
10
+ fileName = $shellscript_directory + "/" + $currentscriptname + ".sh"
11
+
12
+ fd = File.open(fileName,"r")
13
+ @a_scriptfirstline = fd.readline.chomp
14
+ @a_scriptcommentline = fd.readline.chomp
15
+ fd.close
16
+ rescue SystemCallError, StandardError
17
+ $stderr.print "system call error: " + $!
18
+ end # exception rescue
19
+
20
+ end
@@ -3,9 +3,11 @@
3
3
  self << str
4
4
  end
5
5
  def rubyeval
6
+ require 'Env'
7
+ require 'English'
6
8
  commandtextruby = "%s " % [@a_rubyeval]
7
- $tmpout = $stdout # save the original STDOUT
8
- $stdout = $buffer
9
+ $tmpout = $stdout # save the original STDOUT
10
+ $stdout = $buffer
9
11
  begin # begin rescue monitored block
10
12
  eval( commandtextruby )
11
13
 
@@ -0,0 +1,9 @@
1
+ # Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a contact book
3
+ # For more information about see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the window
6
+ def runrwdshellwindow
7
+ @rwd_window = "rwdshellwindow"
8
+ end
9
+
@@ -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 runrwddemoversion
8
+ @rwd_window = "applicationversion"
9
+ @versionappnamedisplay = "RwdDemo"
10
+ @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
+ @versionnumberdisplay = "Version " + RwdDemoVersion
12
+
13
+ end
14
+
@@ -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 runrwdshellversion
8
+ @rwd_window = "applicationversion"
9
+ @versionappnamedisplay = "RwdShell"
10
+ @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
+ @versionnumberdisplay = "Version " + RwdShellVersion
12
+
13
+ end
14
+
@@ -1,18 +1,19 @@
1
1
 
2
- def createnew # this method adds a new script file
2
+ def savescriptrecord # this method adds a new script file
3
3
  require 'fileutils'
4
-
5
- newname = "%s" % [@a_filename] # grab the new filename to create
6
- newdata =@a_firstline.to_s + "\n #" + @a_commentline.to_s + "\n"
7
- fullnewname = newname + ".sh"
4
+ if @a_tmpscriptfilename
5
+ newdata =@a_scriptfirstline.to_s + "\n #" + @a_scriptcommentline.to_s + "\n"
6
+ fullnewname = @a_tmpscriptfilename.to_s + ".sh"
8
7
  begin # exception trapped block
9
8
  fileName = File.join( $shellscript_directory, fullnewname )
10
9
  fd = File.open(fileName,"w")
11
10
  fd.print(newdata) # save the record info to the file
12
11
  fd.close
13
12
  @newdisplay=newdata # show the record info in the browser
13
+ $currentscriptname = "%s" % [@a_tmpscriptfilename] # grab the new filename to create
14
+
14
15
  rescue
15
16
  @newdisplay = "\n" + "system error in createnew method"
16
17
  end # exception rescue
17
-
18
+ end
18
19
  end # end of createnew
File without changes
@@ -1,9 +1,9 @@
1
1
  def viewscript
2
2
  require 'fileutils'
3
- nametext = "%s" % [@a_scriptlist]
3
+ $currentscriptname = "%s" % [@a_scriptfilename]
4
4
 
5
5
  begin # exception trapped block
6
- fileName = "scripts/" + nametext + ".sh"
6
+ fileName = $shellscript_directory + "/" + $currentscriptname + ".sh"
7
7
 
8
8
  fd = File.open(fileName,"r")
9
9
  @displayscripttext = " "
File without changes
File without changes
@@ -17,4 +17,5 @@
17
17
  def rwdtinkerversiondiagnostic
18
18
  @rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
19
19
  end
20
-
20
+
21
+
@@ -1,11 +1,13 @@
1
- RwdTinkerVersion = "1.23"
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
@@ -1,3 +1,4 @@
1
+
1
2
  RwdTinkerWin2Version = "0.5"
2
3
  ZipsLocation = "zips" # not yet functional
3
4
 
@@ -1,2 +1,4 @@
1
1
 
2
+ RwdDemoVersion = "0.7"
2
3
  $shellscript_directory = "scripts"
4
+ RwdShellVersion = "0.92"
@@ -1,6 +1,7 @@
1
1
 
2
2
  $extras_directory = "extras"
3
3
 
4
+
4
5
  class LanguageTextrwdcalendar
5
6
 
6
7
  def locale(languagecode,wordtotranslate)
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "<application>
3
+ <window name=\"main\" title=\"RwdDemo - RwdTinker Applets with RubyWebDialogs\">
4
+ <tabs>"
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"scriptlister\" caption=\"List\\Run Scripts\">
4
+
5
+
6
+ <table>
7
+ <row> <p align=\"right\">Script Name:</p> <text name=\"a_scriptcmd\"/> </row>
8
+
9
+ </table>
10
+
11
+ <horizontal>
12
+ <button caption=\"Execute\" action=\"playscript\"/>
13
+ <button caption=\"Cancel\" action=\"main\"/>
14
+
15
+ </horizontal>
16
+ <p>%playscript_display%</p>"
17
+
@@ -0,0 +1,25 @@
1
+ $rwdguivar=
2
+ "
3
+ <table>
4
+ <row> <p align=\"right\">ScriptName:</p> <text name=\"a_scriptfilename\"/> </row>
5
+
6
+ </table>
7
+
8
+ <horizontal>
9
+ <button caption=\"ViewScript\" action=\"viewscript\"/>
10
+ <button caption=\"Cancel\" action=\"main\"/>
11
+
12
+ </horizontal>
13
+ <p>%displayscripttext%</p>
14
+
15
+ <horizontal>
16
+
17
+ <button caption=\"ListFiles\" action=\"listscripts\"/>
18
+ <button caption=\"Cancel\" action=\"main\"/>
19
+
20
+ </horizontal>
21
+ <p>%%listscriptresult%%</p>
22
+ </tab>"
23
+
24
+
25
+
@@ -0,0 +1,25 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"EditScriptsrwdshell\" caption=\"Edit Scripts\">
4
+ <table>
5
+ <row> <p> </row>
6
+ <row> <p align=\"right\">You can create a new record here or edit one</row>
7
+ <row> <b>The filename will automatically have a .sh added</b> <row>
8
+
9
+ <row> <p> </row>
10
+ </table>
11
+ <horizontal>
12
+ <button caption=\"Load Script\" action=\"loadscriptrecord\"/>
13
+ <button caption=\"Save Changes\" action=\"savescriptrecord\"/>
14
+ <button caption=\"Clear\" action=\"clearscriptscreendisplay\"/>
15
+
16
+ </horizontal>
17
+ <table>
18
+ <row> <p align=\"center\">FileName:</p> <text name=\"a_tmpscriptfilename\"/> </row>
19
+ <row> <p align=\"center\">Script Line:</p> <text name=\"a_scriptfirstline\"/> </row>
20
+ <row> <p align=\"center\">Comment Line:</p> <text name=\"a_scriptcommentline\"/> </row>
21
+ </table>
22
+ <p>%newdisplay%</p>
23
+
24
+ </tab>"
25
+
@@ -0,0 +1,24 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"scriptutilitiesrwdshell\" caption=\"Script Utilities\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">Script Title:</p> <text name=\"a_scriptfilename\"/> </row>
7
+ <row> <p align=\"right\">New Name:</p> <text name=\"a_changescriptname\"/> </row>
8
+
9
+ </table>
10
+
11
+ <horizontal>
12
+ <button caption=\"Rename Script \" action=\"changescriptname\"/>
13
+ <button caption=\"Delete Script\" action=\"deletescriptrecord\"/>
14
+ </horizontal>
15
+
16
+ <p>%%scriptfilechangeresult%%</p>
17
+ <horizontal>
18
+ <button caption=\"List Scripts\" action=\"listscripts\"/>
19
+
20
+
21
+ </horizontal>
22
+
23
+ <p>%%listscriptresult%%</p>
24
+ </tab>"
@@ -0,0 +1,16 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"shelleval\" caption=\"Shell Eval CMD\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">Shell Command:</p> <text name=\"a_shelleval\"/> </row>
7
+
8
+ </table>
9
+ <p>%result%</p>
10
+ <horizontal>
11
+ <button caption=\"Execute\" action=\"shelleval\"/>
12
+ <button caption=\"Cancel\" action=\"main\"/>
13
+
14
+ </horizontal>
15
+
16
+ </tab>"
@@ -0,0 +1,13 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"three\" caption=\"ruby\">
4
+ <table>
5
+ <row> <p align=\"right\">Ruby Command:</p> <text name=\"a_rubyeval\"/> </row>
6
+ </table>
7
+ <p>%rubydisplay%</p>
8
+ <horizontal>
9
+ <button caption=\"Execute\" action=\"rubyeval\"/>
10
+ <button caption=\"Cancel\" action=\"main\"/>
11
+ </horizontal>
12
+ </tab>"
13
+
@@ -0,0 +1,20 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"calendar\" caption=\"Show Month\">
4
+ <table>
5
+ <row> <p align=\"right\">Year:</p> <text name=\"a_year\"/> </row>
6
+ <row> <p align=\"right\">Month:</p> <text name=\"a_month\"/> </row>
7
+ </table>
8
+ <p>%showmonthresult%</p>
9
+ <horizontal>
10
+
11
+ <button caption=\"ShowMonth\" action=\"showmonth\"/>
12
+
13
+ <button caption=\"Cancel\" action=\"main\"/>
14
+
15
+
16
+ </horizontal>
17
+
18
+
19
+ </tab>"
20
+
@@ -0,0 +1,19 @@
1
+ $rwdguivar=
2
+ "
3
+ <tab name=\"rwdcalc\" caption=\"calc\">
4
+
5
+ <table>
6
+ <row> <p align=\"right\">First number:</p> <text name=\"a_calc\"/> </row>
7
+ <row> <p align=\"right\">Second number:</p> <text name=\"b_calc\"/> </row>
8
+ </table>
9
+ <p>%result%</p>
10
+ <horizontal>
11
+
12
+ <button caption=\"Multiply\" action=\"multiply\"/>
13
+ <button caption=\"Add\" action=\"add\"/>
14
+ </horizontal>
15
+
16
+ </tab>"
17
+
18
+
19
+
@@ -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,3 +1,4 @@
1
-
2
- <row> <p align="left">
3
- <a href=HowTo_RubyEval.html>Howto_RubyEval.html</a></p></row>
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"left\">
4
+ <a href=HowTo_RubyEval.html>Howto_RubyEval.html</a></p></row>"
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"left\">
4
+ <a href=HowTo_RwdDemo.txt>Howto_RwdDemo.txt</a></p></row>"
@@ -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
 
@@ -1,4 +1,6 @@
1
- <row> <p align="left">
2
- <a href=HowTo_TinkerWin2.txt>Howto_TinkerWin2.txt</a></p></row>
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"left\">
4
+ <a href=HowTo_TinkerWin2.txt>Howto_TinkerWin2.txt</a></p></row>"
3
5
 
4
6
 
@@ -0,0 +1,5 @@
1
+ $rwdguivar=
2
+ "
3
+ <row> <p align=\"left\">
4
+ <a href=HowTo_Shell.txt>Howto_Shell.txt</a></p></row>"
5
+
@@ -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
+
@@ -1,4 +1,6 @@
1
- <window name = "applicationversion" title="Application Version">
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"applicationversion\" title=\"Application Version\">
2
4
 
3
5
  <row> <p></row>
4
6
  <p>%versionappnamedisplay%</p>
@@ -12,6 +14,6 @@
12
14
  <cancel/>
13
15
  </horizontal>
14
16
 
15
- </window>
17
+ </window>"
16
18
 
17
19
 
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
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
+