rwddemo 0.91 → 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.
- data/Readme.txt +32 -305
- data/code/01rwdcore/01rwdcore.rb +15 -13
- data/code/01rwdcore/jumplinkcommand.rb +30 -0
- data/code/01rwdcore/openhelpwindow.rb +26 -26
- data/code/01rwdcore/returntomain.rb +8 -8
- data/code/01rwdcore/rwdtinkerversion.rb +12 -13
- data/code/01rwdcore/rwdwindowreturn.rb +3 -5
- data/code/01rwdcore/test_cases.rb +115 -0
- data/code/01rwdcore/test_harness.rb +12 -0
- data/code/01rwdcore/uploadreturns.rb +62 -0
- data/code/dd0viewphoto/dd0viewphoto.rb +3 -4
- data/code/superant.com.rwdcalc/jumplinkupdate.rb +11 -0
- data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +14 -0
- data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +17 -0
- data/code/superant.com.rwdshell/helptexthashshell.rb +8 -1
- data/code/superant.com.rwdshell/openhelpwindowshell.rb +6 -0
- data/code/superant.com.rwdshell/runrwdshellwindow.rb +4 -1
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +16 -18
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
- data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
- data/configuration/language.dist +1 -1
- data/configuration/rwddemo.dist +3 -0
- data/configuration/rwdtinker.dist +3 -3
- data/configuration/tinkerwin2variables.dist +1 -1
- data/gui/frontwindow0/superant.com.rwdcalendar/hl9calendar.rwd +1 -1
- data/gui/frontwindow0/superant.com.shellscripts/3editscripts.rwd +1 -0
- data/gui/frontwindow0/viewlogo/cc0openphoto.rwd +22 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +2 -7
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
- data/gui/frontwindowselections/viewselectionzend/viewselectionend.rwd +3 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rwdcalc/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/94rwddiagnostics.rwd +0 -17
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/98jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +12 -16
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
- data/init.rb +231 -228
- data/rwd_files/HowTo_Tinker.txt +20 -0
- data/rwdconfig.dist +6 -2
- data/tests/makedist.rb +36 -7
- metadata +54 -69
- data/code/superant.com.rwdshell/runrwdshellmenu1.rb +0 -57
- data/configuration/language.cnf +0 -7
- data/configuration/rwdapplicationidentity.cnf +0 -3
- data/configuration/rwdcalc.cnf +0 -7
- data/configuration/rwdcalendar.cnf +0 -10
- data/configuration/rwdshell.cnf +0 -3
- data/configuration/rwdtinker.cnf +0 -15
- data/configuration/tinkerwin2variables.cnf +0 -17
- data/extras/cmdline_parse +0 -47
- data/extras/config_file +0 -69
- data/extras/errorMsg +0 -19
- data/extras/makePlaylist +0 -34
- data/extras/mp3controld +0 -289
- data/extras/playlist +0 -186
- data/extras/showHelp +0 -18
- data/gui/frontwindowselections/superant.com.rwdcalcselectiontab/rwdcalc.rwd +0 -12
- data/gui/frontwindowselections/superant.com.rwdshellselectiontab/rwdshellbackwindowselectiontab.rwd +0 -12
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +0 -4
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +0 -10
- data/gui/tinkerbackwindows/superant.com.rwdcalc/98returntab.rwd +0 -11
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/v9returntab.rwd +0 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +0 -11
- data/rwdconfig.cnf +0 -6
@@ -1,21 +1,19 @@
|
|
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.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
end
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
require 'resolv'
|
6
|
+
require 'date'
|
7
|
+
|
8
|
+
# return the platform information
|
9
|
+
def runviewplatform
|
10
|
+
@platformdisplay = "Platform is " + RUBY_PLATFORM + "\n"
|
11
|
+
@platformdisplay = @platformdisplay + "Ruby Version " + VERSION + "\n"
|
12
|
+
@platformdisplay = @platformdisplay + "rwdtinker version " + RwdTinkerVersion + "\n"
|
13
|
+
@platformdisplay = @platformdisplay + "program directory " + $progdir + "\n"
|
14
|
+
@platformdisplay = @platformdisplay + "hostname " + Resolv.getname(Resolv.getaddress("localhost")) + "\n"
|
15
|
+
@platformdisplay = @platformdisplay + "application name " + $rwdapplicationidentity + "\n"
|
16
|
+
@platformdisplay = @platformdisplay + "Date " + Date.today().to_s
|
17
|
+
|
18
|
+
end
|
20
19
|
|
21
|
-
|
@@ -1,24 +1,25 @@
|
|
1
1
|
# code in install rwdtinker applets - now uses ruby.zip module
|
2
|
-
|
3
|
-
|
4
|
-
nametext = "%s" % [@a_installapplet]
|
2
|
+
def installapplet
|
5
3
|
|
6
|
-
|
4
|
+
nametext = "%s" % [@a_installapplet]
|
7
5
|
|
6
|
+
begin # exception trapped block
|
8
7
|
|
9
|
-
require 'extras/zip/zip'
|
10
|
-
fullname = nametext + ".zip"
|
11
|
-
fileName = File.join($zipslocation,fullname)
|
12
8
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
9
|
+
require 'extras/zip/zip'
|
10
|
+
fullname = nametext + ".zip"
|
11
|
+
fileName = File.join($zipslocation,fullname)
|
12
|
+
|
13
|
+
zf = Zip::ZipFile.new(fileName)
|
14
|
+
zf.sort.each {
|
15
|
+
|entry|
|
16
|
+
zf.extract(entry.to_s, entry.to_s)
|
17
|
+
}
|
18
|
+
@installapplettext = Message[:applet_installed]
|
19
|
+
|
20
|
+
rescue
|
21
|
+
@installapplettext = "unzip error - applet may not be installed correctly"
|
22
|
+
end # exception rescue
|
23
|
+
|
24
|
+
end
|
23
25
|
|
24
|
-
end
|
@@ -1,20 +1,21 @@
|
|
1
1
|
# install rwdtinker applet from a long directory location
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
def installgemapplet
|
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
|
+
zf = Zip::ZipFile.new(fullname)
|
11
|
+
zf.sort.each {
|
12
|
+
|entry|
|
13
|
+
zf.extract(entry.to_s, entry.to_s)
|
14
|
+
}
|
15
|
+
@installapplettext = Message[:applet_installed]
|
16
|
+
|
17
|
+
rescue
|
18
|
+
@installapplettext = "unzip error - applet may not be installed correctly"
|
19
|
+
end # exception rescue
|
20
|
+
end
|
21
|
+
|
@@ -1,19 +1,20 @@
|
|
1
1
|
# download gem of rwdtinker applet
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
2
|
+
def superantcominstallremotegemapplet
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
tempnametext = "%s" % [@superantcominstallremoteappletinput]
|
6
|
+
temparray = tempnametext.split(/ /)
|
7
|
+
nametext = temparray[0]
|
8
|
+
begin # exception trapped block
|
9
|
+
|
10
|
+
|
11
|
+
commandline = $xpcommand + "gem install " + nametext
|
12
|
+
|
13
|
+
@superantcominstallremotegemappletresult = `#{commandline}`
|
14
|
+
|
15
|
+
rescue
|
16
|
+
@superantcominstallremotegemappletresult = "error during gem install!"
|
17
|
+
end # exception rescue
|
18
|
+
|
19
|
+
end
|
20
|
+
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# this code is to list the gem directories that are installed
|
2
2
|
def superantcomshowgemfiledirs
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
|
4
|
+
fileList = Dir.new($gemdirectory_withgemfiles).entries.sort.delete_if { |x| ! (x =~ /\Arwdzip/) }
|
5
|
+
@superantcomshowgemappletdirsresult = fileList.rwd_method("superantcomshowgemappletdirsname")
|
6
6
|
end
|
7
|
-
|
7
|
+
|
8
8
|
def superantcomshowgemappletdirsname(inffile)
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
applet = inffile
|
10
|
+
@a_gemfiledirsinput = applet
|
11
|
+
|
12
12
|
end
|
@@ -1,54 +1,53 @@
|
|
1
1
|
# this code is to list the zips
|
2
|
-
|
3
|
-
|
4
2
|
def fillzipappletname(inffile)
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
applet = inffile.gsub(/\.zip$/, "")
|
4
|
+
@a_installapplet = applet
|
5
|
+
|
6
|
+
end
|
7
|
+
|
8
|
+
def findzipfiles(d)
|
9
|
+
a = Array.new(Dir[d].entries.sort)
|
10
|
+
#loop through and get the files names
|
11
|
+
a.each do |x|
|
12
|
+
#adjust the filters to the files you want to see...
|
13
|
+
if(!test(?d,x))
|
14
|
+
# only zip files
|
15
|
+
if x =~ /\.zip/
|
16
|
+
puts "#{x}" #opens the file thats in fileName as read only
|
17
|
+
$zipsarray = $zipsarray | ["#{x}"]
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
8
21
|
end
|
9
22
|
|
10
|
-
def findzipfiles(d)
|
11
|
-
a = Array.new(Dir[d].entries.sort)
|
12
|
-
#loop through and get the files names
|
13
|
-
a.each do |x|
|
14
|
-
#adjust the filters to the files you want to see...
|
15
|
-
if(!test(?d,x))
|
16
|
-
# only zip files
|
17
|
-
if x =~ /\.zip/
|
18
|
-
puts "#{x}" #opens the file thats in fileName as read only
|
19
|
-
$zipsarray = $zipsarray | ["#{x}"]
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
23
|
def listgemzips
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
24
|
+
startlangdir = $geminstalled_directory
|
25
|
+
#get a list of the files and subdirectories on the starting directory only
|
26
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
27
|
+
p alanghash
|
28
|
+
#loop through the list, ignore the files and add all new directories found
|
29
|
+
alanghash.each do |x|
|
30
|
+
#if a directory...
|
31
|
+
if(test(?d,x))
|
32
|
+
# add to the original list of directories
|
33
|
+
@@tmproot = x + "/**"
|
34
|
+
#adds the new ones to the array
|
35
|
+
blanghash = Dir[@@tmproot].entries.sort
|
36
|
+
blanghash.each do |x|
|
37
|
+
if(test(?d,x))
|
38
|
+
alanghash.push(x) #appends to the end of the array...
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
alanghash.each do |x|
|
44
|
+
#if it is a file...
|
45
|
+
if(!test(?d,x))
|
46
|
+
alanghash.delete(x)
|
47
|
+
else #it is a directory...
|
48
|
+
findzipfiles(x + "/**")
|
49
|
+
end
|
50
|
+
end
|
51
|
+
@zipslistresult = $zipsarray.rwd_method("fillzipappletname")
|
52
|
+
end
|
53
|
+
|
@@ -1,11 +1,12 @@
|
|
1
1
|
# this code is to list the applets that are installed
|
2
2
|
def listinstalledfiles
|
3
|
-
|
4
|
-
|
3
|
+
fileList = Dir.new("installed").entries.sort.reverse.delete_if { |x| ! (x =~ /inf$/) }
|
4
|
+
@filesresult = fileList.rwd_method("fillappletname")
|
5
5
|
end
|
6
|
-
|
6
|
+
|
7
7
|
def fillappletname(inffile)
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
end
|
8
|
+
applet = inffile.gsub(/\.inf$/, "")
|
9
|
+
@a_installlist = applet
|
10
|
+
@a_removeapplet = applet
|
11
|
+
end
|
12
|
+
|
@@ -1,31 +1,27 @@
|
|
1
1
|
# this code is to list the zipped applets that can be installed
|
2
|
-
|
3
|
-
|
4
2
|
def fillziptoinstallname(inffile)
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
applet = inffile.gsub(/\.zip$/, "")
|
4
|
+
@a_installapplet = applet
|
5
|
+
|
8
6
|
end
|
9
|
-
|
10
7
|
|
11
|
-
|
12
|
-
|
13
8
|
def listzipfilestoinstall
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
9
|
+
startlangdir = File.join($progdir, $zipslocation )
|
10
|
+
#get a list of the files and subdirectories on the starting directory only
|
11
|
+
|
12
|
+
|
13
|
+
a = Array.new(Dir["#{startlangdir}/*"].entries.sort)
|
14
|
+
|
15
|
+
#loop through and get the files names
|
16
|
+
a.each do |x|
|
17
|
+
# only zip files
|
18
|
+
if x =~ /\.zip/
|
19
|
+
# puts "#{x}" #adds the file to the array to display on the screen
|
20
|
+
$zipsarraylocal = $zipsarraylocal | ["#{x}"]
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
24
|
+
|
25
|
+
@zipslistresult = $zipsarraylocal.rwd_method("fillziptoinstallname")
|
26
|
+
end
|
27
|
+
|
@@ -1,32 +1,33 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
1
|
+
# this method puts the configuration rexord on the screen
|
2
|
+
def loadconfigurationrecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
if TinkerWin2ConfigurationFileName
|
6
|
+
@a_configurationfilename = TinkerWin2ConfigurationFileName
|
7
|
+
end
|
8
|
+
|
9
|
+
begin # exception trapped block
|
10
|
+
|
11
|
+
Dir.chdir($progdir)
|
12
|
+
fileName = File.join(ConfigurationDir, TinkerWin2ConfigurationFileName)
|
13
|
+
|
14
|
+
fd = File.open(fileName,"r")
|
15
|
+
@a_configline1= fd.readline.chomp
|
16
|
+
@a_configline2 = fd.readline.chomp
|
17
|
+
@a_configline3 = fd.readline.chomp
|
18
|
+
@a_configline4 = fd.readline.chomp
|
19
|
+
@a_configline5 = fd.readline.chomp
|
20
|
+
@a_configline6 = fd.readline.chomp
|
21
|
+
@a_configline7 =fd.readline.chomp
|
22
|
+
@a_configline8 = fd.readline.chomp
|
23
|
+
|
24
|
+
while ! fd.eof?
|
25
|
+
@extraconfigdatadisplay = fd.readline
|
26
|
+
end
|
27
|
+
fd.close
|
28
|
+
rescue SystemCallError, StandardError
|
29
|
+
$stderr.print "system call error: " + $!
|
30
|
+
end # exception rescue
|
31
|
+
|
32
|
+
end
|
31
33
|
|
32
|
-
end
|
@@ -1,13 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
@newconfigurationresult = "Config Variables loaded"
|
9
|
-
rescue
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
# this method loads the on screen variables into the running class
|
2
|
+
def loadconfigurationvariables
|
3
|
+
|
4
|
+
configfiletoload = File.join(ConfigurationDir,TinkerWin2ConfigurationFileName)
|
5
|
+
begin
|
6
|
+
load configfiletoload
|
7
|
+
@extraconfigdatadisplay = ""
|
8
|
+
@newconfigurationresult = "Config Variables loaded"
|
9
|
+
rescue
|
10
|
+
@extraconfigdatadisplay = ""
|
11
|
+
@newconfigurationresult = "loading error"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|