rwdaddresses 1.01 → 1.02

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. data/Readme.txt +5 -0
  2. data/code/01rwdcore/01rwdcore.rb +15 -13
  3. data/code/01rwdcore/openhelpwindow.rb +26 -26
  4. data/code/01rwdcore/returntomain.rb +8 -8
  5. data/code/01rwdcore/rwdtinkerversion.rb +12 -13
  6. data/code/01rwdcore/rwdwindowreturn.rb +3 -5
  7. data/code/01rwdcore/test_cases.rb +115 -0
  8. data/code/01rwdcore/test_harness.rb +12 -0
  9. data/code/01rwdcore/uploadreturns.rb +60 -59
  10. data/code/superant.com.rwdaddresses/attachtmpcontactphoto.rb +23 -23
  11. data/code/superant.com.rwdaddresses/clearscreendisplay.rb +14 -15
  12. data/code/superant.com.rwdaddresses/createnewnamerecord.rb +19 -18
  13. data/code/superant.com.rwdaddresses/deletecontactrecord.rb +22 -21
  14. data/code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb +15 -16
  15. data/code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb +34 -32
  16. data/code/superant.com.rwdaddresses/listnamerecord.rb +14 -14
  17. data/code/superant.com.rwdaddresses/listvcardrecord.rb +15 -0
  18. data/code/superant.com.rwdaddresses/loadconfigurationrecord.rb +45 -44
  19. data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +14 -13
  20. data/code/superant.com.rwdaddresses/loadnamerecord.rb +29 -29
  21. data/code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb +25 -25
  22. data/code/superant.com.rwdaddresses/renamecontact.rb +14 -15
  23. data/code/superant.com.rwdaddresses/returntomain.rb +8 -8
  24. data/code/superant.com.rwdaddresses/runaddresseswindow.rb +8 -8
  25. data/code/superant.com.rwdaddresses/runrwdaddressesmenu1.rb +31 -31
  26. data/code/superant.com.rwdaddresses/runrwdaddresssyncbackwindow.rb +8 -8
  27. data/code/superant.com.rwdaddresses/rwdaddressesbackwindow.rb +8 -8
  28. data/code/superant.com.rwdaddresses/rwdaddresseshelpabout.rb +10 -11
  29. data/code/superant.com.rwdaddresses/saveconfigurationrecord.rb +20 -20
  30. data/code/superant.com.rwdaddresses/savevcardrecord.rb +76 -0
  31. data/code/superant.com.rwdaddresses/syncrwdaddress.rb +24 -26
  32. data/code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb +28 -28
  33. data/code/superant.com.rwdaddresses/viewaddressconfiguration.rb +21 -21
  34. data/code/superant.com.rwdaddresses/viewnamedata.rb +27 -26
  35. data/code/superant.com.rwdaddresses/viewphoto.rb +4 -4
  36. data/code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb +23 -21
  37. data/code/superant.com.rwdaddresses/viewtmpcontactphoto.rb +6 -6
  38. data/code/superant.com.rwdaddresses/viewvcarddata.rb +22 -0
  39. data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +89 -92
  40. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +15 -20
  41. data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +19 -18
  42. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +20 -19
  43. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +19 -18
  44. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +7 -7
  45. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +48 -49
  46. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +8 -7
  47. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +22 -26
  48. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -31
  49. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -13
  50. data/code/superant.com.rwdtinkerbackwindow/network.rb +82 -82
  51. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +18 -17
  52. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +37 -37
  53. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +20 -20
  54. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -32
  55. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +8 -9
  56. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +10 -11
  57. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -18
  58. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +21 -20
  59. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +23 -20
  60. data/configuration/language.dist +1 -1
  61. data/configuration/rwdaddresses.dist +2 -2
  62. data/configuration/rwdtinker.dist +2 -2
  63. data/configuration/tinkerwin2variables.dist +1 -1
  64. data/extras/vpim/date.rb +198 -0
  65. data/extras/vpim/dirinfo.rb +229 -0
  66. data/extras/vpim/enumerator.rb +29 -0
  67. data/extras/vpim/field.rb +497 -0
  68. data/extras/vpim/maker/vcard.rb +312 -0
  69. data/extras/vpim/rfc2425.rb +244 -0
  70. data/extras/vpim/rrule.rb +482 -0
  71. data/extras/vpim/time.rb +42 -0
  72. data/extras/vpim/vcard.rb +151 -0
  73. data/extras/vpim/vpim.rb +94 -0
  74. data/gui/frontwindow0/superant.com.rwdaddresses/16editrecord.rwd +5 -0
  75. data/gui/frontwindow0/superant.com.rwdaddresses/17viewvcardrecord.rwd +32 -0
  76. data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +1 -1
  77. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/70rwddiagnostics.rwd +1 -11
  78. data/init.rb +231 -228
  79. data/names/Angelina Jolie.vcf +8 -0
  80. data/rwd_files/HowTo_Addresses.txt +5 -0
  81. data/rwd_files/HowTo_Tinker.txt +14 -0
  82. data/rwdconfig.dist +6 -2
  83. data/tests/makedist.rb +36 -7
  84. metadata +23 -21
  85. data/extras/cmdline_parse +0 -47
  86. data/extras/config_file +0 -69
  87. data/extras/errorMsg +0 -19
  88. data/extras/makePlaylist +0 -34
  89. data/extras/mp3controld +0 -289
  90. data/extras/playlist +0 -186
  91. data/extras/plugins/Network +0 -237
  92. data/extras/showHelp +0 -18
  93. data/gui/frontwindowselections/superant.com.rwdaddressesselectiontab/rwdaddressessyncselectiontab.rwd +0 -12
  94. data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd +0 -4
  95. data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd +0 -3
  96. data/gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd +0 -10
  97. data/installed/rwdaddressesdata2.inf +0 -8
  98. data/rwd_files/tinker.png +0 -0
@@ -1,34 +1,36 @@
1
+ # down load address
1
2
  def downloadrwdaddressfiles
2
- require 'net/ftp'
3
- BasicSocket.do_not_reverse_lookup = true
4
- @rwdaddressesftpdisplays = ""
5
- begin
6
- ftp = Net::FTP::new($rwdaddresses_ftpsite)
7
- @rwdaddressesftpdisplay = "files downloaded" + "\n"
8
- ftp.debug_mode = false
9
- ftp.login($rwdaddresses_ftplogin, $rwdaddresses_ftppassword)
10
- ftp.chdir($rwdaddresses_ftpdirectory)
11
- print "I'm in the directory ", ftp.pwd(), "\n"
12
- schfiles = ftp.nlst($rwdaddresses_ftpdirectory)
13
- schfiles.each do |x|
14
- #adjust the filters to the files you want to see...
15
- if(!test(?d,x))
16
- if x =~ /nam/
17
- lastslash = x.rindex('/')+1
18
- newstring = x.slice!(lastslash..256)
19
- localupdatefile = File.join($rwdaddresses_updatedirectory, "#{newstring}")
20
- ftp.getbinaryfile("#{newstring}" , localupdatefile )
21
- @rwdaddressesftpdisplay = @rwdaddressesftpdisplay + newstring + "\n"
22
- end
23
- end
24
-
25
- end
26
- ftp.close
27
-
28
- rescue
29
- if ftp
30
- ftp.close
31
- end
32
- @rwdaddressesftpdisplay = "ftp error"
33
- end
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
- # 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
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
- # 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
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
- # 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
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
- # 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
-
10
- fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
11
-
12
- fd = File.open(fileName,"r")
13
- @a_name = fd.readline.chomp
14
- @a_address = fd.readline.chomp
15
- @a_citystatezip = fd.readline.chomp
16
- @a_phone = fd.readline.chomp
17
- @a_email = fd.readline.chomp
18
- @a_comment1 = fd.readline.chomp
19
- @a_comment2 =fd.readline.chomp
20
- @a_comment3 = fd.readline.chomp
21
-
22
- while ! fd.eof?
23
- @extranamedatadisplay = fd.readline
24
- end
25
- fd.close
26
- rescue SystemCallError, StandardError
27
- $stderr.print "system call error: " + $!
28
- end # exception rescue
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
- $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
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
- # 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
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 more information about 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
-
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 more information about 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
-
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
- # 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
-
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 more information about 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
-
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 more information about 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
-
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.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 runrwdaddressesversion
8
- @rwd_window = "applicationversion"
9
- @versionappnamedisplay = "RwdAddresses"
10
- @versioncopyrightdisplay = "(c) 2004 Steven Gibson "
11
- @versionnumberdisplay = "Version " + RwdAddressesVersion
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
- # 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
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