rwdtinker 1.74 → 1.75

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,11 +45,7 @@ begin
45
45
 
46
46
  eval configfileload #load config file
47
47
 
48
- setuphelpaboutoptions # update the help about list
49
- setuptinkerdocuments # update the document pull down list
50
- runhelpwindow # update the help menu
51
- showjumplinkoptions # update the application link menu
52
- runrwdtinkerbackwindow # back to applet window
48
+
53
49
 
54
50
  rescue
55
51
 
@@ -57,7 +53,92 @@ begin
57
53
  $stderr.puts "error in initiateapplets - config load"
58
54
  end
59
55
  debuginitiate += 1
56
+ end
57
+ $tempdoc = " "
58
+
59
+ Dir.chdir($progdir) # change back to top program directory
60
+
61
+ # build the English Language hash file from the parts
62
+ languagehashvariable = 'Message.update('
63
+ startlangdir = File.join(LangDir,"en")
64
+ #get a list of the files and subdirectories on the starting directory only
65
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
66
+ #loop through the list, ignore the files and add all new directories found
67
+ alanghash.each do |x|
68
+ #if a directory...
69
+ if(test(?d,x))
70
+ # add to the original list of directories
71
+ @@tmproot = x + "/**"
72
+ #adds the new ones to the array
73
+ blanghash = Dir[@@tmproot].entries.sort
74
+ blanghash.each do |x|
75
+ if(test(?d,x))
76
+ alanghash.push(x) #appends to the end of the array...
77
+ end
78
+ end
79
+ end
80
+ end
81
+ alanghash.each do |x|
82
+ #if it is a file...
83
+ if(!test(?d,x))
84
+ alanghash.delete(x)
85
+ else #it is a directory...
86
+ findfiles(x + "/**")
87
+ end
88
+ end
89
+
90
+
91
+ #writes the contents of doc into the languagehashvariable
92
+
93
+
94
+ languagehashvariable = languagehashvariable + $tempdoc + ' :rwdtinker => "Rwdtinker" ) ;'
95
+
96
+ # END of en Lang building
97
+ $tempdoc = " "
98
+ Dir.chdir($progdir) # change back to top program directory
99
+
100
+ # build the local Language hash file from the parts
101
+ startlangdir = File.join(LangDir,$lang)
102
+ #get a list of the files and subdirectories on the starting directory only
103
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
104
+ #loop through the list, ignore the files and add all new directories found
105
+ alanghash.each do |x|
106
+ #if a directory...
107
+ if(test(?d,x))
108
+ # add to the original list of directories
109
+ @@tmproot = x + "/**"
110
+ #adds the new ones to the array
111
+ blanghash = Dir[@@tmproot].entries.sort
112
+ blanghash.each do |x|
113
+ if(test(?d,x))
114
+ alanghash.push(x) #appends to the end of the array...
115
+ end
116
+ end
117
+ end
118
+ end
119
+ alanghash.each do |x|
120
+ #if it is a file...
121
+ if(!test(?d,x))
122
+ alanghash.delete(x)
123
+ else #it is a directory...
124
+ findfiles(x + "/**")
125
+ end
60
126
  end
127
+
128
+
129
+ #writes the contents of doc into the variable
130
+
131
+ languagehashvariable = languagehashvariable + " Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
132
+
133
+
134
+
135
+ $tempdoc = " "
136
+
137
+ Dir.chdir($progdir) # change back to top program directory
138
+
139
+ temp = eval( languagehashvariable )
140
+
141
+
61
142
  tempguistorage = $rwd_gui_tinker # if gui load fails restore old
62
143
  begin # error trap
63
144
 
@@ -122,11 +203,7 @@ tempcodeinstallline = ""
122
203
  tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
123
204
  end
124
205
  end
125
-
126
- # resultend = tempcodeinstallline .index("\n",resultstart)
127
- tempresult = @fileName
128
-
129
- return " applet loading successful " + tempresult
206
+
130
207
 
131
208
  rescue
132
209
  if $DEBUG
@@ -137,6 +214,19 @@ return " applet loading successful " + tempresult
137
214
 
138
215
  end
139
216
 
217
+ setuphelpaboutoptions # update the help about list
218
+ setuptinkerdocuments # update the document pull down list
219
+ runhelpwindow # update the help menu
220
+ showjumplinkoptions # update the application link menu
221
+ runrwdtinkerbackwindow # back to applet window
222
+
223
+ # resultend = tempcodeinstallline .index("\n",resultstart)
224
+ tempresult = @fileName
225
+
226
+ return " applet loading successful " + tempresult
227
+
228
+
229
+
140
230
  if debuginitiate > 0
141
231
  return " initiateapplet .."
142
232
  else
@@ -145,95 +235,6 @@ return " applet loading successful " + tempresult
145
235
 
146
236
  end
147
237
 
148
- =begin
149
-
150
-
151
- Dir.chdir($progdir) # change back to top program directory
152
-
153
- # build the English Language hash file from the parts
154
- languagehashvariable = 'Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
155
- langmessage = {' + "\n"
156
- startlangdir = File.join(LangDir,"en")
157
- #get a list of the files and subdirectories on the starting directory only
158
- alanghash = Array.new(Dir[startlangdir].entries.sort)
159
- #loop through the list, ignore the files and add all new directories found
160
- alanghash.each do |x|
161
- #if a directory...
162
- if(test(?d,x))
163
- # add to the original list of directories
164
- @@tmproot = x + "/**"
165
- #adds the new ones to the array
166
- blanghash = Dir[@@tmproot].entries.sort
167
- blanghash.each do |x|
168
- if(test(?d,x))
169
- alanghash.push(x) #appends to the end of the array...
170
- end
171
- end
172
- end
173
- end
174
- alanghash.each do |x|
175
- #if it is a file...
176
- if(!test(?d,x))
177
- alanghash.delete(x)
178
- else #it is a directory...
179
- findfiles(x + "/**")
180
- end
181
- end
182
-
183
-
184
- #writes the contents of doc into the languagehashvariable
185
- languagehashvariable = languagehashvariable + $tempdoc + "} ; langmessage.each { |kk, vv| Message[kk] = vv }"
186
-
187
- # END of en Lang building
188
- $tempdoc = " "
189
- Dir.chdir($progdir) # change back to top program directory
190
-
191
- # build the local Language hash file from the parts
192
- startlangdir = File.join(LangDir,$lang)
193
- #get a list of the files and subdirectories on the starting directory only
194
- alanghash = Array.new(Dir[startlangdir].entries.sort)
195
- #loop through the list, ignore the files and add all new directories found
196
- alanghash.each do |x|
197
- #if a directory...
198
- if(test(?d,x))
199
- # add to the original list of directories
200
- @@tmproot = x + "/**"
201
- #adds the new ones to the array
202
- blanghash = Dir[@@tmproot].entries.sort
203
- blanghash.each do |x|
204
- if(test(?d,x))
205
- alanghash.push(x) #appends to the end of the array...
206
- end
207
- end
208
- end
209
- end
210
- alanghash.each do |x|
211
- #if it is a file...
212
- if(!test(?d,x))
213
- alanghash.delete(x)
214
- else #it is a directory...
215
- findfiles(x + "/**")
216
- end
217
- end
218
-
219
-
220
- #writes the contents of doc into the variable
221
- languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
222
-
223
-
224
- $tempdoc = " "
225
-
226
- Dir.chdir($progdir) # change back to top program directory
227
-
228
- temp = eval( languagehashvariable )
229
-
230
- $tempdoc = " "
231
-
232
-
233
-
234
-
235
-
236
238
 
237
- =end
238
239
 
239
240
 
@@ -1,4 +1,4 @@
1
- ##VERSION:1.74
1
+ ##VERSION:1.75
2
2
  ConfigurationDir = "configuration" # for use in program - init.rb has this value without using this constant
3
3
  CodeName = "rwdtinker"
4
4
  CodeNameFile = CodeName + ".rb"
@@ -14,5 +14,5 @@ LangDir = "lang"
14
14
  $rwdjumplink = ["helpscreen","tinkerbackwindow","returntomain","opendocuments","editconfiguration"]
15
15
  Browser_Exe = 'mozilla '
16
16
  $tinkerdocumentsarray +=["HowTo_Tinker.txt","rwdapplications.html","RubyWebDialogs.html"]
17
- RwdTinkerVersion = "1.74"
17
+ RwdTinkerVersion = "1.75"
18
18
 
data/ev/rwd.rb CHANGED
@@ -1372,7 +1372,7 @@ $rwd_html["DEFAULT"] = "
1372
1372
  <title>%TITLE%</title>
1373
1373
 
1374
1374
  <meta http-equiv='Content-Type' content='text/html; charset=%CHARSET%'>
1375
- <meta http-equiv='Content-Style-Type' content='text/css'>
1375
+ <meta http-equiv='Content-Style-Type' content='text/html ; charset=UTF-8'>
1376
1376
  <meta http-equiv='Refresh' content='%REFRESH%, javascript:document.bodyform.submit();'>
1377
1377
 
1378
1378
  <link rel='shortcut icon' href='%LOGO%'>
@@ -1688,7 +1688,7 @@ $rwd_html["WINDOWSLOOKALIKE"] = "
1688
1688
  <title>%TITLE%</title>
1689
1689
 
1690
1690
  <meta http-equiv='Content-Type' content='text/html; charset=%CHARSET%'>
1691
- <meta http-equiv='Content-Style-Type' content='text/css'>
1691
+ <meta http-equiv='Content-Style-Type' content='text/css; charset=UTF-8' >
1692
1692
  <meta http-equiv='Refresh' content='%REFRESH%, javascript:document.bodyform.submit();'>
1693
1693
 
1694
1694
  <link rel='shortcut icon' href='%LOGO%'>
@@ -227,6 +227,10 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
227
227
  Thanks, Steven Gibson
228
228
 
229
229
  == Changelog
230
+ Version 1.75
231
+ change rwd.rb to use UTF-8 for web pages
232
+ add language load for applets
233
+
230
234
  Version 1.74
231
235
  remove remote control from help
232
236
  more dependable gui loading for applets
data/tests/makedist.rb CHANGED
@@ -14,7 +14,7 @@ require 'fileutils'
14
14
 
15
15
  DistroName = "rwdtinker"
16
16
 
17
- DistroVersion="1.74"
17
+ DistroVersion="1.75"
18
18
 
19
19
  DistroTitle="#{DistroName}.dist"
20
20
  load "configuration/#{DistroTitle}"
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rwdtinker
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.74"
4
+ version: "1.75"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Gibson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-09-02 00:00:00 -07:00
12
+ date: 2008-09-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -145,6 +145,7 @@ files:
145
145
  - zips/temp.rb
146
146
  - zips/rwdwcalc-0.61.zip
147
147
  - zips/rwdwshell-1.04.zip
148
+ - zips/rwdwaddresses-1.05.zip
148
149
  - zips/wrubyslippers-1.06.zip
149
150
  - tests/rdep.rb
150
151
  - tests/cleancnf.sh