rwdgutenberg 0.08 → 0.09
Sign up to get free protection for your applications and to get access to all the features.
- data/Books/Mariposa.gut +0 -0
- data/Books/Shannon.gut +0 -0
- data/Books/marip10.txt +0 -0
- data/Readme.txt +459 -112
- data/code/01rwdcore/01rwdcore.rb +1 -0
- data/code/01rwdcore/02helptexthashbegin.rb +0 -0
- data/code/01rwdcore/03helptexthash.rb +1 -9
- data/code/01rwdcore/04helptextend.rb +0 -0
- data/code/01rwdcore/jumplinkcommand.rb +1 -1
- data/code/01rwdcore/openhelpwindow.rb +0 -0
- data/code/01rwdcore/returntomain.rb +0 -0
- data/code/01rwdcore/rundocuments.rb +0 -0
- data/code/01rwdcore/runeditconfiguration.rb +0 -0
- data/code/01rwdcore/runhelpabout.rb +0 -0
- data/code/01rwdcore/runopentinkerdocument.rb +0 -0
- data/code/01rwdcore/rwdtinkerversion.rb +0 -0
- data/code/01rwdcore/rwdwindowreturn.rb +0 -0
- data/code/01rwdcore/selectiontab.rb +0 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +0 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +0 -0
- data/code/01rwdcore/test_cases.rb +0 -0
- data/code/01rwdcore/test_harness.rb +0 -0
- data/code/01rwdcore/uploadreturns.rb +0 -0
- data/code/dd0viewphoto/dd0viewphoto.rb +0 -0
- data/code/superant.com.gutenberg/0uninstallapplet.rb +11 -0
- data/code/superant.com.gutenberg/changegutenbergname.rb +0 -0
- data/code/superant.com.gutenberg/clearbookscreendisplay.rb +0 -0
- data/code/superant.com.gutenberg/cleargutenbergfiles.rb +0 -0
- data/code/superant.com.gutenberg/cleargutrecordfiles.rb +0 -0
- data/code/superant.com.gutenberg/copyfilename.rb +0 -0
- data/code/superant.com.gutenberg/deletegutenbergrecord.rb +0 -0
- data/code/superant.com.gutenberg/gutenbergcreatefile.rb +0 -0
- data/code/superant.com.gutenberg/helptexthashrwdgutenberg.rb +0 -0
- data/code/superant.com.gutenberg/listnamerecord.rb +0 -0
- data/code/superant.com.gutenberg/listtextfilesgutenberg.rb +0 -0
- data/code/superant.com.gutenberg/loadbookrecord.rb +0 -0
- data/code/superant.com.gutenberg/loadconfigurationrecord.rb +2 -2
- data/code/superant.com.gutenberg/loadconfigurationvariables.rb +0 -0
- data/code/superant.com.gutenberg/openhelpwindowgutenberg.rb +0 -0
- data/code/superant.com.gutenberg/runbackwindow.rb +0 -0
- data/code/superant.com.gutenberg/rungutenbergwindow.rb +0 -0
- data/code/superant.com.gutenberg/rwdgutenbergbackward.rb +0 -0
- data/code/superant.com.gutenberg/rwdhypernotehelpabout.rb +0 -0
- data/code/superant.com.gutenberg/rwdtinkerversion.rb +0 -0
- data/code/superant.com.gutenberg/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.gutenberg/savegutenbergrecord.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +239 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +3 -1
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +17 -4
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +19 -6
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +4 -0
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +0 -0
- data/code/zz0applicationend/zz0end.rb +0 -0
- data/configuration/language.dist +1 -1
- data/configuration/rwdapplicationidentity.dist +0 -0
- data/configuration/rwdtinker.dist +4 -5
- data/configuration/{rwdgutenberg.dist → rwdwgutenberg-0.09.dist} +8 -4
- data/configuration/tinkerwin2variables.dist +0 -0
- data/ev/browser.rb +0 -0
- data/ev/ftools.rb +0 -0
- data/ev/mime.rb +0 -0
- data/ev/net.rb +2 -2
- data/ev/ruby.rb +0 -0
- data/ev/rwd.rb +30 -10
- data/ev/sgml.rb +0 -0
- data/ev/thread.rb +0 -0
- data/ev/tree.rb +0 -0
- data/ev/xml.rb +0 -0
- data/extras/rconftool.rb +0 -0
- data/extras/zip/ioextras.rb +0 -0
- data/extras/zip/stdrubyext.rb +0 -0
- data/extras/zip/tempfile_bugfixed.rb +0 -0
- data/extras/zip/zip.rb +3 -2
- data/extras/zip/zipfilesystem.rb +0 -0
- data/extras/zip/ziprequire.rb +0 -0
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/frontwindow0/viewlogo/cc0openphoto.rwd +22 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd +0 -0
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +0 -0
- data/gui/frontwindowselectionzend/viewselectionzend/wwselectionend.rwd +0 -0
- data/gui/frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd +0 -0
- data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzrwdlasttab.rwd +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +0 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpscreen2end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/10appletbegin.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/{10viewnote.rwd → 1tabfirst.rwd} +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/20listfiles.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/30booklistutilities.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/35displaytab.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/36displaytab.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/40rwdgutenberg.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/40rwdgutenberghtml.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/67viewconfiguration.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.gutendisplay/gutendisplayhtmlwindow.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.gutendisplay/gutendisplaywindow.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +0 -0
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +0 -0
- data/init.rb +5 -5
- data/installed/{rwdwgutenberg-0.06.inf → rwdwgutenberg-0.09.inf} +5 -3
- data/installed/temp.rb +1 -0
- data/lang/en/rwdcore/languagefile.rb +0 -6
- data/lang/es/rwdcore/languagefile-es.rb +0 -6
- data/lang/jp/rwdcore/languagefile.rb +0 -0
- data/lang/nl/rwdcore/languagefile.rb +0 -6
- data/lib/temp.rb +0 -0
- data/rwd_files/HowTo_Gutenberg.txt +48 -2
- data/rwd_files/HowTo_Tinker.txt +0 -0
- data/rwd_files/HowTo_TinkerWin2.txt +0 -0
- data/rwd_files/Readme.txt +0 -0
- data/rwd_files/RubyWebDialogs.html +0 -0
- data/rwd_files/favicon.ico +0 -0
- data/rwd_files/rdoc-style.css +0 -0
- data/rwd_files/rwdapplications.html +0 -0
- data/rwd_files/tinker.png +0 -0
- data/rwdconfig.dist +4 -2
- data/rwdgutenberg.rb +1 -0
- data/tests/checkdepends.sh +0 -0
- data/tests/cleancnf.sh +2 -1
- data/tests/makedist-rwdwgutenberg.rb +56 -0
- data/tests/makedist.rb +11 -5
- data/tests/rdep.rb +0 -0
- data/tests/totranslate.lang +0 -0
- metadata +15 -16
- data/code/superant.com.gutenberg/jumplinkupdate.rb +0 -6
- data/code/superant.com.gutenberg/returntomain.rb +0 -10
- data/gui/frontwindow0/superant.com.gutenberg/10viewnote.rwd +0 -40
- data/gui/frontwindow0/superant.com.gutenberg/20listfiles.rwd +0 -36
- data/gui/frontwindow0/superant.com.gutenberg/30booklistutilities.rwd +0 -28
- data/gui/frontwindow0/superant.com.gutenberg/35displaytab.rwd +0 -15
- data/gui/frontwindow0/superant.com.gutenberg/36displaytab.rwd +0 -15
- data/gui/frontwindow0/superant.com.gutenberg/40rwdgutenberg.rwd +0 -16
- data/gui/frontwindow0/superant.com.gutenberg/40rwdgutenberghtml.rwd +0 -16
- data/gui/frontwindow0/superant.com.gutenberg/67viewconfiguration.rwd +0 -29
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,13 +3,13 @@
|
|
3
3
|
|
4
4
|
require 'fileutils'
|
5
5
|
|
6
|
-
@a_gutenconfigurationfilename = "
|
6
|
+
@a_gutenconfigurationfilename = "rwdwgutenberg-" + RwdGutenbergVersion + ".cnf"
|
7
7
|
|
8
8
|
|
9
9
|
begin # exception trapped block
|
10
10
|
|
11
11
|
Dir.chdir($progdir)
|
12
|
-
fileName = File.join(ConfigurationDir, "
|
12
|
+
fileName = File.join(ConfigurationDir, "rwdwgutenberg-" + RwdGutenbergVersion + ".cnf")
|
13
13
|
|
14
14
|
|
15
15
|
fd = File.open(fileName,"r")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -2,7 +2,7 @@
|
|
2
2
|
def saverwdgutenbergconfiguration
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
|
-
newname = "
|
5
|
+
newname = "rwdwgutenberg-" + RwdGutenbergVersion + ".cnf" # grab the filename to create
|
6
6
|
newdata =@a_gutenconfigurationfile
|
7
7
|
|
8
8
|
begin # exception trapped block
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,239 @@
|
|
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 "smalllinux@gmail.com".
|
22
|
+
#***********************************************************************/
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
# integrate the new configuration files
|
27
|
+
def initiateapplet(nametextlocal)
|
28
|
+
|
29
|
+
debuginitiate = 0
|
30
|
+
|
31
|
+
if $DEBUG
|
32
|
+
$stderr.puts "starting config load with: #{nametextlocal}"
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
Dir.chdir($progdir ) #changes the current working directory
|
37
|
+
|
38
|
+
@confignew = "configuration/" + "#{nametextlocal}.cnf"
|
39
|
+
@configdist = "configuration/" + "#{nametextlocal}.dist"
|
40
|
+
Rconftool::install(@configdist,@confignew)
|
41
|
+
|
42
|
+
begin
|
43
|
+
|
44
|
+
configfileload = File.open(@configdist){|f| f.read}
|
45
|
+
|
46
|
+
eval configfileload #load config file
|
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
|
53
|
+
|
54
|
+
rescue
|
55
|
+
|
56
|
+
if $DEBUG
|
57
|
+
$stderr.puts "error in initiateapplets - config load"
|
58
|
+
end
|
59
|
+
debuginitiate += 1
|
60
|
+
end
|
61
|
+
tempguistorage = $rwd_gui_tinker # if gui load fails restore old
|
62
|
+
begin # error trap
|
63
|
+
|
64
|
+
# build the actual GUI from the gui parts
|
65
|
+
$tempdoc = " "
|
66
|
+
#get a list of the files and subdirectories on the starting directory only
|
67
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
68
|
+
#loop through the list, ignore the files and add all new directories found
|
69
|
+
a.each do |x|
|
70
|
+
#if a directory...
|
71
|
+
if(test(?d,x))
|
72
|
+
#use this new dir find to add to the original list of directories
|
73
|
+
@@root = x + "/**"
|
74
|
+
#adds the new ones to the array
|
75
|
+
b = Dir[@@root].entries.sort
|
76
|
+
b.each do |x|
|
77
|
+
if(test(?d,x))
|
78
|
+
a.push(x) #appends to the end of the array...
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
a.each do |x|
|
84
|
+
#if it is a file...
|
85
|
+
if(!test(?d,x))
|
86
|
+
a.delete(x)
|
87
|
+
|
88
|
+
else #it is a directory...
|
89
|
+
loadguifile(x + "/**")
|
90
|
+
|
91
|
+
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
$rwd_gui_tinker = $tempdoc
|
96
|
+
|
97
|
+
|
98
|
+
rescue
|
99
|
+
$rwd_gui_tinker = tempguistorage # restore old gui
|
100
|
+
if $DEBUG
|
101
|
+
$stderr.puts "error in initiateapplets - gui building"
|
102
|
+
end
|
103
|
+
|
104
|
+
debuginitiate += 1
|
105
|
+
end
|
106
|
+
|
107
|
+
begin # error trap
|
108
|
+
# now load in the code files
|
109
|
+
|
110
|
+
$tempdoc = ""
|
111
|
+
tempcodeinstallline = ""
|
112
|
+
|
113
|
+
@fileName = "installed/" + nametextlocal + ".inf"
|
114
|
+
|
115
|
+
tmpfilearray = File.readlines(@fileName)
|
116
|
+
|
117
|
+
tmpfilearray.each do |line|
|
118
|
+
|
119
|
+
tempcodeinstallline = line.chomp
|
120
|
+
if tempcodeinstallline.include?('code/')
|
121
|
+
findfiles(tempcodeinstallline + "/**")
|
122
|
+
tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
|
123
|
+
end
|
124
|
+
end
|
125
|
+
|
126
|
+
# resultend = tempcodeinstallline .index("\n",resultstart)
|
127
|
+
tempresult = @fileName
|
128
|
+
|
129
|
+
return " applet loading successful " + tempresult
|
130
|
+
|
131
|
+
rescue
|
132
|
+
if $DEBUG
|
133
|
+
$stderr.puts "error in initiateapplets - code building"
|
134
|
+
end
|
135
|
+
debuginitiate += 1
|
136
|
+
|
137
|
+
|
138
|
+
end
|
139
|
+
|
140
|
+
if debuginitiate > 0
|
141
|
+
return " initiateapplet .."
|
142
|
+
else
|
143
|
+
return " initiateapplet success"
|
144
|
+
end
|
145
|
+
|
146
|
+
end
|
147
|
+
|
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
|
+
|
237
|
+
=end
|
238
|
+
|
239
|
+
|
@@ -12,10 +12,12 @@ def installapplet
|
|
12
12
|
|
13
13
|
zf = Zip::ZipFile.new(fileName)
|
14
14
|
zf.sort.each {
|
15
|
+
|
15
16
|
|entry|
|
16
17
|
zf.extract(entry.to_s, entry.to_s)
|
17
18
|
}
|
18
|
-
@
|
19
|
+
@returninitateresults = initiateapplet(nametext)
|
20
|
+
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
|
19
21
|
|
20
22
|
rescue
|
21
23
|
@installapplettext = "unzip error - applet may not be installed correctly"
|
@@ -12,10 +12,23 @@ def installgemapplet
|
|
12
12
|
|entry|
|
13
13
|
zf.extract(entry.to_s, entry.to_s)
|
14
14
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
15
|
+
|
16
|
+
rescue
|
17
|
+
|
18
|
+
if $DEBUG
|
19
|
+
$stderr.puts "unzip error - applet may not be installed correctly"
|
20
|
+
end
|
21
|
+
@installapplettext = " .. "
|
22
|
+
|
19
23
|
end # exception rescue
|
24
|
+
|
25
|
+
@nametextbase = File.basename(nametext)
|
26
|
+
@returninitateresults = initiateapplet(@nametextbase)
|
27
|
+
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
|
28
|
+
|
29
|
+
|
30
|
+
RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")
|
31
|
+
|
32
|
+
|
20
33
|
end
|
21
34
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,8 +3,17 @@ def removeapplet
|
|
3
3
|
require 'fileutils'
|
4
4
|
nametext = "%s" % [@a_removeapplet]
|
5
5
|
|
6
|
+
fileName = "installed/" + nametext + ".inf"
|
7
|
+
@appletremoveresult = removeappletvariables(nametext)
|
8
|
+
|
9
|
+
setuphelpaboutoptions # update the help about list
|
10
|
+
setuptinkerdocuments # update the document pull down list
|
11
|
+
runhelpwindow # update the help menu
|
12
|
+
showjumplinkoptions # update the application link menu
|
13
|
+
runrwdtinkerbackwindow # back to applet window
|
14
|
+
|
6
15
|
begin # exception trapped block
|
7
|
-
|
16
|
+
|
8
17
|
count = 0
|
9
18
|
fd = File.open(fileName,"r")
|
10
19
|
|
@@ -19,14 +28,18 @@ def removeapplet
|
|
19
28
|
count = 1
|
20
29
|
}
|
21
30
|
fd.close
|
31
|
+
|
32
|
+
|
22
33
|
|
23
34
|
FileUtils.rm_rf( fileName)
|
24
|
-
|
25
|
-
|
26
|
-
@removeapplettext = "applet files removed!
|
27
|
-
|
35
|
+
|
36
|
+
|
37
|
+
@removeapplettext = "applet files removed!" + " " + @appletremoveresult
|
38
|
+
|
39
|
+
runbackwindowappletremove
|
40
|
+
|
28
41
|
rescue
|
29
|
-
@removeapplettext = "
|
42
|
+
@removeapplettext = " removeapplet" + " .."
|
30
43
|
|
31
44
|
end # exception rescue
|
32
45
|
|
@@ -0,0 +1,52 @@
|
|
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
|
+
def removeappletvariables(tempremovename)
|
25
|
+
|
26
|
+
begin # exception trapped block
|
27
|
+
if $DEBUG
|
28
|
+
$stderr.puts "in removeappletvariables"
|
29
|
+
end
|
30
|
+
# removefileinf = File.open(tempremove){|f| f.read}
|
31
|
+
|
32
|
+
temp = tempremovename.gsub("-","_")
|
33
|
+
removemethod = temp.gsub(".","_")
|
34
|
+
|
35
|
+
|
36
|
+
send "#{removemethod}"
|
37
|
+
|
38
|
+
tmpremoveapplet = " successfull applet variable removal "
|
39
|
+
|
40
|
+
rescue
|
41
|
+
|
42
|
+
tmpremoveapplet = " removeappletvariables .."
|
43
|
+
|
44
|
+
end # exception rescue
|
45
|
+
|
46
|
+
return tmpremoveapplet
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/configuration/language.dist
CHANGED
File without changes
|
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:1.
|
1
|
+
##VERSION:1.73
|
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"
|
@@ -9,11 +9,10 @@ LangDir = "lang"
|
|
9
9
|
$help_topic = "general_help"
|
10
10
|
$helptopicsarray = [ "general_help","network_help"]
|
11
11
|
$prevouswindow ="main"
|
12
|
-
$rwdcontrolports =["13713","13714","13715","13716","13717","13718"]
|
12
|
+
$rwdcontrolports =["13713","13714","13715","13716","13717","13718"] # remote control code not actived 2007
|
13
13
|
$port = 7705
|
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.
|
18
|
-
|
19
|
-
|
17
|
+
RwdTinkerVersion = "1.73"
|
18
|
+
|
@@ -1,4 +1,4 @@
|
|
1
|
-
##VERSION:0.
|
1
|
+
##VERSION:0.09
|
2
2
|
##NAME:$rwdgutenberg_directory:0
|
3
3
|
$rwdgutenberg_directory = "Books"
|
4
4
|
##NAME:$gutenbergcommand:0
|
@@ -7,10 +7,14 @@ $gutenbergcommand = "openbook"
|
|
7
7
|
$booklocation = 0
|
8
8
|
##NAME:$booksteps:0
|
9
9
|
$booksteps = 12
|
10
|
-
##NAME:
|
11
|
-
|
10
|
+
##NAME:bookviewdisplay:0
|
11
|
+
$bookviewdisplay = 15
|
12
12
|
$tinkerdocumentsarray += ["HowTo_Gutenberg.txt"]
|
13
13
|
$tinkerhelpaboutarray += ["RwdGutenberg"]
|
14
|
+
##NAME: $rwdjumplink:0
|
15
|
+
$rwdjumplink += ["RwdGutenbergMainWindow"]
|
16
|
+
##NAME: JumpLink:0
|
17
|
+
JumpLink.update(:RwdGutenbergMainWindow=>"runrwdgutenbergbackwindow")
|
14
18
|
##NAME:RwdGutenbergVersion:0
|
15
|
-
RwdGutenbergVersion = "0.
|
19
|
+
RwdGutenbergVersion = "0.09"
|
16
20
|
|
File without changes
|
data/ev/browser.rb
CHANGED
File without changes
|
data/ev/ftools.rb
CHANGED
File without changes
|
data/ev/mime.rb
CHANGED
File without changes
|
data/ev/net.rb
CHANGED
@@ -784,8 +784,8 @@ class HTTPServer
|
|
784
784
|
end
|
785
785
|
|
786
786
|
if (not remote) or (remote and (auth.nil? or auth.empty? or authenticate(auth, realm, req, resp)))
|
787
|
-
|
788
|
-
|
787
|
+
# $stderr.puts "#{count2} #{Time.new.strftime("%Y-%m-%d %H:%M:%S")} #{ip} #{req.user} #{req.request.to_s.strip}"
|
788
|
+
1 == 1
|
789
789
|
begin
|
790
790
|
yield(req, resp)
|
791
791
|
rescue Exception => e
|
data/ev/ruby.rb
CHANGED
File without changes
|