rwddemo 0.7 → 0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +277 -16
- data/code/dd0viewphoto/dd0viewphoto.rb +4 -0
- data/code/rwdcalc/ca2multiply.rb +6 -1
- data/code/rwdcalc/fadd.rb +10 -0
- data/code/rwdcalc/frwdcleartape.rb +9 -0
- data/code/rwdcalc/frwddivide.rb +10 -0
- data/code/rwdcalc/frwdmultiply.rb +10 -0
- data/code/rwdcalc/frwdsubtract.rb +10 -0
- data/code/rwdcalc/runrwdcalcwindow.rb +9 -0
- data/code/rwdcalc/rwdadd.rb +10 -0
- data/code/rwdcalc/rwdcleartape.rb +9 -0
- data/code/rwdcalc/rwddivision.rb +10 -0
- data/code/rwdcalc/rwdsubtraction.rb +10 -0
- data/code/{gh9calendar → superant.com.rwdcalendar}/gh9calendar.rb +0 -0
- data/code/xb1rwdtinkerbackwindow/{lm1installapplet.rb → installapplet.rb} +3 -2
- data/code/xb1rwdtinkerbackwindow/{05listinstalledfiles.rb → listinstalledfiles.rb} +0 -0
- data/code/xb1rwdtinkerbackwindow/{ll5listzips.rb → listzips.rb} +5 -3
- data/code/xb1rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -0
- data/code/xb1rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -0
- data/code/xb1rwdtinkerbackwindow/{ll1openname.rb → openappletname.rb} +1 -1
- data/code/xb1rwdtinkerbackwindow/{mm1removeapplet.rb → removeapplet.rb} +0 -0
- data/code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -0
- data/configuration/language.cnf +5 -0
- data/configuration/rwdcalc.cnf +3 -0
- data/configuration/rwdcalcversion.cnf +2 -0
- data/configuration/{gh1rwdcalendar.cnf → rwdcalendar.cnf} +0 -0
- data/configuration/rwddemoversion.cnf +2 -0
- data/configuration/rwdplayscripts.cnf +4 -0
- data/configuration/rwdplayscriptsversion.cnf +2 -0
- data/configuration/rwdtinker.cnf +12 -0
- data/configuration/rwdtinkerversion.cnf +2 -0
- data/configuration/tinkerwin2variables.cnf +8 -0
- data/configuration/tinkerwin2version.cnf +3 -0
- data/gui/00coreguibegin/applicationguitop.rwd +4 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/1listplayscripts.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/2listscripts.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/3editscripts.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/4scriptutilities.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/6rwdshelleval.rwd +0 -0
- data/gui/{ek0shellscripts → frontwindow0/superant.com.shellscripts}/cb7rwdrubyeval.rwd +0 -0
- data/gui/{hl9calendar → frontwindow0/superant.com.tinkercalendar}/hl9calendar.rwd +0 -0
- data/gui/{ll1selectiontabbegin → frontwindowselectionbegin/selectiontabbegin}/selectiontabbegin.rwd +2 -2
- data/gui/{ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd → frontwindowselections/superant.com.rwdcalcselectiontab/rwdcalc.rwd} +1 -1
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
- data/gui/{lz1selectiontabend/endselectiontab.rwd → frontwindowselectionzend/viewselectionzend/viewselectionend.rwd} +0 -0
- data/gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd +6 -0
- data/gui/{uu5rwddocuments → frontwindowtdocuments/superant.com.documents}/uu5documents.rwd +0 -0
- data/gui/{uu6rwdtinkerwin2documents → frontwindowtdocuments/superant.com.tinkerwin2documents}/uu5documents.rwd +0 -0
- data/gui/{ub7rubyeval → frontwindowtdocuments/ub7rubyeval}/rubyeval.rwd +0 -0
- data/gui/{uk5rwddemodocuments → frontwindowtdocuments/uk5rwddemodocuments}/documents.rwd +0 -0
- data/gui/{vv1docshellxp → frontwindowtdocuments/vv1docshellxp}/vvdocshellxp.rwd +0 -0
- data/gui/{ww0documentsend → frontwindowtdocumentzend/superant.com.documentsend}/ww0documentend.rwd +0 -0
- data/gui/{wz6finaltabs → frontwindowz1end/frontwindowend}/xx0rwdfirsttab.rwd +0 -0
- data/gui/{ya1helpaboutbegin → helpaboutbegin/superant.com.helpaboutbegin}/ya0helpscreenstart.rwd +0 -0
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/1appname.rwd +0 -0
- data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/3copyright.rwd +0 -0
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/5version.rwd +0 -0
- data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/1appname.rwd +0 -0
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/3copyright.rwd +0 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -0
- data/gui/{yl2rwddemohelpabout → helpaboutinstalled/yl2rwddemohelpabout}/1appname.rwd +0 -0
- data/gui/{yl2rwddemohelpabout → helpaboutinstalled/yl2rwddemohelpabout}/3copyright.rwd +0 -0
- data/gui/{yl2rwddemohelpabout → helpaboutinstalled/yl2rwddemohelpabout}/5version.rwd +0 -0
- data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/yl4rwdshellhelpabout}/1appname.rwd +0 -0
- data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/yl4rwdshellhelpabout}/3copyright.rwd +0 -0
- data/gui/{yl4rwdshellhelpabout → helpaboutinstalled/yl4rwdshellhelpabout}/5version.rwd +0 -0
- data/gui/{yy5helpaboutend → helpaboutzend/superant.com.helpaboutend}/helpscreenend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/floatrwdcalc.rwd +23 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/intrwdcalc.rwd +23 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/z9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.tinercallablewindow/1appname.rwd +17 -0
- data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/9end.rwd +0 -0
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/1appname.rwd +0 -0
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/3arwddiagnostics.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd +36 -0
- data/gui/{xb1rwdtinkerbackwindow/4arwdlistapplets.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd} +1 -1
- data/gui/{xb1rwdtinkerbackwindow/4arwdlistzips.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd} +0 -0
- data/gui/{xb1rwdtinkerbackwindow/2tab1.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd} +0 -0
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/9backend.rwd +0 -0
- data/gui/{xa1versionwindow → tinkerbackwindows/superant.com.versionwindow}/1appname.rwd +0 -0
- data/gui/{za1applicationend → zzcoreguiend/tinkerapplicationguiend}/yy9rwdend.rwd +0 -0
- data/init.rb +6 -6
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/lang/en/rwdcore/languagefile.rb +10 -1
- data/lang/es/rwdcore/languagefile-es.rb +14 -0
- data/lang/jp/rwdcore/languagefile.rb +9 -0
- data/lang/nl/rwdcore/languagefile.rb +18 -3
- data/lang/templangfile.rb +14 -0
- data/lang/xlocallangfile.rb +16 -1
- data/rwd_files/HowTo_RwdCalc.txt +103 -0
- data/rwd_files/HowTo_Tinker.txt +66 -24
- data/rwd_files/tinker.png +0 -0
- data/tests/rwdtinkertestEN.rb +163 -0
- data/tests/test.result +32 -0
- data/zips/rwdahelloworld-0.5.zip +0 -0
- metadata +127 -82
- data/code/rwdcalc/ca4add.rb +0 -5
- data/configuration/aa0rwdframework.cnf +0 -13
- data/configuration/ab1tinkerwin2.cnf +0 -4
- data/configuration/ek0playscripts.cnf +0 -4
- data/extras/cal.rb +0 -166
- data/gui/aa2core/aa0rwdtop.rwd +0 -4
- data/gui/hx1rwdcalc/ca0rwdcalc.rwd +0 -19
- data/gui/tt0documentsbegin/tt0documentbegin.rwd +0 -6
- data/gui/xa5rwdtinkercallablewindow/1appname.rwd +0 -17
- data/gui/yg5rwdhelpabout/5version.rwd +0 -10
- data/lang/es/rwdcore/languagefile.rb +0 -3
- data/zips/rwdhelloworld-0.3.zip +0 -0
- data/zips/rwdwshell-0.91.zip +0 -0
- data/zips/wrubyslippers-0.93.zip +0 -0
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
|
data/tests/test.result
ADDED
@@ -0,0 +1,32 @@
|
|
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
|
Binary file
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.8.
|
2
|
+
rubygems_version: 0.8.4
|
3
3
|
specification_version: 1
|
4
4
|
name: rwddemo
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "0.
|
7
|
-
date:
|
6
|
+
version: "0.8"
|
7
|
+
date: 2005-01-21
|
8
8
|
summary: rwddemo application shows rwdtinker and RubyWebDialogs features.
|
9
9
|
require_paths:
|
10
10
|
- "."
|
@@ -30,6 +30,19 @@ files:
|
|
30
30
|
- lib/temp.rb
|
31
31
|
- code/ag1core/aa0begin.rb
|
32
32
|
- code/ag1core/rwdtinkerversion.rb
|
33
|
+
- code/zz0applicationend/zz0end.rb
|
34
|
+
- code/dd0viewphoto/dd0viewphoto.rb
|
35
|
+
- code/xa5rwdtinkercallable/callable.rb
|
36
|
+
- code/xb1rwdtinkerbackwindow/openappletname.rb
|
37
|
+
- code/xb1rwdtinkerbackwindow/removeapplet.rb
|
38
|
+
- code/xb1rwdtinkerbackwindow/installapplet.rb
|
39
|
+
- code/xb1rwdtinkerbackwindow/listzips.rb
|
40
|
+
- code/xb1rwdtinkerbackwindow/diagnostictab.rb
|
41
|
+
- code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb
|
42
|
+
- code/xb1rwdtinkerbackwindow/listinstalledfiles.rb
|
43
|
+
- code/xb1rwdtinkerbackwindow/loadconfigurationrecord.rb
|
44
|
+
- code/xb1rwdtinkerbackwindow/loadconfigurationvariables.rb
|
45
|
+
- code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb
|
33
46
|
- code/dd0shelleval/changescriptname.rb
|
34
47
|
- code/dd0shelleval/clearscriptscreendisplay.rb
|
35
48
|
- code/dd0shelleval/deletescriptrecord.rb
|
@@ -43,108 +56,139 @@ files:
|
|
43
56
|
- code/dd0shelleval/shelleval.rb
|
44
57
|
- code/dd0shelleval/viewscript.rb
|
45
58
|
- code/dd0shelleval/rwddemohelpabout.rb
|
46
|
-
- code/gh9calendar/gh9calendar.rb
|
47
59
|
- code/rwdcalc/ca2multiply.rb
|
48
|
-
- code/rwdcalc/
|
49
|
-
- code/
|
50
|
-
- code/
|
51
|
-
- code/
|
52
|
-
- code/
|
53
|
-
- code/
|
54
|
-
- code/
|
55
|
-
- code/
|
56
|
-
- code/
|
57
|
-
- code/
|
58
|
-
-
|
59
|
-
- configuration/
|
60
|
-
- configuration/
|
61
|
-
- configuration/
|
62
|
-
-
|
60
|
+
- code/rwdcalc/fadd.rb
|
61
|
+
- code/rwdcalc/frwdcleartape.rb
|
62
|
+
- code/rwdcalc/frwddivide.rb
|
63
|
+
- code/rwdcalc/frwdmultiply.rb
|
64
|
+
- code/rwdcalc/frwdsubtract.rb
|
65
|
+
- code/rwdcalc/runrwdcalcwindow.rb
|
66
|
+
- code/rwdcalc/rwdadd.rb
|
67
|
+
- code/rwdcalc/rwdcleartape.rb
|
68
|
+
- code/rwdcalc/rwddivision.rb
|
69
|
+
- code/rwdcalc/rwdsubtraction.rb
|
70
|
+
- code/superant.com.rwdcalendar/gh9calendar.rb
|
71
|
+
- configuration/rwdtinker.cnf
|
72
|
+
- configuration/rwdtinkerversion.cnf
|
73
|
+
- configuration/language.cnf
|
74
|
+
- configuration/tinkerwin2version.cnf
|
75
|
+
- configuration/rwdplayscriptsversion.cnf
|
76
|
+
- configuration/tinkerwin2variables.cnf
|
77
|
+
- configuration/rwdcalendar.cnf
|
78
|
+
- configuration/rwddemoversion.cnf
|
79
|
+
- configuration/rwdcalc.cnf
|
80
|
+
- configuration/rwdcalcversion.cnf
|
81
|
+
- configuration/rwdplayscripts.cnf
|
63
82
|
- scripts/date.sh
|
64
83
|
- scripts/echo2.sh
|
65
84
|
- scripts/lister.sh
|
66
85
|
- scripts/uname.sh
|
67
|
-
- ev/
|
68
|
-
- ev/
|
86
|
+
- ev/sgml.rb
|
87
|
+
- ev/xml.rb
|
69
88
|
- ev/net.rb
|
70
89
|
- ev/ruby.rb
|
90
|
+
- ev/tree.rb
|
91
|
+
- ev/browser.rb
|
92
|
+
- ev/ftools.rb
|
71
93
|
- ev/rwd.rb
|
72
|
-
- ev/sgml.rb
|
73
94
|
- ev/thread.rb
|
74
|
-
- ev/tree.rb
|
75
|
-
- ev/xml.rb
|
76
95
|
- lang/alanguagehashbegin.rb
|
77
96
|
- lang/languagehash.rb
|
78
97
|
- lang/templangfile.rb
|
79
98
|
- lang/vlanguagehashend.rb
|
80
|
-
- lang/wlocallangstart.rb
|
81
|
-
- lang/xlocallangfile.rb
|
82
99
|
- lang/zlocallangend.rb
|
100
|
+
- lang/xlocallangfile.rb
|
101
|
+
- lang/wlocallangstart.rb
|
102
|
+
- lang/es/rwdcore/languagefile-es.rb
|
83
103
|
- lang/en/rwdcore/languagefile.rb
|
84
|
-
- lang/es/rwdcore/languagefile.rb
|
85
104
|
- lang/nl/rwdcore/languagefile.rb
|
86
|
-
-
|
87
|
-
- gui/
|
88
|
-
- gui/
|
89
|
-
- gui/
|
90
|
-
- gui/
|
91
|
-
- gui/
|
92
|
-
- gui/
|
93
|
-
- gui/
|
94
|
-
- gui/
|
95
|
-
- gui/
|
96
|
-
- gui/
|
97
|
-
- gui/
|
98
|
-
- gui/
|
99
|
-
- gui/
|
100
|
-
- gui/
|
101
|
-
- gui/
|
102
|
-
- gui/
|
103
|
-
- gui/
|
104
|
-
- gui/
|
105
|
-
- gui/
|
106
|
-
- gui/
|
107
|
-
- gui/
|
108
|
-
- gui/
|
109
|
-
- gui/
|
110
|
-
- gui/
|
111
|
-
- gui/
|
112
|
-
- gui/
|
113
|
-
- gui/
|
114
|
-
- gui/
|
115
|
-
- gui/
|
116
|
-
- gui/
|
117
|
-
- gui/
|
118
|
-
- gui/
|
119
|
-
- gui/
|
120
|
-
- gui/
|
121
|
-
- gui/
|
122
|
-
- gui/
|
123
|
-
- gui/
|
124
|
-
- gui/
|
125
|
-
- gui/
|
126
|
-
- gui/
|
127
|
-
- gui/
|
128
|
-
- gui/
|
129
|
-
- gui/
|
130
|
-
-
|
105
|
+
- lang/jp/rwdcore/languagefile.rb
|
106
|
+
- gui/00coreguibegin/applicationguitop.rwd
|
107
|
+
- gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd
|
108
|
+
- gui/frontwindow0/superant.com.shellscripts
|
109
|
+
- gui/frontwindow0/superant.com.tinkercalendar
|
110
|
+
- gui/frontwindow0/superant.com.shellscripts/1listplayscripts.rwd
|
111
|
+
- gui/frontwindow0/superant.com.shellscripts/2listscripts.rwd
|
112
|
+
- gui/frontwindow0/superant.com.shellscripts/3editscripts.rwd
|
113
|
+
- gui/frontwindow0/superant.com.shellscripts/4scriptutilities.rwd
|
114
|
+
- gui/frontwindow0/superant.com.shellscripts/6rwdshelleval.rwd
|
115
|
+
- gui/frontwindow0/superant.com.shellscripts/cb7rwdrubyeval.rwd
|
116
|
+
- gui/frontwindow0/superant.com.tinkercalendar/hl9calendar.rwd
|
117
|
+
- gui/frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd
|
118
|
+
- gui/helpaboutbegin/superant.com.helpaboutbegin
|
119
|
+
- gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd
|
120
|
+
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout
|
121
|
+
- gui/helpaboutinstalled/superant.com.tinkerhelpabout
|
122
|
+
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout/1appname.rwd
|
123
|
+
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout/3copyright.rwd
|
124
|
+
- gui/helpaboutinstalled/superant.com.rwdwin2helpabout/5version.rwd
|
125
|
+
- gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd
|
126
|
+
- gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd
|
127
|
+
- gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd
|
128
|
+
- gui/helpaboutinstalled/yl2rwddemohelpabout/1appname.rwd
|
129
|
+
- gui/helpaboutinstalled/yl2rwddemohelpabout/3copyright.rwd
|
130
|
+
- gui/helpaboutinstalled/yl2rwddemohelpabout/5version.rwd
|
131
|
+
- gui/helpaboutinstalled/yl4rwdshellhelpabout/1appname.rwd
|
132
|
+
- gui/helpaboutinstalled/yl4rwdshellhelpabout/3copyright.rwd
|
133
|
+
- gui/helpaboutinstalled/yl4rwdshellhelpabout/5version.rwd
|
134
|
+
- gui/frontwindowtdocuments/superant.com.documents
|
135
|
+
- gui/frontwindowtdocuments/superant.com.tinkerwin2documents
|
136
|
+
- gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd
|
137
|
+
- gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd
|
138
|
+
- gui/frontwindowtdocuments/ub7rubyeval/rubyeval.rwd
|
139
|
+
- gui/frontwindowtdocuments/vv1docshellxp/vvdocshellxp.rwd
|
140
|
+
- gui/frontwindowtdocuments/uk5rwddemodocuments/documents.rwd
|
141
|
+
- gui/helpaboutzend/superant.com.helpaboutend
|
142
|
+
- gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd
|
143
|
+
- gui/tinkerbackwindows/superant.com.versionwindow
|
144
|
+
- gui/tinkerbackwindows/superant.com.tinercallablewindow
|
145
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow
|
146
|
+
- gui/tinkerbackwindows/superant.com.rwdcalc
|
147
|
+
- gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd
|
148
|
+
- gui/tinkerbackwindows/superant.com.tinercallablewindow/1appname.rwd
|
149
|
+
- gui/tinkerbackwindows/superant.com.tinercallablewindow/9end.rwd
|
150
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd
|
151
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd
|
152
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/3arwddiagnostics.rwd
|
153
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd
|
154
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd
|
155
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd
|
156
|
+
- gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd
|
157
|
+
- gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd
|
158
|
+
- gui/tinkerbackwindows/superant.com.rwdcalc/floatrwdcalc.rwd
|
159
|
+
- gui/tinkerbackwindows/superant.com.rwdcalc/intrwdcalc.rwd
|
160
|
+
- gui/tinkerbackwindows/superant.com.rwdcalc/z9end.rwd
|
161
|
+
- gui/frontwindowtdocumentzend/superant.com.documentsend
|
162
|
+
- gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd
|
163
|
+
- gui/frontwindowselectionzend/viewselectionzend/viewselectionend.rwd
|
164
|
+
- gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab
|
165
|
+
- gui/frontwindowselections/superant.com.rwdcalcselectiontab
|
166
|
+
- gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd
|
167
|
+
- gui/frontwindowselections/superant.com.rwdcalcselectiontab/rwdcalc.rwd
|
168
|
+
- gui/frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd
|
169
|
+
- gui/frontwindowtdocumentbegin/superant.com.documentsbegin
|
170
|
+
- gui/frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd
|
131
171
|
- installed/rwdtinkerwin2-0.5.inf
|
132
|
-
-
|
133
|
-
-
|
134
|
-
- rwd_files/HowTo_Shell.txt
|
135
|
-
- rwd_files/HowTo_Tinker.txt
|
136
|
-
- rwd_files/HowTo_TinkerWin2.txt
|
137
|
-
- rwd_files/rdoc-style.css
|
172
|
+
- installed/rwdviewlogo-0.4.inf
|
173
|
+
- installed/rwdshell-0.92.inf
|
138
174
|
- rwd_files/Readme.txt
|
139
175
|
- rwd_files/rwdapplications.html
|
140
176
|
- rwd_files/rwdindex.html
|
177
|
+
- rwd_files/favicon.ico
|
178
|
+
- rwd_files/HowTo_Tinker.txt
|
179
|
+
- rwd_files/tinker.png
|
180
|
+
- rwd_files/rdoc-style.css
|
181
|
+
- rwd_files/HowTo_TinkerWin2.txt
|
182
|
+
- rwd_files/HowTo_RubyEval.html
|
141
183
|
- rwd_files/HowTo_RwdDemo.txt
|
142
|
-
-
|
143
|
-
-
|
144
|
-
- zips/
|
184
|
+
- rwd_files/HowTo_Shell.txt
|
185
|
+
- rwd_files/HowTo_RwdCalc.txt
|
186
|
+
- zips/rwdahelloworld-0.5.zip
|
145
187
|
- tests/totranslate.lang
|
146
|
-
-
|
188
|
+
- tests/rwdtinkertestEN.rb
|
189
|
+
- tests/test.result
|
147
190
|
- Readme.txt
|
191
|
+
- init.rb
|
148
192
|
test_files: []
|
149
193
|
rdoc_options:
|
150
194
|
- "--main"
|
@@ -154,6 +198,7 @@ extra_rdoc_files:
|
|
154
198
|
- Readme.txt
|
155
199
|
- rwd_files/HowTo_Tinker.txt
|
156
200
|
- rwd_files/HowTo_TinkerWin2.txt
|
201
|
+
- rwd_files/HowTo_RwdCalc.txt
|
157
202
|
executables:
|
158
203
|
- rwddemo
|
159
204
|
extensions: []
|
data/code/rwdcalc/ca4add.rb
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
RwdTinkerVersion = "1.3"
|
2
|
-
CodeName = "rwdtinker"
|
3
|
-
CodeNameFile = CodeName + ".rb"
|
4
|
-
LangNameFile = "rwdlanguage.rb"
|
5
|
-
RWDFile = "rwdtinker.rwd"
|
6
|
-
$lang = "en"
|
7
|
-
@@codedir = "code"
|
8
|
-
@@guidir = "gui"
|
9
|
-
@@langdir = "lang"
|
10
|
-
|
11
|
-
TempLangHashFile = @@langdir + "/" + "templangfile.rb"
|
12
|
-
LocalLangHashFile = @@langdir + "/" + "xlocallangfile.rb"
|
13
|
-
$port = 7705
|
data/extras/cal.rb
DELETED
@@ -1,166 +0,0 @@
|
|
1
|
-
#! /usr/bin/env ruby
|
2
|
-
|
3
|
-
# cal.rb: Written by Tadayoshi Funaba 1998-2004
|
4
|
-
# $Id: cal.rb,v 2.8 2004-09-25 12:50:10+09 tadf Exp $
|
5
|
-
|
6
|
-
require 'date'
|
7
|
-
|
8
|
-
class Cal
|
9
|
-
|
10
|
-
START =
|
11
|
-
{
|
12
|
-
'cn' => true, # China
|
13
|
-
'de' => 2342032, # Germany (protestant states)
|
14
|
-
'dk' => 2342032, # Denmark
|
15
|
-
'en' => 2361222, # English
|
16
|
-
'es' => 2299161, # Spain
|
17
|
-
'fi' => 2361390, # Finland
|
18
|
-
'fr' => 2299227, # France
|
19
|
-
'gb' => 2361222, # United Kingdom
|
20
|
-
'gr' => 2423868, # Greece
|
21
|
-
'hu' => 2301004, # Hungary
|
22
|
-
'it' => 2299161, # Italy
|
23
|
-
'jp' => true, # Japan
|
24
|
-
'no' => 2342032, # Norway
|
25
|
-
'nl' => 2361222,
|
26
|
-
'pl' => 2299161, # Poland
|
27
|
-
'pt' => 2299161, # Portugal
|
28
|
-
'ru' => 2421639, # Russia
|
29
|
-
'se' => 2361390, # Sweden
|
30
|
-
'us' => 2361222, # United States
|
31
|
-
'os' => false, # (old style)
|
32
|
-
'ns' => true # (new style)
|
33
|
-
}
|
34
|
-
|
35
|
-
DEFAULT_START = 'gb'
|
36
|
-
|
37
|
-
def initialize
|
38
|
-
opt_j; opt_m; opt_t; opt_y; opt_c
|
39
|
-
end
|
40
|
-
|
41
|
-
def opt_j(flag=false) @opt_j = flag end
|
42
|
-
def opt_m(flag=false) @opt_m = flag end
|
43
|
-
def opt_t(flag=false) @opt_t = flag end
|
44
|
-
def opt_y(flag=false) @opt_y = flag end
|
45
|
-
|
46
|
-
def opt_c(arg=DEFAULT_START) @start = START[arg] end
|
47
|
-
|
48
|
-
def set_params
|
49
|
-
@dw = if @opt_j then 3 else 2 end
|
50
|
-
@mw = (@dw + 1) * 7 - 1
|
51
|
-
@mn = if @opt_j then 2 else 3 end
|
52
|
-
@tw = (@mw + 2) * @mn - 2
|
53
|
-
@k = if @opt_m then 1 else 0 end
|
54
|
-
@da = if @opt_j then :yday else :mday end
|
55
|
-
end
|
56
|
-
|
57
|
-
def pict(y, m)
|
58
|
-
d = (1..31).detect{|d| Date.valid_date?(y, m, d, @start)}
|
59
|
-
fi = Date.new(y, m, d, @start)
|
60
|
-
fi -= (fi.jd - @k + 1) % 7
|
61
|
-
|
62
|
-
ve = (fi..fi + 6).collect{|cu|
|
63
|
-
%w(S M Tu W Th F S)[cu.wday]
|
64
|
-
}
|
65
|
-
ve += (fi..fi + 41).collect{|cu|
|
66
|
-
if cu.mon == m then cu.send(@da) end.to_s
|
67
|
-
}
|
68
|
-
|
69
|
-
ve = ve.collect{|e| e.rjust(@dw)}
|
70
|
-
|
71
|
-
gr = group(ve, 7)
|
72
|
-
gr = trans(gr) if @opt_t
|
73
|
-
ta = gr.collect{|xs| xs.join(' ')}
|
74
|
-
|
75
|
-
ca = %w(January February March April May June July
|
76
|
-
August September October November December)[m - 1]
|
77
|
-
ca = ca + ' ' + y.to_s if not @opt_y
|
78
|
-
ca = ca.center(@mw)
|
79
|
-
|
80
|
-
ta.unshift(ca)
|
81
|
-
end
|
82
|
-
|
83
|
-
def group(xs, n)
|
84
|
-
(0..xs.size / n - 1).collect{|i| xs[i * n, n]}
|
85
|
-
end
|
86
|
-
|
87
|
-
def trans(xs)
|
88
|
-
(0..xs[0].size - 1).collect{|i| xs.collect{|x| x[i]}}
|
89
|
-
end
|
90
|
-
|
91
|
-
def stack(xs)
|
92
|
-
if xs.empty? then [] else xs[0] + stack(xs[1..-1]) end
|
93
|
-
end
|
94
|
-
|
95
|
-
def block(xs, n)
|
96
|
-
stack(group(xs, n).collect{|ys| trans(ys).collect{|zs| zs.join(' ')}})
|
97
|
-
end
|
98
|
-
|
99
|
-
def unlines(xs)
|
100
|
-
xs.collect{|x| x + "\n"}.join
|
101
|
-
end
|
102
|
-
|
103
|
-
def monthly(y, m)
|
104
|
-
unlines(pict(y, m))
|
105
|
-
end
|
106
|
-
|
107
|
-
def addmon(y, m, n)
|
108
|
-
y, m = (y * 12 + (m - 1) + n).divmod(12)
|
109
|
-
return y, m + 1
|
110
|
-
end
|
111
|
-
|
112
|
-
def yearly(y)
|
113
|
-
y.to_s.center(@tw) + "\n\n" +
|
114
|
-
unlines(block((0..11).collect{|n| pict(*addmon(y, 1, n))}, @mn)) + "\n"
|
115
|
-
end
|
116
|
-
|
117
|
-
def print(y, m)
|
118
|
-
set_params
|
119
|
-
if @opt_y then yearly(y) else monthly(y, m) end
|
120
|
-
end
|
121
|
-
|
122
|
-
end
|
123
|
-
|
124
|
-
if __FILE__ == $0
|
125
|
-
|
126
|
-
require 'getoptlong'
|
127
|
-
|
128
|
-
def usage
|
129
|
-
warn 'usage: cal [-c iso3166] [-jmty] [[month] year]'
|
130
|
-
exit 1
|
131
|
-
end
|
132
|
-
|
133
|
-
cal = Cal.new
|
134
|
-
|
135
|
-
begin
|
136
|
-
GetoptLong.new(['-c', GetoptLong::REQUIRED_ARGUMENT],
|
137
|
-
['-j', GetoptLong::NO_ARGUMENT],
|
138
|
-
['-m', GetoptLong::NO_ARGUMENT],
|
139
|
-
['-t', GetoptLong::NO_ARGUMENT],
|
140
|
-
['-y', GetoptLong::NO_ARGUMENT]).
|
141
|
-
each do |opt, arg|
|
142
|
-
case opt
|
143
|
-
when '-c'; cal.opt_c(arg) || raise
|
144
|
-
when '-j'; cal.opt_j(true)
|
145
|
-
when '-m'; cal.opt_m(true)
|
146
|
-
when '-t'; cal.opt_t(true)
|
147
|
-
when '-y'; cal.opt_y(true)
|
148
|
-
end
|
149
|
-
end
|
150
|
-
rescue
|
151
|
-
usage
|
152
|
-
end
|
153
|
-
|
154
|
-
y, m = ARGV.values_at(1, 0).compact.collect{|x| x.to_i}
|
155
|
-
cal.opt_y(true) if y and not m
|
156
|
-
|
157
|
-
to = Date.today
|
158
|
-
y ||= to.year
|
159
|
-
m ||= to.mon
|
160
|
-
|
161
|
-
usage unless m >= 1 and m <= 12
|
162
|
-
usage unless y >= -4712
|
163
|
-
|
164
|
-
print cal.print(y, m)
|
165
|
-
|
166
|
-
end
|
data/gui/aa2core/aa0rwdtop.rwd
DELETED