rwdmovies 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +47 -30
- data/code/ag1core/aa0begin.rb +18 -18
- data/code/ag1core/rwdtinkerversion.rb +15 -15
- data/code/xa5rwdtinkercallable/callable.rb +12 -12
- data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +21 -21
- data/code/xb1rwdtinkerbackwindow/{lm1installapplet.rb → installapplet.rb} +21 -20
- data/code/xb1rwdtinkerbackwindow/{05listinstalledfiles.rb → listinstalledfiles.rb} +1 -1
- data/code/xb1rwdtinkerbackwindow/{ll5listzips.rb → listzips.rb} +9 -7
- data/code/xb1rwdtinkerbackwindow/loadconfigurationrecord.rb +32 -0
- data/code/xb1rwdtinkerbackwindow/loadconfigurationvariables.rb +13 -0
- data/code/xb1rwdtinkerbackwindow/{ll1openname.rb → openappletname.rb} +18 -18
- data/code/xb1rwdtinkerbackwindow/{mm1removeapplet.rb → removeapplet.rb} +28 -28
- data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -14
- data/code/xb1rwdtinkerbackwindow/saveconfigurationrecord.rb +18 -0
- data/code/zz0applicationend/zz0end.rb +4 -4
- data/configuration/language.cnf +5 -0
- data/configuration/rwdmovies.cnf +0 -1
- data/configuration/rwdmoviesversion.cnf +2 -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/ev/browser.rb +109 -109
- data/ev/ftools.rb +170 -170
- data/ev/net.rb +750 -750
- data/ev/ruby.rb +819 -819
- data/ev/rwd.rb +1848 -1848
- data/ev/sgml.rb +236 -236
- data/ev/thread.rb +63 -63
- data/ev/tree.rb +343 -343
- data/ev/xml.rb +4 -4
- data/gui/00coreguibegin/applicationguitop.rwd +4 -0
- data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/1openmoviedata.rwd +0 -0
- data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/2openmoviephoto.rwd +0 -0
- data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/3listmoviegfiles.rwd +0 -0
- data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/6editrecord.rwd +0 -0
- data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/movieutilities.rwd +0 -0
- data/gui/{ee1rwdmovies → frontwindow0/superant.com.rwdmovies}/viewconfiguration.rwd +0 -0
- data/gui/{ll1selectiontabbegin → frontwindowselectionbegin/selectiontabbegin}/selectiontabbegin.rwd +16 -16
- data/gui/{ll5rwdtinkerwin2selectiontab → frontwindowselections/superant.com.rwdtinkerwin2selectiontab}/rwdwin2selectiontab.rwd +12 -12
- data/gui/{lz1selectiontabend/endselectiontab.rwd → frontwindowselectionzend/viewselectionzend/viewselectionend.rwd} +3 -3
- data/gui/{tt0documentsbegin → frontwindowtdocumentbegin/superant.com.documentsbegin}/tt0documentbegin.rwd +6 -6
- data/gui/{uu5rwddocuments → frontwindowtdocuments/superant.com.documents}/uu5documents.rwd +15 -15
- data/gui/{uv7rwdmovies → frontwindowtdocuments/superant.com.rwdmovies}/uv7docmovies.rwd +0 -0
- data/gui/{uu6rwdtinkerwin2documents → frontwindowtdocuments/superant.com.tinkerwin2documents}/uu5documents.rwd +6 -6
- data/gui/{ww0documentsend → frontwindowtdocumentzend/superant.com.documentsend}/ww0documentend.rwd +7 -7
- data/gui/{wz6finaltabs → frontwindowz1end/frontwindowend}/xx0rwdfirsttab.rwd +6 -6
- data/gui/{ya1helpaboutbegin → helpaboutbegin/superant.com.helpaboutbegin}/ya0helpscreenstart.rwd +3 -3
- data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/1movies.rwd +0 -0
- data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/2movies.rwd +0 -0
- data/gui/{yl2rwdmovieshelpabout → helpaboutinstalled/superant.com.rwdmovieshelpabout}/5version.rwd +0 -0
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/1appname.rwd +4 -4
- data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/3copyright.rwd +3 -3
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.rwdwin2helpabout}/5version.rwd +10 -10
- data/gui/{yg5rwdhelpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/1appname.rwd +4 -4
- data/gui/{yg6rwdwin2helpabout → helpaboutinstalled/superant.com.tinkerhelpabout}/3copyright.rwd +3 -3
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +10 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +3 -0
- data/gui/{xx8rwdmoviespicture → tinkerbackwindows/superant.com.rwdmoviespicture}/xx8moviephotoview.rwd +0 -0
- data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/1appname.rwd +17 -17
- data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinercallablewindow}/9end.rwd +4 -4
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/1appname.rwd +5 -5
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/3arwddiagnostics.rwd +33 -33
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40editconfiguration.rwd +36 -0
- data/gui/{xb1rwdtinkerbackwindow/4arwdlistapplets.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd} +44 -44
- data/gui/{xb1rwdtinkerbackwindow/4arwdlistzips.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistzips.rwd} +35 -35
- data/gui/{xb1rwdtinkerbackwindow/2tab1.rwd → tinkerbackwindows/superant.com.tinkerbackwindow/80tab1.rwd} +11 -11
- data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/9backend.rwd +6 -6
- data/gui/{xa1versionwindow → tinkerbackwindows/superant.com.versionwindow}/1appname.rwd +19 -19
- data/gui/{za1applicationend → zzcoreguiend/tinkerapplicationguiend}/yy9rwdend.rwd +4 -4
- data/init.rb +233 -233
- data/installed/rwdtinkerwin2-0.5.inf +8 -8
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/lang/alanguagehashbegin.rb +4 -4
- data/lang/en/rwdcore/languagefile.rb +15 -15
- data/lang/es/rwdcore/languagefile-es.rb +14 -14
- data/lang/jp/rwdcore/languagefile.rb +9 -0
- data/lang/languagehash.rb +4 -4
- data/lang/nl/rwdcore/languagefile.rb +19 -0
- data/lang/templangfile.rb +15 -21
- data/lang/vlanguagehashend.rb +6 -6
- data/lang/wlocallangstart.rb +5 -5
- data/lang/xlocallangfile.rb +16 -10
- data/lang/zlocallangend.rb +2 -2
- data/lib/temp.rb +1 -1
- data/rwd_files/HowTo_Movies.txt +2 -0
- data/rwd_files/HowTo_Tinker.txt +318 -276
- data/rwd_files/HowTo_TinkerWin2.txt +202 -202
- data/rwd_files/Readme.txt +57 -57
- data/rwd_files/moviestmp.jpg +0 -0
- data/rwd_files/rdoc-style.css +174 -174
- data/rwd_files/rwdapplications.html +54 -54
- data/rwd_files/tinker.png +0 -0
- data/tests/rwdtinkertestEN.rb +163 -0
- data/tests/test.result +32 -0
- data/tests/totranslate.lang +93 -93
- data/zips/rwdahelloworld-0.5.zip +0 -0
- metadata +96 -75
- data/code/gh9calendar/gh9calendar.rb +0 -16
- data/configuration/aa0rwdframework.cnf +0 -14
- data/configuration/ab1tinkerwin2.cnf +0 -4
- data/gui/aa2core/aa0rwdtop.rwd +0 -4
- data/gui/yg5rwdhelpabout/5version.rwd +0 -10
- data/gui/yy5helpaboutend/helpscreenend.rwd +0 -3
- data/installed/rubyslippers-0.94.inf +0 -9
- data/installed/rwdcalendar-0.5.inf +0 -8
- data/lang/en/rwdcalendar/calendar-nl.rb +0 -6
- data/lang/es/rwdcalendar/calendar-nl.rb +0 -6
- data/lang/nl/rwdcalendar/calendar-nl.rb +0 -6
- data/lang/nl/rwdcore/languagefile-nl.rb +0 -4
- data/zips/rwdacalendar-0.5.zip +0 -0
- data/zips/rwdhelloworld-0.3.zip +0 -0
- data/zips/rwdwshell-0.91.zip +0 -0
- data/zips/wrubyslippers-0.93.zip +0 -0
@@ -1,19 +1,19 @@
|
|
1
|
-
$rwdguivar=
|
2
|
-
"
|
3
|
-
<window name = \"applicationversion\" title=\"Application Version\">
|
4
|
-
|
5
|
-
<row> <p></row>
|
6
|
-
<p>%versionappnamedisplay%</p>
|
7
|
-
<row> <p></row>
|
8
|
-
<p>%versioncopyrightdisplay%</p>
|
9
|
-
|
10
|
-
<row> <p></row>
|
11
|
-
<p>%versionnumberdisplay%</p>
|
12
|
-
|
13
|
-
<horizontal>
|
14
|
-
<cancel/>
|
15
|
-
</horizontal>
|
16
|
-
|
17
|
-
</window>"
|
18
|
-
|
19
|
-
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<window name = \"applicationversion\" title=\"Application Version\">
|
4
|
+
|
5
|
+
<row> <p></row>
|
6
|
+
<p>%versionappnamedisplay%</p>
|
7
|
+
<row> <p></row>
|
8
|
+
<p>%versioncopyrightdisplay%</p>
|
9
|
+
|
10
|
+
<row> <p></row>
|
11
|
+
<p>%versionnumberdisplay%</p>
|
12
|
+
|
13
|
+
<horizontal>
|
14
|
+
<cancel/>
|
15
|
+
</horizontal>
|
16
|
+
|
17
|
+
</window>"
|
18
|
+
|
19
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
$rwdguivar=
|
2
|
-
"
|
3
|
-
</application>"
|
4
|
-
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
</application>"
|
4
|
+
|
data/init.rb
CHANGED
@@ -1,233 +1,233 @@
|
|
1
|
-
|
2
|
-
#***********************************************************************
|
3
|
-
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
-
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
|
5
|
-
#*
|
6
|
-
#* This library is free software; you can redistribute it and/or
|
7
|
-
#* modify it under the terms of the GNU General Public
|
8
|
-
#* License as published by the Free Software Foundation; either
|
9
|
-
#* .
|
10
|
-
#*
|
11
|
-
#* These files are distributed in the hope that they will be useful,
|
12
|
-
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
-
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
-
#* General Public License for more details.
|
15
|
-
#*
|
16
|
-
#* You should have received a copy of the GNU General Public
|
17
|
-
#* License along with these files; if not, write to the Free Software
|
18
|
-
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
-
#*
|
20
|
-
#* For further information please contact the author by e-mail
|
21
|
-
#* at "steven@superant.com".
|
22
|
-
#***********************************************************************/
|
23
|
-
|
24
|
-
require "ev/rwd"
|
25
|
-
require 'fileutils'
|
26
|
-
|
27
|
-
$progdir = File::expand_path( File.dirname(__FILE__))
|
28
|
-
|
29
|
-
$tempdoc = " "
|
30
|
-
|
31
|
-
def findfiles(d)
|
32
|
-
a = Array.new(Dir[d].entries.sort)
|
33
|
-
#loop through and get the files names
|
34
|
-
a.each do |x|
|
35
|
-
#adjust the filters to the files you want to see...
|
36
|
-
if(!test(?d,x))
|
37
|
-
# only rwd files
|
38
|
-
if x =~ /rb|rwd|txt/
|
39
|
-
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
40
|
-
$tempdoc+=fileA.read #reads the file into the doc string
|
41
|
-
fileA.close
|
42
|
-
end
|
43
|
-
end
|
44
|
-
end
|
45
|
-
end
|
46
|
-
def loadguifile(d)
|
47
|
-
a = Array.new(Dir[d].entries.sort)
|
48
|
-
#loop through and get the files names
|
49
|
-
a.each do |x|
|
50
|
-
#adjust the filters to the files you want to see...
|
51
|
-
if(!test(?d,x))
|
52
|
-
# only rwd files
|
53
|
-
if x =~ /rb|rwd|txt/
|
54
|
-
load x #opens the file thats in fileName and reads it
|
55
|
-
$tempdoc += $rwdguivar # adds the file into the doc string
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
# Read in the configuration files
|
62
|
-
|
63
|
-
Dir.chdir("configuration") #changes the current working directory
|
64
|
-
|
65
|
-
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
|
66
|
-
@doc = ""
|
67
|
-
fileList.length.times{ #opening of a block
|
68
|
-
fileName=fileList.pop #pops the first item out of the Array
|
69
|
-
load fileName #loads the the config file thats in fileName
|
70
|
-
} #closing block
|
71
|
-
# END of configuration reading
|
72
|
-
|
73
|
-
Dir.chdir($progdir) # change back to top program directory
|
74
|
-
|
75
|
-
# build the English Language hash file from the parts
|
76
|
-
startlangdir =
|
77
|
-
#get a list of the files and subdirectories on the starting directory only
|
78
|
-
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
79
|
-
#loop through the list, ignore the files and add all new directories found
|
80
|
-
alanghash.each do |x|
|
81
|
-
#if a directory...
|
82
|
-
if(test(?d,x))
|
83
|
-
# add to the original list of directories
|
84
|
-
@@tmproot = x + "/**"
|
85
|
-
#adds the new ones to the array
|
86
|
-
blanghash = Dir[@@tmproot].entries.sort
|
87
|
-
blanghash.each do |x|
|
88
|
-
if(test(?d,x))
|
89
|
-
alanghash.push(x) #appends to the end of the array...
|
90
|
-
end
|
91
|
-
end
|
92
|
-
end
|
93
|
-
end
|
94
|
-
alanghash.each do |x|
|
95
|
-
#if it is a file...
|
96
|
-
if(!test(?d,x))
|
97
|
-
alanghash.delete(x)
|
98
|
-
else #it is a directory...
|
99
|
-
findfiles(x + "/**")
|
100
|
-
end
|
101
|
-
end
|
102
|
-
|
103
|
-
fileLangHash=File.open(TempLangHashFile,"w") #deletes and opens a the file in fileName
|
104
|
-
fileLangHash.write($tempdoc) #writes the contents of doc into the file
|
105
|
-
fileLangHash.close
|
106
|
-
# END of Lang building
|
107
|
-
$tempdoc = " "
|
108
|
-
Dir.chdir($progdir) # change back to top program directory
|
109
|
-
|
110
|
-
# build the local Language hash file from the parts
|
111
|
-
startlangdir =
|
112
|
-
#get a list of the files and subdirectories on the starting directory only
|
113
|
-
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
114
|
-
#loop through the list, ignore the files and add all new directories found
|
115
|
-
alanghash.each do |x|
|
116
|
-
#if a directory...
|
117
|
-
if(test(?d,x))
|
118
|
-
# add to the original list of directories
|
119
|
-
@@tmproot = x + "/**"
|
120
|
-
#adds the new ones to the array
|
121
|
-
blanghash = Dir[@@tmproot].entries.sort
|
122
|
-
blanghash.each do |x|
|
123
|
-
if(test(?d,x))
|
124
|
-
alanghash.push(x) #appends to the end of the array...
|
125
|
-
end
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
alanghash.each do |x|
|
130
|
-
#if it is a file...
|
131
|
-
if(!test(?d,x))
|
132
|
-
alanghash.delete(x)
|
133
|
-
else #it is a directory...
|
134
|
-
findfiles(x + "/**")
|
135
|
-
end
|
136
|
-
end
|
137
|
-
|
138
|
-
filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
|
139
|
-
filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
|
140
|
-
filelocalLangHash.close
|
141
|
-
|
142
|
-
$tempdoc = " "
|
143
|
-
|
144
|
-
Dir.chdir($progdir) # change back to top program directory
|
145
|
-
|
146
|
-
# build the language hash constant object from the lang parts
|
147
|
-
#get a list of the files in lang directory only
|
148
|
-
alangfile = Dir.new(
|
149
|
-
alangfile.length.times{
|
150
|
-
fileName = alangfile.pop
|
151
|
-
Dir.chdir($progdir)
|
152
|
-
Dir.chdir(
|
153
|
-
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
154
|
-
$tempdoc += fileLangA.read #reads the file into the doc string
|
155
|
-
fileLangA.close
|
156
|
-
}
|
157
|
-
|
158
|
-
Dir.chdir($progdir)
|
159
|
-
fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
|
160
|
-
fileLangB.write($tempdoc) #writes the contents of doc into the file
|
161
|
-
fileLangB.close
|
162
|
-
load LangNameFile # load the file
|
163
|
-
|
164
|
-
$tempdoc = " "
|
165
|
-
|
166
|
-
# build the actual program from the code parts
|
167
|
-
#get a list of the files and subdirectories on the starting directory only
|
168
|
-
a = Array.new(Dir[
|
169
|
-
#loop through the list, ignore the files and add all new directories found
|
170
|
-
a.each do |x|
|
171
|
-
#if a directory...
|
172
|
-
if(test(?d,x))
|
173
|
-
# add to the original list of directories
|
174
|
-
@@root = x + "/**"
|
175
|
-
#adds the new ones to the array
|
176
|
-
b = Dir[@@root].entries.sort
|
177
|
-
b.each do |x|
|
178
|
-
if(test(?d,x))
|
179
|
-
a.push(x) #appends to the end of the array...
|
180
|
-
end
|
181
|
-
end
|
182
|
-
end
|
183
|
-
end
|
184
|
-
a.each do |x|
|
185
|
-
#if it is a file...
|
186
|
-
if(!test(?d,x))
|
187
|
-
a.delete(x)
|
188
|
-
else #it is a directory...
|
189
|
-
findfiles(x + "/**")
|
190
|
-
end
|
191
|
-
end
|
192
|
-
|
193
|
-
fileB=File.open(CodeNameFile,"w") #deletes and opens a the file in fileName
|
194
|
-
fileB.write($tempdoc) #writes the contents of doc into the file
|
195
|
-
fileB.close
|
196
|
-
require CodeName # load the program file
|
197
|
-
|
198
|
-
# build the actual GUI from the gui parts
|
199
|
-
$tempdoc = " "
|
200
|
-
#get a list of the files and subdirectories on the starting directory only
|
201
|
-
a = Array.new(Dir[
|
202
|
-
#loop through the list, ignore the files and add all new directories found
|
203
|
-
a.each do |x|
|
204
|
-
#if a directory...
|
205
|
-
if(test(?d,x))
|
206
|
-
#use this new dir find to add to the original list of directories
|
207
|
-
@@root = x + "/**"
|
208
|
-
#adds the new ones to the array
|
209
|
-
b = Dir[@@root].entries.sort
|
210
|
-
b.each do |x|
|
211
|
-
if(test(?d,x))
|
212
|
-
a.push(x) #appends to the end of the array...
|
213
|
-
end
|
214
|
-
end
|
215
|
-
end
|
216
|
-
end
|
217
|
-
a.each do |x|
|
218
|
-
#if it is a file...
|
219
|
-
if(!test(?d,x))
|
220
|
-
a.delete(x)
|
221
|
-
|
222
|
-
else #it is a directory...
|
223
|
-
loadguifile(x + "/**")
|
224
|
-
end
|
225
|
-
end
|
226
|
-
|
227
|
-
fileB=File.open(RWDFile,"w") #deletes and opens a the file in fileName
|
228
|
-
fileB.write($tempdoc) #writes the contents of doc into the file
|
229
|
-
fileB.close
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
RwdTinker.file(RWDFile).serve($port) # start the main class and program
|
1
|
+
|
2
|
+
#***********************************************************************
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
+
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
|
5
|
+
#*
|
6
|
+
#* This library is free software; you can redistribute it and/or
|
7
|
+
#* modify it under the terms of the GNU General Public
|
8
|
+
#* License as published by the Free Software Foundation; either
|
9
|
+
#* .
|
10
|
+
#*
|
11
|
+
#* These files are distributed in the hope that they will be useful,
|
12
|
+
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
#* General Public License for more details.
|
15
|
+
#*
|
16
|
+
#* You should have received a copy of the GNU General Public
|
17
|
+
#* License along with these files; if not, write to the Free Software
|
18
|
+
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
#*
|
20
|
+
#* For further information please contact the author by e-mail
|
21
|
+
#* at "steven@superant.com".
|
22
|
+
#***********************************************************************/
|
23
|
+
|
24
|
+
require "ev/rwd"
|
25
|
+
require 'fileutils'
|
26
|
+
|
27
|
+
$progdir = File::expand_path( File.dirname(__FILE__))
|
28
|
+
|
29
|
+
$tempdoc = " "
|
30
|
+
|
31
|
+
def findfiles(d)
|
32
|
+
a = Array.new(Dir[d].entries.sort)
|
33
|
+
#loop through and get the files names
|
34
|
+
a.each do |x|
|
35
|
+
#adjust the filters to the files you want to see...
|
36
|
+
if(!test(?d,x))
|
37
|
+
# only rwd files
|
38
|
+
if x =~ /rb|rwd|txt/
|
39
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
40
|
+
$tempdoc+=fileA.read #reads the file into the doc string
|
41
|
+
fileA.close
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
def loadguifile(d)
|
47
|
+
a = Array.new(Dir[d].entries.sort)
|
48
|
+
#loop through and get the files names
|
49
|
+
a.each do |x|
|
50
|
+
#adjust the filters to the files you want to see...
|
51
|
+
if(!test(?d,x))
|
52
|
+
# only rwd files
|
53
|
+
if x =~ /rb|rwd|txt/
|
54
|
+
load x #opens the file thats in fileName and reads it
|
55
|
+
$tempdoc += $rwdguivar # adds the file into the doc string
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Read in the configuration files
|
62
|
+
|
63
|
+
Dir.chdir("configuration") #changes the current working directory
|
64
|
+
|
65
|
+
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
|
66
|
+
@doc = ""
|
67
|
+
fileList.length.times{ #opening of a block
|
68
|
+
fileName=fileList.pop #pops the first item out of the Array
|
69
|
+
load fileName #loads the the config file thats in fileName
|
70
|
+
} #closing block
|
71
|
+
# END of configuration reading
|
72
|
+
|
73
|
+
Dir.chdir($progdir) # change back to top program directory
|
74
|
+
|
75
|
+
# build the English Language hash file from the parts
|
76
|
+
startlangdir = File.join(LangDir,"en")
|
77
|
+
#get a list of the files and subdirectories on the starting directory only
|
78
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
79
|
+
#loop through the list, ignore the files and add all new directories found
|
80
|
+
alanghash.each do |x|
|
81
|
+
#if a directory...
|
82
|
+
if(test(?d,x))
|
83
|
+
# add to the original list of directories
|
84
|
+
@@tmproot = x + "/**"
|
85
|
+
#adds the new ones to the array
|
86
|
+
blanghash = Dir[@@tmproot].entries.sort
|
87
|
+
blanghash.each do |x|
|
88
|
+
if(test(?d,x))
|
89
|
+
alanghash.push(x) #appends to the end of the array...
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
94
|
+
alanghash.each do |x|
|
95
|
+
#if it is a file...
|
96
|
+
if(!test(?d,x))
|
97
|
+
alanghash.delete(x)
|
98
|
+
else #it is a directory...
|
99
|
+
findfiles(x + "/**")
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
fileLangHash=File.open(TempLangHashFile,"w") #deletes and opens a the file in fileName
|
104
|
+
fileLangHash.write($tempdoc) #writes the contents of doc into the file
|
105
|
+
fileLangHash.close
|
106
|
+
# END of Lang building
|
107
|
+
$tempdoc = " "
|
108
|
+
Dir.chdir($progdir) # change back to top program directory
|
109
|
+
|
110
|
+
# build the local Language hash file from the parts
|
111
|
+
startlangdir = File.join(LangDir,$lang)
|
112
|
+
#get a list of the files and subdirectories on the starting directory only
|
113
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
114
|
+
#loop through the list, ignore the files and add all new directories found
|
115
|
+
alanghash.each do |x|
|
116
|
+
#if a directory...
|
117
|
+
if(test(?d,x))
|
118
|
+
# add to the original list of directories
|
119
|
+
@@tmproot = x + "/**"
|
120
|
+
#adds the new ones to the array
|
121
|
+
blanghash = Dir[@@tmproot].entries.sort
|
122
|
+
blanghash.each do |x|
|
123
|
+
if(test(?d,x))
|
124
|
+
alanghash.push(x) #appends to the end of the array...
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
alanghash.each do |x|
|
130
|
+
#if it is a file...
|
131
|
+
if(!test(?d,x))
|
132
|
+
alanghash.delete(x)
|
133
|
+
else #it is a directory...
|
134
|
+
findfiles(x + "/**")
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
|
139
|
+
filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
|
140
|
+
filelocalLangHash.close
|
141
|
+
|
142
|
+
$tempdoc = " "
|
143
|
+
|
144
|
+
Dir.chdir($progdir) # change back to top program directory
|
145
|
+
|
146
|
+
# build the language hash constant object from the lang parts
|
147
|
+
#get a list of the files in lang directory only
|
148
|
+
alangfile = Dir.new(LangDir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
|
149
|
+
alangfile.length.times{
|
150
|
+
fileName = alangfile.pop
|
151
|
+
Dir.chdir($progdir)
|
152
|
+
Dir.chdir(LangDir)
|
153
|
+
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
154
|
+
$tempdoc += fileLangA.read #reads the file into the doc string
|
155
|
+
fileLangA.close
|
156
|
+
}
|
157
|
+
|
158
|
+
Dir.chdir($progdir)
|
159
|
+
fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
|
160
|
+
fileLangB.write($tempdoc) #writes the contents of doc into the file
|
161
|
+
fileLangB.close
|
162
|
+
load LangNameFile # load the file
|
163
|
+
|
164
|
+
$tempdoc = " "
|
165
|
+
|
166
|
+
# build the actual program from the code parts
|
167
|
+
#get a list of the files and subdirectories on the starting directory only
|
168
|
+
a = Array.new(Dir[CodeDir].entries.sort)
|
169
|
+
#loop through the list, ignore the files and add all new directories found
|
170
|
+
a.each do |x|
|
171
|
+
#if a directory...
|
172
|
+
if(test(?d,x))
|
173
|
+
# add to the original list of directories
|
174
|
+
@@root = x + "/**"
|
175
|
+
#adds the new ones to the array
|
176
|
+
b = Dir[@@root].entries.sort
|
177
|
+
b.each do |x|
|
178
|
+
if(test(?d,x))
|
179
|
+
a.push(x) #appends to the end of the array...
|
180
|
+
end
|
181
|
+
end
|
182
|
+
end
|
183
|
+
end
|
184
|
+
a.each do |x|
|
185
|
+
#if it is a file...
|
186
|
+
if(!test(?d,x))
|
187
|
+
a.delete(x)
|
188
|
+
else #it is a directory...
|
189
|
+
findfiles(x + "/**")
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
fileB=File.open(CodeNameFile,"w") #deletes and opens a the file in fileName
|
194
|
+
fileB.write($tempdoc) #writes the contents of doc into the file
|
195
|
+
fileB.close
|
196
|
+
require CodeName # load the program file
|
197
|
+
|
198
|
+
# build the actual GUI from the gui parts
|
199
|
+
$tempdoc = " "
|
200
|
+
#get a list of the files and subdirectories on the starting directory only
|
201
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
202
|
+
#loop through the list, ignore the files and add all new directories found
|
203
|
+
a.each do |x|
|
204
|
+
#if a directory...
|
205
|
+
if(test(?d,x))
|
206
|
+
#use this new dir find to add to the original list of directories
|
207
|
+
@@root = x + "/**"
|
208
|
+
#adds the new ones to the array
|
209
|
+
b = Dir[@@root].entries.sort
|
210
|
+
b.each do |x|
|
211
|
+
if(test(?d,x))
|
212
|
+
a.push(x) #appends to the end of the array...
|
213
|
+
end
|
214
|
+
end
|
215
|
+
end
|
216
|
+
end
|
217
|
+
a.each do |x|
|
218
|
+
#if it is a file...
|
219
|
+
if(!test(?d,x))
|
220
|
+
a.delete(x)
|
221
|
+
|
222
|
+
else #it is a directory...
|
223
|
+
loadguifile(x + "/**")
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
fileB=File.open(RWDFile,"w") #deletes and opens a the file in fileName
|
228
|
+
fileB.write($tempdoc) #writes the contents of doc into the file
|
229
|
+
fileB.close
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
RwdTinker.file(RWDFile).serve($port) # start the main class and program
|
@@ -1,8 +1,8 @@
|
|
1
|
-
# rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
|
2
|
-
configuration/ab1tinkerwin2.cnf
|
3
|
-
code/xb1rwdtinkerbackwindow
|
4
|
-
gui/ll5rwdtinkerwin2selectiontab
|
5
|
-
gui/xb1rwdtinkerbackwindow
|
6
|
-
gui/uu6rwdtinkerwin2documents
|
7
|
-
gui/yg6rwdwin2helpabout
|
8
|
-
rwd_files/HowTo_TinkerWin2.txt
|
1
|
+
# rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
|
2
|
+
configuration/ab1tinkerwin2.cnf
|
3
|
+
code/xb1rwdtinkerbackwindow
|
4
|
+
gui/ll5rwdtinkerwin2selectiontab
|
5
|
+
gui/xb1rwdtinkerbackwindow
|
6
|
+
gui/uu6rwdtinkerwin2documents
|
7
|
+
gui/yg6rwdwin2helpabout
|
8
|
+
rwd_files/HowTo_TinkerWin2.txt
|
data/lang/alanguagehashbegin.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
|
4
|
-
langmessage = {
|
1
|
+
|
2
|
+
|
3
|
+
Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
|
4
|
+
langmessage = {
|
@@ -1,16 +1,16 @@
|
|
1
|
-
# English Language files for RwdTinker core
|
2
|
-
|
3
|
-
|
4
|
-
:applet_installed => "applet installed!.",
|
5
|
-
:clickfor_version => '"click for version"',
|
6
|
-
:documents => '"Documents"',
|
7
|
-
:help => '"Help"',
|
8
|
-
:module_unknown => "Module unknown",
|
9
|
-
:next => '"Next"',
|
10
|
-
:rwdtinker_window_2 => "RwdTinker Window 2",
|
11
|
-
:rwdtinker => "RwdTinker",
|
12
|
-
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
13
|
-
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
14
|
-
:rwdtinker_help => '"RwdTinker Help"',
|
15
|
-
:tinker_logo => "Tinker Logo",
|
1
|
+
# English Language files for RwdTinker core
|
2
|
+
|
3
|
+
|
4
|
+
:applet_installed => "applet installed!.",
|
5
|
+
:clickfor_version => '"click for version"',
|
6
|
+
:documents => '"Documents"',
|
7
|
+
:help => '"Help"',
|
8
|
+
:module_unknown => "Module unknown",
|
9
|
+
:next => '"Next"',
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Window 2",
|
11
|
+
:rwdtinker => "RwdTinker",
|
12
|
+
:rwdtinker_help_window => '"RwdTinker Help Window"',
|
13
|
+
:rwdtinker_back_window => '"RwdTinker Back Window"',
|
14
|
+
:rwdtinker_help => '"RwdTinker Help"',
|
15
|
+
:tinker_logo => "Tinker Logo",
|
16
16
|
:selection_panel => '"Selection Panel"',
|
@@ -1,14 +1,14 @@
|
|
1
|
-
:applet_installed => "applet instalado! ",
|
2
|
-
:clickfor_version => '"click para version"',
|
3
|
-
:documents => '"Documentos"',
|
4
|
-
:help => '"Ayuda"',
|
5
|
-
:module_unknown => "Module desconocido.",
|
6
|
-
:next => '"Siguiente"',
|
7
|
-
:rwdtinker => "RwdTinker",
|
8
|
-
:rwdtinker_help_window => '"RwdTinker Ventana Ayuda"',
|
9
|
-
:rwdtinker_help => '"RwdTinker Ayuda"',
|
10
|
-
:rwdtinker_window_2 => "RwdTinker Ventana 2",
|
11
|
-
:rwdtinker_back_window => '"RwdTinker Ventana Trasera"',
|
12
|
-
:tinker_logo => "Insignia de Tinker",
|
13
|
-
:selection_panel => '"Selecci�n Panel"',
|
14
|
-
|
1
|
+
:applet_installed => "applet instalado! ",
|
2
|
+
:clickfor_version => '"click para version"',
|
3
|
+
:documents => '"Documentos"',
|
4
|
+
:help => '"Ayuda"',
|
5
|
+
:module_unknown => "Module desconocido.",
|
6
|
+
:next => '"Siguiente"',
|
7
|
+
:rwdtinker => "RwdTinker",
|
8
|
+
:rwdtinker_help_window => '"RwdTinker Ventana Ayuda"',
|
9
|
+
:rwdtinker_help => '"RwdTinker Ayuda"',
|
10
|
+
:rwdtinker_window_2 => "RwdTinker Ventana 2",
|
11
|
+
:rwdtinker_back_window => '"RwdTinker Ventana Trasera"',
|
12
|
+
:tinker_logo => "Insignia de Tinker",
|
13
|
+
:selection_panel => '"Selecci�n Panel"',
|
14
|
+
|
@@ -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 => "オンラインマニュアル",
|
data/lang/languagehash.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# The encoding for the webpages. This should match the encoding used
|
2
|
-
# to create these messages.
|
3
|
-
|
4
|
-
|
1
|
+
# The encoding for the webpages. This should match the encoding used
|
2
|
+
# to create these messages.
|
3
|
+
|
4
|
+
|
@@ -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"',
|