rwdaddresses 1.01 → 1.02
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +5 -0
- data/code/01rwdcore/01rwdcore.rb +15 -13
- 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 +60 -59
- data/code/superant.com.rwdaddresses/attachtmpcontactphoto.rb +23 -23
- data/code/superant.com.rwdaddresses/clearscreendisplay.rb +14 -15
- data/code/superant.com.rwdaddresses/createnewnamerecord.rb +19 -18
- data/code/superant.com.rwdaddresses/deletecontactrecord.rb +22 -21
- data/code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb +15 -16
- data/code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb +34 -32
- data/code/superant.com.rwdaddresses/listnamerecord.rb +14 -14
- data/code/superant.com.rwdaddresses/listvcardrecord.rb +15 -0
- data/code/superant.com.rwdaddresses/loadconfigurationrecord.rb +45 -44
- data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +14 -13
- data/code/superant.com.rwdaddresses/loadnamerecord.rb +29 -29
- data/code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb +25 -25
- data/code/superant.com.rwdaddresses/renamecontact.rb +14 -15
- data/code/superant.com.rwdaddresses/returntomain.rb +8 -8
- data/code/superant.com.rwdaddresses/runaddresseswindow.rb +8 -8
- data/code/superant.com.rwdaddresses/runrwdaddressesmenu1.rb +31 -31
- data/code/superant.com.rwdaddresses/runrwdaddresssyncbackwindow.rb +8 -8
- data/code/superant.com.rwdaddresses/rwdaddressesbackwindow.rb +8 -8
- data/code/superant.com.rwdaddresses/rwdaddresseshelpabout.rb +10 -11
- data/code/superant.com.rwdaddresses/saveconfigurationrecord.rb +20 -20
- data/code/superant.com.rwdaddresses/savevcardrecord.rb +76 -0
- data/code/superant.com.rwdaddresses/syncrwdaddress.rb +24 -26
- data/code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb +28 -28
- data/code/superant.com.rwdaddresses/viewaddressconfiguration.rb +21 -21
- data/code/superant.com.rwdaddresses/viewnamedata.rb +27 -26
- data/code/superant.com.rwdaddresses/viewphoto.rb +4 -4
- data/code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb +23 -21
- data/code/superant.com.rwdaddresses/viewtmpcontactphoto.rb +6 -6
- data/code/superant.com.rwdaddresses/viewvcarddata.rb +22 -0
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +15 -20
- 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/rwdaddresses.dist +2 -2
- data/configuration/rwdtinker.dist +2 -2
- data/configuration/tinkerwin2variables.dist +1 -1
- data/extras/vpim/date.rb +198 -0
- data/extras/vpim/dirinfo.rb +229 -0
- data/extras/vpim/enumerator.rb +29 -0
- data/extras/vpim/field.rb +497 -0
- data/extras/vpim/maker/vcard.rb +312 -0
- data/extras/vpim/rfc2425.rb +244 -0
- data/extras/vpim/rrule.rb +482 -0
- data/extras/vpim/time.rb +42 -0
- data/extras/vpim/vcard.rb +151 -0
- data/extras/vpim/vpim.rb +94 -0
- data/gui/frontwindow0/superant.com.rwdaddresses/16editrecord.rwd +5 -0
- data/gui/frontwindow0/superant.com.rwdaddresses/17viewvcardrecord.rwd +32 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/70rwddiagnostics.rwd +1 -11
- data/init.rb +231 -228
- data/names/Angelina Jolie.vcf +8 -0
- data/rwd_files/HowTo_Addresses.txt +5 -0
- data/rwd_files/HowTo_Tinker.txt +14 -0
- data/rwdconfig.dist +6 -2
- data/tests/makedist.rb +36 -7
- metadata +23 -21
- 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/plugins/Network +0 -237
- data/extras/showHelp +0 -18
- data/gui/frontwindowselections/superant.com.rwdaddressesselectiontab/rwdaddressessyncselectiontab.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/installed/rwdaddressesdata2.inf +0 -8
- data/rwd_files/tinker.png +0 -0
@@ -1,34 +1,36 @@
|
|
1
|
+
# down load address
|
1
2
|
def downloadrwdaddressfiles
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
3
|
+
require 'net/ftp'
|
4
|
+
BasicSocket.do_not_reverse_lookup = true
|
5
|
+
@rwdaddressesftpdisplays = ""
|
6
|
+
begin
|
7
|
+
ftp = Net::FTP::new($rwdaddresses_ftpsite)
|
8
|
+
@rwdaddressesftpdisplay = "files downloaded" + "\n"
|
9
|
+
ftp.debug_mode = false
|
10
|
+
ftp.login($rwdaddresses_ftplogin, $rwdaddresses_ftppassword)
|
11
|
+
ftp.chdir($rwdaddresses_ftpdirectory)
|
12
|
+
print "I'm in the directory ", ftp.pwd(), "\n"
|
13
|
+
schfiles = ftp.nlst($rwdaddresses_ftpdirectory)
|
14
|
+
schfiles.each do |x|
|
15
|
+
#adjust the filters to the files you want to see...
|
16
|
+
if(!test(?d,x))
|
17
|
+
if x =~ /nam/
|
18
|
+
lastslash = x.rindex('/')+1
|
19
|
+
newstring = x.slice!(lastslash..256)
|
20
|
+
localupdatefile = File.join($rwdaddresses_updatedirectory, "#{newstring}")
|
21
|
+
ftp.getbinaryfile("#{newstring}" , localupdatefile )
|
22
|
+
@rwdaddressesftpdisplay = @rwdaddressesftpdisplay + newstring + "\n"
|
23
|
+
end
|
24
|
+
end
|
25
|
+
|
26
|
+
end
|
27
|
+
ftp.close
|
28
|
+
|
29
|
+
rescue
|
30
|
+
if ftp
|
31
|
+
ftp.close
|
32
|
+
end
|
33
|
+
@rwdaddressesftpdisplay = "ftp error"
|
34
|
+
end
|
34
35
|
end
|
36
|
+
|
@@ -1,15 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
# this code is to list the contact names
|
2
|
+
def listnamerecordfiles
|
3
|
+
if File.exist?($addressfiles_directory)
|
4
|
+
fileList = Dir.new($addressfiles_directory).entries.sort.delete_if { |x| ! (x =~ /nam$/) }
|
5
|
+
@listphotosfromtmp = ""
|
6
|
+
@listnamerecordfilesresult = fileList.rwd_method("fillcontactrecordname")
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
# this method is to help fill in list of names
|
11
|
+
def fillcontactrecordname(inffile)
|
12
|
+
applet = inffile.gsub(/\.nam$/, "")
|
13
|
+
@a_viewnamedata = applet
|
14
|
+
end
|
15
15
|
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# this code is to list the vcard names
|
2
|
+
def listvcardrecordfiles
|
3
|
+
if File.exist?($addressfiles_directory)
|
4
|
+
fileList = Dir.new($addressfiles_directory).entries.sort.delete_if { |x| ! (x =~ /vcf$/) }
|
5
|
+
|
6
|
+
@listvcardrecordfilesresult = fileList.rwd_method("fillvcardrecordname")
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
# this method is to help fill in list of names
|
11
|
+
def fillvcardrecordname(inffile)
|
12
|
+
applet = inffile.gsub(/\.vcf$/, "")
|
13
|
+
@a_viewvcarddata = applet
|
14
|
+
end
|
15
|
+
|
@@ -1,44 +1,45 @@
|
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
1
|
+
# this method puts the configuration rexord on the screen
|
2
|
+
def loadrwdaddressesconfiguration
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
@a_adconfigurationfilename = "rwdaddresses.cnf"
|
7
|
+
|
8
|
+
|
9
|
+
begin # exception trapped block
|
10
|
+
|
11
|
+
Dir.chdir($progdir)
|
12
|
+
fileName = File.join(ConfigurationDir, "rwdaddresses.cnf")
|
13
|
+
|
14
|
+
|
15
|
+
fd = File.open(fileName,"r")
|
16
|
+
@a_adconfigline1= fd.readline.chomp
|
17
|
+
@a_adconfigline2 = fd.readline.chomp
|
18
|
+
@a_adconfigline3 = fd.readline.chomp
|
19
|
+
@a_adconfigline4 = fd.readline.chomp
|
20
|
+
@a_adconfigline5 = fd.readline.chomp
|
21
|
+
@a_adconfigline6 = fd.readline.chomp
|
22
|
+
@a_adconfigline7 =fd.readline.chomp
|
23
|
+
@a_adconfigline8 = fd.readline.chomp
|
24
|
+
@a_adconfigline9 = fd.readline.chomp
|
25
|
+
@a_adconfigline10 = fd.readline.chomp
|
26
|
+
@a_adconfigline11 = fd.readline.chomp
|
27
|
+
@a_adconfigline12 = fd.readline.chomp
|
28
|
+
@a_adconfigline13 = fd.readline.chomp
|
29
|
+
@a_adconfigline14 = fd.readline.chomp
|
30
|
+
@a_adconfigline15 = fd.readline.chomp
|
31
|
+
@a_adconfigline16 = fd.readline.chomp
|
32
|
+
@a_adconfigline17 = fd.readline.chomp
|
33
|
+
@a_adconfigline18 = fd.readline.chomp
|
34
|
+
@a_adconfigline19 = fd.readline.chomp
|
35
|
+
|
36
|
+
while ! fd.eof?
|
37
|
+
@extraadconfigdatadisplay = fd.readline
|
38
|
+
end
|
39
|
+
fd.close
|
40
|
+
rescue SystemCallError, StandardError
|
41
|
+
$stderr.print "system call error: " + $!
|
42
|
+
end # exception rescue
|
43
|
+
|
44
|
+
end
|
45
|
+
|
@@ -1,13 +1,14 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
@newadconfigurationresult = "Config Variables loaded"
|
9
|
-
rescue
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
# this method loads the on screen variables into the running class
|
2
|
+
def loadrwdaddressesconfigurationvariables
|
3
|
+
|
4
|
+
configfiletoload = File.join(ConfigurationDir,"rwdaddresses.cnf")
|
5
|
+
begin
|
6
|
+
load configfiletoload
|
7
|
+
@extraadconfigdatadisplay = ""
|
8
|
+
@newadconfigurationresult = "Config Variables loaded"
|
9
|
+
rescue
|
10
|
+
@extraadconfigdatadisplay = ""
|
11
|
+
@newadconfigurationresult = "loading error"
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
@@ -1,30 +1,30 @@
|
|
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
|
-
|
1
|
+
# this method views an existing address record
|
2
|
+
def loadnamerecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
@a_filename = $currentnametext
|
6
|
+
|
7
|
+
begin # exception trapped block
|
8
|
+
|
9
|
+
fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
|
10
|
+
|
11
|
+
fd = File.open(fileName,"r")
|
12
|
+
@a_name = fd.readline.chomp
|
13
|
+
@a_address = fd.readline.chomp
|
14
|
+
@a_citystatezip = fd.readline.chomp
|
15
|
+
@a_phone = fd.readline.chomp
|
16
|
+
@a_email = fd.readline.chomp
|
17
|
+
@a_comment1 = fd.readline.chomp
|
18
|
+
@a_comment2 =fd.readline.chomp
|
19
|
+
@a_comment3 = fd.readline.chomp
|
20
|
+
|
21
|
+
while ! fd.eof?
|
22
|
+
@extranamedatadisplay = fd.readline
|
23
|
+
end
|
24
|
+
fd.close
|
25
|
+
rescue SystemCallError, StandardError
|
26
|
+
$stderr.print "system call error: " + $!
|
27
|
+
end # exception rescue
|
28
|
+
|
29
|
+
end
|
29
30
|
|
30
|
-
end
|
@@ -1,30 +1,30 @@
|
|
1
1
|
# this code is to call the help window
|
2
2
|
def runhelpwindowrwdaddresses
|
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
|
-
|
3
|
+
|
4
|
+
$help_topic = "viewaddresses_help"
|
5
|
+
if @rwd_tab == "Viewnamedata"
|
6
|
+
$help_topic = "viewaddresses_help"
|
7
|
+
end
|
8
|
+
if @rwd_tab == "viewaddressesconfiguration"
|
9
|
+
$help_topic = "rwdaddresses_configuration"
|
10
|
+
end
|
11
|
+
if @rwd_tab == "editnamerecordfile"
|
12
|
+
$help_topic = "editcontact_help"
|
13
|
+
end
|
14
|
+
if @rwd_tab == "contactutilitiesrwdaddresses"
|
15
|
+
$help_topic = "contactutilities_help"
|
16
|
+
end
|
17
|
+
if @rwd_tab == "rwdaddressessynctasks"
|
18
|
+
$help_topic = "rwdaddresses_sync"
|
19
|
+
end
|
20
|
+
$helptopicsarray = $helptopicsarray | ["viewaddresses_help","editcontact_help","rwdaddresses_configuration","rwdaddresses_sync"]
|
21
|
+
|
22
|
+
|
23
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
24
|
+
$previouswindow = @rwd_window
|
25
|
+
$previoustab = @rwd_tab
|
26
|
+
end
|
27
|
+
runhelpwindow
|
28
28
|
end
|
29
29
|
|
30
30
|
|
@@ -1,16 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
# this code is to change the contact name
|
2
|
+
def changenamedata
|
3
|
+
oldName = $addressfiles_directory + "/" + @a_viewnamedata + ".nam"
|
4
|
+
if ! @a_changenamedata.empty?
|
5
|
+
|
6
|
+
newName = $addressfiles_directory + "/" + @a_changenamedata + ".nam"
|
7
|
+
File.rename(oldName, newName)
|
8
|
+
oldphotoName = $addressfiles_directory + "/" + @a_viewnamedata + ".jpg"
|
9
|
+
newphotoName = $addressfiles_directory + "/" + @a_changenamedata + ".jpg"
|
10
|
+
if File.exist?(oldphotoName)
|
11
|
+
File.rename(oldphotoName, newphotoName)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
16
15
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
# This application is a contact book
|
3
|
-
# For
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# return to main
|
6
|
+
def returntomain
|
7
|
+
@rwd_window = "main"
|
8
|
+
@rwd_tab="rwdaddressesselectiontab"
|
9
|
+
end
|
10
|
+
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
# This application is a contact book
|
3
|
-
# For
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runrwdaddresseswindow
|
7
|
+
@rwd_window = "main"
|
8
|
+
@rwd_tab = "Viewnamedata"
|
9
|
+
end
|
10
|
+
|
@@ -1,34 +1,34 @@
|
|
1
1
|
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
#
|
3
3
|
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
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
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runrwdaddressesmenu1
|
7
|
+
@rwd_window = "main"
|
8
|
+
@rwd_tab = "Viewnamedata"
|
9
|
+
end
|
10
|
+
def runrwdaddressesmenu2
|
11
|
+
@rwd_window = "main"
|
12
|
+
@rwd_tab = "editnamerecordfile"
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
def runrwdaddressesmenu3
|
17
|
+
@rwd_window = "main"
|
18
|
+
@rwd_tab = "contactutilitiesrwdaddresses"
|
19
|
+
end
|
20
|
+
def runrwdaddressesmenu4
|
21
|
+
@rwd_window = "rwdaddressessyncwindow"
|
22
|
+
@rwd_tab = "rwdaddressessynctasks"
|
23
|
+
end
|
24
|
+
|
25
|
+
def runrwdaddressesmenu10
|
26
|
+
@rwd_window = "rwdaddressessyncwindow"
|
27
|
+
@rwd_tab = "viewaddressesconfiguration"
|
28
|
+
end
|
29
|
+
|
30
|
+
def runrwdaddressesmenu11
|
31
|
+
@rwd_window = "main"
|
32
|
+
@rwd_tab = "documentsrwdtinkerone"
|
33
|
+
end
|
34
|
+
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
# This application is a contact book
|
3
|
-
# For
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runrwdaddressessyncbackwindow
|
7
|
+
@rwd_window = "rwdaddressessyncwindow"
|
8
|
+
@rwd_tab = "rwdaddressessynctasks"
|
9
|
+
end
|
10
|
+
|
@@ -1,10 +1,10 @@
|
|
1
1
|
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
2
|
# This application is a contact book
|
3
|
-
# For
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runrwdaddressesbackwindow
|
7
|
+
@rwd_window = "rwdaddresseswindow"
|
8
|
+
@rwd_tab="Viewnamedata"
|
9
|
+
end
|
10
|
+
|
@@ -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.
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# return the version constant defined in the config file
|
6
|
+
def runrwdaddressesversion
|
7
|
+
@rwd_window = "applicationversion"
|
8
|
+
@versionappnamedisplay = "RwdAddresses"
|
9
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
10
|
+
@versionnumberdisplay = "Version " + RwdAddressesVersion
|
11
|
+
|
12
|
+
end
|
12
13
|
|
13
|
-
end
|
14
|
-
|
@@ -1,20 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
1
|
+
# this method adds a new address record
|
2
|
+
def saverwdaddressesconfiguration
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
newname = "rwdaddresses.cnf" # grab the filename to create
|
6
|
+
|
7
|
+
|
8
|
+
newdata =@a_adconfigline1.to_s + "\n" + @a_adconfigline2.to_s + "\n" + @a_adconfigline3.to_s + "\n" + @a_adconfigline4.to_s + "\n" + @a_adconfigline5.to_s + "\n" + @a_adconfigline6.to_s + "\n" + @a_adconfigline7.to_s + "\n" + @a_adconfigline8.to_s + "\n" + @a_adconfigline9.to_s + "\n" + @a_adconfigline10.to_s + "\n" + @a_adconfigline11.to_s + "\n" + @a_adconfigline12.to_s + "\n" + @a_adconfigline13.to_s + "\n" + @a_adconfigline14.to_s + "\n" + @a_adconfigline15.to_s + "\n" + @a_adconfigline16.to_s + "\n" + @a_adconfigline17.to_s + "\n" + @a_adconfigline18.to_s + "\n" + @a_adconfigline19.to_s + "\n"
|
9
|
+
|
10
|
+
begin # exception trapped block
|
11
|
+
fileName = File.join( ConfigurationDir, newname )
|
12
|
+
fd = File.open(fileName,"w")
|
13
|
+
fd.print(newdata) # save the record info to the file
|
14
|
+
fd.close
|
15
|
+
@newconfigurationresult=newdata # show the record info in the browser
|
16
|
+
rescue SystemCallError, StandardError
|
17
|
+
$stderr.print "system call error: " + $!
|
18
|
+
end # exception rescue
|
19
|
+
|
20
|
+
end
|