rwdgutenberg 0.12 → 0.13
Sign up to get free protection for your applications and to get access to all the features.
- data/code/01rwdcore/01rwdcore.rb +6 -6
- data/code/01rwdcore/02helptexthashbegin.rb +14 -2
- data/code/01rwdcore/03helptexthash.rb +18 -20
- data/code/01rwdcore/jumplinkcommand.rb +14 -4
- data/code/01rwdcore/openhelpwindow.rb +7 -0
- data/code/01rwdcore/runhelpabout.rb +6 -1
- data/code/01rwdcore/runtab.rb +15 -0
- data/code/01rwdcore/selectiontab.rb +2 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +2 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +1 -0
- data/code/01rwdcore/test_cases.rb +100 -51
- data/code/01rwdcore/test_harness.rb +8 -1
- data/code/01rwdcore/uploadreturns.rb +3 -0
- data/code/dd0viewphoto/dd0viewphoto.rb +2 -0
- data/code/superant.com.gutenberg/0uninstallapplet.rb +2 -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/createnewnote.rb +1 -1
- data/code/superant.com.gutenberg/deletegutenbergrecord.rb +0 -0
- data/code/superant.com.gutenberg/gutenbergcreatefile.rb +0 -0
- data/code/superant.com.gutenberg/helptexthashload.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 +0 -0
- data/code/superant.com.gutenberg/loadconfigurationvariables.rb +0 -0
- data/code/superant.com.gutenberg/openhelpwindow.rb +41 -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/rwdtinkerversion.rb +0 -0
- data/code/superant.com.gutenberg/saveconfigurationrecord.rb +0 -0
- data/code/superant.com.gutenberg/savegutenbergrecord.rb +0 -0
- data/code/superant.com.library/marcsearch.rb +30 -0
- data/code/superant.com.rwdtinkerbackwindow/changelocale.rb +84 -0
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +30 -102
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +2 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +2 -0
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +3 -1
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +4 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +3 -1
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +3 -1
- data/code/superant.com.rwdtinkerbackwindow/showlocaleoptions.rb +9 -0
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -0
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +8 -5
- data/code/zz0applicationend/zz0end.rb +2 -1
- data/configuration/rwdtinker.dist +3 -2
- data/configuration/rwdwgutenberg.dist +3 -3
- data/configuration/tinkerwin2variables.dist +4 -8
- data/gui/tinkerbackwindows/superant.com.backgutenberg/30booklistutilities.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.backgutenberg/40marctab.rwd +26 -0
- data/gui/tinkerbackwindows/superant.com.backgutenberg/67viewconfiguration.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80localechanger.rwd +17 -0
- data/init.rb +53 -156
- data/installed/rwdwgutenberg.inf +0 -1
- data/lang/en/rwdcore/en.po +197 -0
- data/lang/es/rwdcore/es.po +184 -0
- data/lang/fr/rwdcore/fr.po +169 -0
- data/lang/hi/rwdcore/hi.po +173 -0
- data/lang/ja/rwdcore/ja.po +171 -0
- data/lang/nl/rwdcore/nl.po +169 -0
- data/lib/marc.rb +38 -0
- data/lib/marc/constants.rb +14 -0
- data/lib/marc/controlfield.rb +47 -0
- data/lib/marc/datafield.rb +163 -0
- data/lib/marc/dublincore.rb +79 -0
- data/lib/marc/exception.rb +9 -0
- data/lib/marc/reader.rb +186 -0
- data/lib/marc/record.rb +147 -0
- data/lib/marc/subfield.rb +31 -0
- data/lib/marc/writer.rb +87 -0
- data/lib/marc/xmlreader.rb +103 -0
- data/lib/marc/xmlwriter.rb +155 -0
- data/lib/rwdtinker/rwdcodedir.rb +56 -0
- data/lib/rwdtinker/rwdguidir.rb +57 -0
- data/lib/rwdtinker/rwdlangdir.rb +60 -0
- data/lib/rwdtinker/rwdtinkertools.rb +2 -1
- data/lib/zip/ioextras.rb +43 -2
- data/lib/zip/stdrubyext.rb +5 -5
- data/lib/zip/tempfile_bugfixed.rb +2 -2
- data/lib/zip/zip.rb +618 -149
- data/lib/zip/zipfilesystem.rb +59 -8
- data/lib/zip/ziprequire.rb +32 -3
- data/lib/zmarc.rb +140 -0
- data/lib/zoom.so +0 -0
- data/rwd_files/HowTo_Gutenberg.txt +8 -1
- data/rwd_files/HowTo_Tinker.txt +29 -6
- data/rwd_files/Tinkerhelptexthash.txt +84 -0
- data/rwd_files/log/rwdtinker.log +0 -2080
- data/rwd_files/rwdapplications.html +23 -1
- data/rwd_files/rwdgutenberghelpfiles.txt +11 -4
- data/rwdconfig.dist +4 -2
- data/tests/makedist-rwdwgutenberg.rb +1 -1
- data/tests/makedist.rb +1 -1
- data/zips/rwdwfoldeditor-0.07.zip +0 -0
- data/zips/{rwdwgutenberg-0.12.zip → rwdwgutenberg-0.13.zip} +0 -0
- data/zips/rwdwhypernote-0.16.zip +0 -0
- data/zips/rwdwmovies-0.98.zip +0 -0
- data/zips/tinkerbellw-0.04.zip +0 -0
- data/zips/{wrubyslippers-1.07.zip → wrubyslippers-1.08.zip} +0 -0
- metadata +39 -14
- data/code/01rwdcore/04helptextend.rb +0 -6
- data/code/superant.com.gutenberg/openhelpwindowgutenberg.rb +0 -35
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -61
- data/lang/en/rwdcore/languagefile.rb +0 -59
- data/lang/es/rwdcore/languagefile-es.rb +0 -63
- data/lang/fr/rwdcore/languagefile.rb +0 -65
- data/lang/jp/rwdcore/languagefile.rb +0 -73
- data/lang/nl/rwdcore/languagefile.rb +0 -76
- data/rwdgutenberg.rb +0 -1
- data/zips/rwdwfoldeditor-0.05.zip +0 -0
File without changes
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# this code is to call the help window
|
2
|
+
def runhelpwindowrwdgutenberg
|
3
|
+
|
4
|
+
$help_topic = "rwdgutenberg_generalhelp"
|
5
|
+
$helptopicsarray = $helptopicsarray << "rwdgutenberg_generalhelp"
|
6
|
+
|
7
|
+
if @rwd_tab == "superantcomgutenbergfile"
|
8
|
+
$help_topic = "gutenbergedit_help"
|
9
|
+
|
10
|
+
$helptopicsarray = $helptopicsarray << "gutenbergedit_help"
|
11
|
+
end
|
12
|
+
|
13
|
+
if @rwd_tab == "rwdgutenberglistfiles"
|
14
|
+
$help_topic = "gutenlist_help"
|
15
|
+
$helptopicsarray = $helptopicsarray << "gutenlist_help"
|
16
|
+
end
|
17
|
+
|
18
|
+
if @rwd_tab == "gutendisplaytexttab"
|
19
|
+
$help_topic = "gutenbergtextdisplay_help"
|
20
|
+
$helptopicsarray = $helptopicsarray << "gutenbergtextdisplay_help"
|
21
|
+
end
|
22
|
+
|
23
|
+
|
24
|
+
helpsearchterm = @rwd_tab + "_help"
|
25
|
+
|
26
|
+
|
27
|
+
if Helptext.has_key? helpsearchterm.intern
|
28
|
+
$help_topic = helpsearchterm
|
29
|
+
if ! $helptopicsarray.include?( helpsearchterm)
|
30
|
+
$helptopicsarray << helpsearchterm
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
35
|
+
$previouswindow = @rwd_window
|
36
|
+
$previoustab = @rwd_tab
|
37
|
+
end
|
38
|
+
runhelpwindow
|
39
|
+
end
|
40
|
+
|
41
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,30 @@
|
|
1
|
+
#
|
2
|
+
|
3
|
+
# Now the real business. Loop through all the servers listed above
|
4
|
+
# and query it about the ISBN until one answers or we run out of servers
|
5
|
+
def marcsearch
|
6
|
+
require 'stringio'
|
7
|
+
#isbn = '0060932767'
|
8
|
+
if @a_viewrwdsagisbn.empty?
|
9
|
+
@a_gutenbergmarcdata = "need to enter isbn number"
|
10
|
+
else
|
11
|
+
@@marcisbn = @a_viewrwdsagisbn
|
12
|
+
isbn = @@marcisbn.gsub(/[^0-9X]/, '')
|
13
|
+
|
14
|
+
if (! /(978)*\d{9}[0-9X]/.match(isbn))
|
15
|
+
$stderr.puts "This is not a valid ISBN" # Not a true validity check!
|
16
|
+
return
|
17
|
+
end
|
18
|
+
zmarclocation = File.join("lib", "zmarc.rb")
|
19
|
+
#$stderr.puts zmarclocation
|
20
|
+
$tmpmarcfilesoutput = ""
|
21
|
+
|
22
|
+
#this is child process
|
23
|
+
zmarcFile = File.open( zmarclocation ,"r")
|
24
|
+
tmpzmarc = zmarcFile .read
|
25
|
+
eval(tmpzmarc)
|
26
|
+
#$stderr.puts $tmpmarcfilesoutput
|
27
|
+
|
28
|
+
@a_gutenbergmarcdata = $tmpmarcfilesoutput
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,84 @@
|
|
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
|
+
def runlocalechangercommand
|
25
|
+
|
26
|
+
$rwdtinkerlog.info "preparing to restart gui"
|
27
|
+
|
28
|
+
$lang = @a_localechooseinput # pick the language of choice
|
29
|
+
|
30
|
+
tempdoc = " "
|
31
|
+
|
32
|
+
Dir.chdir($progdir) # change back to top program directory
|
33
|
+
|
34
|
+
|
35
|
+
# build the English Language hash file from the parts
|
36
|
+
|
37
|
+
|
38
|
+
require 'lib/rwdtinker/rwdlangdir'
|
39
|
+
|
40
|
+
tempdoc = " "
|
41
|
+
#go get all the po language file files in english
|
42
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
|
43
|
+
|
44
|
+
#writes the contents of doc into the languagehashvariable
|
45
|
+
languagehashvariable = tempdoc
|
46
|
+
|
47
|
+
# END of en Lang building
|
48
|
+
tempdoc = " "
|
49
|
+
Dir.chdir($progdir) # change back to top program directory
|
50
|
+
|
51
|
+
# build the local Language hash file from the parts
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
# Go get all the po files for the language of choice
|
56
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
|
57
|
+
# the contents of doc into the variable
|
58
|
+
languagehashvariable = languagehashvariable + tempdoc
|
59
|
+
|
60
|
+
Dir.chdir($progdir) # change back to top program directory
|
61
|
+
|
62
|
+
# lets read those po files, first english then the chosen language
|
63
|
+
temp = eval( languagehashvariable )
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
|
68
|
+
# build the actual GUI from the gui parts
|
69
|
+
require 'lib/rwdtinker/rwdguidir'
|
70
|
+
|
71
|
+
tempdoc = RwdtinkerTools.findguifiles(GuiDir)
|
72
|
+
|
73
|
+
|
74
|
+
# gui variable is done
|
75
|
+
guiRWD = ""
|
76
|
+
$rwd_gui_tinker = tempdoc
|
77
|
+
|
78
|
+
$rwdtinkerlog.info "restarting gui now"
|
79
|
+
|
80
|
+
RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")
|
81
|
+
|
82
|
+
end
|
83
|
+
|
84
|
+
|
@@ -1,4 +1,3 @@
|
|
1
|
-
|
2
1
|
#***********************************************************************
|
3
2
|
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
3
|
#* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
|
@@ -30,8 +29,6 @@ def initiateapplet(nametextlocal)
|
|
30
29
|
|
31
30
|
$rwdtinkerlog.info "initiateapplet: starting config load with: #{nametextlocal}"
|
32
31
|
|
33
|
-
|
34
|
-
|
35
32
|
Dir.chdir($progdir ) #changes the current working directory
|
36
33
|
|
37
34
|
@confignew = "configuration/" + "#{nametextlocal}.cnf"
|
@@ -44,13 +41,10 @@ begin
|
|
44
41
|
|
45
42
|
eval configfileload #load config file
|
46
43
|
|
47
|
-
|
48
|
-
|
49
44
|
rescue
|
50
45
|
|
51
46
|
$rwdtinkerlog.error "initiateapplet: error in initiateapplets - config load"
|
52
47
|
|
53
|
-
|
54
48
|
debuginitiate += 1
|
55
49
|
end
|
56
50
|
$tempdoc = " "
|
@@ -58,80 +52,24 @@ $tempdoc = " "
|
|
58
52
|
Dir.chdir($progdir) # change back to top program directory
|
59
53
|
|
60
54
|
# build the English Language hash file from the parts
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
65
|
-
#loop through the list, ignore the files and add all new directories found
|
66
|
-
alanghash.each do |x|
|
67
|
-
#if a directory...
|
68
|
-
if(test(?d,x))
|
69
|
-
# add to the original list of directories
|
70
|
-
@@tmproot = x + "/**"
|
71
|
-
#adds the new ones to the array
|
72
|
-
blanghash = Dir[@@tmproot].entries.sort
|
73
|
-
blanghash.each do |x|
|
74
|
-
if(test(?d,x))
|
75
|
-
alanghash.push(x) #appends to the end of the array...
|
76
|
-
end
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
alanghash.each do |x|
|
81
|
-
#if it is a file...
|
82
|
-
if(!test(?d,x))
|
83
|
-
alanghash.delete(x)
|
84
|
-
else #it is a directory...
|
85
|
-
findfiles(x + "/**")
|
86
|
-
end
|
87
|
-
end
|
88
|
-
|
55
|
+
require 'lib/rwdtinker/rwdlangdir'
|
56
|
+
|
57
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
|
89
58
|
|
90
59
|
#writes the contents of doc into the languagehashvariable
|
91
|
-
|
92
60
|
|
93
|
-
languagehashvariable =
|
61
|
+
languagehashvariable = tempdoc
|
94
62
|
|
95
63
|
# END of en Lang building
|
96
64
|
$tempdoc = " "
|
97
65
|
Dir.chdir($progdir) # change back to top program directory
|
98
66
|
|
99
67
|
# build the local Language hash file from the parts
|
100
|
-
|
101
|
-
#get a list of the files and subdirectories on the starting directory only
|
102
|
-
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
103
|
-
#loop through the list, ignore the files and add all new directories found
|
104
|
-
alanghash.each do |x|
|
105
|
-
#if a directory...
|
106
|
-
if(test(?d,x))
|
107
|
-
# add to the original list of directories
|
108
|
-
@@tmproot = x + "/**"
|
109
|
-
#adds the new ones to the array
|
110
|
-
blanghash = Dir[@@tmproot].entries.sort
|
111
|
-
blanghash.each do |x|
|
112
|
-
if(test(?d,x))
|
113
|
-
alanghash.push(x) #appends to the end of the array...
|
114
|
-
end
|
115
|
-
end
|
116
|
-
end
|
117
|
-
end
|
118
|
-
alanghash.each do |x|
|
119
|
-
#if it is a file...
|
120
|
-
if(!test(?d,x))
|
121
|
-
alanghash.delete(x)
|
122
|
-
else #it is a directory...
|
123
|
-
findfiles(x + "/**")
|
124
|
-
end
|
125
|
-
end
|
68
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
|
126
69
|
|
70
|
+
#writes the contents of doc into the variable
|
127
71
|
|
128
|
-
|
129
|
-
|
130
|
-
languagehashvariable = languagehashvariable + " Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
$tempdoc = " "
|
72
|
+
languagehashvariable = languagehashvariable + tempdoc
|
135
73
|
|
136
74
|
Dir.chdir($progdir) # change back to top program directory
|
137
75
|
|
@@ -142,44 +80,18 @@ $tempdoc = " "
|
|
142
80
|
begin # error trap
|
143
81
|
|
144
82
|
# build the actual GUI from the gui parts
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
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)
|
167
|
-
|
168
|
-
else #it is a directory...
|
169
|
-
loadguifile(x + "/**")
|
170
|
-
|
171
|
-
|
172
|
-
end
|
173
|
-
end
|
174
|
-
|
175
|
-
$rwd_gui_tinker = $tempdoc
|
176
|
-
|
83
|
+
tempdoc = " "
|
84
|
+
|
85
|
+
require 'lib/rwdtinker/rwdguidir'
|
86
|
+
|
87
|
+
tempdoc = RwdtinkerTools.findguifiles(GuiDir)
|
88
|
+
|
89
|
+
$rwd_gui_tinker = tempdoc
|
177
90
|
|
178
91
|
rescue
|
179
92
|
$rwd_gui_tinker = tempguistorage # restore old gui
|
180
93
|
|
181
94
|
$rwdtinkerlog.error "error in initiateapplets - gui building"
|
182
|
-
|
183
95
|
|
184
96
|
debuginitiate += 1
|
185
97
|
end
|
@@ -237,5 +149,21 @@ begin # error trap
|
|
237
149
|
end
|
238
150
|
|
239
151
|
|
152
|
+
def findfiles(d)
|
153
|
+
a = Array.new(Dir[d].entries.sort)
|
154
|
+
#loop through and get the files names
|
155
|
+
a.each do |x|
|
156
|
+
#adjust the filters to the files you want to see...
|
157
|
+
if(!test(?d,x))
|
158
|
+
# only rwd files
|
159
|
+
if x =~ /rb|rwd|txt/
|
160
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
161
|
+
$tempdoc+=fileA.read #reads the file into the doc string
|
162
|
+
fileA.close
|
163
|
+
end
|
164
|
+
end
|
165
|
+
end
|
166
|
+
end
|
167
|
+
|
240
168
|
|
241
169
|
|
@@ -1,4 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# this code is to list the applets that are installed
|
3
|
+
|
2
4
|
def listinstalledfiles
|
3
5
|
fileList = Dir.new("installed").entries.sort.reverse.delete_if { |x| ! (x =~ /inf$/) }
|
4
6
|
@filesresult = fileList.rwd_method("fillappletname")
|
@@ -1,4 +1,6 @@
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
1
2
|
# this code is to list the zipped applets that can be installed
|
3
|
+
|
2
4
|
def fillziptoinstallname(inffile)
|
3
5
|
applet = inffile.gsub(/\.zip$/, "")
|
4
6
|
@a_installapplet = applet
|
@@ -7,6 +9,8 @@ end
|
|
7
9
|
|
8
10
|
def listzipfilestoinstall
|
9
11
|
|
12
|
+
$zipsarraylocal = []
|
13
|
+
|
10
14
|
if $zipslocation.slice(0,1) == "/" || $zipslocation.include?(":")
|
11
15
|
startlangdir = $zipslocation
|
12
16
|
else
|
@@ -23,7 +23,9 @@ def runhelpwindowtinkerwin2
|
|
23
23
|
if @rwd_tab == "superantcomremotezipsinstall"
|
24
24
|
$help_topic = "remotegemapplet_install"
|
25
25
|
end
|
26
|
-
|
26
|
+
if @rwd_tab == "localechangertab"
|
27
|
+
$help_topic = "localechanger_help"
|
28
|
+
end
|
27
29
|
|
28
30
|
if @rwd_window != "rwdtinkerhelpwindow"
|
29
31
|
$previouswindow = @rwd_window
|
@@ -1,13 +1,16 @@
|
|
1
|
+
#view the log on the tab
|
2
|
+
|
1
3
|
def rwdtinkerrunviewlog
|
2
4
|
require 'lib/rwdtinker/rwdtinkertools'
|
3
5
|
|
6
|
+
logfilelocation = File.join(LogDirectory, 'rwdtinker.log')
|
4
7
|
if @a_rwdtinkerlognumber == nil
|
5
8
|
@a_rwdtinkerlognumber = 11
|
6
|
-
|
9
|
+
|
10
|
+
end
|
11
|
+
|
12
|
+
@returnlogdisplay = RwdtinkerTools.tail(logfilelocation , @a_rwdtinkerlognumber.to_i)
|
7
13
|
|
8
|
-
|
9
|
-
@returnlogdisplay = RwdtinkerTools.tail("rwd_files/log/rwdtinker.log",@a_rwdtinkerlognumber.to_i)
|
10
|
-
|
11
|
-
end
|
14
|
+
|
12
15
|
end
|
13
16
|
|