rubyslippers 1.04 → 1.06
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +12 -1
- data/code/01rwdcore/01rwdcore.rb +3 -0
- data/code/01rwdcore/02helptexthashbegin.rb +0 -0
- data/code/01rwdcore/03helptexthash.rb +13 -21
- 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 +7 -0
- data/code/01rwdcore/rwdtinkerversion.rb +11 -3
- data/code/01rwdcore/rwdwindowreturn.rb +0 -0
- data/code/01rwdcore/selectiontab.rb +0 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +13 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +6 -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 +3 -0
- data/code/superant.com.rubyslippers/0uninstallapplet.rb +34 -0
- data/code/superant.com.rubyslippers/execgemserve.rb +0 -0
- data/code/superant.com.rubyslippers/gemcommands.rb +0 -0
- data/code/superant.com.rubyslippers/gemenvironment.rb +0 -0
- data/code/superant.com.rubyslippers/gemfilesinstalled.rb +0 -0
- data/code/superant.com.rubyslippers/gemserve.rb +0 -0
- data/code/superant.com.rubyslippers/gemwhich.rb +1 -1
- data/code/superant.com.rubyslippers/helptexthashrubyslippers.rb +0 -0
- data/code/superant.com.rubyslippers/installgem.rb +0 -0
- data/code/superant.com.rubyslippers/jumplinkupdate.rb +2 -17
- data/code/superant.com.rubyslippers/listgemdirs.rb +0 -0
- data/code/superant.com.rubyslippers/listgemrecord.rb +0 -0
- data/code/superant.com.rubyslippers/listgemremote.rb +0 -0
- data/code/superant.com.rubyslippers/listgemzips.rb +3 -3
- data/code/superant.com.rubyslippers/listinstalledgemsfiles.rb +0 -0
- data/code/superant.com.rubyslippers/loadconfigurationrecord.rb +2 -2
- data/code/superant.com.rubyslippers/loadconfigurationvariables.rb +0 -0
- data/code/superant.com.rubyslippers/openhelpwindowrubyslippers.rb +0 -0
- data/code/superant.com.rubyslippers/returntomain.rb +2 -2
- data/code/superant.com.rubyslippers/runrubyslippersmenu1.rb +6 -6
- data/code/superant.com.rubyslippers/runrubyslipperswindow.rb +0 -0
- data/code/superant.com.rubyslippers/rwdtinkerversion.rb +10 -0
- data/code/superant.com.rubyslippers/saveconfigurationrecord.rb +0 -0
- data/code/superant.com.rubyslippers/test_cases.rb +0 -0
- data/code/superant.com.rubyslippers/uninstallapplet.rb +57 -0
- data/code/superant.com.rubyslippers/viewgemdata.rb +0 -0
- data/code/superant.com.rubyslippers/viewrubyslippersconfiguration.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/changegemspecdata.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/clearscreendisplay.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/copygemspecdata.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/creategem.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/creategemspecrecord.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/deletegemspecrecord.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/listgemdir.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/listgemdirectories.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/listgemspecrecord.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/loadgemspecrecord.rb +0 -0
- data/code/superant.com.rubyslippersbackwindow/viewgemspecdata.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 +200 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +3 -1
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +7 -1
- 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 +1 -1
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +1 -12
- 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 +1 -5
- 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 +2 -2
- 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 +2 -1
- data/configuration/rubyslippers.dist +2 -17
- data/configuration/rwdapplicationidentity.dist +2 -2
- data/configuration/rwdtinker.dist +6 -3
- data/configuration/tinkerwin2variables.dist +3 -3
- data/configuration/wrubyslippers-1.06.dist +17 -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/{selectiontabbegin.rwd → 00selectiontabbegin.rwd} +1 -1
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +2 -2
- data/gui/frontwindowselectionzend/viewselectionzend/{viewselectionend.rwd → wwselectionend.rwd} +0 -0
- data/gui/{frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd → frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd} +0 -0
- data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +14 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +8 -0
- data/gui/{frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd → helpaboutbegin/superant.com.helpaboutbegin/zzzrwdlasttab.rwd} +0 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +15 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +0 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +3 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +15 -0
- data/gui/{tinkerbackwindows/superant.com.rubyslippersbackwindow/m99selection.rwd → helpaboutzend/superant.com.helpaboutend/zzzzhelpscreen2end.rwd} +1 -1
- data/gui/tinkerbackwindows/superant.com.rubyslippers/00rubyslipperstop.rwd +4 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/25gemcommands.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/30viewgemdata.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/40listgemrecordfiles.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/60installgem.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/70listgemsremote.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/75gemwhich.rwd +3 -1
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/85gemfilesinstalled.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rubyslippers/90gemserverscan.rwd +2 -2
- data/gui/tinkerbackwindows/{superant.com.rubyslippersbackwindow/m95jumplinkcommands.rwd → superant.com.rubyslippers/98jumplinkcommands.rwd} +2 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippers/xx0rwdfirsttab.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/3viewgemspec.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/4listgemspecrecord.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/5editgemspecrecord.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/6buildgem.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/7viewgemdir.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/8gemcommands.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/92viewconfiguration.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/94rwddiagnostics.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/98jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/zbackend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +9 -10
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +5 -5
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +9 -9
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +4 -12
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +3 -3
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +2 -2
- data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +0 -0
- data/init.rb +5 -5
- data/{lib → installed}/temp.rb +0 -0
- data/installed/wrubyslippers-1.06.inf +10 -0
- data/lang/en/rubyslippers/languagefile.rb +9 -10
- data/lang/en/rwdcore/languagefile.rb +58 -15
- data/lang/es/rubyslippers/languagefile.rb +9 -11
- data/lang/es/rwdcore/languagefile-es.rb +67 -13
- data/lang/fr/rubyslippers/languagefile.rb +10 -0
- data/lang/fr/rwdcore/languagefile.rb +64 -0
- data/lang/jp/rubyslippers/languagefile.rb +9 -12
- data/lang/jp/rwdcore/languagefile.rb +69 -6
- data/lang/nl/rubyslippers/languagefile.rb +9 -12
- data/lang/nl/rwdcore/languagefile.rb +62 -0
- data/lib/rubyslippers.rb +1 -0
- data/rubyslippers.rb +1 -0
- data/rwd_files/GemDocuments.html +0 -0
- data/rwd_files/HowTo_RubySlippers.txt +6 -1
- data/rwd_files/HowTo_Tinker.txt +30 -0
- data/rwd_files/HowTo_TinkerWin2.txt +0 -0
- data/rwd_files/Readme.txt +0 -0
- data/rwd_files/{rwdindex.html → 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 +11 -2
- data/tests/RubyGauge.rb +0 -0
- data/tests/checkdepends.sh +0 -0
- data/tests/cleancnf.sh +2 -1
- data/tests/makedist-wrubyslippers.rb +54 -0
- data/tests/makedist.rb +0 -0
- data/tests/rdep.rb +0 -0
- data/tests/totranslate.lang +0 -0
- data/zips/temp.rb +1 -0
- metadata +49 -45
- data/code/superant.com.rubyslippers/rubyslippershelpabout.rb +0 -14
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +0 -96
- data/gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd +0 -15
- data/gui/frontwindowtdocuments/superant.com.rubyslippersdocument/ui3rubyslippers.rwd +0 -4
- data/gui/frontwindowtdocuments/superant.com.rubyslippersdocument/ui4rubyslippers.rwd +0 -4
- data/gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd +0 -6
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +0 -12
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.rubyslippershelpabout/1rubyslippers.rwd +0 -5
- data/gui/helpaboutinstalled/superant.com.rubyslippershelpabout/2rubyslippers.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.rubyslippershelpabout/5version.rwd +0 -9
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd +0 -4
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +0 -10
- data/gui/tinkerbackwindows/superant.com.rubyslippersbackwindow/m90selectiontab.rwd +0 -11
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +0 -33
- data/installed/rwdviewlogo-0.4.inf +0 -4
- data/rwd_files/remotegemlist.txt +0 -852
- data/zips/rwdahelloworld-0.5.zip +0 -0
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,200 @@
|
|
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
|
+
begin
|
30
|
+
|
31
|
+
Dir.chdir($progdir ) #changes the current working directory
|
32
|
+
|
33
|
+
@confignew = "configuration/" + "#{nametextlocal}.cnf"
|
34
|
+
@configdist = "configuration/" + "#{nametextlocal}.dist"
|
35
|
+
Rconftool::install(@configdist,@confignew)
|
36
|
+
|
37
|
+
configfileload = File.open(@confignew){|f| f.read}
|
38
|
+
|
39
|
+
eval configfileload #load config file
|
40
|
+
|
41
|
+
setuphelpaboutoptions # update the help about list
|
42
|
+
setuptinkerdocuments # update the document pull down list
|
43
|
+
runhelpwindow # update the help menu
|
44
|
+
showjumplinkoptions # update the application link menu
|
45
|
+
runrwdtinkerbackwindow # back to applet window
|
46
|
+
|
47
|
+
# build the actual GUI from the gui parts
|
48
|
+
$tempdoc = " "
|
49
|
+
#get a list of the files and subdirectories on the starting directory only
|
50
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
51
|
+
#loop through the list, ignore the files and add all new directories found
|
52
|
+
a.each do |x|
|
53
|
+
#if a directory...
|
54
|
+
if(test(?d,x))
|
55
|
+
#use this new dir find to add to the original list of directories
|
56
|
+
@@root = x + "/**"
|
57
|
+
#adds the new ones to the array
|
58
|
+
b = Dir[@@root].entries.sort
|
59
|
+
b.each do |x|
|
60
|
+
if(test(?d,x))
|
61
|
+
a.push(x) #appends to the end of the array...
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
a.each do |x|
|
67
|
+
#if it is a file...
|
68
|
+
if(!test(?d,x))
|
69
|
+
a.delete(x)
|
70
|
+
|
71
|
+
else #it is a directory...
|
72
|
+
loadguifile(x + "/**")
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
$rwd_gui_tinker = $tempdoc
|
77
|
+
|
78
|
+
# now load in the code files
|
79
|
+
|
80
|
+
$tempdoc = ""
|
81
|
+
tempcodeinstallline = ""
|
82
|
+
|
83
|
+
@fileName = "installed/" + nametextlocal + ".inf"
|
84
|
+
|
85
|
+
tmpfilearray = File.readlines(@fileName)
|
86
|
+
|
87
|
+
tmpfilearray.each do |line|
|
88
|
+
|
89
|
+
tempcodeinstallline = line.chomp
|
90
|
+
if tempcodeinstallline.include?('code/')
|
91
|
+
findfiles(tempcodeinstallline + "/**")
|
92
|
+
tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# resultend = tempcodeinstallline .index("\n",resultstart)
|
97
|
+
tempresult = @fileName
|
98
|
+
|
99
|
+
return " applet loading successful " + tempresult
|
100
|
+
|
101
|
+
rescue
|
102
|
+
|
103
|
+
return " initiateapplet .."
|
104
|
+
|
105
|
+
end
|
106
|
+
|
107
|
+
end
|
108
|
+
|
109
|
+
=begin
|
110
|
+
|
111
|
+
|
112
|
+
Dir.chdir($progdir) # change back to top program directory
|
113
|
+
|
114
|
+
# build the English Language hash file from the parts
|
115
|
+
languagehashvariable = 'Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
|
116
|
+
langmessage = {' + "\n"
|
117
|
+
startlangdir = File.join(LangDir,"en")
|
118
|
+
#get a list of the files and subdirectories on the starting directory only
|
119
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
120
|
+
#loop through the list, ignore the files and add all new directories found
|
121
|
+
alanghash.each do |x|
|
122
|
+
#if a directory...
|
123
|
+
if(test(?d,x))
|
124
|
+
# add to the original list of directories
|
125
|
+
@@tmproot = x + "/**"
|
126
|
+
#adds the new ones to the array
|
127
|
+
blanghash = Dir[@@tmproot].entries.sort
|
128
|
+
blanghash.each do |x|
|
129
|
+
if(test(?d,x))
|
130
|
+
alanghash.push(x) #appends to the end of the array...
|
131
|
+
end
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
alanghash.each do |x|
|
136
|
+
#if it is a file...
|
137
|
+
if(!test(?d,x))
|
138
|
+
alanghash.delete(x)
|
139
|
+
else #it is a directory...
|
140
|
+
findfiles(x + "/**")
|
141
|
+
end
|
142
|
+
end
|
143
|
+
|
144
|
+
|
145
|
+
#writes the contents of doc into the languagehashvariable
|
146
|
+
languagehashvariable = languagehashvariable + $tempdoc + "} ; langmessage.each { |kk, vv| Message[kk] = vv }"
|
147
|
+
|
148
|
+
# END of en Lang building
|
149
|
+
$tempdoc = " "
|
150
|
+
Dir.chdir($progdir) # change back to top program directory
|
151
|
+
|
152
|
+
# build the local Language hash file from the parts
|
153
|
+
startlangdir = File.join(LangDir,$lang)
|
154
|
+
#get a list of the files and subdirectories on the starting directory only
|
155
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
156
|
+
#loop through the list, ignore the files and add all new directories found
|
157
|
+
alanghash.each do |x|
|
158
|
+
#if a directory...
|
159
|
+
if(test(?d,x))
|
160
|
+
# add to the original list of directories
|
161
|
+
@@tmproot = x + "/**"
|
162
|
+
#adds the new ones to the array
|
163
|
+
blanghash = Dir[@@tmproot].entries.sort
|
164
|
+
blanghash.each do |x|
|
165
|
+
if(test(?d,x))
|
166
|
+
alanghash.push(x) #appends to the end of the array...
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
170
|
+
end
|
171
|
+
alanghash.each do |x|
|
172
|
+
#if it is a file...
|
173
|
+
if(!test(?d,x))
|
174
|
+
alanghash.delete(x)
|
175
|
+
else #it is a directory...
|
176
|
+
findfiles(x + "/**")
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
|
181
|
+
#writes the contents of doc into the variable
|
182
|
+
languagehashvariable = languagehashvariable + " ; Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
183
|
+
|
184
|
+
|
185
|
+
$tempdoc = " "
|
186
|
+
|
187
|
+
Dir.chdir($progdir) # change back to top program directory
|
188
|
+
|
189
|
+
temp = eval( languagehashvariable )
|
190
|
+
|
191
|
+
$tempdoc = " "
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
=end
|
199
|
+
|
200
|
+
|
@@ -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,16 @@ def installgemapplet
|
|
12
12
|
|entry|
|
13
13
|
zf.extract(entry.to_s, entry.to_s)
|
14
14
|
}
|
15
|
-
@
|
15
|
+
@nametextbase = File.basename(nametext)
|
16
|
+
@returninitateresults = initiateapplet(@nametextbase)
|
17
|
+
@installapplettext = Message[:applet_installed] + " " + @returninitateresults
|
18
|
+
|
19
|
+
|
20
|
+
RWDWindow.new($rwd_gui_tinker, @rwd_window).render("DEFAULT")
|
16
21
|
|
17
22
|
rescue
|
18
23
|
@installapplettext = "unzip error - applet may not be installed correctly"
|
24
|
+
|
19
25
|
end # exception rescue
|
20
26
|
end
|
21
27
|
|
File without changes
|
File without changes
|
File without changes
|
@@ -16,7 +16,7 @@ def listzipfilestoinstall
|
|
16
16
|
a.each do |x|
|
17
17
|
# only zip files
|
18
18
|
if x =~ /\.zip/
|
19
|
-
|
19
|
+
#adds the file to the array to display on the screen
|
20
20
|
$zipsarraylocal = $zipsarraylocal | ["#{x}"]
|
21
21
|
end
|
22
22
|
|
@@ -12,18 +12,7 @@ def loadconfigurationrecord
|
|
12
12
|
fileName = File.join(ConfigurationDir, TinkerWin2ConfigurationFileName)
|
13
13
|
|
14
14
|
fd = File.open(fileName,"r")
|
15
|
-
@
|
16
|
-
@a_configline2 = fd.readline.chomp
|
17
|
-
@a_configline3 = fd.readline.chomp
|
18
|
-
@a_configline4 = fd.readline.chomp
|
19
|
-
@a_configline5 = fd.readline.chomp
|
20
|
-
@a_configline6 = fd.readline.chomp
|
21
|
-
@a_configline7 =fd.readline.chomp
|
22
|
-
@a_configline8 = fd.readline.chomp
|
23
|
-
|
24
|
-
while ! fd.eof?
|
25
|
-
@extraconfigdatadisplay = fd.readline
|
26
|
-
end
|
15
|
+
@a_configurationfile = fd.read
|
27
16
|
fd.close
|
28
17
|
rescue SystemCallError, StandardError
|
29
18
|
$stderr.print "system call error: " + $!
|
File without changes
|
File without changes
|
File without changes
|
@@ -18,11 +18,7 @@ def runhelpwindowtinkerwin2
|
|
18
18
|
end
|
19
19
|
if @rwd_tab == "editconfigurationfile"
|
20
20
|
$help_topic = "applet_tinkerbackeditconfiguration"
|
21
|
-
|
22
|
-
end
|
23
|
-
if @rwd_tab == "rwdremotecontrol"
|
24
|
-
$help_topic = "remote_control"
|
25
|
-
|
21
|
+
|
26
22
|
end
|
27
23
|
if @rwd_tab == "superantcomremotezipsinstall"
|
28
24
|
$help_topic = "remotegemapplet_install"
|
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
|