rwddemo 0.90 → 0.91

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 (95) hide show
  1. data/Readme.txt +25 -6
  2. data/code/{rwdcalc → superant.com.rwdcalc}/ca2multiply.rb +0 -0
  3. data/code/{rwdcalc → superant.com.rwdcalc}/changescriptname.rb +0 -0
  4. data/code/superant.com.rwdcalc/clearrubyscriptscreendisplay.rb +9 -0
  5. data/code/{rwdcalc → superant.com.rwdcalc}/clearscriptscreendisplay.rb +0 -0
  6. data/code/{rwdcalc → superant.com.rwdcalc}/deletescriptrecord.rb +0 -0
  7. data/code/{rwdcalc → superant.com.rwdcalc}/fadd.rb +0 -0
  8. data/code/{rwdcalc → superant.com.rwdcalc}/frwdcleartape.rb +0 -0
  9. data/code/{rwdcalc → superant.com.rwdcalc}/frwddivide.rb +0 -0
  10. data/code/{rwdcalc → superant.com.rwdcalc}/frwdmultiply.rb +0 -0
  11. data/code/{rwdcalc → superant.com.rwdcalc}/frwdsubtract.rb +0 -0
  12. data/code/{rwdcalc → superant.com.rwdcalc}/helptexthashrwdcalc.rb +0 -0
  13. data/code/{rwdcalc → superant.com.rwdcalc}/listscripts.rb +0 -0
  14. data/code/superant.com.rwdcalc/loadrubyrecord.rb +20 -0
  15. data/code/{rwdcalc → superant.com.rwdcalc}/loadscriptrecord.rb +0 -0
  16. data/code/{rwdcalc → superant.com.rwdcalc}/mathcommands.rb +0 -0
  17. data/code/{rwdcalc → superant.com.rwdcalc}/openhelpwindowrwdcalc.rb +0 -0
  18. data/code/{rwdcalc → superant.com.rwdcalc}/playscript.rb +1 -1
  19. data/code/{rwdcalc → superant.com.rwdcalc}/renamecalcrecord.rb +0 -0
  20. data/code/{rwdcalc → superant.com.rwdcalc}/runrwdcalcwindow.rb +0 -0
  21. data/code/{rwdcalc → superant.com.rwdcalc}/rwdadd.rb +0 -0
  22. data/code/{rwdcalc → superant.com.rwdcalc}/rwdcleartape.rb +0 -0
  23. data/code/{rwdcalc → superant.com.rwdcalc}/rwddivision.rb +0 -0
  24. data/code/{rwdcalc → superant.com.rwdcalc}/rwdsubtraction.rb +0 -0
  25. data/code/{rwdcalc → superant.com.rwdcalc}/savechangedscript.rb +0 -0
  26. data/code/superant.com.rwdcalc/saverubyscript.rb +20 -0
  27. data/code/{rwdcalc → superant.com.rwdcalc}/viewscript.rb +0 -0
  28. data/code/superant.com.rwdshell/helptexthashshell.rb +24 -0
  29. data/code/superant.com.rwdshell/loadconfigurationrecord.rb +2 -2
  30. data/code/superant.com.rwdshell/openhelpwindowshell.rb +27 -0
  31. data/code/superant.com.rwdshell/playrubyscript.rb +2 -1
  32. data/code/superant.com.rwdshell/playscript.rb +2 -1
  33. data/code/superant.com.rwdshell/shelleval.rb +1 -1
  34. data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +4 -1
  35. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +5 -3
  36. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +10 -6
  37. data/configuration/language.cnf +3 -1
  38. data/configuration/language.dist +7 -0
  39. data/configuration/rwdapplicationidentity.cnf +2 -2
  40. data/configuration/rwdapplicationidentity.dist +3 -0
  41. data/configuration/rwdcalc.cnf +5 -2
  42. data/configuration/rwdcalc.dist +7 -0
  43. data/configuration/rwdcalendar.cnf +7 -1
  44. data/configuration/rwdcalendar.dist +10 -0
  45. data/configuration/rwdshell.cnf +3 -0
  46. data/configuration/rwdshell.dist +3 -0
  47. data/configuration/rwdtinker.cnf +3 -4
  48. data/configuration/rwdtinker.dist +15 -0
  49. data/configuration/tinkerwin2variables.cnf +6 -1
  50. data/configuration/tinkerwin2variables.dist +17 -0
  51. data/extras/cmdline_parse +47 -0
  52. data/extras/config_file +69 -0
  53. data/extras/errorMsg +19 -0
  54. data/extras/icalendar.rb +18 -0
  55. data/extras/makePlaylist +34 -0
  56. data/extras/mp3controld +289 -0
  57. data/extras/playlist +186 -0
  58. data/extras/rconftool.rb +380 -0
  59. data/extras/showHelp +18 -0
  60. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  61. data/gui/frontwindow0/{superant.com.tinkercalendar → superant.com.rwdcalendar}/hl9calendar.rwd +0 -0
  62. data/gui/frontwindow0/superant.com.shellscripts/1listplayscripts.rwd +1 -1
  63. data/gui/frontwindow0/superant.com.shellscripts/2listscripts.rwd +2 -2
  64. data/gui/frontwindow0/superant.com.shellscripts/6rwdshelleval.rwd +3 -4
  65. data/gui/frontwindowtdocuments/superant.com.shelldocument/vvdocshellxp.rwd +1 -0
  66. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +5 -5
  67. data/init.rb +42 -37
  68. data/rwd_files/HowTo_RwdCalc.txt +110 -0
  69. data/rwd_files/HowTo_Shell.txt +14 -1
  70. data/rwd_files/HowTo_Tinker.txt +16 -0
  71. data/rwdconfig.cnf +6 -0
  72. data/rwdconfig.dist +6 -0
  73. data/scripts/test02.rb +1 -1
  74. data/tests/checkdepends.sh +4 -0
  75. data/tests/cleancnf.sh +5 -0
  76. data/tests/makedist.rb +29 -0
  77. data/tests/rdep.rb +354 -0
  78. metadata +62 -48
  79. data/code/superant.com.rwdshell/helptexthashrubyslippers.rb +0 -81
  80. data/code/superant.com.rwdshell/openhelpwindowrubyslippers.rb +0 -50
  81. data/configuration/playscripts.cnf +0 -2
  82. data/configuration/rwdcalcversion.cnf +0 -2
  83. data/configuration/rwdcalendarversion.cnf +0 -4
  84. data/configuration/rwdshellversion.cnf +0 -2
  85. data/configuration/rwdtinkerversion.cnf +0 -2
  86. data/configuration/tinkerwin2version.cnf +0 -3
  87. data/installed/rwdtinkerwin2-0.5.inf +0 -8
  88. data/lang/alanguagehashbegin.rb +0 -4
  89. data/lang/languagehash.rb +0 -4
  90. data/lang/templangfile.rb +0 -22
  91. data/lang/vlanguagehashend.rb +0 -6
  92. data/lang/wlocallangstart.rb +0 -5
  93. data/lang/xlocallangfile.rb +0 -22
  94. data/lang/zlocallangend.rb +0 -2
  95. data/rwddemo-0.90.gem +0 -0
data/Readme.txt CHANGED
@@ -1,14 +1,11 @@
1
1
  = RwdTinker framework for RubyWebDialogs
2
2
 
3
-
4
3
  RwdTinker is a web brower interface to and system for developing programs
5
4
 
6
5
  == Usage
7
6
 
8
-
9
7
  How to Use the Tinker framework Program (rwdtinker)
10
8
 
11
-
12
9
  1. stand alone application
13
10
  2. framework for building applications
14
11
  3. Open brower windows with html documents
@@ -22,13 +19,10 @@ ruby init.rb
22
19
  Then point your web browser to:
23
20
  http://localhost:7705/
24
21
 
25
-
26
22
  == Viewing installed Applets:
27
-
28
23
 
29
24
  Go to "List Scripts" tab
30
25
 
31
-
32
26
  You can get a list of all installed applets by clicking the listfiles button
33
27
 
34
28
  To see the text of a install file
@@ -233,11 +227,36 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
233
227
  Thanks, Steven Gibson
234
228
 
235
229
  == Changelog
230
+ version 1.56
231
+ refactored gui files to load without intermediate files
232
+ refactored code files to load without intermediate files
233
+
234
+ version 1.55
235
+ refactored language files to load without intermediate files
236
+ refactored language files to load without intermediate files
237
+
238
+ version 1.54
239
+ refactored rwdtinker applet installation tab - remote gem and local installs share menu buttons
240
+ corrected some program logic errors in remote control code including close socket
241
+
242
+ version 1.53
243
+ added search of Gems repository for rwdtinker gems
244
+ download and install of Gems
245
+
246
+ version 1.52
247
+ added function to install applets from gem directory
248
+
249
+ version 1.51
250
+ changed return to main
251
+ changed configuration of remote ports
252
+ updated context sensitive help
253
+
236
254
  version 1.50
237
255
  changed unzip applet to be internal code - no exec to unzip program
238
256
  changed order of tabs on back window - list applets now first
239
257
  added rwdwcalc applet in to zips directory
240
258
  changed width of text fields with help from RubyWebDialogs author
259
+ changed listing of help options, vertical instead of horizontal
241
260
 
242
261
  version 1.49
243
262
  added demon function for remote queries
@@ -0,0 +1,9 @@
1
+ # this method clears the on screen variables
2
+ def clearrubyscreendisplay
3
+
4
+ @a_rubyscriptfilename = ""
5
+ @a_rubyscriptrecord = ""
6
+
7
+
8
+
9
+ end
@@ -0,0 +1,20 @@
1
+ # this method views an existing address record
2
+ def loadrubyscriptrecord
3
+
4
+ require 'fileutils'
5
+ $currentrubyname = @a_rubyscriptfilename
6
+
7
+ begin # exception trapped block
8
+
9
+
10
+ fileName = $rubyscript_directory + "/" + $currentrubyname + ".rb"
11
+
12
+ fd = File.open(fileName,"r")
13
+ @a_rubyscriptrecord = fd.read
14
+ @newrubyrecord = @a_rubyscriptrecord
15
+ fd.close
16
+ rescue SystemCallError, StandardError
17
+ $stderr.print "system call error: " + $!
18
+ end # exception rescue
19
+
20
+ end
@@ -4,7 +4,7 @@
4
4
  nametext = "%s" % [@a_calcscriptcmd]
5
5
 
6
6
  begin # exception trapped block
7
- fileName = "scripts/" + nametext + ".math"
7
+ fileName = $calcscript_directory +"/"+ nametext + ".math"
8
8
 
9
9
 
10
10
  calcfile_contents = File.read( fileName)
@@ -0,0 +1,20 @@
1
+
2
+ def saverubyrecord # this method adds a new script file
3
+ require 'fileutils'
4
+ if @a_rubyscriptfilename
5
+ newdata =@a_rubyscriptrecord.to_s
6
+ fullnewname = @a_rubyscriptfilename.to_s + ".rb"
7
+ begin # exception trapped block
8
+ fileName = File.join( $rubyscript_directory, fullnewname )
9
+ puts fileName
10
+ fd = File.open(fileName,"w")
11
+ fd.print(newdata) # save the record info to the file
12
+ fd.close
13
+ @newrubyresult=newdata # show the record info in the browser
14
+ $currentscriptname = "%s" % [@a_rubyscriptfilename] # grab the new filename to create
15
+
16
+ rescue
17
+ @newrubyresult = "\n" + "system error in createnew method"
18
+ end # exception rescue
19
+ end
20
+ end # end of createnew
@@ -0,0 +1,24 @@
1
+
2
+
3
+ Helptext.update( :rwdshell_help => " You can get a list of all scripts by clicking the listfiles button
4
+
5
+ To see the text of a script
6
+ Type in the name of the script you want.
7
+
8
+ type it without the sh ending
9
+ myscript
10
+
11
+ Then click the 'ViewScript' button
12
+
13
+ If it finds the script it will open it.
14
+ It displays the text the search box.",
15
+ :ShellEnvironment_help => "You can view the setup that
16
+ is on your system.
17
+
18
+ Click on Fill
19
+ This will show your setup
20
+
21
+ You can edit the commands or comment
22
+
23
+ Click on the 'save' then reload variables"
24
+ )
@@ -3,13 +3,13 @@
3
3
 
4
4
  require 'fileutils'
5
5
 
6
- @a_rshellconfigurationfilename = "playscripts.cnf"
6
+ @a_rshellconfigurationfilename = "rwdshell.cnf"
7
7
 
8
8
 
9
9
  begin # exception trapped block
10
10
 
11
11
  Dir.chdir($progdir)
12
- fileName = File.join(ConfigurationDir, "playscripts.cnf")
12
+ fileName = File.join(ConfigurationDir, "rwdshell.cnf")
13
13
 
14
14
 
15
15
  fd = File.open(fileName,"r")
@@ -0,0 +1,27 @@
1
+ # this code is to call the help window
2
+ def runhelpwindowrwdshell
3
+
4
+ $help_topic = "rwdshell_help"
5
+ if @rwd_tab == "scriptlister"
6
+ $help_topic = "rwdshell_help"
7
+ end
8
+
9
+ if @rwd_tab == "viewrwdshellconfiguration"
10
+ $help_topic = "ShellEnvironment_help"
11
+ end
12
+
13
+
14
+
15
+ $helptopicsarray = $helptopicsarray | ["rwdshell_help", "ShellEnvironment_help"]
16
+ $previouswindow = @rwd_window
17
+ $previoustab = @rwd_tab
18
+
19
+
20
+ if @rwd_window != "rwdtinkerhelpwindow"
21
+ $previouswindow = @rwd_window
22
+ $previoustab = @rwd_tab
23
+ end
24
+ runhelpwindow
25
+ end
26
+
27
+
@@ -4,7 +4,8 @@
4
4
  nametext = "%s" % [@a_rubyscriptcmd]
5
5
 
6
6
  begin # exception trapped block
7
- fileName = "scripts/" + nametext + ".rb"
7
+
8
+ fileName = $shellscript_directory + "/" + nametext + ".rb"
8
9
 
9
10
 
10
11
  rubyfile_contents = File.read( fileName)
@@ -4,7 +4,8 @@
4
4
  nametext = "%s" % [@a_scriptcmd]
5
5
 
6
6
  begin # exception trapped block
7
- fileName = "scripts/" + nametext + ".sh"
7
+
8
+ fileName = $shellscript_directory + "/" + nametext + ".sh"
8
9
 
9
10
  fd = File.open(fileName,"r")
10
11
 
@@ -5,7 +5,7 @@
5
5
  commandtext = "%s " % [@a_shelleval]
6
6
 
7
7
  begin # exception trapped block
8
- system(commandtext+' > temp.output')
8
+ commandtextnext = File.join($shellscript_directory,commandtext)
9
9
 
10
10
 
11
11
  @result =`#{commandtext}`
@@ -9,6 +9,7 @@
9
9
 
10
10
  rwdtinker applets packaged as RubyGems can be used if you have RubyGems installed.
11
11
  You can download rwdtinker gems at the 'Install Remote Applets' tab
12
+ to install applets you need the ruby zlib library installed
12
13
  ",
13
14
  :applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'
14
15
  To see the text of a install file
@@ -32,7 +33,9 @@
32
33
  chose the applet you want\n
33
34
  click on 'install applet'\n
34
35
  If all goes well the applet should be installed.\n
35
- You will need to restart rwdtinker to see the new screens",
36
+ You will need to restart rwdtinker to see the new screens
37
+ to install applets you need the ruby zlib library installed",
38
+
36
39
  :applet_tinkerbackeditconfiguration => " You can edit the configuration
37
40
 
38
41
  Remember to reload the configuration variables if you want your
@@ -1,10 +1,12 @@
1
1
  # code in install rwdtinker applets - now uses ruby.zip module
2
2
  def installapplet
3
- require 'fileutils'
4
- require 'extras/zip/zip'
3
+
5
4
  nametext = "%s" % [@a_installapplet]
6
-
5
+
7
6
  begin # exception trapped block
7
+
8
+
9
+ require 'extras/zip/zip'
8
10
  fullname = nametext + ".zip"
9
11
  fileName = File.join($zipslocation,fullname)
10
12
 
@@ -10,19 +10,23 @@
10
10
 
11
11
  fd.each { |oneline|
12
12
  if count == 1
13
- commandline = "rm -r " + oneline
14
- system( commandline+' > temp.output' )
13
+ if File.exist?(oneline.chop)
14
+ FileUtils.rm_rf( oneline.chop)
15
+ end
16
+
15
17
  end
16
18
  count = 1
17
19
  }
18
20
  fd.close
19
- commandline = "rm " + fileName
21
+
22
+ FileUtils.rm_rf( fileName)
23
+
20
24
 
21
- system(commandline)
22
25
  @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
23
26
 
24
27
  rescue
25
- @removeapplettext = "\n" + "error"
26
- end # exception rescue
28
+ @removeapplettext = "\n" + "error"
29
+
30
+ end # exception rescue
27
31
 
28
32
  end
@@ -1,4 +1,6 @@
1
-
1
+ ##VERSION:1.57
2
+ #language selection file
3
+ ##NAME: $lang:0
2
4
  #$lang = "jp"
3
5
  $lang= "en"
4
6
  #$lang= "nl"
@@ -0,0 +1,7 @@
1
+ ##VERSION:1.57
2
+ #language selection file
3
+ ##NAME:$lang:0
4
+ #$lang = "jp"
5
+ $lang= "en"
6
+ #$lang= "nl"
7
+ #$lang= "es"
@@ -1,3 +1,3 @@
1
-
2
- $rwdapplicationidentity = "rwdtinker main application"
1
+ ##VERSION:1.57
2
+ $rwdapplicationidentity = "rwddemo application"
3
3
 
@@ -0,0 +1,3 @@
1
+ ##VERSION:1.57
2
+ $rwdapplicationidentity = "rwddemo application"
3
+
@@ -1,4 +1,7 @@
1
-
1
+ ##VERSION:0
2
2
  $frunningtotal = ""
3
3
  $runningtotal = ""
4
- $calcscript_directory = "scripts"
4
+ ##NAME:$calcscript_directory
5
+ $calcscript_directory = "scripts"
6
+ $rubyscript_directory = "scripts"
7
+ RwdcalcVersion = "0.50"
@@ -0,0 +1,7 @@
1
+ ##VERSION:0
2
+ $frunningtotal = ""
3
+ $runningtotal = ""
4
+ ##NAME:$calcscript_directory
5
+ $calcscript_directory = "scripts"
6
+ $rubyscript_directory = "scripts"
7
+ RwdcalcVersion = "0.50"
@@ -1,4 +1,10 @@
1
-
1
+ ##VERSION:0.97
2
+ # rwdcalendar
3
+ ##NAME: $extras_directory:0
2
4
  $extras_directory = "extras"
3
5
 
4
6
 
7
+
8
+
9
+
10
+
@@ -0,0 +1,10 @@
1
+ ##VERSION:0.97
2
+ # rwdcalendar
3
+ ##NAME:$extras_directory:0
4
+ $extras_directory = "extras"
5
+
6
+
7
+
8
+
9
+
10
+
@@ -0,0 +1,3 @@
1
+ ##VERSION:0.97
2
+ $shellscript_directory = "scripts"
3
+ RwdShellVersion = "0.97"
@@ -0,0 +1,3 @@
1
+ ##VERSION:0.97
2
+ $shellscript_directory = "scripts"
3
+ RwdShellVersion = "0.97"
@@ -1,12 +1,9 @@
1
-
1
+ ##VERSION:1.58
2
2
  ConfigurationDir = "configuration" # for use in program - init.rb has this value without using this constant
3
3
  CodeName = "rwdtinker"
4
4
  CodeNameFile = CodeName + ".rb"
5
- LangNameFile = "rwdlanguage.rb"
6
5
  RWDFile = "rwdtinker.rwd"
7
6
  LangDir = "lang"
8
- TempLangHashFile = LangDir + "/" + "templangfile.rb"
9
- LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
10
7
  CodeDir = "code"
11
8
  GuiDir = "gui"
12
9
  $help_topic = "general_help"
@@ -14,3 +11,5 @@ LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
14
11
  $prevouswindow ="main"
15
12
  $rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
16
13
  $port = 7705
14
+
15
+ RwdTinkerVersion = "1.58"