rwddemo 0.6 → 0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +1 -1
- data/code/dd0shelleval/changescriptname.rb +16 -0
- data/code/dd0shelleval/clearscriptscreendisplay.rb +9 -0
- data/code/dd0shelleval/deletescriptrecord.rb +20 -0
- data/code/{ek0shellscripts/em0listscripts.rb → dd0shelleval/listscripts.rb} +3 -2
- data/code/dd0shelleval/loadscriptrecord.rb +20 -0
- data/code/{ek0shellscripts/ek0playscript.rb → dd0shelleval/playscript.rb} +0 -0
- data/code/{cb7rubyeval/cb7rubyeval.rb → dd0shelleval/rubyeval.rb} +4 -2
- data/code/dd0shelleval/runrwdshellwindow.rb +9 -0
- data/code/dd0shelleval/rwddemohelpabout.rb +14 -0
- data/code/dd0shelleval/rwdshellversion.rb +14 -0
- data/code/{ek0shellscripts/en0createnewscript.rb → dd0shelleval/savechangedscript.rb} +7 -6
- data/code/dd0shelleval/{dd0shelleval.rb → shelleval.rb} +0 -0
- data/code/{ek0shellscripts/em1viewscript.rb → dd0shelleval/viewscript.rb} +2 -2
- data/code/{ii3calculator → rwdcalc}/ca2multiply.rb +0 -0
- data/code/{ii3calculator → rwdcalc}/ca4add.rb +0 -0
- data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +2 -1
- data/configuration/aa0rwdframework.cnf +5 -3
- data/configuration/ab1tinkerwin2.cnf +1 -0
- data/configuration/ek0playscripts.cnf +2 -0
- data/configuration/gh1rwdcalendar.cnf +1 -0
- data/gui/aa2core/aa0rwdtop.rwd +4 -0
- data/gui/ek0shellscripts/1listplayscripts.rwd +17 -0
- data/gui/ek0shellscripts/2listscripts.rwd +25 -0
- data/gui/ek0shellscripts/3editscripts.rwd +25 -0
- data/gui/ek0shellscripts/4scriptutilities.rwd +24 -0
- data/gui/ek0shellscripts/6rwdshelleval.rwd +16 -0
- data/gui/ek0shellscripts/cb7rwdrubyeval.rwd +13 -0
- data/gui/hl9calendar/hl9calendar.rwd +20 -0
- data/gui/hx1rwdcalc/ca0rwdcalc.rwd +19 -0
- data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
- data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
- data/gui/lz1selectiontabend/endselectiontab.rwd +3 -0
- data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
- data/gui/{en/ub7rubyeval → ub7rubyeval}/rubyeval.rwd +4 -3
- data/gui/uk5rwddemodocuments/documents.rwd +4 -0
- data/gui/{en/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +9 -7
- data/gui/{nl/uu6rwdtinkerwin2documents → uu6rwdtinkerwin2documents}/uu5documents.rwd +4 -2
- data/gui/vv1docshellxp/vvdocshellxp.rwd +5 -0
- data/gui/ww0documentsend/ww0documentend.rwd +7 -0
- data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
- data/gui/{es/xa1versionwindow → xa1versionwindow}/1appname.rwd +4 -2
- data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
- data/gui/xa5rwdtinkercallablewindow/9end.rwd +4 -0
- data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
- data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
- data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
- data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
- data/gui/xb1rwdtinkerbackwindow/9backend.rwd +6 -0
- data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
- data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
- data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
- data/gui/yg5rwdhelpabout/5version.rwd +10 -0
- data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
- data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
- data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
- data/gui/yl2rwddemohelpabout/1appname.rwd +4 -0
- data/gui/yl2rwddemohelpabout/3copyright.rwd +3 -0
- data/gui/yl2rwddemohelpabout/5version.rwd +9 -0
- data/gui/yl4rwdshellhelpabout/1appname.rwd +4 -0
- data/gui/yl4rwdshellhelpabout/3copyright.rwd +3 -0
- data/gui/yl4rwdshellhelpabout/5version.rwd +9 -0
- data/gui/yy5helpaboutend/helpscreenend.rwd +3 -0
- data/gui/za1applicationend/yy9rwdend.rwd +4 -0
- data/init.rb +74 -5
- data/installed/rwdshell-0.92.inf +14 -0
- data/installed/rwdtinkerwin2-0.5.inf +4 -12
- data/{code/al5languagefiles → lang}/alanguagehashbegin.rb +0 -0
- data/lang/en/rwdcore/languagefile.rb +3 -2
- data/lang/es/rwdcore/languagefile.rb +1 -2
- data/{code/al5languagefiles → lang}/languagehash.rb +0 -0
- data/lang/nl/rwdcore/languagefile.rb +1 -1
- data/lang/templangfile.rb +2 -0
- data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
- data/lang/wlocallangstart.rb +5 -0
- data/lang/xlocallangfile.rb +1 -0
- data/lang/zlocallangend.rb +2 -0
- data/rwd_files/HowTo_Shell.txt +230 -0
- data/rwd_files/HowTo_Tinker.txt +32 -0
- data/scripts/echo2.sh +2 -0
- data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
- data/zips/rwdwshell-0.91.zip +0 -0
- data/zips/wrubyslippers-0.93.zip +0 -0
- metadata +91 -154
- data/code/al5languagefiles/templangfile.rb +0 -6
- data/code/lm1installapplets/ll5listzips.rb +0 -14
- data/code/lm1installapplets/lm1installapplet.rb +0 -20
- data/code/ssdiagnostictab/diagnostictab.rb +0 -20
- data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/en/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
- data/gui/en/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
- data/gui/en/ek0shellscripts/ek0playscript.rwd +0 -15
- data/gui/en/ek0shellscripts/el0listscripts.rwd +0 -25
- data/gui/en/ek0shellscripts/en0createscripts.rwd +0 -24
- data/gui/en/hl9calendar/hl9calendar.rwd +0 -18
- data/gui/en/ii3calculator/ca0rwdcalc.rwd +0 -17
- data/gui/en/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/en/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/en/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/en/uk5rwddemodocuments/documents.rwd +0 -3
- data/gui/en/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
- data/gui/en/vv1docshellxp/vvdocshellxp.rwd +0 -4
- data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/en/xa1versionwindow/1appname.rwd +0 -17
- data/gui/en/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/en/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/en/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/en/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/en/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/en/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/en/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/en/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/en/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/en/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/en/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/en/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/en/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/es/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
- data/gui/es/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
- data/gui/es/ek0shellscripts/ek0playscript.rwd +0 -15
- data/gui/es/ek0shellscripts/el0listscripts.rwd +0 -25
- data/gui/es/ek0shellscripts/en0createscripts.rwd +0 -24
- data/gui/es/hl9calendar/hl9calendar.rwd +0 -18
- data/gui/es/ii3calculator/ca0rwdcalc.rwd +0 -17
- data/gui/es/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/es/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/es/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/es/ub7rubyeval/rubyeval.rwd +0 -3
- data/gui/es/uk5playscripts/uv6docscriptrunner.rwd +0 -3
- data/gui/es/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/es/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -4
- data/gui/es/vv1docshellxp/vvdocshellxp.rwd +0 -4
- data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/es/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/es/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/es/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/es/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/es/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/es/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/es/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/es/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/es/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/es/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/es/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/es/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/es/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/nl/cb7rubyeval/cb7rwdrubyeval.rwd +0 -18
- data/gui/nl/dd0rwdshelleval/dd0rwdshelleval.rwd +0 -16
- data/gui/nl/ek0shellscripts/ek0playscript.rwd +0 -15
- data/gui/nl/ek0shellscripts/el0listscripts.rwd +0 -25
- data/gui/nl/ek0shellscripts/en0createscripts.rwd +0 -24
- data/gui/nl/hl9calendar/hl9calendar.rwd +0 -18
- data/gui/nl/ii3calculator/ca0rwdcalc.rwd +0 -17
- data/gui/nl/ll1selectiontabbegin/selectiontabbegin.rwd +0 -15
- data/gui/nl/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -11
- data/gui/nl/lz1selectiontabend/endselectiontab.rwd +0 -1
- data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/nl/ub7rubyeval/rubyeval.rwd +0 -3
- data/gui/nl/uk5playscripts/uv6docscriptrunner.rwd +0 -3
- data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/nl/vv1docshellxp/vvdocshellxp.rwd +0 -4
- data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/nl/xa1versionwindow/1appname.rwd +0 -17
- data/gui/nl/xa5rwdtinkercallablewindow/1appname.rwd +0 -15
- data/gui/nl/xa5rwdtinkercallablewindow/9end.rwd +0 -4
- data/gui/nl/xb1rwdtinkerbackwindow/1appname.rwd +0 -3
- data/gui/nl/xb1rwdtinkerbackwindow/2tab1.rwd +0 -9
- data/gui/nl/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -31
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -42
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -33
- data/gui/nl/xb1rwdtinkerbackwindow/9backend.rwd +0 -5
- data/gui/nl/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/nl/yg5rwdhelpabout/1appname.rwd +0 -2
- data/gui/nl/yg5rwdhelpabout/3copyright.rwd +0 -1
- data/gui/nl/yg5rwdhelpabout/5version.rwd +0 -9
- data/gui/nl/yg6rwdwin2helpabout/1appname.rwd +0 -2
- data/gui/nl/yg6rwdwin2helpabout/3copyright.rwd +0 -1
- data/gui/nl/yg6rwdwin2helpabout/5version.rwd +0 -9
- data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
- data/installed/rwdrubyeval-0.3.inf +0 -5
- data/installed/rwdscriptrunner-0.3.inf +0 -9
- data/installed/rwdshellxp-0.4.inf +0 -5
- data/rwd_files/HowTo_Tinker.html +0 -370
- data/rwd_files/HowTo_shellxp.html +0 -105
- data/tests/rwdtinkertestEN.rb +0 -87
- data/tests/temptest.out +0 -18
- data/zips/rwdaviewphoto-0.3.zip +0 -0
- data/zips/rwdrefreshacpi-0.1.zip +0 -0
- data/zips/rwdscriptrunner-0.3.zip +0 -0
- data/zips/rwdwtinkerwin2-0.5.zip +0 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"filelister\" caption=\"List Applets\">
|
4
|
+
|
5
|
+
|
6
|
+
<table>
|
7
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_installlist\"/> </row>
|
8
|
+
|
9
|
+
</table>
|
10
|
+
|
11
|
+
<horizontal>
|
12
|
+
<button caption=\"View Install Text\" action=\"openname\"/>
|
13
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
14
|
+
</horizontal>
|
15
|
+
<p>%displaytext%</p>
|
16
|
+
|
17
|
+
<table>
|
18
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_removeapplet\"/> </row>
|
19
|
+
|
20
|
+
</table>
|
21
|
+
|
22
|
+
<p>%removeapplettext%</p>
|
23
|
+
<horizontal>
|
24
|
+
<button caption=\"remove applet\" action=\"removeapplet\"/>
|
25
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
26
|
+
|
27
|
+
</horizontal>
|
28
|
+
<table>
|
29
|
+
<row> <p> </row>
|
30
|
+
<row> <p align=\"right\">View the list of installation files </row>
|
31
|
+
|
32
|
+
</table>
|
33
|
+
<horizontal>
|
34
|
+
|
35
|
+
<button caption=\"List Files\" action=\"listinstalledfiles\"/>
|
36
|
+
|
37
|
+
</horizontal>
|
38
|
+
|
39
|
+
<p>%%filesresult%%</p>
|
40
|
+
|
41
|
+
</tab>"
|
42
|
+
|
43
|
+
|
44
|
+
|
@@ -0,0 +1,35 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"zipslister\" caption=\"List Zips\">
|
4
|
+
|
5
|
+
<table>
|
6
|
+
<row> <p align=\"right\">File Name:</p> <text name=\"a_installapplet\"/> </row>
|
7
|
+
|
8
|
+
</table>
|
9
|
+
|
10
|
+
<horizontal>
|
11
|
+
<button caption=\"install applet\" action=\"installapplet\"/>
|
12
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
13
|
+
|
14
|
+
</horizontal>
|
15
|
+
<p>%installapplettext%</p>
|
16
|
+
|
17
|
+
|
18
|
+
<table>
|
19
|
+
<row> <p align=\"right\">Click below to view the list of zip files </row>
|
20
|
+
|
21
|
+
</table>
|
22
|
+
|
23
|
+
<horizontal>
|
24
|
+
<button caption=\"List applets available for installing\" action=\"listzipfilestoinstall\"/>
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
</horizontal>
|
29
|
+
|
30
|
+
<p>%%zipslistresult%%</p>
|
31
|
+
|
32
|
+
</tab>"
|
33
|
+
|
34
|
+
|
35
|
+
|
data/init.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
|
2
2
|
#***********************************************************************
|
3
3
|
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
-
#* Copyright (c) 2004 by Steven Gibson. All Rights Reserved.
|
4
|
+
#* Copyright (c) 2004, 2005 by Steven Gibson. All Rights Reserved.
|
5
5
|
#*
|
6
6
|
#* This library is free software; you can redistribute it and/or
|
7
7
|
#* modify it under the terms of the GNU General Public
|
@@ -43,7 +43,20 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
46
|
-
|
46
|
+
def loadguifile(d)
|
47
|
+
a = Array.new(Dir[d].entries.sort)
|
48
|
+
#loop through and get the files names
|
49
|
+
a.each do |x|
|
50
|
+
#adjust the filters to the files you want to see...
|
51
|
+
if(!test(?d,x))
|
52
|
+
# only rwd files
|
53
|
+
if x =~ /rb|rwd|txt/
|
54
|
+
load x #opens the file thats in fileName and reads it
|
55
|
+
$tempdoc += $rwdguivar # adds the file into the doc string
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
47
60
|
|
48
61
|
# Read in the configuration files
|
49
62
|
|
@@ -59,8 +72,8 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
59
72
|
|
60
73
|
Dir.chdir($progdir) # change back to top program directory
|
61
74
|
|
62
|
-
# build the Language hash file from the parts
|
63
|
-
startlangdir = @@langdir +"/" +
|
75
|
+
# build the English Language hash file from the parts
|
76
|
+
startlangdir = @@langdir +"/" + "en"
|
64
77
|
#get a list of the files and subdirectories on the starting directory only
|
65
78
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
66
79
|
#loop through the list, ignore the files and add all new directories found
|
@@ -93,6 +106,62 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
93
106
|
# END of Lang building
|
94
107
|
$tempdoc = " "
|
95
108
|
Dir.chdir($progdir) # change back to top program directory
|
109
|
+
|
110
|
+
# build the local Language hash file from the parts
|
111
|
+
startlangdir = @@langdir +"/" + $lang
|
112
|
+
#get a list of the files and subdirectories on the starting directory only
|
113
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
114
|
+
#loop through the list, ignore the files and add all new directories found
|
115
|
+
alanghash.each do |x|
|
116
|
+
#if a directory...
|
117
|
+
if(test(?d,x))
|
118
|
+
# add to the original list of directories
|
119
|
+
@@tmproot = x + "/**"
|
120
|
+
#adds the new ones to the array
|
121
|
+
blanghash = Dir[@@tmproot].entries.sort
|
122
|
+
blanghash.each do |x|
|
123
|
+
if(test(?d,x))
|
124
|
+
alanghash.push(x) #appends to the end of the array...
|
125
|
+
end
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
alanghash.each do |x|
|
130
|
+
#if it is a file...
|
131
|
+
if(!test(?d,x))
|
132
|
+
alanghash.delete(x)
|
133
|
+
else #it is a directory...
|
134
|
+
findfiles(x + "/**")
|
135
|
+
end
|
136
|
+
end
|
137
|
+
|
138
|
+
filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
|
139
|
+
filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
|
140
|
+
filelocalLangHash.close
|
141
|
+
|
142
|
+
$tempdoc = " "
|
143
|
+
|
144
|
+
Dir.chdir($progdir) # change back to top program directory
|
145
|
+
|
146
|
+
# build the language hash constant object from the lang parts
|
147
|
+
#get a list of the files in lang directory only
|
148
|
+
alangfile = Dir.new(@@langdir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
|
149
|
+
alangfile.length.times{
|
150
|
+
fileName = alangfile.pop
|
151
|
+
Dir.chdir($progdir)
|
152
|
+
Dir.chdir(@@langdir)
|
153
|
+
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
154
|
+
$tempdoc += fileLangA.read #reads the file into the doc string
|
155
|
+
fileLangA.close
|
156
|
+
}
|
157
|
+
|
158
|
+
Dir.chdir($progdir)
|
159
|
+
fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
|
160
|
+
fileLangB.write($tempdoc) #writes the contents of doc into the file
|
161
|
+
fileLangB.close
|
162
|
+
load LangNameFile # load the file
|
163
|
+
|
164
|
+
$tempdoc = " "
|
96
165
|
|
97
166
|
# build the actual program from the code parts
|
98
167
|
#get a list of the files and subdirectories on the starting directory only
|
@@ -151,7 +220,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
151
220
|
a.delete(x)
|
152
221
|
|
153
222
|
else #it is a directory...
|
154
|
-
|
223
|
+
loadguifile(x + "/**")
|
155
224
|
end
|
156
225
|
end
|
157
226
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# rwdshell - applet to run shell scripts =
|
2
|
+
code/dd0shelleval
|
3
|
+
configuration/ek0playscripts.cnf
|
4
|
+
gui/ub7rubyeval
|
5
|
+
gui/uk5scriptrunnerdocuments
|
6
|
+
gui/vv1docshellxp
|
7
|
+
gui/dd0rwdshell
|
8
|
+
gui/yl4rwdshellhelpabout
|
9
|
+
rwd_files/HowTo_RubyEval.html
|
10
|
+
rwd_files/HowTo_Scriptrunner.txt
|
11
|
+
rwd_files/HowTo_shell.txt
|
12
|
+
scripts/date.sh
|
13
|
+
scripts/lister.sh
|
14
|
+
scripts/uname.sh
|
@@ -1,16 +1,8 @@
|
|
1
1
|
# rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
|
2
2
|
configuration/ab1tinkerwin2.cnf
|
3
3
|
code/xb1rwdtinkerbackwindow
|
4
|
-
gui/
|
5
|
-
gui/
|
6
|
-
gui/
|
7
|
-
gui/
|
8
|
-
gui/es/ll5rwdtinkerwin2selectiontab
|
9
|
-
gui/es/xb1rwdtinkerbackwindow
|
10
|
-
gui/es/uu6rwdtinkerwin2documents
|
11
|
-
gui/es/yg6rwdwin2helpabout
|
12
|
-
gui/nl/ll5rwdtinkerwin2selectiontab
|
13
|
-
gui/nl/xb1rwdtinkerbackwindow
|
14
|
-
gui/nl/uu6rwdtinkerwin2documents
|
15
|
-
gui/nl/yg6rwdwin2helpabout
|
4
|
+
gui/ll5rwdtinkerwin2selectiontab
|
5
|
+
gui/xb1rwdtinkerbackwindow
|
6
|
+
gui/uu6rwdtinkerwin2documents
|
7
|
+
gui/yg6rwdwin2helpabout
|
16
8
|
rwd_files/HowTo_TinkerWin2.txt
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
# Local Language files for RwdTinker core
|
@@ -0,0 +1,230 @@
|
|
1
|
+
= RwdShell Program
|
2
|
+
|
3
|
+
How to Use the Shell Program (rwdshell)
|
4
|
+
|
5
|
+
== What is is
|
6
|
+
|
7
|
+
rwdshell is a web brower interface to operating system shell commands
|
8
|
+
|
9
|
+
|
10
|
+
download from http://rubyforge.org/frs/?group_id=444
|
11
|
+
|
12
|
+
run shell commands
|
13
|
+
|
14
|
+
|
15
|
+
The GUI interface used is RubyWebDialogs
|
16
|
+
|
17
|
+
|
18
|
+
Start the program by typing<br>
|
19
|
+
ruby init.rb
|
20
|
+
|
21
|
+
Then point your web browser to:
|
22
|
+
http://localhost:7705/
|
23
|
+
|
24
|
+
== using shell commands
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
29
|
+
After a second the browser should fill with the results of the command.
|
30
|
+
try ls, df, cat "filename", and other shell commands
|
31
|
+
You should be able to run one command after another
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
rwdshell scriptrunner is a web brower interface to operating system shell commands
|
36
|
+
|
37
|
+
|
38
|
+
1. run shell commands
|
39
|
+
2. run Ruby commands in the browser
|
40
|
+
3. use a calculator
|
41
|
+
4. Open brower windows with html documents
|
42
|
+
|
43
|
+
The GUI interface used is RubyWebDialogs
|
44
|
+
|
45
|
+
|
46
|
+
Start the program by typing
|
47
|
+
ruby init.rb
|
48
|
+
|
49
|
+
Then point your web browser to:
|
50
|
+
http://localhost:7705/
|
51
|
+
|
52
|
+
|
53
|
+
== To use a shell command
|
54
|
+
|
55
|
+
|
56
|
+
Enter the shell command you want to run for in the browser form and press execute.
|
57
|
+
After a second the browser should fill with the results of the command.
|
58
|
+
try ls, df, cat "filename", and other shell commands
|
59
|
+
You should be able to run one command after another
|
60
|
+
|
61
|
+
|
62
|
+
There are two ways to add scripts to rwdshell directory.
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
== Creating a script
|
67
|
+
|
68
|
+
|
69
|
+
1. Use the "Create New Script" tab
|
70
|
+
<blockquote>
|
71
|
+
The first field is the most important. It is the filename that
|
72
|
+
will be created.
|
73
|
+
myshellscript
|
74
|
+
|
75
|
+
The following line for entry is a shell command.
|
76
|
+
|
77
|
+
The last line is for comment to describe the script
|
78
|
+
When you are finished press the CreateFile button
|
79
|
+
|
80
|
+
|
81
|
+
2. Manually add an entry for a script
|
82
|
+
|
83
|
+
You can use a text editor to create a record
|
84
|
+
put information on separate lines. You can have as many lines as you want
|
85
|
+
name the file with caps and no spaces and end with .sh
|
86
|
+
mynextscript.sh
|
87
|
+
|
88
|
+
Save your file to the scripts/ subdirectory
|
89
|
+
|
90
|
+
|
91
|
+
== Viewing a recorded script entry:
|
92
|
+
|
93
|
+
|
94
|
+
* Go to "List Scripts" tab
|
95
|
+
|
96
|
+
|
97
|
+
You can get a list of all scripts by clicking the listfiles button
|
98
|
+
|
99
|
+
To see the text of a script
|
100
|
+
Type in the name of the script you want.
|
101
|
+
|
102
|
+
type it without the sh ending
|
103
|
+
myscript
|
104
|
+
|
105
|
+
Then click the "ViewScript" button
|
106
|
+
|
107
|
+
If it finds the script it will open it. It displays the text the search box.
|
108
|
+
|
109
|
+
|
110
|
+
== Ruby Commands
|
111
|
+
|
112
|
+
|
113
|
+
At the Ruby tab here are some commands you might try
|
114
|
+
|
115
|
+
print "hello" + "\n"
|
116
|
+
|
117
|
+
bar=46; print "%s" % bar, "\n"
|
118
|
+
|
119
|
+
"abc".each_byte{|c| printf "<%c>", c}; print "\n"
|
120
|
+
|
121
|
+
"a\nb\nc\n".each_line{|l| print l}
|
122
|
+
|
123
|
+
for l in "a\nb\nc\n" ; print l ; end
|
124
|
+
|
125
|
+
print "%s" % "abcdef".length
|
126
|
+
wser window, or in another browser tab.
|
127
|
+
|
128
|
+
== Using over a Network
|
129
|
+
|
130
|
+
To serve the application over your local LAN,change the last line in the
|
131
|
+
init.rb file to something like:
|
132
|
+
RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
|
133
|
+
Then you should be able to login at: http://yourhostname:8080
|
134
|
+
|
135
|
+
You have to authorize yourself. The .rwuids example is a string with
|
136
|
+
the name of the authorization file, relative to the home directory
|
137
|
+
of the user that started the service. This file has to be in the form of:
|
138
|
+
|
139
|
+
user1 = password
|
140
|
+
user2 = pass phrase
|
141
|
+
|
142
|
+
Thus the file .rwduids might contain:
|
143
|
+
|
144
|
+
erik = secret
|
145
|
+
|
146
|
+
|
147
|
+
== Requirements:
|
148
|
+
RubyWebDialogs - I am using 0.0.11 2004-3-9<br>
|
149
|
+
This package you downloaded rwddemo should have a runtime version of
|
150
|
+
the needed rubywebdialog files<br>
|
151
|
+
|
152
|
+
Ruby I am using version 1.8.2
|
153
|
+
|
154
|
+
I have tested this under Linux-Debian kernel 2.6.9
|
155
|
+
|
156
|
+
== Operation:
|
157
|
+
The code files reside in the code directory and are combined before
|
158
|
+
the main Class is loaded
|
159
|
+
|
160
|
+
The rwd files in gui are combined before the gui is activated
|
161
|
+
|
162
|
+
== Installing:
|
163
|
+
|
164
|
+
unzip the file
|
165
|
+
then cd to the directory
|
166
|
+
unzip rwdashell-x.y.zip
|
167
|
+
|
168
|
+
|
169
|
+
== Trouble shooting:
|
170
|
+
|
171
|
+
If the program is not working, try looking at the ev subdirectory. That is where
|
172
|
+
the runtime of rubywebdialogs are.
|
173
|
+
|
174
|
+
for long term installation, I would suggest putting most files in a lib directory
|
175
|
+
like /usr/lib/rwdshell
|
176
|
+
then make a writable directory the local directory for command files to be written
|
177
|
+
like ~/rwdshell
|
178
|
+
|
179
|
+
|
180
|
+
Closing the browser doesn't terminate the application. You have to use the application's close-button And terminating the application doesn't terminate the application when running in network mode. You just log out.
|
181
|
+
|
182
|
+
Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
|
183
|
+
|
184
|
+
RubyWebDialogs is a platform independent graphical user interface for Ruby applications. It generates HTML and serves it with an internal HTTP server, so you can use your favorite web browser as the front end for your Ruby application. All this means, that it can be used on almost every platform, like Ruby itself. http://www.erikveen.dds.nl/rubywebdialogs/
|
185
|
+
|
186
|
+
|
187
|
+
For more information see:
|
188
|
+
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
189
|
+
|
190
|
+
For more information about RubyWebDialogs see:<br>
|
191
|
+
http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
192
|
+
|
193
|
+
Thanks, Steven Gibson
|
194
|
+
|
195
|
+
== Changelog
|
196
|
+
version 0.92
|
197
|
+
added script editing
|
198
|
+
script deletion
|
199
|
+
script renaming
|
200
|
+
added English module to RubyEval
|
201
|
+
added Env module to RubyEval
|
202
|
+
combined scriptrunner HowTo into shell HowTo
|
203
|
+
Changed order of tabs so script are first
|
204
|
+
|
205
|
+
version 0.91
|
206
|
+
updated for rwdtinker version 1.3
|
207
|
+
|
208
|
+
Version 0.9
|
209
|
+
updated for rwdtinker version 1.23
|
210
|
+
|
211
|
+
Version 0.7
|
212
|
+
includes script playing and Ruby eval window.
|
213
|
+
|
214
|
+
Version 0.6
|
215
|
+
added script runner
|
216
|
+
list scripts
|
217
|
+
create scripts
|
218
|
+
Replaced Readme.txt with HowTo.html
|
219
|
+
|
220
|
+
Version 0.3
|
221
|
+
Changed directory structure to work with rwdtinker 0.9 or greater.
|
222
|
+
Improved the filename selection
|
223
|
+
Changed the layout on the list screen
|
224
|
+
|
225
|
+
|
226
|
+
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
|
data/rwd_files/HowTo_Tinker.txt
CHANGED
@@ -109,6 +109,24 @@ To exit, press the x inside the browser window.
|
|
109
109
|
You change the $lang constant in Tinker config file in the configuration directory
|
110
110
|
You can see one translation on the install applet tab, after you have installed and applet
|
111
111
|
|
112
|
+
== Using over a Network
|
113
|
+
|
114
|
+
To serve the application over your local LAN,change the last line in the
|
115
|
+
init.rb file to something like:
|
116
|
+
RwdTinker.file(RWDFile).serve(8080, "-r" ? ".rwduids" : nil)
|
117
|
+
Then you should be able to login at: http://yourhostname:8080
|
118
|
+
|
119
|
+
You have to authorize yourself. The .rwuids example is a string with
|
120
|
+
the name of the authorization file, relative to the home directory
|
121
|
+
of the user that started the service. This file has to be in the form of:
|
122
|
+
|
123
|
+
user1 = password
|
124
|
+
user2 = pass phrase
|
125
|
+
|
126
|
+
Thus the file .rwduids might contain:
|
127
|
+
|
128
|
+
erik = secret
|
129
|
+
|
112
130
|
== Requirements:
|
113
131
|
RubyWebDialogs - I am using 0.1.2
|
114
132
|
This package you downloaded should have a runtime version of
|
@@ -166,6 +184,7 @@ Thanks go to:
|
|
166
184
|
rwdtinker is copyright (c) 2004 Steven Gibson. It is free software, and may be redistributed
|
167
185
|
under the terms of the GPL licence:
|
168
186
|
|
187
|
+
== Contact
|
169
188
|
For more information see:
|
170
189
|
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
171
190
|
|
@@ -176,6 +195,19 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
|
176
195
|
Thanks, Steven Gibson
|
177
196
|
|
178
197
|
== Changelog:
|
198
|
+
version 1.3
|
199
|
+
refactored gui files to do easier i10n
|
200
|
+
removed lang directories under gui
|
201
|
+
added lang files under lang dir
|
202
|
+
removed redundant code files left from moving applet handling to back window
|
203
|
+
removed zipped applets not yet refactored
|
204
|
+
|
205
|
+
version 1.24
|
206
|
+
added internet usage instructions to HowTo_Tinker.txt
|
207
|
+
removed HowTo_Tinker.html
|
208
|
+
added panels for Helpabout
|
209
|
+
changed photo logo tab to only have embedded picture, no button
|
210
|
+
|
179
211
|
version 1.23
|
180
212
|
moving diagnostic tab and applet handling tabs to second window
|
181
213
|
added selection panel tab to choose secondary windows.
|
data/scripts/echo2.sh
ADDED