rwdaddresses 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.
@@ -1,12 +1,12 @@
1
1
  def viewnamedata
2
2
  require 'fileutils'
3
3
  $currentnametext = "%s" % [@a_viewnamedata]
4
- photoname = $currentnametext + ".png"
4
+ photoname = $currentnametext + ".jpg"
5
5
  begin # exception trapped block
6
- path_to = File.join( "rwd_files", "contacttmp.png" )
6
+ path_to = File.join( "rwd_files", "contacttmp.jpg" )
7
7
  path_from = File.join($addressfiles_directory, photoname )
8
8
  if ! File.exist?(path_from)
9
- path_from = File.join($addressfiles_directory,"nophoto.png" )
9
+ path_from = File.join($addressfiles_directory,"nophoto.jpg" )
10
10
  end
11
11
 
12
12
  Dir.chdir($progdir)
@@ -1,6 +1,6 @@
1
1
  # this code is to list the photo names
2
2
  def viewtmpcontactphoto
3
- fileList = Dir.new($tmpphoto_directory).entries.sort.delete_if { |x| ! (x =~ /png$/) }
3
+ fileList = Dir.new($tmpphoto_directory).entries.sort.delete_if { |x| ! (x =~ /jpg$/) }
4
4
  @listnamerecordfilesresult = ""
5
5
  @listphotosfromtmp = fileList.rwd_method("filltmpcontactphoto")
6
6
  end
@@ -13,7 +13,7 @@
13
13
  begin # exception trapped block
14
14
 
15
15
  File.delete(fileName)
16
- fileNamephoto = $addressfiles_directory + "/" + $currentnametext + ".png"
16
+ fileNamephoto = $addressfiles_directory + "/" + $currentnametext + ".jpg"
17
17
  if File.exist?(fileNamephoto)
18
18
  File.delete(fileNamephoto)
19
19
  end
@@ -7,7 +7,7 @@
7
7
  tmpcontactphotoName = $tmpphoto_directory + "/" + @a_tmpphotoname
8
8
  begin
9
9
  if File.exist?(tmpcontactphotoName)
10
- newcontactphotoName = $tmpphoto_directory + "/" + $currentnametext + ".png"
10
+ newcontactphotoName = $tmpphoto_directory + "/" + $currentnametext + ".jpg"
11
11
  if ! (tmpcontactphotoName == newcontactphotoName )
12
12
  File.rename(tmpcontactphotoName, newcontactphotoName)
13
13
  end
@@ -0,0 +1,16 @@
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
+
16
+
@@ -3,7 +3,7 @@
3
3
  begin # exception trapped block
4
4
 
5
5
  Dir.chdir($progdir)
6
- rwdaddrssesconfigurationfile = File.join( "configuration", "gg3rwdaddresses.cnf" )
6
+ rwdaddrssesconfigurationfile = File.join( "configuration", "rwdaddresses.cnf" )
7
7
  if File.exist?(rwdaddrssesconfigurationfile)
8
8
  fd = File.open(rwdaddrssesconfigurationfile,"r")
9
9
  @rwdaddressesconfigurationtext = " "
@@ -1,10 +1,9 @@
1
1
 
2
- RwdTinkerVersion = "1.4"
2
+ RwdTinkerVersion = "1.41"
3
3
  CodeName = "rwdtinker"
4
4
  CodeNameFile = CodeName + ".rb"
5
5
  LangNameFile = "rwdlanguage.rb"
6
6
  RWDFile = "rwdtinker.rwd"
7
- $lang = "en"
8
7
  @@codedir = "code"
9
8
  @@guidir = "gui"
10
9
  @@langdir = "lang"
@@ -0,0 +1,5 @@
1
+
2
+ #$lang = "jp"
3
+ $lang= "en"
4
+ #$lang= "nl"
5
+ #$lang= "es"
@@ -0,0 +1,5 @@
1
+
2
+ RwdAddressesVersion = "0.92"
3
+ $photodelay = 0
4
+ $addressfiles_directory="names"
5
+ $tmpphoto_directory = "/tmp"
@@ -1,7 +1,7 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <horizontal>
4
- <button caption=\"Click for Version\" action=\"runrwdtinkerversion\"/>
4
+ <button caption=#{Message[:clickfor_version]} action=\"runrwdtinkerversion\"/>
5
5
  </horizontal>
6
6
  </panel>"
7
7
 
@@ -1,5 +1,5 @@
1
1
  $rwdguivar=
2
2
  "
3
3
  <window name=\"contactphoto\" title=\"Contact Photo\">
4
- <image src=\"contacttmp.png\"> contact photo </image>
4
+ <image src=\"contacttmp.jpg\"> contact photo </image>
5
5
  </window>"
@@ -0,0 +1,13 @@
1
+ # rwdaddresses - applet for address book records
2
+ code/gl3addresses
3
+ configuration/gl3addresses.cnf
4
+ names/nophoto.png
5
+ rwd_files/contacttmp.png
6
+ rwd_files/HowTo_Addresses.txt
7
+ gui/lm3rwdaddressesselectiontab
8
+ gui/uu8addresses
9
+ gui/xg3rwdaddresses
10
+ gui/yg6rwdwin2helpabout
11
+ gui/yl3rwdaddresseshelpabout
12
+ gui/yy7addressesphotowindow
13
+
@@ -0,0 +1,9 @@
1
+ # Japanese Language files for RwdTinker core
2
+
3
+ :module_unknown => "Module unknown",
4
+ :applet_installed => "applet installed!.",
5
+ :clickfor_version => '"click for version"',
6
+ :rwdtinker_window_2 => "RwdTinker Window 2",
7
+ :rwdtinker => "RwdTinker",
8
+ :selection_panel => "&#12379;&#12435;&#12383;&#12367",
9
+ :documents => "&#12458;&#12531;&#12521;&#12452;&#12531;&#12510;&#12491;&#12517;&#12450;&#12523",
@@ -0,0 +1,19 @@
1
+ # English Language files for RwdTinker core
2
+
3
+ :cancel => '"Annuleren"',
4
+ :open => '"Openen"',
5
+ :save => '"Opslaan"',
6
+ :window => '"Venster"',
7
+ :applet_installed => '"Applet geinstalleerd"',
8
+ :clickfor_version => '"Klier hier voor de Versie"',
9
+ :documents => '"Documenten"',
10
+ :help => '"Help"',
11
+ :module_unknown => '"Module onbekend"',
12
+ :next => '"Volgende"',
13
+ :rwdtinker => '"RWDTinker"',
14
+ :rwdtinker_help_window => '"RWDTinker Help Venster"',
15
+ :rwdtinker_help => '"RWDTinker Help"',
16
+ :rwdtinker_window_2 => '"RWDTinker Venster 2"',
17
+ :rwdtinker_back_window => '"RwdTinker Back Venster"',
18
+ :tinker_logo => '"RWDTinker Logo"',
19
+ :selection_panel => '"Selectie Paneel"',
Binary file
Binary file
data/names/nophoto.jpg ADDED
Binary file
@@ -126,6 +126,12 @@ erik = secret
126
126
  Thanks, Steven Gibson
127
127
 
128
128
  == Changelog
129
+ version 0.92
130
+ updated for rwdtinker 1.41
131
+ updated some l10n data
132
+ switched to jpg for contact photos
133
+ fixed rename for nil new name
134
+
129
135
  version 0.91
130
136
  updated for rwdtinker 1.4
131
137
  Added configuration viewing
@@ -195,6 +195,17 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
195
195
  Thanks, Steven Gibson
196
196
 
197
197
  == Changelog:
198
+ version 1.41
199
+ l10n work es,nl, jp
200
+ separated out languge.cnf
201
+ added zip applets refreshacpi, rwdcalc
202
+
203
+ version 1.40
204
+ removed extra lines from init.rb
205
+ fixed help second window
206
+ added some tranlations for Spanish
207
+ More work on l10n
208
+
198
209
  version 1.3
199
210
  refactored gui files to do easier i10n
200
211
  removed lang directories under gui
Binary file
@@ -0,0 +1,163 @@
1
+ #-------------------------------------------------------------------------------------------------------------#
2
+ # test with the WATIR controller
3
+ #
4
+ # Simple test based on Google/watir demo
5
+ #
6
+ #------------------------------------------------------------------------------------------------------------ #
7
+
8
+ #includes
9
+ require '../watir' # the controller
10
+
11
+ #test::unit includes
12
+ require 'test/unit'
13
+ require 'test/unit/ui/console/testrunner'
14
+ require '../unittests/testUnitAddons'
15
+
16
+ #code to set your current path in Windows
17
+ $myDir = File.dirname(__FILE__)
18
+ $LOAD_PATH << $myDir
19
+
20
+ class TC_rwdtinker_suite < Test::Unit::TestCase
21
+
22
+
23
+
24
+ def test_a_Open1
25
+ #--------------------------------------------------------
26
+ # test case that shows basic WATIR functionality:
27
+ # * enter text in a field
28
+ # * click a button
29
+ #
30
+
31
+ #variables
32
+ testSite = 'http://localhost:7705'
33
+
34
+ #open the IE browser
35
+ $ie = IE.new
36
+
37
+ puts '## Beginning of test: rwdtinker'
38
+ puts ' '
39
+
40
+
41
+ $ie.goto(testSite)
42
+ puts ' Action: entered ' + testSite + 'in the address bar.'
43
+ sleep 1
44
+
45
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_help";document.bodyform.submit();').click
46
+
47
+ $ie.button(:caption, 'Click for Version').click
48
+
49
+ $ie.button(:caption, 'Cancel').click
50
+
51
+
52
+
53
+ sleep 1
54
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_selectiontab";document.bodyform.submit();').click
55
+
56
+
57
+
58
+ $ie.button(:caption, 'RwdTinker Help Window').click
59
+ puts ' Action: clicked the Help Window link'
60
+
61
+ end
62
+
63
+ def test_b_Buttons1
64
+
65
+
66
+ sleep 1
67
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_nexttab";document.bodyform.submit();').click
68
+ puts ' Action: clicked the nexttab link'
69
+
70
+
71
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_main";document.bodyform.submit();').click
72
+ puts ' Action: clicked the main tab link'
73
+
74
+
75
+ $ie.button(:caption, "Cancel").click
76
+ puts ' Action: clicked the cancel button'
77
+
78
+
79
+
80
+ end
81
+
82
+ def test_c_tabs
83
+
84
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_one";document.bodyform.submit();').click
85
+ puts ' Action: clicked tab one'
86
+
87
+
88
+ end
89
+
90
+ def test_d_tabs
91
+
92
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_selectiontab";document.bodyform.submit();').click
93
+ puts ' Action: clicked the selectiontab'
94
+
95
+
96
+ $ie.button(:caption, 'RwdTinker Back Window').click
97
+ puts ' Action: clicked the Help Window link'
98
+
99
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_backone";document.bodyform.submit();').click
100
+ puts ' Action: clicked the backone tab'
101
+
102
+
103
+ assert($ie.pageContainsText("previous window") )
104
+
105
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_diagnostictab";document.bodyform.submit();').click
106
+ puts ' Action: clicked the diagnostictab top link'
107
+
108
+
109
+ $ie.button(:caption, "View Ruby Version").click
110
+ puts ' Action: clicked Ruby Version button.'
111
+
112
+ assert($ie.pageContainsText("Version") )
113
+
114
+ $ie.button(:caption, "view platform").click
115
+ puts ' Action: clicked platform button.'
116
+
117
+ assert($ie.pageContainsText("Platform is") )
118
+
119
+ $ie.button(:caption, "View rwdtinker Version").click
120
+ puts ' Action: clicked rwdtinker version button.'
121
+
122
+ assert($ie.pageContainsText("rwdtinker version") )
123
+
124
+ end # end of test_d
125
+
126
+ def test_e_tabs
127
+
128
+
129
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_filelister";document.bodyform.submit();').click
130
+
131
+
132
+ assert($ie.pageContainsText("View the list") )
133
+
134
+ $ie.button(:caption, "List Files").click
135
+ puts ' Action: clicked the list files button.'
136
+
137
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="fillappletname/rwdviewlogo-0.4.inf";document.bodyform.submit();').click
138
+
139
+
140
+ $ie.button(:caption, "View Install Text").click
141
+ puts ' Action: clicked the View Install Text button.'
142
+
143
+ assert($ie.pageContainsText("rwdviewlogo") )
144
+
145
+
146
+ end
147
+
148
+ def test_f_tabs
149
+
150
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="rwd_tab_zipslister";document.bodyform.submit();').click
151
+
152
+ assert($ie.pageContainsText("File Name") )
153
+
154
+ assert($ie.pageContainsText("view the list of zip files") )
155
+
156
+ $ie.button(:caption, "List applets available for installing").click
157
+ puts ' Action: clicked the List applets available for installing button.'
158
+
159
+ $ie.link(:url, 'javascript:document.bodyform.rwd_action.value="fillziptoinstallname/rwdhelloworld-0.3.zip";document.bodyform.submit();').click
160
+
161
+ end
162
+
163
+ end #end of class TC_google_suite
Binary file
Binary file
Binary file
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.3
3
3
  specification_version: 1
4
4
  name: rwdaddresses
5
5
  version: !ruby/object:Gem::Version
6
- version: "0.91"
7
- date: 2004-01-02
6
+ version: "0.92"
7
+ date: 2004-01-11
8
8
  summary: rwdaddresses is contact book application using rwdtinker and RubyWebDialogs.
9
9
  require_paths:
10
10
  - "."
@@ -46,19 +46,20 @@ files:
46
46
  - code/gl3addresses/gl7clearscreendisplay.rb
47
47
  - code/gl3addresses/gl8viewtmpcontactphoto.rb
48
48
  - code/gl3addresses/gm3deletecontactrecord.rb
49
- - code/gl3addresses/gm4renamecontact.rb
50
49
  - code/gl3addresses/gm5attachtmpcontactphoto.rb
51
50
  - code/gl3addresses/runaddresseswindow.rb
52
51
  - code/gl3addresses/rwdaddresseshelpabout.rb
53
52
  - code/gl3addresses/viewaddressconfiguration.rb
53
+ - code/gl3addresses/renamecontact.rb
54
54
  - configuration/aa0rwdframework.cnf
55
55
  - configuration/ab1tinkerwin2.cnf
56
- - configuration/gg3rwdaddresses.cnf
56
+ - configuration/language.cnf
57
+ - configuration/rwdaddresses.cnf
57
58
  - names/Angelina Jolie.nam
58
- - names/nophoto.png
59
59
  - names/Steven Gibson.nam
60
- - names/Angelina Jolie.png
61
- - names/Steven Gibson.png
60
+ - names/Angelina Jolie.jpg
61
+ - names/Steven Gibson.jpg
62
+ - names/nophoto.jpg
62
63
  - ev/sgml.rb
63
64
  - ev/xml.rb
64
65
  - ev/net.rb
@@ -77,7 +78,8 @@ files:
77
78
  - lang/wlocallangstart.rb
78
79
  - lang/es/rwdcore/languagefile-es.rb
79
80
  - lang/en/rwdcore/languagefile.rb
80
- - lang/nl/rwdcore/languagefile-nl.rb
81
+ - lang/nl/rwdcore/languagefile.rb
82
+ - lang/jp/rwdcore/languagefile.rb
81
83
  - gui/aa2core/aa0rwdtop.rwd
82
84
  - gui/ll1selectiontabbegin/selectiontabbegin.rwd
83
85
  - gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd
@@ -105,12 +107,12 @@ files:
105
107
  - gui/yg6rwdwin2helpabout/5version.rwd
106
108
  - gui/yy5helpaboutend/helpscreenend.rwd
107
109
  - gui/za1applicationend/yy9rwdend.rwd
108
- - gui/uu8addresses/uu8doc_rwdschedule.rwd
109
110
  - gui/gg3rwdaddresses/gl3viewnamedata.rwd
110
111
  - gui/gg3rwdaddresses/gl4listnamerecordfiles.rwd
111
112
  - gui/gg3rwdaddresses/hviewconfiguration.rwd
112
113
  - gui/gg3rwdaddresses/gl8contactutilities.rwd
113
114
  - gui/gg3rwdaddresses/gl6editrecord.rwd
115
+ - gui/uu8addresses/uu8doc_rwdschedule.rwd
114
116
  - gui/yl3rwdaddresseshelpabout/1appname.rwd
115
117
  - gui/yl3rwdaddresseshelpabout/3copyright.rwd
116
118
  - gui/yl3rwdaddresseshelpabout/5version.rwd
@@ -118,6 +120,7 @@ files:
118
120
  - installed/rwdtinkerwin2-0.5.inf
119
121
  - installed/addressessample1.inf
120
122
  - installed/rwdaddresses-0.91.inf
123
+ - installed/rwdaddresses-0.92.inf
121
124
  - rwd_files/Readme.txt
122
125
  - rwd_files/rwdapplications.html
123
126
  - rwd_files/rwdindex.html
@@ -126,11 +129,15 @@ files:
126
129
  - rwd_files/rdoc-style.css
127
130
  - rwd_files/HowTo_TinkerWin2.txt
128
131
  - rwd_files/HowTo_Addresses.txt
129
- - rwd_files/contacttmp.png
132
+ - rwd_files/contacttmp.jpg
130
133
  - zips/rwdhelloworld-0.3.zip
131
134
  - zips/rwdwshell-0.91.zip
132
135
  - zips/wrubyslippers-0.93.zip
136
+ - zips/rwdrefreshacpi-0.3.zip
137
+ - zips/rwdaschedule-0.7.zip
138
+ - zips/rwdwcalc-0.3.zip
133
139
  - tests/totranslate.lang
140
+ - tests/rwdtinkertestEN.rb
134
141
  - Readme.txt
135
142
  - init.rb
136
143
  test_files: []
@@ -1,13 +0,0 @@
1
- # this code is to change the contact name
2
- def changenamedata
3
- oldName = $addressfiles_directory + "/" + @a_viewnamedata + ".nam"
4
- newName = $addressfiles_directory + "/" + @a_changenamedata + ".nam"
5
- File.rename(oldName, newName)
6
- oldphotoName = $addressfiles_directory + "/" + @a_viewnamedata + ".png"
7
- newphotoName = $addressfiles_directory + "/" + @a_changenamedata + ".png"
8
- if File.exist?(oldphotoName)
9
- File.rename(oldphotoName, newphotoName)
10
- end
11
- end
12
-
13
-
@@ -1,5 +0,0 @@
1
-
2
- RwdAddressesVersion = "0.91"
3
- $photodelay = 0
4
- $addressfiles_directory="names"
5
- $tmpphoto_directory = "/tmp"
@@ -1,4 +0,0 @@
1
- :module_unknown => "Module unknown",
2
- :applet_installed => "applet installed!"
3
-
4
-
Binary file
Binary file
data/names/nophoto.png DELETED
Binary file
Binary file