rwdschedule 0.98 → 0.99

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/Readme.txt +226 -400
  2. data/code/01rwdcore/01rwdcore.rb +16 -16
  3. data/code/01rwdcore/jumplinkcommand.rb +26 -0
  4. data/code/01rwdcore/openhelpwindow.rb +26 -26
  5. data/code/01rwdcore/returntomain.rb +8 -8
  6. data/code/01rwdcore/rundocuments.rb +10 -0
  7. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  8. data/code/01rwdcore/runhelpabout.rb +10 -0
  9. data/code/01rwdcore/rwdtinkerversion.rb +12 -13
  10. data/code/01rwdcore/rwdwindowreturn.rb +3 -5
  11. data/code/01rwdcore/selectiontab.rb +9 -0
  12. data/code/01rwdcore/test_cases.rb +81 -98
  13. data/code/01rwdcore/test_harness.rb +8 -10
  14. data/code/01rwdcore/uploadreturns.rb +60 -60
  15. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
  16. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +15 -21
  17. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
  18. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
  19. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
  20. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
  21. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
  22. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
  23. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
  24. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
  25. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
  26. data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
  27. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
  28. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
  29. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
  30. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
  31. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  32. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
  33. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
  34. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
  35. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
  36. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
  37. data/code/superant.com.schedule/jumplinkupdate.rb +11 -0
  38. data/configuration/language.dist +1 -1
  39. data/configuration/rwdapplicationidentity.dist +2 -2
  40. data/configuration/rwdschedule.dist +2 -2
  41. data/configuration/rwdtinker.dist +3 -3
  42. data/configuration/tinkerwin2variables.dist +1 -1
  43. data/gui/00coreguibegin/applicationguitop.rwd +1 -1
  44. data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
  45. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
  46. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/70rwddiagnostics.rwd +0 -17
  47. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +12 -4
  48. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m01menubegin.rwd +12 -4
  49. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  50. data/init.rb +228 -228
  51. data/rwd_files/HowTo_Schedule.txt +6 -0
  52. data/rwd_files/HowTo_Tinker.txt +11 -0
  53. data/rwdconfig.dist +4 -2
  54. data/tests/makedist.rb +36 -7
  55. metadata +12 -36
  56. data/extras/cmdline_parse +0 -47
  57. data/extras/config_file +0 -69
  58. data/extras/errorMsg +0 -19
  59. data/extras/makePlaylist +0 -34
  60. data/extras/mp3controld +0 -289
  61. data/extras/playlist +0 -186
  62. data/extras/showHelp +0 -18
  63. data/gui/frontwindow0/superant.com.zmenus/m01menubegin.rwd +0 -10
  64. data/gui/frontwindow0/superant.com.zmenus/m02menu.rwd +0 -36
  65. data/gui/frontwindow0/superant.com.zmenus/m03menu.rwd +0 -15
  66. data/gui/frontwindow0/superant.com.zmenus/m85menu.rwd +0 -21
  67. data/gui/frontwindow0/superant.com.zmenus/m88menu.rwd +0 -12
  68. data/gui/frontwindow0/superant.com.zmenus/m99menuend.rwd +0 -3
  69. data/gui/frontwindowselections/superant.com.rwdscheduleselectiontab/rwdschedulessyncselectiontab.rwd +0 -12
  70. data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
  71. data/gui/frontwindowselections/superant.com.schedulebackselection/rwdscheduleiscselectiontab.rwd +0 -12
  72. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m02menu.rwd +0 -36
  73. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m03menu.rwd +0 -11
  74. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m85menu.rwd +0 -21
  75. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m88menu.rwd +0 -12
  76. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m99menuend.rwd +0 -3
  77. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m02menu.rwd +0 -36
  78. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m03menu.rwd +0 -12
  79. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m85menu.rwd +0 -21
  80. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m88menu.rwd +0 -12
  81. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m99menuend.rwd +0 -3
  82. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
  83. data/tests/rwdtinkertestEN.rb +0 -163
  84. data/tests/test.result +0 -32
@@ -1,18 +1,19 @@
1
- def openappletname
2
- require 'fileutils'
3
- nametext = "%s" % [@a_installlist]
4
-
5
- begin # exception trapped block
6
- fileName = "installed/" + nametext + ".inf"
7
-
8
- fd = File.open(fileName,"r")
9
- @displaytext = " "
10
- while ! fd.eof?
11
- @displaytext = fd.read
12
- end
13
- fd.close
14
- rescue
15
- @displaytext = "\n" + "error"
16
- end # exception rescue
1
+ def openappletname
2
+ require 'fileutils'
3
+ nametext = "%s" % [@a_installlist]
4
+
5
+ begin # exception trapped block
6
+ fileName = "installed/" + nametext + ".inf"
7
+
8
+ fd = File.open(fileName,"r")
9
+ @displaytext = " "
10
+ while ! fd.eof?
11
+ @displaytext = fd.read
12
+ end
13
+ fd.close
14
+ rescue
15
+ @displaytext = "\n" + "error"
16
+ end # exception rescue
17
+
18
+ end
17
19
 
18
- end
@@ -1,42 +1,42 @@
1
1
  # this code is to call the help window
2
2
  def runhelpwindowtinkerwin2
3
-
4
- # $helptopicsarray = $helptopicsarray | [""]
5
-
6
- $help_topic = "tinkerwin2_help"
7
- if @rwd_tab == "rwdzipslister"
8
- $help_topic = "tinkerwin2_help"
9
- end
10
-
11
- if @rwd_tab == "filelister"
12
- $help_topic = "applet_viewing"
13
-
14
- end
15
- if @rwd_tab == "zipslister"
16
- $help_topic = "applet_installation"
17
-
18
- end
19
- if @rwd_tab == "editconfigurationfile"
20
- $help_topic = "applet_tinkerbackeditconfiguration"
21
-
22
- end
23
- if @rwd_tab == "rwdremotecontrol"
24
- $help_topic = "remote_control"
25
-
26
- end
27
- if @rwd_tab == "superantcomremotezipsinstall"
28
- $help_topic = "remotegemapplet_install"
29
- end
30
-
31
-
32
- if @rwd_window != "rwdtinkerhelpwindow"
33
- $previouswindow = @rwd_window
34
- $previoustab = @rwd_tab
35
- else
36
- $previouswindow = @rwd_window
37
- $previoustab = @rwd_tab
38
- end
39
- runhelpwindow
3
+
4
+ # $helptopicsarray = $helptopicsarray | [""]
5
+
6
+ $help_topic = "tinkerwin2_help"
7
+ if @rwd_tab == "rwdzipslister"
8
+ $help_topic = "tinkerwin2_help"
9
+ end
10
+
11
+ if @rwd_tab == "filelister"
12
+ $help_topic = "applet_viewing"
13
+
14
+ end
15
+ if @rwd_tab == "zipslister"
16
+ $help_topic = "applet_installation"
17
+
18
+ end
19
+ if @rwd_tab == "editconfigurationfile"
20
+ $help_topic = "applet_tinkerbackeditconfiguration"
21
+
22
+ end
23
+ if @rwd_tab == "rwdremotecontrol"
24
+ $help_topic = "remote_control"
25
+
26
+ end
27
+ if @rwd_tab == "superantcomremotezipsinstall"
28
+ $help_topic = "remotegemapplet_install"
29
+ end
30
+
31
+
32
+ if @rwd_window != "rwdtinkerhelpwindow"
33
+ $previouswindow = @rwd_window
34
+ $previoustab = @rwd_tab
35
+ else
36
+ $previouswindow = @rwd_window
37
+ $previoustab = @rwd_tab
38
+ end
39
+ runhelpwindow
40
40
  end
41
41
 
42
42
 
@@ -1,24 +1,24 @@
1
1
  # This tinker method is to retrieve the list of rwdzip applets available to install from the remote repository
2
-
3
2
  def superantcomremotegemlist
4
- gemcommandoption = "search --remote "
5
- gemfilename = "rwdzip"
6
- commandtext = "gem search --remote rwdzip"
7
- commandtemp = $xpcommand + commandtext
8
- begin # exception trapped block
9
-
10
- tempremotegemappletsresult = `#{commandtemp} 2>&1`
11
- @superantcomremotegemappletsfullresult = tempremotegemappletsresult
12
- fileList = tempremotegemappletsresult.split(/\n/).delete_if { |x| ! (x =~ /\Arwdzip/) }
13
-
14
- @superantcomremotegemappletsresult = fileList.rwd_method("superantcomremotegemappletdirsname")
15
- rescue SystemCallError, StandardError
16
- @superantcomremotegemappletsresult = "system call error: " + $!
17
- end # exception rescue
3
+ gemcommandoption = "search --remote "
4
+ gemfilename = "rwdzip"
5
+ commandtext = "gem search --remote rwdzip"
6
+ commandtemp = $xpcommand + commandtext
7
+ begin # exception trapped block
8
+
9
+ tempremotegemappletsresult = `#{commandtemp} 2>&1`
10
+ @superantcomremotegemappletsfullresult = tempremotegemappletsresult
11
+ fileList = tempremotegemappletsresult.split(/\n/).delete_if { |x| ! (x =~ /\Arwdzip/) }
12
+
13
+ @superantcomremotegemappletsresult = fileList.rwd_method("superantcomremotegemappletdirsname")
14
+ rescue SystemCallError, StandardError
15
+ @superantcomremotegemappletsresult = "system call error: " + $!
16
+ end # exception rescue
18
17
  end
19
-
18
+
20
19
  def superantcomremotegemappletdirsname(inffile)
21
- applet = inffile
22
- @superantcominstallremoteappletinput = applet
23
-
24
- end
20
+ applet = inffile
21
+ @superantcominstallremoteappletinput = applet
22
+
23
+ end
24
+
@@ -1,32 +1,33 @@
1
- def removeapplet
2
- require 'fileutils'
3
- nametext = "%s" % [@a_removeapplet]
4
-
5
- begin # exception trapped block
6
- fileName = "installed/" + nametext + ".inf"
7
- count = 0
8
- fd = File.open(fileName,"r")
9
-
10
-
11
- fd.each { |oneline|
12
- if count == 1
13
- if File.exist?(oneline.chop)
14
- FileUtils.rm_rf( oneline.chop)
15
- end
16
-
17
- end
18
- count = 1
19
- }
20
- fd.close
21
-
22
- FileUtils.rm_rf( fileName)
23
-
24
-
25
- @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
26
-
27
- rescue
28
- @removeapplettext = "\n" + "error"
29
-
30
- end # exception rescue
31
-
32
- end
1
+ # method to remove a tinker applet
2
+ def removeapplet
3
+ require 'fileutils'
4
+ nametext = "%s" % [@a_removeapplet]
5
+
6
+ begin # exception trapped block
7
+ fileName = "installed/" + nametext + ".inf"
8
+ count = 0
9
+ fd = File.open(fileName,"r")
10
+
11
+
12
+ fd.each { |oneline|
13
+ if count == 1
14
+ if File.exist?(oneline.chop)
15
+ FileUtils.rm_rf( oneline.chop)
16
+ end
17
+
18
+ end
19
+ count = 1
20
+ }
21
+ fd.close
22
+
23
+ FileUtils.rm_rf( fileName)
24
+
25
+
26
+ @removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
27
+
28
+ rescue
29
+ @removeapplettext = "\n" + "error"
30
+
31
+ end # exception rescue
32
+
33
+ end
@@ -0,0 +1,11 @@
1
+ # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
+ # This application is a framework for writing programs from RubyWebDialogs
3
+ # For information see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the rwdtinker helpwindow
6
+
7
+ def runremotezipsinstall
8
+ @rwd_window = "tinkerbackwindow"
9
+ @rwd_tab = "superantcomremotezipsinstall"
10
+ end
11
+
@@ -1,12 +1,11 @@
1
1
  # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
2
  # This application is a framework for writing programs from RubyWebDialogs
3
- # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
- # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
-
6
- # call the rwdtinker helpwindow
3
+ # For information see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # call the rwdtinker helpwindow
6
+
7
+ def runrwdtinkerbackwindow
8
+ @rwd_window = "tinkerbackwindow"
9
+ @rwd_tab = "rwdzipslister"
10
+ end
7
11
 
8
- def runrwdtinkerbackwindow
9
- @rwd_window = "tinkerbackwindow"
10
- @rwd_tab = "rwdzipslister"
11
- end
12
-
@@ -1,14 +1,13 @@
1
1
  # Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
2
2
  # This application is a framework for writing programs from RubyWebDialogs
3
- # http://www.erikveen.dds.nl/rubywebdialogs/index.html
4
- # For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
5
-
6
- # return the version constant defined in the config file
7
- def runrwdtinkerwin2version
8
- @rwd_window = "applicationversion"
9
- @versionappnamedisplay = "RwdTinkerWin2"
10
- @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
- @versionnumberdisplay = "Version " + RwdTinkerWin2Version
3
+ # For information see http://www.rubyforge.net/projects/rwdapplications
4
+
5
+ # return the version constant defined in the config file
6
+ def runrwdtinkerwin2version
7
+ @rwd_window = "applicationversion"
8
+ @versionappnamedisplay = "RwdTinkerWin2"
9
+ @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
10
+ @versionnumberdisplay = "Version " + RwdTinkerWin2Version
11
+
12
+ end
12
13
 
13
- end
14
-
@@ -1,18 +1,19 @@
1
- # this method saves the configuration record
2
- def saveconfigurationrecord
3
- require 'fileutils'
4
- if @a_configurationfilename
5
- newname = "%s" % [@a_configurationfilename] # grab the filename to create
6
- newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s + "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n"
7
-
8
- begin # exception trapped block
9
- fileName = File.join( ConfigurationDir, newname )
10
- fd = File.open(fileName,"w")
11
- fd.print(newdata) # save the record info to the file
12
- fd.close
13
- @newconfigurationresult=newdata # show the record info in the browser
14
- rescue SystemCallError, StandardError
15
- $stderr.print "system call error: " + $!
16
- end # exception rescue
17
- end
18
- end
1
+ # this method saves the configuration record
2
+ def saveconfigurationrecord
3
+ require 'fileutils'
4
+ if @a_configurationfilename
5
+ newname = "%s" % [@a_configurationfilename] # grab the filename to create
6
+ newdata =@a_configline1.to_s + "\n" + @a_configline2.to_s + "\n" + @a_configline3.to_s + "\n" + @a_configline4.to_s + "\n" + @a_configline5.to_s + "\n" + @a_configline6.to_s + "\n" + @a_configline7.to_s + "\n" + @a_configline8.to_s + "\n"
7
+
8
+ begin # exception trapped block
9
+ fileName = File.join( ConfigurationDir, newname )
10
+ fd = File.open(fileName,"w")
11
+ fd.print(newdata) # save the record info to the file
12
+ fd.close
13
+ @newconfigurationresult=newdata # show the record info in the browser
14
+ rescue SystemCallError, StandardError
15
+ $stderr.print "system call error: " + $!
16
+ end # exception rescue
17
+ end
18
+ end
19
+
@@ -1,21 +1,22 @@
1
- def viewappletcontents
2
- require 'fileutils'
3
- require 'extras/zip/zip'
4
- nametext = "%s" % [@a_installapplet]
5
-
6
- begin # exception trapped block
7
- fullname = nametext + ".zip"
8
- fileName = File.join($zipslocation,fullname)
9
- tempfilecontents = " "
10
- zf = Zip::ZipFile.new(fileName)
11
- zf.sort.each {
12
- |entry|
13
- tempfilecontents = tempfilecontents + entry.to_s + "\n"
14
- }
15
- @appletcontentstext = tempfilecontents
16
-
17
- rescue
18
- @installapplettext = "unzip error - error opening applet"
19
- end # exception rescue
1
+ #view contents of a tinker applet
2
+ def viewappletcontents
3
+ require 'fileutils'
4
+ require 'extras/zip/zip'
5
+ nametext = "%s" % [@a_installapplet]
20
6
 
21
- end
7
+ begin # exception trapped block
8
+ fullname = nametext + ".zip"
9
+ fileName = File.join($zipslocation,fullname)
10
+ tempfilecontents = " "
11
+ zf = Zip::ZipFile.new(fileName)
12
+ zf.sort.each {
13
+ |entry|
14
+ tempfilecontents = tempfilecontents + entry.to_s + "\n"
15
+ }
16
+ @appletcontentstext = tempfilecontents
17
+
18
+ rescue
19
+ @installapplettext = "unzip error - error opening applet"
20
+ end # exception rescue
21
+
22
+ end
@@ -1,21 +1,24 @@
1
- def viewgemappletcontents
2
- require 'fileutils'
3
- require 'extras/zip/zip'
4
- nametext = "%s" % [@a_installapplet]
5
-
6
- begin # exception trapped block
7
- fullname = nametext + ".zip"
8
-
9
- tempfilecontents = " "
10
- zf = Zip::ZipFile.new(fullname)
11
- zf.sort.each {
12
- |entry|
13
- tempfilecontents = tempfilecontents + entry.to_s + "\n"
14
- }
15
- @appletcontentstext = tempfilecontents
16
-
17
- rescue
18
- @installapplettext = "unzip error - error opening applet"
19
- end # exception rescue
1
+ #view gem info
2
+ def viewgemappletcontents
3
+ require 'fileutils'
4
+ require 'extras/zip/zip'
5
+ nametext = "%s" % [@a_installapplet]
6
+
7
+ begin # exception trapped block
8
+ fullname = nametext + ".zip"
9
+
10
+ tempfilecontents = " "
11
+ zf = Zip::ZipFile.new(fullname)
12
+ zf.sort.each {
13
+ |entry|
14
+ tempfilecontents = tempfilecontents + entry.to_s + "\n"
15
+ }
16
+ @appletcontentstext = tempfilecontents
17
+
18
+ rescue
19
+ @installapplettext = "unzip error - error opening applet"
20
+ end # exception rescue
21
+
22
+ end
23
+
20
24
 
21
- end
@@ -0,0 +1,11 @@
1
+ #jumplinkupdate
2
+
3
+ JumpLink.update(:ScheduleBackWindow=>"runrwdschedulesyncbackwindow",
4
+ :RwdScheduleConfiguration=>"runrwdschedulemenu10",
5
+ :ViewEventTab=>"runrwdschedulemenu1",
6
+ :EditEventRecord=>"runrwdschedulemenu2",
7
+ :EventUtilitiesTab=>"runrwdschedulemenu3",
8
+ :ScheduleICSwindow=>"runrwdscheduleicsbackwindow"
9
+
10
+ )
11
+ $rwdjumplink +=["ScheduleICSwindow","EventUtilitiesTab","EditEventRecord","ViewEventTab","RwdScheduleConfiguration","ScheduleBackWindow"]
@@ -1,4 +1,4 @@
1
- ##VERSION:1.61
1
+ ##VERSION:1.62
2
2
  #language selection file
3
3
  ##NAME:$lang:0
4
4
  #$lang = "jp"
@@ -1,3 +1,3 @@
1
- ##VERSION:1.61
2
- $rwdapplicationidentity = "rwdschedule event book"
1
+ ##VERSION:1.63
2
+ $rwdapplicationidentity = "rwdschedule calendar application"
3
3