rwdgutenberg 0.09 → 0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +20 -7
- data/code/01rwdcore/01rwdcore.rb +3 -0
- data/code/01rwdcore/openhelpwindow.rb +1 -1
- data/code/01rwdcore/runopentinkerdocument.rb +1 -1
- data/code/01rwdcore/rwdtinkerversion.rb +1 -1
- data/code/superant.com.gutenberg/0uninstallapplet.rb +17 -11
- data/code/superant.com.gutenberg/changegutenbergname.rb +2 -2
- data/code/superant.com.gutenberg/clearbookscreendisplay.rb +5 -5
- 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 +2 -2
- data/code/superant.com.gutenberg/createnewnote.rb +13 -12
- data/code/superant.com.gutenberg/deletegutenbergrecord.rb +9 -8
- data/code/superant.com.gutenberg/gutenbergcreatefile.rb +22 -10
- data/code/superant.com.gutenberg/helptexthashload.rb +21 -0
- data/code/superant.com.gutenberg/launchurl.rb +13 -0
- data/code/superant.com.gutenberg/listdirectories.rb +32 -0
- data/code/superant.com.gutenberg/listnamerecord.rb +10 -10
- data/code/superant.com.gutenberg/listnotedirshtml3.rb +57 -0
- data/code/superant.com.gutenberg/listtextfilesgutenberg.rb +72 -47
- data/code/superant.com.gutenberg/loadbookrecord.rb +55 -17
- data/code/superant.com.gutenberg/loadconfigurationrecord.rb +4 -4
- data/code/superant.com.gutenberg/loadconfigurationvariables.rb +19 -9
- data/code/superant.com.gutenberg/loadhtmlnoterecord.rb +31 -0
- data/code/superant.com.gutenberg/openhelpwindowgutenberg.rb +8 -2
- data/code/superant.com.gutenberg/resetdir.rb +7 -0
- data/code/superant.com.gutenberg/runbackwindow.rb +16 -10
- data/code/superant.com.gutenberg/rungutenbergwindow.rb +89 -71
- data/code/superant.com.gutenberg/rwdgutenbergbackward.rb +27 -27
- data/code/superant.com.gutenberg/rwdtinkerversion.rb +10 -10
- data/code/superant.com.gutenberg/saveconfigurationrecord.rb +4 -4
- data/code/superant.com.gutenberg/savegutenbergrecord.rb +13 -11
- data/code/superant.com.gutenberg/updir.rb +7 -0
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +110 -108
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +10 -8
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +8 -2
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +6 -6
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
- data/configuration/rwdtinker.dist +4 -8
- data/configuration/rwdwgutenberg.dist +23 -0
- data/configuration/tinkerwin2variables.dist +17 -7
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/frontwindow0/{viewlogo/cc0openphoto.rwd → cc0openphoto.rwd} +0 -0
- data/gui/{frontwindowselectionbegin/selectiontabbegin → frontwindowselections}/00selectiontabbegin.rwd +0 -0
- data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
- data/gui/{frontwindowselectionzend/viewselectionzend → frontwindowselections}/wwselectionend.rwd +0 -0
- data/gui/{frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd → frontwindowtdocuments/00documentbegin.rwd} +0 -0
- data/gui/frontwindowtdocuments/{superant.com.documents/tinkerdocuments.rwd → tinkerdocuments.rwd} +0 -0
- data/gui/{helpaboutbegin/superant.com.helpaboutbegin → frontwindowtdocuments}/zzdocumentend.rwd +0 -0
- data/gui/helpaboutbegin/{superant.com.helpaboutbegin/zzzrwdlasttab.rwd → zzzrwdlasttab.rwd} +0 -0
- data/gui/helpaboutbegin/{superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd → zzzzhelpscreenstart.rwd} +0 -0
- data/gui/{helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd → helpaboutbegin/zzzzzzhelpabouttab.rwd} +0 -0
- data/gui/helpaboutzend/{superant.com.helpaboutend/helpscreenend.rwd → helpscreenend.rwd} +0 -0
- data/gui/helpaboutzend/{superant.com.helpaboutend/zhelpscreenstart2.rwd → zhelpscreenstart2.rwd} +0 -0
- data/gui/helpaboutzend/{superant.com.helpaboutend/zzzzhelpabout2.rwd → zzzzhelpabout2.rwd} +0 -0
- data/gui/helpaboutzend/{superant.com.helpaboutend/zzzzhelpscreen2end.rwd → zzzzhelpscreen2end.rwd} +0 -0
- data/gui/tinkerbackwindows/superant.com.backgutenberg/10appletbegin.rwd +4 -0
- data/gui/tinkerbackwindows/{superant.com.gutenberg → superant.com.backgutenberg}/1tabfirst.rwd +0 -0
- data/gui/tinkerbackwindows/{superant.com.gutenberg → superant.com.backgutenberg}/20listfiles.rwd +5 -4
- data/gui/tinkerbackwindows/{superant.com.gutenberg → superant.com.backgutenberg}/30booklistutilities.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.backgutenberg/35displaytab.rwd +26 -0
- data/gui/tinkerbackwindows/{superant.com.gutenberg → superant.com.backgutenberg}/67viewconfiguration.rwd +0 -0
- data/gui/{frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd → tinkerbackwindows/superant.com.backgutenberg/81jumplinkcommands.rwd} +2 -0
- data/gui/tinkerbackwindows/superant.com.backgutenberg/9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/10htmlnote.rwd +46 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/12tabfirst.rwd +39 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/35displaytab.rwd +4 -1
- data/gui/tinkerbackwindows/superant.com.gutenberg/50listfiles.rwd +37 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/81jumplinkcommands.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +1 -1
- data/gui/zzcoreguiend/{tinkerapplicationguiend/yy9rwdend.rwd → yy9rwdend.rwd} +0 -0
- data/init.rb +15 -10
- data/installed/gutenbergdata02.inf +2 -2
- data/installed/{rwdwgutenberg-0.09.inf → rwdwgutenberg.inf} +3 -2
- data/lang/en/rwdcore/languagefile.rb +4 -3
- data/lang/es/rwdcore/languagefile-es.rb +1 -0
- data/lang/fr/rwdcore/languagefile.rb +1 -0
- data/lang/jp/rwdcore/languagefile.rb +1 -0
- data/lang/nl/rwdcore/languagefile.rb +1 -0
- data/{extras → lib}/rconftool.rb +13 -6
- data/{ev → lib/rwd}/browser.rb +2 -2
- data/{ev → lib/rwd}/ftools.rb +0 -0
- data/{ev → lib/rwd}/mime.rb +0 -0
- data/{ev → lib/rwd}/net.rb +18 -7
- data/{ev → lib/rwd}/ruby.rb +1 -1
- data/{ev → lib/rwd}/rwd.rb +108 -625
- data/{ev → lib/rwd}/sgml.rb +1 -1
- data/{ev → lib/rwd}/thread.rb +1 -1
- data/{ev → lib/rwd}/tree.rb +2 -2
- data/{ev → lib/rwd}/xml.rb +1 -1
- data/lib/rwdthemes/default.rwd +317 -0
- data/lib/rwdthemes/pda.rwd +72 -0
- data/lib/rwdthemes/windowslike.rwd +171 -0
- data/lib/rwdtinker/rwdtinkertools.rb +24 -0
- data/{extras → lib}/zip/ioextras.rb +0 -0
- data/{extras → lib}/zip/stdrubyext.rb +0 -0
- data/{extras → lib}/zip/tempfile_bugfixed.rb +0 -0
- data/{extras → lib}/zip/zip.rb +2 -2
- data/{extras → lib}/zip/zipfilesystem.rb +0 -0
- data/{extras → lib}/zip/ziprequire.rb +0 -0
- data/rwd_files/Books/marip10.lnk +6 -0
- data/{Books → rwd_files/Books}/marip10.txt +0 -0
- data/{Books → rwd_files/Books}/shannon1948.html +0 -0
- data/{Books/Shannon.gut → rwd_files/Books/shannon1948.lnk} +1 -1
- data/rwd_files/Books/shannon1948.txt +2667 -0
- data/rwd_files/HowTo_Gutenberg.txt +21 -1
- data/rwd_files/HowTo_Tinker.txt +58 -1
- data/rwd_files/log/rwdtinker.log +2082 -0
- data/{code/superant.com.gutenberg/helptexthashrwdgutenberg.rb → rwd_files/rwdgutenberghelpfiles.txt} +26 -19
- data/rwdconfig.dist +14 -13
- data/tests/makedist-rwdwgutenberg.rb +9 -7
- data/tests/makedist.rb +2 -2
- data/zips/rwdwcalc-0.63.zip +0 -0
- data/zips/rwdwfoldeditor-0.05.zip +0 -0
- data/zips/rwdwgutenberg-0.12.zip +0 -0
- data/zips/rwdwruby-1.08.zip +0 -0
- data/zips/wrubyslippers-1.07.zip +0 -0
- metadata +74 -59
- data/Books/Mariposa.gut +0 -6
- data/code/superant.com.gutenberg/rwdhypernotehelpabout.rb +0 -14
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +0 -27
- data/configuration/language.dist +0 -8
- data/configuration/rwdapplicationidentity.dist +0 -3
- data/configuration/rwdwgutenberg-0.09.dist +0 -20
- data/gui/tinkerbackwindows/superant.com.gutenberg/36displaytab.rwd +0 -15
- data/gui/tinkerbackwindows/superant.com.gutenberg/40rwdgutenberg.rwd +0 -16
- data/gui/tinkerbackwindows/superant.com.gutenberg/40rwdgutenberghtml.rwd +0 -16
- data/lib/temp.rb +0 -1
@@ -1,10 +1,10 @@
|
|
1
|
-
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
-
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
-
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
-
|
5
|
-
# return the version constant defined in the config file
|
6
|
-
def rwdgutenberghelpaboutsetup
|
7
|
-
return ["RwdGutenberg","(c) 2004
|
8
|
-
end
|
9
|
-
|
10
|
-
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# return the version constant defined in the config file
|
6
|
+
def rwdgutenberghelpaboutsetup
|
7
|
+
return ["RwdGutenberg","(c) 2004-2008 Steven Gibson ","Version #{RwdGutenbergVersion}"]
|
8
|
+
end
|
9
|
+
|
10
|
+
|
@@ -1,9 +1,9 @@
|
|
1
|
-
# this method
|
1
|
+
# this method saves a record
|
2
2
|
def saverwdgutenbergconfiguration
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
|
-
newname = "rwdwgutenberg
|
6
|
-
newdata
|
5
|
+
newname = "rwdwgutenberg.cnf" # grab the filename to create
|
6
|
+
newdata = @a_gutenconfigurationfile
|
7
7
|
|
8
8
|
begin # exception trapped block
|
9
9
|
fileName = File.join( ConfigurationDir, newname )
|
@@ -12,7 +12,7 @@
|
|
12
12
|
fd.close
|
13
13
|
@newconfigurationresult=newdata # show the record info in the browser
|
14
14
|
rescue SystemCallError, StandardError
|
15
|
-
$
|
15
|
+
$rwdtinkerlog.error "system call error: #{$!}"
|
16
16
|
end # exception rescue
|
17
17
|
|
18
18
|
end
|
@@ -1,26 +1,28 @@
|
|
1
1
|
# this method adds a new record
|
2
2
|
def savegutenbergrecord
|
3
|
-
require 'fileutils'
|
4
|
-
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
5
|
|
6
6
|
if ! @a_viewgutenberg.to_s.empty?
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
fileName = $rwdgutenberg_directory + "/" + @a_viewgutenberg.to_s + ".lnk"
|
8
|
+
# grab the new filename to create
|
9
|
+
a_gutenbergdata = @a_gutenbergdatapath.to_s.rstrip+ "\n" +
|
10
|
+
@a_gutenbergdatainfo.to_s + "\n" +
|
11
|
+
@a_gutenbergdatalocation.to_s + "\n" +
|
12
|
+
@a_gutenbergdatalines.to_s + "\n" +
|
12
13
|
@a_gutenbergdataspeed.to_s + "\n" +
|
13
14
|
@a_gutenbergdatacomments.to_s + "\n"
|
14
|
-
|
15
|
+
|
15
16
|
begin # exception trapped block
|
16
|
-
|
17
|
+
$rwdtinkerlog.debug a_gutenbergdata
|
17
18
|
fd = File.open(fileName,"w")
|
18
19
|
fd.print( a_gutenbergdata) # save the record info to the file
|
19
20
|
fd.close
|
20
21
|
|
21
22
|
rescue SystemCallError, StandardError
|
22
|
-
|
23
|
+
|
24
|
+
$rwdtinkerlog.error "savegutenbergrecord: system call error"
|
23
25
|
end # exception rescue
|
24
|
-
end
|
26
|
+
end
|
25
27
|
|
26
28
|
end
|
@@ -28,9 +28,8 @@ def initiateapplet(nametextlocal)
|
|
28
28
|
|
29
29
|
debuginitiate = 0
|
30
30
|
|
31
|
-
|
32
|
-
|
33
|
-
end
|
31
|
+
$rwdtinkerlog.info "initiateapplet: starting config load with: #{nametextlocal}"
|
32
|
+
|
34
33
|
|
35
34
|
|
36
35
|
Dir.chdir($progdir ) #changes the current working directory
|
@@ -45,114 +44,21 @@ begin
|
|
45
44
|
|
46
45
|
eval configfileload #load config file
|
47
46
|
|
48
|
-
|
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
|
47
|
+
|
53
48
|
|
54
49
|
rescue
|
55
|
-
|
56
|
-
|
57
|
-
|
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
|
-
|
50
|
+
|
51
|
+
$rwdtinkerlog.error "initiateapplet: error in initiateapplets - config load"
|
52
|
+
|
97
53
|
|
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
54
|
debuginitiate += 1
|
105
55
|
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
|
56
|
+
$tempdoc = " "
|
139
57
|
|
140
|
-
if debuginitiate > 0
|
141
|
-
return " initiateapplet .."
|
142
|
-
else
|
143
|
-
return " initiateapplet success"
|
144
|
-
end
|
145
|
-
|
146
|
-
end
|
147
|
-
|
148
|
-
=begin
|
149
|
-
|
150
|
-
|
151
58
|
Dir.chdir($progdir) # change back to top program directory
|
152
59
|
|
153
60
|
# build the English Language hash file from the parts
|
154
|
-
languagehashvariable = 'Message
|
155
|
-
langmessage = {' + "\n"
|
61
|
+
languagehashvariable = 'Message.update('
|
156
62
|
startlangdir = File.join(LangDir,"en")
|
157
63
|
#get a list of the files and subdirectories on the starting directory only
|
158
64
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
@@ -182,7 +88,9 @@ end
|
|
182
88
|
|
183
89
|
|
184
90
|
#writes the contents of doc into the languagehashvariable
|
185
|
-
|
91
|
+
|
92
|
+
|
93
|
+
languagehashvariable = languagehashvariable + $tempdoc + ' :rwdtinker => "Rwdtinker" ) ;'
|
186
94
|
|
187
95
|
# END of en Lang building
|
188
96
|
$tempdoc = " "
|
@@ -218,22 +126,116 @@ end
|
|
218
126
|
|
219
127
|
|
220
128
|
#writes the contents of doc into the variable
|
221
|
-
languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
222
|
-
|
223
129
|
|
130
|
+
languagehashvariable = languagehashvariable + " Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
131
|
+
|
132
|
+
|
133
|
+
|
224
134
|
$tempdoc = " "
|
225
135
|
|
226
136
|
Dir.chdir($progdir) # change back to top program directory
|
227
137
|
|
228
|
-
|
138
|
+
temp = eval( languagehashvariable )
|
229
139
|
|
140
|
+
|
141
|
+
tempguistorage = $rwd_gui_tinker # if gui load fails restore old
|
142
|
+
begin # error trap
|
143
|
+
|
144
|
+
# build the actual GUI from the gui parts
|
230
145
|
$tempdoc = " "
|
146
|
+
#get a list of the files and subdirectories on the starting directory only
|
147
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
148
|
+
#loop through the list, ignore the files and add all new directories found
|
149
|
+
a.each do |x|
|
150
|
+
#if a directory...
|
151
|
+
if(test(?d,x))
|
152
|
+
#use this new dir find to add to the original list of directories
|
153
|
+
@@root = x + "/**"
|
154
|
+
#adds the new ones to the array
|
155
|
+
b = Dir[@@root].entries.sort
|
156
|
+
b.each do |x|
|
157
|
+
if(test(?d,x))
|
158
|
+
a.push(x) #appends to the end of the array...
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
a.each do |x|
|
164
|
+
#if it is a file...
|
165
|
+
if(!test(?d,x))
|
166
|
+
a.delete(x)
|
231
167
|
|
232
|
-
|
168
|
+
else #it is a directory...
|
169
|
+
loadguifile(x + "/**")
|
170
|
+
|
171
|
+
|
172
|
+
end
|
173
|
+
end
|
233
174
|
|
175
|
+
$rwd_gui_tinker = $tempdoc
|
176
|
+
|
177
|
+
|
178
|
+
rescue
|
179
|
+
$rwd_gui_tinker = tempguistorage # restore old gui
|
180
|
+
|
181
|
+
$rwdtinkerlog.error "error in initiateapplets - gui building"
|
182
|
+
|
183
|
+
|
184
|
+
debuginitiate += 1
|
185
|
+
end
|
186
|
+
|
187
|
+
begin # error trap
|
188
|
+
# now load in the code files
|
189
|
+
|
190
|
+
$tempdoc = ""
|
191
|
+
tempcodeinstallline = ""
|
192
|
+
|
193
|
+
@fileName = "installed/" + nametextlocal + ".inf"
|
194
|
+
|
195
|
+
$rwdtinkerlog.debug "initateapplets: loading file: #{@fileName}"
|
234
196
|
|
197
|
+
tmpfilearray = File.readlines(@fileName)
|
198
|
+
|
199
|
+
tmpfilearray.each do |line|
|
200
|
+
|
201
|
+
tempcodeinstallline = line.chomp
|
202
|
+
if tempcodeinstallline.include?('code/')
|
203
|
+
findfiles(tempcodeinstallline + "/**")
|
204
|
+
tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
|
209
|
+
rescue
|
210
|
+
|
211
|
+
$rwdtinkerlog.error "error in initiateapplets - code building"
|
212
|
+
|
213
|
+
debuginitiate += 1
|
214
|
+
|
215
|
+
|
216
|
+
end
|
217
|
+
|
218
|
+
setuphelpaboutoptions # update the help about list
|
219
|
+
setuptinkerdocuments # update the document pull down list
|
220
|
+
runhelpwindow # update the help menu
|
221
|
+
showjumplinkoptions # update the application link menu
|
222
|
+
runrwdtinkerbackwindow # back to applet window
|
223
|
+
|
224
|
+
# resultend = tempcodeinstallline .index("\n",resultstart)
|
225
|
+
tempresult = @fileName
|
226
|
+
|
227
|
+
return " applet loading successful " + tempresult
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
if debuginitiate > 0
|
232
|
+
return " initiateapplet .."
|
233
|
+
else
|
234
|
+
return " initiateapplet success"
|
235
|
+
end
|
236
|
+
|
237
|
+
end
|
235
238
|
|
236
239
|
|
237
|
-
=end
|
238
240
|
|
239
241
|
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# install rwdtinker applet from a long directory location
|
2
2
|
def installgemapplet
|
3
3
|
require 'fileutils'
|
4
|
-
require '
|
4
|
+
require 'lib/zip/zip'
|
5
5
|
nametext = "%s" % [@a_installapplet]
|
6
6
|
|
7
7
|
begin # exception trapped block
|
@@ -13,16 +13,18 @@ def installgemapplet
|
|
13
13
|
zf.extract(entry.to_s, entry.to_s)
|
14
14
|
}
|
15
15
|
|
16
|
-
|
16
|
+
rescue
|
17
17
|
|
18
|
-
|
19
|
-
$stderr.puts "unzip error - applet may not be installed correctly"
|
20
|
-
end
|
21
|
-
@installapplettext = " .. "
|
18
|
+
$rwdtinkerlog.error "installgemapplet: unzip error - applet may not be installed correctly"
|
22
19
|
|
23
|
-
|
20
|
+
@installapplettext = " .. "
|
24
21
|
|
25
|
-
|
22
|
+
end # exception rescue
|
23
|
+
|
24
|
+
@rwd_ignore_vars << @nametextbase << @returninitiateresults << @installapplettext
|
25
|
+
tmpnametext = File.basename(nametext)
|
26
|
+
tmpnametext.chop!; tmpnametext.chop!; tmpnametext.chop!; tmpnametext.chop!
|
27
|
+
@nametextbase = tmpnametext.chop!
|
26
28
|
@returninitateresults = initiateapplet(@nametextbase)
|
27
29
|
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
|
28
30
|
|
@@ -5,8 +5,14 @@ def fillziptoinstallname(inffile)
|
|
5
5
|
|
6
6
|
end
|
7
7
|
|
8
|
-
def listzipfilestoinstall
|
9
|
-
|
8
|
+
def listzipfilestoinstall
|
9
|
+
|
10
|
+
if $zipslocation.slice(0,1) == "/" || $zipslocation.include?(":")
|
11
|
+
startlangdir = $zipslocation
|
12
|
+
else
|
13
|
+
startlangdir = File.join($progdir, $zipslocation )
|
14
|
+
end
|
15
|
+
|
10
16
|
#get a list of the files and subdirectories on the starting directory only
|
11
17
|
|
12
18
|
|
@@ -24,14 +24,14 @@
|
|
24
24
|
def removeappletvariables(tempremovename)
|
25
25
|
|
26
26
|
begin # exception trapped block
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
|
28
|
+
$rwdtinkerlog.info "in removeappletvariables"
|
29
|
+
|
30
30
|
# removefileinf = File.open(tempremove){|f| f.read}
|
31
31
|
|
32
|
-
|
33
|
-
removemethod =
|
34
|
-
|
32
|
+
|
33
|
+
removemethod = tempremovename
|
34
|
+
|
35
35
|
|
36
36
|
send "#{removemethod}"
|
37
37
|
|