rwdshell 0.9 → 0.92

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 (200) hide show
  1. data/code/dd0shelleval/changescriptname.rb +16 -0
  2. data/code/dd0shelleval/clearscriptscreendisplay.rb +9 -0
  3. data/code/dd0shelleval/deletescriptrecord.rb +20 -0
  4. data/code/{ek0shellscripts/em0listscripts.rb → dd0shelleval/listscripts.rb} +3 -2
  5. data/code/dd0shelleval/loadscriptrecord.rb +20 -0
  6. data/code/{ek0shellscripts/ek0playscript.rb → dd0shelleval/playscript.rb} +0 -0
  7. data/code/{cb7rubyeval/cb7rubyeval.rb → dd0shelleval/rubyeval.rb} +4 -2
  8. data/code/dd0shelleval/runrwdshellwindow.rb +9 -0
  9. data/code/dd0shelleval/rwdshellversion.rb +14 -0
  10. data/code/{ek0shellscripts/en0createnewscript.rb → dd0shelleval/savechangedscript.rb} +7 -6
  11. data/code/dd0shelleval/{dd0shelleval.rb → shelleval.rb} +0 -0
  12. data/code/{ek0shellscripts/em1viewscript.rb → dd0shelleval/viewscript.rb} +2 -2
  13. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +2 -1
  14. data/configuration/aa0rwdframework.cnf +5 -3
  15. data/configuration/ab1tinkerwin2.cnf +1 -0
  16. data/configuration/ek0playscripts.cnf +1 -0
  17. data/ev/net.rb +1 -1
  18. data/gui/aa2core/aa0rwdtop.rwd +4 -0
  19. data/gui/ek0shellscripts/1listplayscripts.rwd +17 -0
  20. data/gui/ek0shellscripts/2listscripts.rwd +25 -0
  21. data/gui/ek0shellscripts/3editscripts.rwd +25 -0
  22. data/gui/ek0shellscripts/4scriptutilities.rwd +24 -0
  23. data/gui/ek0shellscripts/6rwdshelleval.rwd +16 -0
  24. data/gui/ek0shellscripts/cb7rwdrubyeval.rwd +13 -0
  25. data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
  26. data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
  27. data/gui/lz1selectiontabend/endselectiontab.rwd +3 -0
  28. data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
  29. data/gui/{en/ub7rubyeval → ub7rubyeval}/rubyeval.rwd +4 -3
  30. data/gui/{en/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +9 -7
  31. data/gui/{nl/uu6rwdtinkerwin2documents → uu6rwdtinkerwin2documents}/uu5documents.rwd +4 -2
  32. data/gui/vv1docshellxp/vvdocshellxp.rwd +5 -0
  33. data/gui/ww0documentsend/ww0documentend.rwd +7 -0
  34. data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
  35. data/gui/{nl/xa1versionwindow → xa1versionwindow}/1appname.rwd +4 -2
  36. data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
  37. data/gui/xa5rwdtinkercallablewindow/9end.rwd +4 -0
  38. data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
  39. data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
  40. data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
  41. data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
  42. data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
  43. data/gui/xb1rwdtinkerbackwindow/9backend.rwd +6 -0
  44. data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
  45. data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
  46. data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
  47. data/gui/yg5rwdhelpabout/5version.rwd +10 -0
  48. data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
  49. data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
  50. data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
  51. data/gui/yl4rwdshellhelpabout/1appname.rwd +4 -0
  52. data/gui/yl4rwdshellhelpabout/3copyright.rwd +3 -0
  53. data/gui/yl4rwdshellhelpabout/5version.rwd +9 -0
  54. data/gui/yy5helpaboutend/helpscreenend.rwd +3 -0
  55. data/gui/za1applicationend/yy9rwdend.rwd +4 -0
  56. data/init.rb +74 -5
  57. data/installed/rwdshell-0.92.inf +14 -0
  58. data/installed/rwdtinkerwin2-0.5.inf +4 -12
  59. data/{code/al5languagefiles → lang}/alanguagehashbegin.rb +0 -0
  60. data/lang/en/rwdcore/languagefile.rb +3 -2
  61. data/lang/es/rwdcore/languagefile.rb +1 -2
  62. data/{code/al5languagefiles → lang}/languagehash.rb +0 -0
  63. data/lang/nl/rwdcore/languagefile.rb +1 -1
  64. data/lang/templangfile.rb +7 -0
  65. data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
  66. data/lang/wlocallangstart.rb +5 -0
  67. data/lang/xlocallangfile.rb +7 -0
  68. data/lang/zlocallangend.rb +2 -0
  69. data/rwd_files/HowTo_Shell.txt +136 -0
  70. data/rwd_files/HowTo_Tinker.txt +32 -0
  71. data/scripts/echo2.sh +2 -0
  72. data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
  73. data/zips/rwdwshell-0.91.zip +0 -0
  74. data/zips/wrubyslippers-0.93.zip +0 -0
  75. metadata +64 -142
  76. data/code/al5languagefiles/templangfile.rb +0 -6
  77. data/code/gh9calendar/gh9calendar.rb +0 -16
  78. data/code/ii3calculator/ca2multiply.rb +0 -5
  79. data/code/ii3calculator/ca4add.rb +0 -5
  80. data/code/lm1installapplets/ll5listzips.rb +0 -14
  81. data/code/lm1installapplets/lm1installapplet.rb +0 -20
  82. data/code/ssdiagnostictab/diagnostictab.rb +0 -20
  83. data/configuration/gh1rwdcalendar.cnf +0 -26
  84. data/extras/cal.rb +0 -166
  85. data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
  86. data/gui/en/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  87. data/gui/en/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  88. data/gui/en/ek0shellscripts/ek0playscript.rwd +0 -15
  89. data/gui/en/ek0shellscripts/el0listscripts.rwd +0 -25
  90. data/gui/en/ek0shellscripts/en0createscripts.rwd +0 -24
  91. data/gui/en/hl9calendar/hl9calendar.rwd +0 -18
  92. data/gui/en/ii3calculator/ca0rwdcalc.rwd +0 -17
  93. data/gui/en/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  94. data/gui/en/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  95. data/gui/en/lz1selectiontabend/endselectiontab.rwd +0 -1
  96. data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  97. data/gui/en/uk5scriptrunnerdocuments/documents.rwd +0 -3
  98. data/gui/en/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
  99. data/gui/en/vv1docshellxp/vvdocshellxp.rwd +0 -4
  100. data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
  101. data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  102. data/gui/en/xa1versionwindow/1appname.rwd +0 -17
  103. data/gui/en/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  104. data/gui/en/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  105. data/gui/en/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  106. data/gui/en/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  107. data/gui/en/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  108. data/gui/en/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  109. data/gui/en/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  110. data/gui/en/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  111. data/gui/en/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  112. data/gui/en/yg5rwdhelpabout/1appname.rwd +0 -2
  113. data/gui/en/yg5rwdhelpabout/3copyright.rwd +0 -1
  114. data/gui/en/yg5rwdhelpabout/5version.rwd +0 -9
  115. data/gui/en/yg6rwdwin2helpabout/1appname.rwd +0 -2
  116. data/gui/en/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  117. data/gui/en/yg6rwdwin2helpabout/5version.rwd +0 -9
  118. data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
  119. data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
  120. data/gui/es/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  121. data/gui/es/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  122. data/gui/es/ek0shellscripts/ek0playscript.rwd +0 -15
  123. data/gui/es/ek0shellscripts/el0listscripts.rwd +0 -25
  124. data/gui/es/ek0shellscripts/en0createscripts.rwd +0 -24
  125. data/gui/es/hl9calendar/hl9calendar.rwd +0 -18
  126. data/gui/es/ii3calculator/ca0rwdcalc.rwd +0 -17
  127. data/gui/es/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  128. data/gui/es/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  129. data/gui/es/lz1selectiontabend/endselectiontab.rwd +0 -1
  130. data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  131. data/gui/es/ub7rubyeval/rubyeval.rwd +0 -3
  132. data/gui/es/uk5scriptrunnerdocuments/documents.rwd +0 -3
  133. data/gui/es/uu5rwddocuments/uu5documents.rwd +0 -13
  134. data/gui/es/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
  135. data/gui/es/vv1docshellxp/vvdocshellxp.rwd +0 -4
  136. data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
  137. data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  138. data/gui/es/xa1versionwindow/1appname.rwd +0 -17
  139. data/gui/es/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  140. data/gui/es/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  141. data/gui/es/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  142. data/gui/es/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  143. data/gui/es/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  144. data/gui/es/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  145. data/gui/es/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  146. data/gui/es/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  147. data/gui/es/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  148. data/gui/es/yg5rwdhelpabout/1appname.rwd +0 -2
  149. data/gui/es/yg5rwdhelpabout/3copyright.rwd +0 -1
  150. data/gui/es/yg5rwdhelpabout/5version.rwd +0 -9
  151. data/gui/es/yg6rwdwin2helpabout/1appname.rwd +0 -2
  152. data/gui/es/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  153. data/gui/es/yg6rwdwin2helpabout/5version.rwd +0 -9
  154. data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
  155. data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
  156. data/gui/nl/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
  157. data/gui/nl/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
  158. data/gui/nl/ek0shellscripts/ek0playscript.rwd +0 -15
  159. data/gui/nl/ek0shellscripts/el0listscripts.rwd +0 -25
  160. data/gui/nl/ek0shellscripts/en0createscripts.rwd +0 -24
  161. data/gui/nl/hl9calendar/hl9calendar.rwd +0 -18
  162. data/gui/nl/ii3calculator/ca0rwdcalc.rwd +0 -17
  163. data/gui/nl/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
  164. data/gui/nl/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
  165. data/gui/nl/lz1selectiontabend/endselectiontab.rwd +0 -1
  166. data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
  167. data/gui/nl/ub7rubyeval/rubyeval.rwd +0 -3
  168. data/gui/nl/uk5scriptrunnerdocuments/documents.rwd +0 -3
  169. data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
  170. data/gui/nl/vv1docshellxp/vvdocshellxp.rwd +0 -4
  171. data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
  172. data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
  173. data/gui/nl/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
  174. data/gui/nl/xa5rwdtinkercallablewindow/9end.rwd +0 -4
  175. data/gui/nl/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
  176. data/gui/nl/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
  177. data/gui/nl/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
  178. data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
  179. data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
  180. data/gui/nl/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
  181. data/gui/nl/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
  182. data/gui/nl/yg5rwdhelpabout/1appname.rwd +0 -2
  183. data/gui/nl/yg5rwdhelpabout/3copyright.rwd +0 -1
  184. data/gui/nl/yg5rwdhelpabout/5version.rwd +0 -9
  185. data/gui/nl/yg6rwdwin2helpabout/1appname.rwd +0 -2
  186. data/gui/nl/yg6rwdwin2helpabout/3copyright.rwd +0 -1
  187. data/gui/nl/yg6rwdwin2helpabout/5version.rwd +0 -9
  188. data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
  189. data/installed/rwdcalendar-0.4.inf +0 -6
  190. data/installed/rwdrubyeval-0.3.inf +0 -5
  191. data/installed/rwdscriptrunner-0.3.inf +0 -9
  192. data/installed/rwdshellxp-0.4.inf +0 -5
  193. data/rwd_files/HowTo_Scriptrunner.txt +0 -171
  194. data/rwd_files/HowTo_Tinker.html +0 -370
  195. data/tests/rwdtinkertestEN.rb +0 -87
  196. data/tests/temptest.out +0 -18
  197. data/zips/rwdaviewphoto-0.3.zip +0 -0
  198. data/zips/rwdrefreshacpi-0.1.zip +0 -0
  199. data/zips/rwdscriptrunner-0.3.zip +0 -0
  200. data/zips/rwdwtinkerwin2-0.5.zip +0 -0
@@ -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 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 = " "
@@ -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,3 @@
1
1
 
2
2
  $shellscript_directory = "scripts"
3
+ RwdShellVersion = "0.92"
data/ev/net.rb CHANGED
@@ -4,7 +4,7 @@ require "net/http"
4
4
  require "socket"
5
5
  require "uri"
6
6
  require "cgi"
7
- # require "md5"
7
+ require "md5"
8
8
  require "thread"
9
9
 
10
10
  $proxy = ENV["PROXY"] if $proxy.nil?
@@ -0,0 +1,4 @@
1
+ $rwdguivar=
2
+ "<application>
3
+ <window name=\"main\" title=\"RwdShell - Command Line through 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,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>"
@@ -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
+
@@ -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
+