rwdschedule 0.93 → 0.94
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +6 -0
- data/code/01rwdcore/01rwdcore.rb +20 -20
- data/code/01rwdcore/02helptexthashbegin.rb +4 -4
- data/code/01rwdcore/03helptexthash.rb +30 -47
- data/code/01rwdcore/04helptextend.rb +6 -6
- data/code/01rwdcore/openhelpwindow.rb +10 -24
- data/code/01rwdcore/returntomain.rb +10 -0
- data/code/01rwdcore/rwdtinkerversion.rb +15 -15
- data/code/01rwdcore/rwdwindowreturn.rb +9 -9
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +100 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +21 -21
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +37 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +21 -21
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +31 -31
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -13
- data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -18
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +39 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +28 -28
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +11 -11
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -14
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -18
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -0
- data/code/superant.com.schedule/helptexthashrwdschedule.rb +19 -3
- data/code/superant.com.schedule/{openhelpwindowrubyslippers.rb → openhelpwindowrwdschedule.rb} +11 -2
- data/code/superant.com.schedule/returntomain.rb +10 -0
- data/code/superant.com.schedule/runrwdschedulemenu1.rb +34 -0
- data/code/zz0applicationend/zz0end.rb +4 -4
- data/configuration/language.cnf +5 -5
- data/configuration/rwdapplicationidentity.cnf +3 -0
- data/configuration/rwdscheduleversion.cnf +1 -1
- data/configuration/rwdtinker.cnf +1 -0
- data/configuration/rwdtinkerversion.cnf +2 -2
- data/configuration/tinkerwin2variables.cnf +8 -8
- data/configuration/tinkerwin2version.cnf +3 -3
- data/ev/browser.rb +109 -109
- data/ev/ftools.rb +170 -170
- data/ev/net.rb +750 -750
- data/ev/ruby.rb +819 -819
- data/ev/rwd.rb +1849 -1848
- data/ev/sgml.rb +236 -236
- data/ev/thread.rb +63 -63
- data/ev/tree.rb +343 -343
- data/ev/xml.rb +4 -4
- data/gui/00coreguibegin/applicationguitop.rwd +4 -4
- data/gui/frontwindow0/superant.com.rwdschedules/gg0viewevent.rwd +1 -1
- data/gui/frontwindow0/superant.com.rwdschedules/gl6editrecord.rwd +10 -10
- data/gui/frontwindow0/superant.com.rwdschedules/gl8contactutilities.rwd +1 -0
- data/gui/frontwindow0/superant.com.zmenus/m01menubegin.rwd +10 -0
- data/gui/frontwindow0/superant.com.zmenus/m02menu.rwd +36 -0
- data/gui/frontwindow0/superant.com.zmenus/m03menu.rwd +12 -0
- data/gui/frontwindow0/superant.com.zmenus/m85menu.rwd +21 -0
- data/gui/frontwindow0/superant.com.zmenus/m88menu.rwd +12 -0
- data/gui/frontwindow0/superant.com.zmenus/m99menuend.rwd +3 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +16 -16
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -12
- data/gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd +3 -3
- data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +6 -6
- data/gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd +15 -15
- data/gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd +6 -6
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +12 -12
- data/gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd +6 -6
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +4 -4
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +10 -10
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd +4 -4
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -10
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +2 -2
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +38 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +10 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m02menu.rwd +36 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m03menu.rwd +12 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m85menu.rwd +21 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m88menu.rwd +12 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m99menuend.rwd +3 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -5
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/{50rwdlistzips.rwd → 40rwdlistzips.rwd} +42 -35
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -44
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +38 -37
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +33 -33
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +33 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd +11 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -6
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +30 -31
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -4
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -19
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +4 -4
- data/init.rb +269 -233
- data/installed/rwdtinkerwin2-0.5.inf +8 -8
- data/lang/alanguagehashbegin.rb +4 -4
- data/lang/en/rwdcore/languagefile.rb +15 -15
- data/lang/es/rwdcore/languagefile-es.rb +14 -14
- data/lang/jp/rwdcore/languagefile.rb +9 -9
- data/lang/languagehash.rb +4 -4
- data/lang/nl/rwdcore/languagefile.rb +19 -19
- data/lang/vlanguagehashend.rb +6 -6
- data/lang/wlocallangstart.rb +5 -5
- data/lang/zlocallangend.rb +2 -2
- data/lib/temp.rb +1 -1
- data/rwd_files/HowTo_Schedule.txt +6 -0
- data/rwd_files/HowTo_Tinker.txt +361 -348
- data/rwd_files/HowTo_TinkerWin2.txt +202 -202
- data/rwd_files/Readme.txt +57 -57
- data/rwd_files/rdoc-style.css +174 -174
- data/rwd_files/rwdapplications.html +54 -54
- data/tests/totranslate.lang +93 -0
- data/zips/rwdahelloworld-0.5.zip +0 -0
- data/zips/rwdwcalc-0.50.zip +0 -0
- metadata +33 -17
- data/configuration/rwdplayscriptsversion.cnf +0 -2
- data/gui/frontwindow0/superant.com.rwdschedules/zviewconfiguration.rwd +0 -38
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/66viewconfiguration.rwd +0 -16
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/80returntab.rwd +0 -11
- data/installed/rwdviewlogo-0.4.inf +0 -4
- data/rwd_files/tinker.png +0 -0
- data/updates/200502Februay01 Lynn back.sch +0 -8
- data/updates/200502Februay21 PCU Diner.sch +0 -8
- data/updates/200502february16a.sch +0 -8
- data/updates/200505may02a.sch +0 -8
- data/updates/200506june20a.sch +0 -8
- data/updates/200506june29a.sch +0 -8
- data/updates/200510october26a.sch +0 -8
@@ -1,21 +1,21 @@
|
|
1
|
-
def installapplet
|
2
|
-
require 'fileutils'
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
@installapplettext = Message[:applet_installed]
|
16
|
-
|
17
|
-
rescue
|
18
|
-
@installapplettext = "
|
19
|
-
end # exception rescue
|
20
|
-
|
21
|
-
end
|
1
|
+
def installapplet
|
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
|
+
|
10
|
+
zf = Zip::ZipFile.new(fileName)
|
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
|
+
|
21
|
+
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# this code is to list the applets that are installed
|
1
|
+
# this code is to list the applets that are installed
|
2
2
|
def listinstalledfiles
|
3
3
|
fileList = Dir.new("installed").entries.sort.reverse.delete_if { |x| ! (x =~ /inf$/) }
|
4
4
|
@filesresult = fileList.rwd_method("fillappletname")
|
@@ -1,8 +1,8 @@
|
|
1
|
-
# this code is to list the zipped applets that can be installed
|
2
|
-
def listzipfilestoinstall
|
1
|
+
# this code is to list the zipped applets that can be installed
|
2
|
+
def listzipfilestoinstall
|
3
3
|
if File.exist?($zipslocation)
|
4
4
|
fileList = Dir.new($zipslocation).entries.sort.delete_if { |x| ! (x =~ /zip$/) }
|
5
|
-
@zipslistresult = fileList.rwd_method("fillziptoinstallname")
|
5
|
+
@zipslistresult = fileList.rwd_method("fillziptoinstallname")
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
@@ -11,6 +11,6 @@ def fillziptoinstallname(inffile)
|
|
11
11
|
@a_installapplet = applet
|
12
12
|
|
13
13
|
end
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
|
15
|
+
|
16
|
+
|
@@ -1,32 +1,32 @@
|
|
1
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
|
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
|
@@ -1,13 +1,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
|
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
|
@@ -0,0 +1,87 @@
|
|
1
|
+
#!ruby
|
2
|
+
require 'socket' # Network stuff
|
3
|
+
require 'timeout' # Timeout functions
|
4
|
+
|
5
|
+
def network_start
|
6
|
+
if RUBY_PLATFORM != "i386-mswin32"
|
7
|
+
processone = fork {
|
8
|
+
network_demon }
|
9
|
+
Process.detach(processone)
|
10
|
+
|
11
|
+
else
|
12
|
+
puts "fork not tried winXP?"
|
13
|
+
end
|
14
|
+
@viewremotecommandresult = "starting controller on next available port"
|
15
|
+
end
|
16
|
+
|
17
|
+
def network_demon
|
18
|
+
# Find configuration variables
|
19
|
+
host = "127.0.0.1"
|
20
|
+
port = $rwdcontrolports[0].to_i
|
21
|
+
|
22
|
+
openportfound = false
|
23
|
+
until openportfound
|
24
|
+
|
25
|
+
# Create a socket to listen on and bind it to the host and port
|
26
|
+
begin
|
27
|
+
@socket = UDPSocket::new()
|
28
|
+
@socket.bind(host, port)
|
29
|
+
# Rescue the "Address in use" error
|
30
|
+
openportfound = true
|
31
|
+
|
32
|
+
rescue Errno::EADDRINUSE
|
33
|
+
puts "controller startup: Port #{port} on host #{host} is already in use."
|
34
|
+
port=port+1
|
35
|
+
# Rescue the "Address not available' error
|
36
|
+
rescue Errno::EADDRNOTAVAIL
|
37
|
+
puts "Network plugin: Address #{host} is not available to bind."
|
38
|
+
port=port+1
|
39
|
+
# Rescue "permission denied errors
|
40
|
+
rescue Errno::EACCES
|
41
|
+
puts "controller startup: Access denied when binding interface addresses. Did you try to bind a port under 1024 as a regular user?"
|
42
|
+
port=port+1
|
43
|
+
# Rescue all other errors
|
44
|
+
rescue
|
45
|
+
puts "Network plugin: An error occured."
|
46
|
+
port = port+1
|
47
|
+
# Rescue all other errors
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|
51
|
+
|
52
|
+
|
53
|
+
# Get all acceptable hosts
|
54
|
+
hosts = ["localhost","vaio-sag"]
|
55
|
+
# Do some nice errorchecking
|
56
|
+
if(hosts.type != Array)
|
57
|
+
puts "Network plugin: No hosts found in networkConfig/acceptHosts. Shutting down plugin."
|
58
|
+
return -1 # Return the errorcode for plugin failure
|
59
|
+
end
|
60
|
+
|
61
|
+
# Main loop
|
62
|
+
while(true)
|
63
|
+
# Get data and client data from the client
|
64
|
+
data, info = @socket.recvfrom(256)
|
65
|
+
|
66
|
+
# Is this an acceptable IP address?
|
67
|
+
if(hosts.include?(info[2]) || hosts.include?(info[3]))
|
68
|
+
command, parameter = data.split(';')
|
69
|
+
|
70
|
+
# Command actions
|
71
|
+
command.downcase!()
|
72
|
+
case command
|
73
|
+
|
74
|
+
when 'stop'
|
75
|
+
@socket.send("hello world",0,info[3],info[1].to_i)
|
76
|
+
|
77
|
+
when 'query'
|
78
|
+
@socket.send("#{$rwdapplicationidentity} on port #{$port}",0,info[3],info[1].to_i)
|
79
|
+
|
80
|
+
|
81
|
+
end # case command
|
82
|
+
|
83
|
+
end # Access control if
|
84
|
+
end # while(true)
|
85
|
+
|
86
|
+
end # Network::start()
|
87
|
+
|
@@ -1,18 +1,18 @@
|
|
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
|
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
|
@@ -0,0 +1,39 @@
|
|
1
|
+
# this code is to call the help window
|
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
|
+
|
28
|
+
|
29
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
30
|
+
$previouswindow = @rwd_window
|
31
|
+
$previoustab = @rwd_tab
|
32
|
+
else
|
33
|
+
$previouswindow = @rwd_window
|
34
|
+
$previoustab = @rwd_tab
|
35
|
+
end
|
36
|
+
runhelpwindow
|
37
|
+
end
|
38
|
+
|
39
|
+
|
@@ -1,28 +1,28 @@
|
|
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
|
-
commandline = "rm -r " + oneline
|
14
|
-
system( commandline+' > temp.output' )
|
15
|
-
end
|
16
|
-
count = 1
|
17
|
-
}
|
18
|
-
fd.close
|
19
|
-
commandline = "rm " + fileName
|
20
|
-
|
21
|
-
system(commandline)
|
22
|
-
@removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
|
23
|
-
|
24
|
-
rescue
|
25
|
-
@removeapplettext = "\n" + "error"
|
26
|
-
end # exception rescue
|
27
|
-
|
28
|
-
end
|
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
|
+
commandline = "rm -r " + oneline
|
14
|
+
system( commandline+' > temp.output' )
|
15
|
+
end
|
16
|
+
count = 1
|
17
|
+
}
|
18
|
+
fd.close
|
19
|
+
commandline = "rm " + fileName
|
20
|
+
|
21
|
+
system(commandline)
|
22
|
+
@removeapplettext = "applet files removed! - restart rwd to finish uninstalling"
|
23
|
+
|
24
|
+
rescue
|
25
|
+
@removeapplettext = "\n" + "error"
|
26
|
+
end # exception rescue
|
27
|
+
|
28
|
+
end
|
@@ -1,12 +1,12 @@
|
|
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
|
-
# call the rwdtinker helpwindow
|
7
|
-
|
8
|
-
def runrwdtinkerbackwindow
|
9
|
-
@rwd_window = "tinkerbackwindow"
|
10
|
-
@rwd_tab = "
|
11
|
-
end
|
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
|
+
# call the rwdtinker helpwindow
|
7
|
+
|
8
|
+
def runrwdtinkerbackwindow
|
9
|
+
@rwd_window = "tinkerbackwindow"
|
10
|
+
@rwd_tab = "rwdzipslister"
|
11
|
+
end
|
12
12
|
|
@@ -1,14 +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 runrwdtinkerwin2version
|
8
|
-
@rwd_window = "applicationversion"
|
9
|
-
@versionappnamedisplay = "RwdTinkerWin2"
|
10
|
-
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
11
|
-
@versionnumberdisplay = "Version " + RwdTinkerWin2Version
|
12
|
-
|
13
|
-
end
|
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 runrwdtinkerwin2version
|
8
|
+
@rwd_window = "applicationversion"
|
9
|
+
@versionappnamedisplay = "RwdTinkerWin2"
|
10
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
11
|
+
@versionnumberdisplay = "Version " + RwdTinkerWin2Version
|
12
|
+
|
13
|
+
end
|
14
|
+
|
@@ -1,18 +1,18 @@
|
|
1
|
-
# this method adds a new address 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 adds a new address 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
|