rwdaddresses 0.94 → 0.95
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.
- data/Readme.txt +7 -0
- data/code/{00rwdtinkercore/aa0begin.rb → 01rwdcore/01rwdcore.rb} +2 -0
- data/code/01rwdcore/02helptexthashbegin.rb +4 -0
- data/code/01rwdcore/03helptexthash.rb +48 -0
- data/code/01rwdcore/04helptextend.rb +6 -0
- data/code/01rwdcore/openhelpwindow.rb +45 -0
- data/code/{00rwdtinkercore → 01rwdcore}/rwdtinkerversion.rb +0 -0
- data/code/01rwdcore/rwdwindowreturn.rb +11 -0
- data/code/superant.com.rwdaddresses/deletecontactrecord.rb +1 -1
- data/code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb +20 -0
- data/code/superant.com.rwdaddresses/helptexthashrwdaddresses.rb +53 -0
- data/code/superant.com.rwdaddresses/loadconfigurationrecord.rb +34 -0
- data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +13 -0
- data/code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb +25 -0
- data/code/superant.com.rwdaddresses/runrwdaddresssyncbackwindow.rb +1 -0
- data/code/superant.com.rwdaddresses/saveconfigurationrecord.rb +18 -0
- data/code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb +21 -0
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/diagnostictab.rb +0 -0
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/installapplet.rb +0 -0
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/listinstalledfiles.rb +0 -0
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/listzips.rb +0 -0
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/loadconfigurationrecord.rb +1 -1
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/loadconfigurationvariables.rb +1 -1
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/openappletname.rb +0 -0
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/removeapplet.rb +0 -0
- data/code/{rwdtinkercallable/callable.rb → superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb} +2 -3
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/rwdtinkerwin2version.rb +0 -0
- data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/saveconfigurationrecord.rb +0 -0
- data/configuration/rwdaddresses.cnf +5 -5
- data/configuration/rwdaddressesversion.cnf +1 -1
- data/configuration/rwdtinker.cnf +3 -0
- data/configuration/rwdtinkerversion.cnf +1 -1
- data/configuration/tinkerwin2version.cnf +1 -1
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/frontwindow0/superant.com.rwdaddresses/11viewnamedata.rwd +1 -1
- data/gui/frontwindow0/superant.com.rwdaddresses/16editrecord.rwd +1 -0
- data/gui/frontwindow0/superant.com.rwdaddresses/zviewconfiguration.rwd +37 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd +1 -1
- data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +1 -1
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/20downloadftp.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/{40editconfiguration.rwd → 60editconfiguration.rwd} +1 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/{3arwddiagnostics.rwd → 70rwddiagnostics.rwd} +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +32 -0
- data/gui/tinkerbackwindows/{superant.com.tinercallablewindow → superant.com.tinkerhelpwindow}/9end.rwd +0 -0
- data/rwd_files/HowTo_Addresses.txt +7 -0
- data/rwd_files/HowTo_Tinker.txt +37 -0
- data/rwd_files/contacttmp.jpg +0 -0
- data/zips/rwdahelloworld-0.5.zip +0 -0
- metadata +34 -32
- data/configuration/rwdplayscriptsversion.cnf +0 -2
- data/gui/frontwindow0/superant.com.rwdaddresses/22viewconfiguration.rwd +0 -16
- data/gui/frontwindowtdocuments/superant.com.rwdaddresses/uu8doc_rwdschedule.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.tinercallablewindow/1appname.rwd +0 -17
- data/tests/rwdtinkertestEN.rb +0 -163
- data/tests/test.result +0 -32
- data/updates/AnaiIbarra.nam +0 -1
- data/zips/rwdaschedule-0.8.zip +0 -0
- data/zips/rwdhelloworld-0.4.zip +0 -0
- data/zips/rwdrefreshacpi-0.4.zip +0 -0
- data/zips/rwdwcalc-0.4.zip +0 -0
- data/zips/rwdwshell-0.92.zip +0 -0
data/Readme.txt
CHANGED
|
@@ -147,6 +147,13 @@ erik = secret
|
|
|
147
147
|
Thanks, Steven Gibson
|
|
148
148
|
|
|
149
149
|
== Changelog
|
|
150
|
+
version 0.95
|
|
151
|
+
added some context sensitive help
|
|
152
|
+
added edit config file and reload config variables
|
|
153
|
+
change to tinker context help script
|
|
154
|
+
updated for rwdtinker 1.47
|
|
155
|
+
Added delete update files function in sync tab
|
|
156
|
+
|
|
150
157
|
version 0.94
|
|
151
158
|
updated for rwdtinker 1.44 - refactored gui files
|
|
152
159
|
Changed gui directory names - more like Java package titles
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# Help files for RwdTinker core
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
:general_help => "You can work with Applets: go to 'Selection tab',
|
|
5
|
+
On that back screen you will find:
|
|
6
|
+
List Applets: you can see and delete installed applets
|
|
7
|
+
List Zips: you can see lists of applets that you can install
|
|
8
|
+
Edit Configuration: You can view the rwdtinker configuration and change it
|
|
9
|
+
Diagnostic Tab: You can view the environments variables that rwdtinker is running with
|
|
10
|
+
",
|
|
11
|
+
:network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the
|
|
12
|
+
init.rb file to something like:\n
|
|
13
|
+
RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n
|
|
14
|
+
Then you should be able to login at: http://yourhostname:8080",
|
|
15
|
+
|
|
16
|
+
:applet_viewing => "You can get a list of all installed applets by clicking the 'listfiles button'
|
|
17
|
+
To see the text of a install file
|
|
18
|
+
Type in the name of the file you want.
|
|
19
|
+
|
|
20
|
+
type it without the inf ending
|
|
21
|
+
rwdapplet-0.1
|
|
22
|
+
|
|
23
|
+
Then click the 'View Installed File' button
|
|
24
|
+
|
|
25
|
+
If it finds the file it will open it. It displays the text the search box.
|
|
26
|
+
|
|
27
|
+
You can uninstall applets on this screen",
|
|
28
|
+
|
|
29
|
+
:applet_installation => " You can download an applet created by someone else\n
|
|
30
|
+
put the file in the zips directory\n
|
|
31
|
+
|
|
32
|
+
click on the 'list zips' tab\n
|
|
33
|
+
click on 'list applets available for installing'\n
|
|
34
|
+
|
|
35
|
+
chose the applet you want\n
|
|
36
|
+
click on 'install applet'\n
|
|
37
|
+
If all goes well the applet should be installed.\n
|
|
38
|
+
You will need to restart rwdtinker to see the new screens",
|
|
39
|
+
:applet_tinkerbackeditconfiguration => " You can edit the configuration
|
|
40
|
+
|
|
41
|
+
Remember to reload the configuration variables if you want your
|
|
42
|
+
changes used.",
|
|
43
|
+
:documents_rwdtinker => "Documents:
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
when you click on a document name, the document should pop up in a
|
|
47
|
+
browser window, or in another browser tab."
|
|
48
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# this code is to call the help window
|
|
2
|
+
def runhelpwindow
|
|
3
|
+
|
|
4
|
+
if @rwd_window == "main"
|
|
5
|
+
if @rwd_tab == "documentsrwdtinkerone"
|
|
6
|
+
$help_topic = "documents_rwdtinker"
|
|
7
|
+
end
|
|
8
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
|
9
|
+
$previouswindow = @rwd_window
|
|
10
|
+
$previoustab = @rwd_tab
|
|
11
|
+
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
if @rwd_window == "tinkerbackwindow"
|
|
15
|
+
if @rwd_tab == "filelister"
|
|
16
|
+
$help_topic = "applet_viewing"
|
|
17
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
|
18
|
+
end
|
|
19
|
+
if @rwd_tab == "zipslister"
|
|
20
|
+
$help_topic = "applet_installation"
|
|
21
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
|
22
|
+
end
|
|
23
|
+
if @rwd_tab == "editconfigurationfile"
|
|
24
|
+
$help_topic = "applet_tinkerbackeditconfiguration"
|
|
25
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
$previouswindow = @rwd_window
|
|
29
|
+
$previoustab = @rwd_tab
|
|
30
|
+
end
|
|
31
|
+
if @rwd_window == "rwdtinkerhelpwindow"
|
|
32
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing"]
|
|
33
|
+
end
|
|
34
|
+
@rwdhelptopic = $help_topic
|
|
35
|
+
@rwdhelpdataoutput = "#{Helptext[:"#{$help_topic}"]}"
|
|
36
|
+
@rwdhelpsubchoicesoutput = $helptopicsarray.rwd_method("choosenewhelptopic")
|
|
37
|
+
@rwd_window = "rwdtinkerhelpwindow"
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def choosenewhelptopic(inffile)
|
|
41
|
+
$help_topic = inffile
|
|
42
|
+
runhelpwindow
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# this code is to delete update files
|
|
2
|
+
def deleterwdaddressesupdatefiles
|
|
3
|
+
# exception begin
|
|
4
|
+
begin
|
|
5
|
+
fileListarray = Dir.new($rwdaddresses_updatedirectory).entries.sort.delete_if { |x| ! (x =~ /nam$/) }
|
|
6
|
+
#loop through and get the files names
|
|
7
|
+
|
|
8
|
+
fileListarray.each do |x|
|
|
9
|
+
filetodelete = File.join($rwdaddresses_updatedirectory,x)
|
|
10
|
+
if File.exist?(filetodelete)
|
|
11
|
+
File.delete(filetodelete)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
@rwdaddressesftpdisplay = "update files deleted"
|
|
15
|
+
rescue
|
|
16
|
+
@rwdaddressesftpdisplay = "error opening schedule update directory"
|
|
17
|
+
end # end of error function
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
Helptext.update( :rwdaddresses_help => " Use the 'Edit Contact' tab
|
|
4
|
+
this is where you can add records.
|
|
5
|
+
The first field is the filename that will be created.
|
|
6
|
+
You can use the person's name, Ringo Starr
|
|
7
|
+
|
|
8
|
+
The following lines for entry are for you to fill in as you want.
|
|
9
|
+
|
|
10
|
+
When you are finished press the Save Changes button
|
|
11
|
+
|
|
12
|
+
You use this same screen for editing an already saved event ",
|
|
13
|
+
:rwdaddresses_generalhelp => "
|
|
14
|
+
Click on the list events button.
|
|
15
|
+
|
|
16
|
+
Click on the date you want
|
|
17
|
+
|
|
18
|
+
Then click the 'Open' button
|
|
19
|
+
|
|
20
|
+
If it finds the record it will open it. It displays the record
|
|
21
|
+
as text under the 'Open' button.",
|
|
22
|
+
:rwdaddresses_configuration => " click on 'Edit Configuration'
|
|
23
|
+
You can view the configuration file
|
|
24
|
+
|
|
25
|
+
You can edit the configuration
|
|
26
|
+
|
|
27
|
+
Remember to reload the configuration variables if you want your
|
|
28
|
+
changes used.",
|
|
29
|
+
:rwdaddresses_sync => "Sync for multiple computers
|
|
30
|
+
|
|
31
|
+
If you are like me, you have more than one system
|
|
32
|
+
I use rwdTinker at home on my Linux laptop
|
|
33
|
+
at work I use it on XP
|
|
34
|
+
on the go I use rwdtinker on my Zaurus PDA
|
|
35
|
+
So I am adding contacts on different machines.
|
|
36
|
+
There is a function to help sync the separate systems
|
|
37
|
+
|
|
38
|
+
in 'Selection Panel' click on 'Open Addresses Sync Window'
|
|
39
|
+
|
|
40
|
+
First you need your ftp details set in the
|
|
41
|
+
configuration/rwdaddresses.cnf file
|
|
42
|
+
|
|
43
|
+
you can upload your events from your local names directory to the ftp site
|
|
44
|
+
you can download contacts from the ftp site to your local updates directory
|
|
45
|
+
you can perform a sync which finds remote contacts and adds them to your local
|
|
46
|
+
names directory
|
|
47
|
+
|
|
48
|
+
There is a button to delete the update directory when finished"
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
)
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
|
|
26
|
+
while ! fd.eof?
|
|
27
|
+
@extraadconfigdatadisplay = fd.readline
|
|
28
|
+
end
|
|
29
|
+
fd.close
|
|
30
|
+
rescue SystemCallError, StandardError
|
|
31
|
+
$stderr.print "system call error: " + $!
|
|
32
|
+
end # exception rescue
|
|
33
|
+
|
|
34
|
+
end
|
|
@@ -0,0 +1,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
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# this code is to call the help window
|
|
2
|
+
def runhelpwindowrwdaddresses
|
|
3
|
+
|
|
4
|
+
$help_topic = "rwdaddresses_generalhelp"
|
|
5
|
+
if @rwd_tab == "viewnamedata"
|
|
6
|
+
$help_topic = "rwdaddresses_help"
|
|
7
|
+
end
|
|
8
|
+
if @rwd_tab == "viewrwdaddressesconfiguration"
|
|
9
|
+
$help_topic = "rwdaddresses_configuration"
|
|
10
|
+
end
|
|
11
|
+
if @rwd_tab == "rwdaddressessynctasks"
|
|
12
|
+
$help_topic = "rwdaddresses_sync"
|
|
13
|
+
end
|
|
14
|
+
$helptopicsarray = $helptopicsarray | ["rwdaddresses_help","rwdaddresses_configuration","rwdaddresses_generalhelp","rwdaddresses_sync"]
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
|
19
|
+
$previouswindow = @rwd_window
|
|
20
|
+
$previoustab = @rwd_tab
|
|
21
|
+
end
|
|
22
|
+
runhelpwindow
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
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"
|
|
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
|
+
|
|
18
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
def viewrwdaddressesconfiguration
|
|
2
|
+
require 'fileutils'
|
|
3
|
+
begin # exception trapped block
|
|
4
|
+
|
|
5
|
+
Dir.chdir($progdir)
|
|
6
|
+
rwdaddressesconfigurationfile = File.join( "configuration", "rwdaddresses.cnf" )
|
|
7
|
+
if File.exist?(rwdaddressesconfigurationfile)
|
|
8
|
+
fd = File.open(rwdaddressesconfigurationfile,"r")
|
|
9
|
+
@rwdaddressesconfigurationtext = " "
|
|
10
|
+
while ! fd.eof?
|
|
11
|
+
@rwdaddressesconfigurationtext = fd.read
|
|
12
|
+
end
|
|
13
|
+
fd.close
|
|
14
|
+
else
|
|
15
|
+
@rwdaddressesconfigurationtext = "File error"
|
|
16
|
+
end
|
|
17
|
+
rescue SystemCallError, StandardError
|
|
18
|
+
$stderr.print "system call error: " + $!
|
|
19
|
+
@rwdaddressesconfigurationtext = "File error"
|
|
20
|
+
end # exception rescue
|
|
21
|
+
end
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
|
5
5
|
|
|
6
6
|
# call the rwdtinker helpwindow
|
|
7
|
-
|
|
8
|
-
@rwd_window = "rwdtinkerhelpwindow"
|
|
9
|
-
end
|
|
7
|
+
|
|
10
8
|
def runrwdtinkerbackwindow
|
|
11
9
|
@rwd_window = "tinkerbackwindow"
|
|
10
|
+
@rwd_tab = "filelister"
|
|
12
11
|
end
|
|
13
12
|
|
|
File without changes
|
data/code/{rwdtinkerbackwindow → superant.com.rwdtinkerbackwindow}/saveconfigurationrecord.rb
RENAMED
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
$photodelay =
|
|
2
|
+
$photodelay = 1
|
|
3
3
|
$addressfiles_directory="names"
|
|
4
4
|
$tmpphoto_directory = "/tmp"
|
|
5
|
-
$rwdaddresses_ftpsite = "ftp.
|
|
6
|
-
$rwdaddresses_ftplogin = "
|
|
7
|
-
$rwdaddresses_ftppassword = "
|
|
5
|
+
$rwdaddresses_ftpsite = "ftp.mysite.com"
|
|
6
|
+
$rwdaddresses_ftplogin = "mylogin"
|
|
7
|
+
$rwdaddresses_ftppassword = "mypassword"
|
|
8
8
|
$rwdaddresses_ftpdirectory = "/incoming/rwdnames/"
|
|
9
|
-
$rwdaddresses_updatedirectory = "updates"
|
|
9
|
+
$rwdaddresses_updatedirectory = "updates"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
RwdAddressesVersion = "0.
|
|
2
|
+
RwdAddressesVersion = "0.95"
|
data/configuration/rwdtinker.cnf
CHANGED
|
@@ -9,4 +9,7 @@ TempLangHashFile = LangDir + "/" + "templangfile.rb"
|
|
|
9
9
|
LocalLangHashFile = LangDir + "/" + "xlocallangfile.rb"
|
|
10
10
|
CodeDir = "code"
|
|
11
11
|
GuiDir = "gui"
|
|
12
|
+
$help_topic = "general_help"
|
|
13
|
+
$helptopicsarray = [ "general_help","network_help"]
|
|
14
|
+
$prevouswindow ="main"
|
|
12
15
|
$port = 7705
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
RwdTinkerVersion = "1.
|
|
2
|
+
RwdTinkerVersion = "1.47"
|
|
@@ -10,7 +10,7 @@ $rwdguivar=
|
|
|
10
10
|
<horizontal>
|
|
11
11
|
<button caption=\"Open\" action=\"viewnamedata\"/>
|
|
12
12
|
<button caption=\"View Photo\" action=\"viewcontactphoto\"/>
|
|
13
|
-
<button caption=\"
|
|
13
|
+
<button caption=\"Help\" action=\"runhelpwindowrwdaddresses\"/>
|
|
14
14
|
|
|
15
15
|
</horizontal>"
|
|
16
16
|
|
|
@@ -9,6 +9,7 @@ $rwdguivar=
|
|
|
9
9
|
<button caption=\"Fill Record\" action=\"loadnamerecord\"/>
|
|
10
10
|
<button caption=\"Save Changes\" action=\"createnewnamerecord\"/>
|
|
11
11
|
<button caption=\"Clear\" action=\"clearnamescreendisplay\"/>
|
|
12
|
+
<button caption=\"Help\" action=\"runhelpwindowrwdaddresses\"/>
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<tab name=\"viewaddressesconfiguration\" caption=\"Rwdaddresses Configuration\">
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<table>
|
|
8
|
+
<row> <p> </row>
|
|
9
|
+
<row> <p align=\"right\">You can view or edit the rwdaddresses configuration file here</row>
|
|
10
|
+
<row> <p> </row>
|
|
11
|
+
<horizontal>
|
|
12
|
+
<button caption=\"Fill Record\" action=\"loadrwdaddressesconfiguration\"/>
|
|
13
|
+
<button caption=\"Save Changes\" action=\"saverwdaddressesconfiguration\"/>
|
|
14
|
+
<button caption=\"Reload Variables\" action=\"loadrwdaddressesconfigurationvariables\"/>
|
|
15
|
+
<button caption=\"Help\" action=\"runhelpwindowrwdaddresses\"/>
|
|
16
|
+
</horizontal>
|
|
17
|
+
<table>
|
|
18
|
+
|
|
19
|
+
<row> <p align=\"right\">FileName:</p> <text name=\"a_adconfigurationfilename\"/> </row>
|
|
20
|
+
<row> <p align=\"right\">1:</p> <text name=\"a_adconfigline1\"/> </row>
|
|
21
|
+
<row> <p align=\"right\">2:</p> <text name=\"a_adconfigline2\"/> </row>
|
|
22
|
+
<row> <p align=\"right\">3:</p> <text name=\"a_adconfigline3\"/> </row>
|
|
23
|
+
<row> <p align=\"right\">4:</p> <text name=\"a_adconfigline4\"/> </row>
|
|
24
|
+
<row> <p align=\"right\">5:</p> <text name=\"a_adconfigline5\"/> </row>
|
|
25
|
+
<row> <p align=\"right\">6:</p> <text name=\"a_adconfigline6\"/> </row>
|
|
26
|
+
<row> <p align=\"right\">7:</p> <text name=\"a_adconfigline7\"/> </row>
|
|
27
|
+
<row> <p align=\"right\">8:</p> <text name=\"a_adconfigline8\"/> </row>
|
|
28
|
+
<row> <p align=\"right\">9:</p> <text name=\"a_adconfigline9\"/> </row>
|
|
29
|
+
|
|
30
|
+
</table>
|
|
31
|
+
<p>%extraadconfigdatadisplay%</p>
|
|
32
|
+
<p>
|
|
33
|
+
<p>%newadconfigurationresult%</p>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
</tab>"
|
|
@@ -15,6 +15,10 @@ $rwdguivar=
|
|
|
15
15
|
<horizontal>
|
|
16
16
|
<button caption=\"Download contact files from ftp site\" action=\"downloadrwdaddressfiles\"/>
|
|
17
17
|
<button caption=\"Upload contact files to ftp site\" action=\"uploadrwdaddressfiles\"/>
|
|
18
|
+
</horizontal>
|
|
19
|
+
<horizontal>
|
|
20
|
+
<button caption=\"Delete local update files\" action=\"deleterwdaddressesupdatefiles\"/>
|
|
21
|
+
<button caption=\"Help\" action=\"runhelpwindowrwdaddresses\"/>
|
|
18
22
|
|
|
19
23
|
</horizontal>
|
|
20
24
|
<p>%rwdaddressesftpdisplay%</p>
|
|
@@ -9,6 +9,7 @@ $rwdguivar=
|
|
|
9
9
|
<button caption=\"Load Record\" action=\"loadconfigurationrecord\"/>
|
|
10
10
|
<button caption=\"Save Changes\" action=\"saveconfigurationrecord\"/>
|
|
11
11
|
<button caption=\"Reload Variables\" action=\"loadconfigurationvariables\"/>
|
|
12
|
+
<button caption=\"Help\" action=\"runhelpwindow\"/>
|
|
12
13
|
|
|
13
14
|
|
|
14
15
|
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
$rwdguivar=
|
|
2
|
+
"
|
|
3
|
+
<window name = \"rwdtinkerhelpwindow\" title=#{Message[:rwdtinker_help]}>
|
|
4
|
+
<horizontal>
|
|
5
|
+
%rwdhelptopic%
|
|
6
|
+
</horizontal>
|
|
7
|
+
|
|
8
|
+
<table>
|
|
9
|
+
<row> <p></row>
|
|
10
|
+
|
|
11
|
+
</table>
|
|
12
|
+
<horizontal>
|
|
13
|
+
%rwdhelpdataoutput%
|
|
14
|
+
</horizontal>
|
|
15
|
+
<row> <p></row>
|
|
16
|
+
<table>
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
<row> <p></row>
|
|
20
|
+
</table>
|
|
21
|
+
<horizontal>
|
|
22
|
+
|
|
23
|
+
<button caption=\"Return\" action=\"rwdwindowreturn\"/>
|
|
24
|
+
</horizontal>
|
|
25
|
+
<table>
|
|
26
|
+
<row> <p></row>
|
|
27
|
+
|
|
28
|
+
</table>
|
|
29
|
+
<horizontal>
|
|
30
|
+
%%rwdhelpsubchoicesoutput%%
|
|
31
|
+
</horizontal>
|
|
32
|
+
"
|
|
File without changes
|
|
@@ -147,6 +147,13 @@ erik = secret
|
|
|
147
147
|
Thanks, Steven Gibson
|
|
148
148
|
|
|
149
149
|
== Changelog
|
|
150
|
+
version 0.95
|
|
151
|
+
added some context sensitive help
|
|
152
|
+
added edit config file and reload config variables
|
|
153
|
+
change to tinker context help script
|
|
154
|
+
updated for rwdtinker 1.47
|
|
155
|
+
Added delete update files function in sync tab
|
|
156
|
+
|
|
150
157
|
version 0.94
|
|
151
158
|
updated for rwdtinker 1.44 - refactored gui files
|
|
152
159
|
Changed gui directory names - more like Java package titles
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
|
@@ -119,6 +119,27 @@ There are two ways to add applets to the directories.
|
|
|
119
119
|
|
|
120
120
|
To exit, press the x inside the browser window.
|
|
121
121
|
|
|
122
|
+
== To add context sensitive help
|
|
123
|
+
|
|
124
|
+
You need to add a hash file that just needs to contain
|
|
125
|
+
Helptext.update( :myapplet_generalhelp => " This is the general help
|
|
126
|
+
You can add help text hear")
|
|
127
|
+
|
|
128
|
+
And you need to add a help run script that will call runhelpwindow
|
|
129
|
+
This should have a method that includes:
|
|
130
|
+
setting $help_topic, and adds to $helptopicsarray, saves the calling window and calls runhelpwindow which will render the help message.
|
|
131
|
+
|
|
132
|
+
if @rwd_tab == "gemservescan"
|
|
133
|
+
$help_topic = "gemdocs_help"
|
|
134
|
+
end
|
|
135
|
+
$helptopicsarray = $helptopicsarray | ["rubyslippers_generalhelp", "Install_Gem","GemCommands_help", "gemfilesinstalled","gemdocs_help"]
|
|
136
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
|
137
|
+
$previouswindow = @rwd_window
|
|
138
|
+
$previoustab = @rwd_tab
|
|
139
|
+
end
|
|
140
|
+
runhelpwindow
|
|
141
|
+
end
|
|
142
|
+
|
|
122
143
|
== Languages
|
|
123
144
|
|
|
124
145
|
|
|
@@ -212,6 +233,22 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
|
212
233
|
Thanks, Steven Gibson
|
|
213
234
|
|
|
214
235
|
== Changelog
|
|
236
|
+
version 1.47
|
|
237
|
+
change to context sensitive help
|
|
238
|
+
|
|
239
|
+
version 1.46
|
|
240
|
+
more work on context help
|
|
241
|
+
window calls point to tab as well as windows
|
|
242
|
+
help added help buttons on Document, Selection, View Applet, tabs
|
|
243
|
+
|
|
244
|
+
version 1.45
|
|
245
|
+
first steps toward context sensitive help
|
|
246
|
+
added help button on main window/tab
|
|
247
|
+
|
|
248
|
+
version 1.44
|
|
249
|
+
updated directory structure - refactored gui files
|
|
250
|
+
Changed gui directory names - more like Java package titles
|
|
251
|
+
|
|
215
252
|
version 1.43
|
|
216
253
|
changed setup variables file for live changes
|
|
217
254
|
added editing and reloading of config file
|
data/rwd_files/contacttmp.jpg
CHANGED
|
Binary file
|
|
Binary file
|
metadata
CHANGED
|
@@ -3,8 +3,8 @@ rubygems_version: 0.8.4
|
|
|
3
3
|
specification_version: 1
|
|
4
4
|
name: rwdaddresses
|
|
5
5
|
version: !ruby/object:Gem::Version
|
|
6
|
-
version: "0.
|
|
7
|
-
date: 2005-01-
|
|
6
|
+
version: "0.95"
|
|
7
|
+
date: 2005-01-27
|
|
8
8
|
summary: rwdaddresses is contact book application using rwdtinker and RubyWebDialogs.
|
|
9
9
|
require_paths:
|
|
10
10
|
- "."
|
|
@@ -28,19 +28,24 @@ authors: []
|
|
|
28
28
|
files:
|
|
29
29
|
- lib/temp.rb
|
|
30
30
|
- code/zz0applicationend/zz0end.rb
|
|
31
|
-
- code/
|
|
32
|
-
- code/
|
|
33
|
-
- code/
|
|
34
|
-
- code/
|
|
35
|
-
- code/
|
|
36
|
-
- code/
|
|
37
|
-
- code/
|
|
38
|
-
- code/rwdtinkerbackwindow/
|
|
39
|
-
- code/rwdtinkerbackwindow/
|
|
40
|
-
- code/rwdtinkerbackwindow/
|
|
41
|
-
- code/
|
|
42
|
-
- code/
|
|
43
|
-
- code/
|
|
31
|
+
- code/01rwdcore/rwdtinkerversion.rb
|
|
32
|
+
- code/01rwdcore/openhelpwindow.rb
|
|
33
|
+
- code/01rwdcore/01rwdcore.rb
|
|
34
|
+
- code/01rwdcore/02helptexthashbegin.rb
|
|
35
|
+
- code/01rwdcore/03helptexthash.rb
|
|
36
|
+
- code/01rwdcore/04helptextend.rb
|
|
37
|
+
- code/01rwdcore/rwdwindowreturn.rb
|
|
38
|
+
- code/superant.com.rwdtinkerbackwindow/openappletname.rb
|
|
39
|
+
- code/superant.com.rwdtinkerbackwindow/removeapplet.rb
|
|
40
|
+
- code/superant.com.rwdtinkerbackwindow/installapplet.rb
|
|
41
|
+
- code/superant.com.rwdtinkerbackwindow/listzips.rb
|
|
42
|
+
- code/superant.com.rwdtinkerbackwindow/diagnostictab.rb
|
|
43
|
+
- code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb
|
|
44
|
+
- code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb
|
|
45
|
+
- code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb
|
|
46
|
+
- code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb
|
|
47
|
+
- code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb
|
|
48
|
+
- code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb
|
|
44
49
|
- code/superant.com.rwdaddresses/viewphoto.rb
|
|
45
50
|
- code/superant.com.rwdaddresses/viewnamedata.rb
|
|
46
51
|
- code/superant.com.rwdaddresses/loadnamerecord.rb
|
|
@@ -58,11 +63,17 @@ files:
|
|
|
58
63
|
- code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb
|
|
59
64
|
- code/superant.com.rwdaddresses/listnamerecord.rb
|
|
60
65
|
- code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb
|
|
66
|
+
- code/superant.com.rwdaddresses/loadconfigurationvariables.rb
|
|
67
|
+
- code/superant.com.rwdaddresses/saveconfigurationrecord.rb
|
|
68
|
+
- code/superant.com.rwdaddresses/loadconfigurationrecord.rb
|
|
69
|
+
- code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb
|
|
70
|
+
- code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb
|
|
71
|
+
- code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb
|
|
72
|
+
- code/superant.com.rwdaddresses/helptexthashrwdaddresses.rb
|
|
61
73
|
- configuration/rwdtinker.cnf
|
|
62
74
|
- configuration/rwdtinkerversion.cnf
|
|
63
75
|
- configuration/language.cnf
|
|
64
76
|
- configuration/tinkerwin2version.cnf
|
|
65
|
-
- configuration/rwdplayscriptsversion.cnf
|
|
66
77
|
- configuration/tinkerwin2variables.cnf
|
|
67
78
|
- configuration/rwdaddresses.cnf
|
|
68
79
|
- configuration/rwdaddressesversion.cnf
|
|
@@ -71,7 +82,6 @@ files:
|
|
|
71
82
|
- names/Angelina Jolie.jpg
|
|
72
83
|
- names/Steven Gibson.jpg
|
|
73
84
|
- names/nophoto.jpg
|
|
74
|
-
- updates/AnaiIbarra.nam
|
|
75
85
|
- ev/sgml.rb
|
|
76
86
|
- ev/xml.rb
|
|
77
87
|
- ev/net.rb
|
|
@@ -97,9 +107,9 @@ files:
|
|
|
97
107
|
- gui/frontwindow0/superant.com.rwdaddresses
|
|
98
108
|
- gui/frontwindow0/superant.com.rwdaddresses/16editrecord.rwd
|
|
99
109
|
- gui/frontwindow0/superant.com.rwdaddresses/18contactutilities.rwd
|
|
100
|
-
- gui/frontwindow0/superant.com.rwdaddresses/22viewconfiguration.rwd
|
|
101
110
|
- gui/frontwindow0/superant.com.rwdaddresses/11viewnamedata.rwd
|
|
102
111
|
- gui/frontwindow0/superant.com.rwdaddresses/13listnamerecordfiles.rwd
|
|
112
|
+
- gui/frontwindow0/superant.com.rwdaddresses/zviewconfiguration.rwd
|
|
103
113
|
- gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd
|
|
104
114
|
- gui/helpaboutbegin/superant.com.helpaboutbegin
|
|
105
115
|
- gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd
|
|
@@ -117,29 +127,27 @@ files:
|
|
|
117
127
|
- gui/helpaboutinstalled/superant.com.rwdaddresseshelpabout/5version.rwd
|
|
118
128
|
- gui/frontwindowtdocuments/superant.com.documents
|
|
119
129
|
- gui/frontwindowtdocuments/superant.com.tinkerwin2documents
|
|
120
|
-
- gui/frontwindowtdocuments/superant.com.rwdaddresses
|
|
121
130
|
- gui/frontwindowtdocuments/superant.com.addressesdocuments
|
|
122
131
|
- gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd
|
|
123
132
|
- gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd
|
|
124
|
-
- gui/frontwindowtdocuments/superant.com.rwdaddresses/uu8doc_rwdschedule.rwd
|
|
125
133
|
- gui/frontwindowtdocuments/superant.com.addressesdocuments/uu8doc_rwdschedule.rwd
|
|
126
134
|
- gui/helpaboutzend/superant.com.helpaboutend
|
|
127
135
|
- gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd
|
|
128
136
|
- gui/tinkerbackwindows/superant.com.versionwindow
|
|
129
|
-
- gui/tinkerbackwindows/superant.com.tinercallablewindow
|
|
130
137
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow
|
|
138
|
+
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow
|
|
131
139
|
- gui/tinkerbackwindows/superant.com.addressesphotowindow
|
|
132
140
|
- gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow
|
|
133
141
|
- gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
|
|
134
|
-
- gui/tinkerbackwindows/superant.com.tinercallablewindow/1appname.rwd
|
|
135
|
-
- gui/tinkerbackwindows/superant.com.tinercallablewindow/9end.rwd
|
|
136
142
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd
|
|
137
143
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
|
|
138
|
-
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/
|
|
144
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd
|
|
139
145
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd
|
|
140
146
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
|
|
141
147
|
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd
|
|
142
|
-
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/
|
|
148
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd
|
|
149
|
+
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd
|
|
150
|
+
- gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd
|
|
143
151
|
- gui/tinkerbackwindows/superant.com.addressesphotowindow/yy7addressesphoto.rwd
|
|
144
152
|
- gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/1appname.rwd
|
|
145
153
|
- gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/70rwddiagnostics.rwd
|
|
@@ -169,14 +177,8 @@ files:
|
|
|
169
177
|
- rwd_files/HowTo_TinkerWin2.txt
|
|
170
178
|
- rwd_files/HowTo_Addresses.txt
|
|
171
179
|
- rwd_files/contacttmp.jpg
|
|
172
|
-
- zips/
|
|
173
|
-
- zips/rwdwcalc-0.4.zip
|
|
174
|
-
- zips/rwdwshell-0.92.zip
|
|
175
|
-
- zips/rwdaschedule-0.8.zip
|
|
176
|
-
- zips/rwdhelloworld-0.4.zip
|
|
180
|
+
- zips/rwdahelloworld-0.5.zip
|
|
177
181
|
- tests/totranslate.lang
|
|
178
|
-
- tests/rwdtinkertestEN.rb
|
|
179
|
-
- tests/test.result
|
|
180
182
|
- Readme.txt
|
|
181
183
|
- init.rb
|
|
182
184
|
test_files: []
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
$rwdguivar=
|
|
2
|
-
"
|
|
3
|
-
<tab name=\"viewaddressesconfiguration\" caption=\"Rwdaddresses Configuration\">
|
|
4
|
-
<table>
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
</table>
|
|
8
|
-
|
|
9
|
-
<horizontal>
|
|
10
|
-
<button caption=\"View Configuration File\" action=\"viewaddressesconfiguration\"/>
|
|
11
|
-
</horizontal>
|
|
12
|
-
<p>%rwdaddressesconfigurationtext%</p>
|
|
13
|
-
</tab>"
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
$rwdguivar=
|
|
2
|
-
"
|
|
3
|
-
<window name = \"rwdtinkerhelpwindow\" title=#{Message[:rwdtinker_help]}>
|
|
4
|
-
<tabs>
|
|
5
|
-
<tab name=\"main\" caption=#{Message[:help]}>
|
|
6
|
-
<row> <p></row>
|
|
7
|
-
<row> <p>RwdTinker</row>
|
|
8
|
-
<cancel/>
|
|
9
|
-
</tab>
|
|
10
|
-
|
|
11
|
-
<tab name=\"nexttab\" caption=#{Message[:next]}>
|
|
12
|
-
<row> <p></row>
|
|
13
|
-
<row> <p>#{Message[:rwdtinker_help]}</row>
|
|
14
|
-
<cancel/>
|
|
15
|
-
</tab>
|
|
16
|
-
|
|
17
|
-
</tabs>"
|
data/tests/rwdtinkertestEN.rb
DELETED
|
@@ -1,163 +0,0 @@
|
|
|
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
|
data/tests/test.result
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
Loaded suite C:/ruby/sample/watir/examples/rwdtinkertestEN
|
|
2
|
-
Started
|
|
3
|
-
## Beginning of test: rwdtinker
|
|
4
|
-
|
|
5
|
-
Action: entered http://localhost:7705in the address bar.
|
|
6
|
-
Action: clicked the Help Window link
|
|
7
|
-
Action: clicked the nexttab link
|
|
8
|
-
Action: clicked the main tab link
|
|
9
|
-
Action: clicked the cancel button
|
|
10
|
-
Action: clicked tab one
|
|
11
|
-
Action: clicked the selectiontab
|
|
12
|
-
Action: clicked the Help Window link
|
|
13
|
-
Action: clicked the backone tab
|
|
14
|
-
pageContainsText: Looking for: previous window (string) - found it ok
|
|
15
|
-
Action: clicked the diagnostictab top link
|
|
16
|
-
Action: clicked Ruby Version button.
|
|
17
|
-
pageContainsText: Looking for: Version (string) - found it ok
|
|
18
|
-
Action: clicked platform button.
|
|
19
|
-
pageContainsText: Looking for: Platform is (string) - found it ok
|
|
20
|
-
Action: clicked rwdtinker version button.
|
|
21
|
-
pageContainsText: Looking for: rwdtinker version (string) - found it ok
|
|
22
|
-
pageContainsText: Looking for: View the list (string) - found it ok
|
|
23
|
-
Action: clicked the list files button.
|
|
24
|
-
Action: clicked the View Install Text button.
|
|
25
|
-
pageContainsText: Looking for: rwdviewlogo (string) - found it ok
|
|
26
|
-
pageContainsText: Looking for: File Name (string) - found it ok
|
|
27
|
-
pageContainsText: Looking for: view the list of zip files (string) - found it ok
|
|
28
|
-
Action: clicked the List applets available for installing button.
|
|
29
|
-
|
|
30
|
-
Finished in 32.716 seconds.
|
|
31
|
-
|
|
32
|
-
6 tests, 8 assertions, 0 failures, 0 errors
|
data/updates/AnaiIbarra.nam
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Anai Ibarra
|
data/zips/rwdaschedule-0.8.zip
DELETED
|
Binary file
|
data/zips/rwdhelloworld-0.4.zip
DELETED
|
Binary file
|
data/zips/rwdrefreshacpi-0.4.zip
DELETED
|
Binary file
|
data/zips/rwdwcalc-0.4.zip
DELETED
|
Binary file
|
data/zips/rwdwshell-0.92.zip
DELETED
|
Binary file
|