rwdaddresses 0.91 → 0.92
Sign up to get free protection for your applications and to get access to all the features.
- data/code/gl3addresses/gl3viewnamedata.rb +3 -3
- data/code/gl3addresses/gl8viewtmpcontactphoto.rb +1 -1
- data/code/gl3addresses/gm3deletecontactrecord.rb +1 -1
- data/code/gl3addresses/gm5attachtmpcontactphoto.rb +1 -1
- data/code/gl3addresses/renamecontact.rb +16 -0
- data/code/gl3addresses/viewaddressconfiguration.rb +1 -1
- data/configuration/aa0rwdframework.cnf +1 -2
- data/configuration/language.cnf +5 -0
- data/configuration/rwdaddresses.cnf +5 -0
- data/gui/yg5rwdhelpabout/5version.rwd +1 -1
- data/gui/yy7addressesphotowindow/yy7addressesphoto.rwd +1 -1
- data/installed/rwdaddresses-0.92.inf +13 -0
- data/lang/jp/rwdcore/languagefile.rb +9 -0
- data/lang/nl/rwdcore/languagefile.rb +19 -0
- data/names/Angelina Jolie.jpg +0 -0
- data/names/Steven Gibson.jpg +0 -0
- data/names/nophoto.jpg +0 -0
- data/rwd_files/HowTo_Addresses.txt +6 -0
- data/rwd_files/HowTo_Tinker.txt +11 -0
- data/rwd_files/contacttmp.jpg +0 -0
- data/tests/rwdtinkertestEN.rb +163 -0
- data/zips/rwdaschedule-0.7.zip +0 -0
- data/zips/rwdrefreshacpi-0.3.zip +0 -0
- data/zips/rwdwcalc-0.3.zip +0 -0
- metadata +17 -10
- data/code/gl3addresses/gm4renamecontact.rb +0 -13
- data/configuration/gg3rwdaddresses.cnf +0 -5
- data/lang/nl/rwdcore/languagefile-nl.rb +0 -4
- data/names/Angelina Jolie.png +0 -0
- data/names/Steven Gibson.png +0 -0
- data/names/nophoto.png +0 -0
- data/rwd_files/contacttmp.png +0 -0
@@ -1,12 +1,12 @@
|
|
1
1
|
def viewnamedata
|
2
2
|
require 'fileutils'
|
3
3
|
$currentnametext = "%s" % [@a_viewnamedata]
|
4
|
-
photoname = $currentnametext + ".
|
4
|
+
photoname = $currentnametext + ".jpg"
|
5
5
|
begin # exception trapped block
|
6
|
-
path_to = File.join( "rwd_files", "contacttmp.
|
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.
|
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 =~ /
|
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 + ".
|
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 + ".
|
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", "
|
6
|
+
rwdaddrssesconfigurationfile = File.join( "configuration", "rwdaddresses.cnf" )
|
7
7
|
if File.exist?(rwdaddrssesconfigurationfile)
|
8
8
|
fd = File.open(rwdaddrssesconfigurationfile,"r")
|
9
9
|
@rwdaddressesconfigurationtext = " "
|
@@ -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 => "せんたく",
|
9
|
+
:documents => "オンラインマニュアル",
|
@@ -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
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -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.
|
7
|
-
date: 2004-01-
|
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/
|
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.
|
61
|
-
- names/Steven Gibson.
|
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
|
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.
|
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
|
-
|
data/names/Angelina Jolie.png
DELETED
Binary file
|
data/names/Steven Gibson.png
DELETED
Binary file
|
data/names/nophoto.png
DELETED
Binary file
|
data/rwd_files/contacttmp.png
DELETED
Binary file
|