rwdshell 0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +57 -0
- data/bin/rwdshell +19 -0
- data/code/ag1core/aa0begin.rb +18 -0
- data/code/ag1core/rwdtinkerversion.rb +15 -0
- data/code/al5languagefiles/alanguagehashbegin.rb +4 -0
- data/code/al5languagefiles/languagehash.rb +4 -0
- data/code/al5languagefiles/templangfile.rb +6 -0
- data/code/al5languagefiles/zlanguagehashend.rb +6 -0
- data/code/cb7rubyeval/cb7rubyeval.rb +23 -0
- data/code/dd0shelleval/dd0shelleval.rb +20 -0
- data/code/ek0shellscripts/ek0playscript.rb +22 -0
- data/code/ek0shellscripts/em0listscripts.rb +12 -0
- data/code/ek0shellscripts/em1viewscript.rb +18 -0
- data/code/ek0shellscripts/en0createnewscript.rb +18 -0
- data/code/gh9calendar/gh9calendar.rb +16 -0
- data/code/ii3calculator/ca2multiply.rb +5 -0
- data/code/ii3calculator/ca4add.rb +5 -0
- data/code/lm1installapplets/ll5listzips.rb +14 -0
- data/code/lm1installapplets/lm1installapplet.rb +20 -0
- data/code/ssdiagnostictab/diagnostictab.rb +20 -0
- data/code/xa5rwdtinkercallable/callable.rb +13 -0
- data/code/xb1rwdtinkerbackwindow/05listinstalledfiles.rb +11 -0
- data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +20 -0
- data/code/xb1rwdtinkerbackwindow/ll1openname.rb +18 -0
- data/code/xb1rwdtinkerbackwindow/ll5listzips.rb +14 -0
- data/code/xb1rwdtinkerbackwindow/lm1installapplet.rb +20 -0
- data/code/xb1rwdtinkerbackwindow/mm1removeapplet.rb +28 -0
- data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -0
- data/code/zz0applicationend/zz0end.rb +4 -0
- data/configuration/aa0rwdframework.cnf +11 -0
- data/configuration/ab1tinkerwin2.cnf +3 -0
- data/configuration/ek0playscripts.cnf +2 -0
- data/configuration/gh1rwdcalendar.cnf +26 -0
- data/ev/browser.rb +109 -0
- data/ev/ftools.rb +170 -0
- data/ev/net.rb +750 -0
- data/ev/ruby.rb +819 -0
- data/ev/rwd.rb +1848 -0
- data/ev/sgml.rb +236 -0
- data/ev/thread.rb +63 -0
- data/ev/tree.rb +343 -0
- data/ev/xml.rb +4 -0
- data/extras/cal.rb +166 -0
- data/gui/en/aa2core/aa0rwdtop.rwd +3 -0
- data/gui/en/cb7rubyeval/cb7rwdrubyeval.rwd +18 -0
- data/gui/en/dd0rwdshelleval/dd0rwdshelleval.rwd +16 -0
- data/gui/en/ek0shellscripts/ek0playscript.rwd +15 -0
- data/gui/en/ek0shellscripts/el0listscripts.rwd +25 -0
- data/gui/en/ek0shellscripts/en0createscripts.rwd +24 -0
- data/gui/en/hl9calendar/hl9calendar.rwd +18 -0
- data/gui/en/ii3calculator/ca0rwdcalc.rwd +17 -0
- data/gui/en/ll1selectiontabbegin/selectiontabbegin.rwd +15 -0
- data/gui/en/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +11 -0
- data/gui/en/lz1selectiontabend/endselectiontab.rwd +1 -0
- data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +5 -0
- data/gui/en/ub7rubyeval/rubyeval.rwd +3 -0
- data/gui/en/uk5scriptrunnerdocuments/documents.rwd +3 -0
- data/gui/en/uu5rwddocuments/uu5documents.rwd +13 -0
- data/gui/en/uu6rwdtinkerwin2documents/uu5documents.rwd +4 -0
- data/gui/en/vv1docshellxp/vvdocshellxp.rwd +4 -0
- data/gui/en/ww0documentsend/ww0documentend.rwd +6 -0
- data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +4 -0
- data/gui/en/xa1versionwindow/1appname.rwd +17 -0
- data/gui/en/xa5rwdtinkercallablewindow/1appname.rwd +15 -0
- data/gui/en/xa5rwdtinkercallablewindow/9end.rwd +4 -0
- data/gui/en/xb1rwdtinkerbackwindow/1appname.rwd +3 -0
- data/gui/en/xb1rwdtinkerbackwindow/2tab1.rwd +9 -0
- data/gui/en/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +31 -0
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +42 -0
- data/gui/en/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +33 -0
- data/gui/en/xb1rwdtinkerbackwindow/9backend.rwd +5 -0
- data/gui/en/ya1helpaboutbegin/ya0helpscreenstart.rwd +1 -0
- data/gui/en/yg5rwdhelpabout/1appname.rwd +2 -0
- data/gui/en/yg5rwdhelpabout/3copyright.rwd +1 -0
- data/gui/en/yg5rwdhelpabout/5version.rwd +9 -0
- data/gui/en/yg6rwdwin2helpabout/1appname.rwd +2 -0
- data/gui/en/yg6rwdwin2helpabout/3copyright.rwd +1 -0
- data/gui/en/yg6rwdwin2helpabout/5version.rwd +9 -0
- data/gui/en/za1applicationend/yy9rwdend.rwd +2 -0
- data/gui/es/aa2core/aa0rwdtop.rwd +3 -0
- data/gui/es/cb7rubyeval/cb7rwdrubyeval.rwd +18 -0
- data/gui/es/dd0rwdshelleval/dd0rwdshelleval.rwd +16 -0
- data/gui/es/ek0shellscripts/ek0playscript.rwd +15 -0
- data/gui/es/ek0shellscripts/el0listscripts.rwd +25 -0
- data/gui/es/ek0shellscripts/en0createscripts.rwd +24 -0
- data/gui/es/hl9calendar/hl9calendar.rwd +18 -0
- data/gui/es/ii3calculator/ca0rwdcalc.rwd +17 -0
- data/gui/es/ll1selectiontabbegin/selectiontabbegin.rwd +15 -0
- data/gui/es/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +11 -0
- data/gui/es/lz1selectiontabend/endselectiontab.rwd +1 -0
- data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +5 -0
- data/gui/es/ub7rubyeval/rubyeval.rwd +3 -0
- data/gui/es/uk5scriptrunnerdocuments/documents.rwd +3 -0
- data/gui/es/uu5rwddocuments/uu5documents.rwd +13 -0
- data/gui/es/uu6rwdtinkerwin2documents/uu5documents.rwd +4 -0
- data/gui/es/vv1docshellxp/vvdocshellxp.rwd +4 -0
- data/gui/es/ww0documentsend/ww0documentend.rwd +6 -0
- data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +4 -0
- data/gui/es/xa1versionwindow/1appname.rwd +17 -0
- data/gui/es/xa5rwdtinkercallablewindow/1appname.rwd +15 -0
- data/gui/es/xa5rwdtinkercallablewindow/9end.rwd +4 -0
- data/gui/es/xb1rwdtinkerbackwindow/1appname.rwd +3 -0
- data/gui/es/xb1rwdtinkerbackwindow/2tab1.rwd +9 -0
- data/gui/es/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +31 -0
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +42 -0
- data/gui/es/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +33 -0
- data/gui/es/xb1rwdtinkerbackwindow/9backend.rwd +5 -0
- data/gui/es/ya1helpaboutbegin/ya0helpscreenstart.rwd +1 -0
- data/gui/es/yg5rwdhelpabout/1appname.rwd +2 -0
- data/gui/es/yg5rwdhelpabout/3copyright.rwd +1 -0
- data/gui/es/yg5rwdhelpabout/5version.rwd +9 -0
- data/gui/es/yg6rwdwin2helpabout/1appname.rwd +2 -0
- data/gui/es/yg6rwdwin2helpabout/3copyright.rwd +1 -0
- data/gui/es/yg6rwdwin2helpabout/5version.rwd +9 -0
- data/gui/es/za1applicationend/yy9rwdend.rwd +2 -0
- data/gui/nl/aa2core/aa0rwdtop.rwd +3 -0
- data/gui/nl/cb7rubyeval/cb7rwdrubyeval.rwd +18 -0
- data/gui/nl/dd0rwdshelleval/dd0rwdshelleval.rwd +16 -0
- data/gui/nl/ek0shellscripts/ek0playscript.rwd +15 -0
- data/gui/nl/ek0shellscripts/el0listscripts.rwd +25 -0
- data/gui/nl/ek0shellscripts/en0createscripts.rwd +24 -0
- data/gui/nl/hl9calendar/hl9calendar.rwd +18 -0
- data/gui/nl/ii3calculator/ca0rwdcalc.rwd +17 -0
- data/gui/nl/ll1selectiontabbegin/selectiontabbegin.rwd +15 -0
- data/gui/nl/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +11 -0
- data/gui/nl/lz1selectiontabend/endselectiontab.rwd +1 -0
- data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +5 -0
- data/gui/nl/ub7rubyeval/rubyeval.rwd +3 -0
- data/gui/nl/uk5scriptrunnerdocuments/documents.rwd +3 -0
- data/gui/nl/uu5rwddocuments/uu5documents.rwd +13 -0
- data/gui/nl/uu6rwdtinkerwin2documents/uu5documents.rwd +4 -0
- data/gui/nl/vv1docshellxp/vvdocshellxp.rwd +4 -0
- data/gui/nl/ww0documentsend/ww0documentend.rwd +6 -0
- data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +4 -0
- data/gui/nl/xa1versionwindow/1appname.rwd +17 -0
- data/gui/nl/xa5rwdtinkercallablewindow/1appname.rwd +15 -0
- data/gui/nl/xa5rwdtinkercallablewindow/9end.rwd +4 -0
- data/gui/nl/xb1rwdtinkerbackwindow/1appname.rwd +3 -0
- data/gui/nl/xb1rwdtinkerbackwindow/2tab1.rwd +9 -0
- data/gui/nl/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +31 -0
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +42 -0
- data/gui/nl/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +33 -0
- data/gui/nl/xb1rwdtinkerbackwindow/9backend.rwd +5 -0
- data/gui/nl/ya1helpaboutbegin/ya0helpscreenstart.rwd +1 -0
- data/gui/nl/yg5rwdhelpabout/1appname.rwd +2 -0
- data/gui/nl/yg5rwdhelpabout/3copyright.rwd +1 -0
- data/gui/nl/yg5rwdhelpabout/5version.rwd +9 -0
- data/gui/nl/yg6rwdwin2helpabout/1appname.rwd +2 -0
- data/gui/nl/yg6rwdwin2helpabout/3copyright.rwd +1 -0
- data/gui/nl/yg6rwdwin2helpabout/5version.rwd +9 -0
- data/gui/nl/za1applicationend/yy9rwdend.rwd +2 -0
- data/init.rb +164 -0
- data/installed/rwdcalendar-0.4.inf +6 -0
- data/installed/rwdrubyeval-0.3.inf +5 -0
- data/installed/rwdscriptrunner-0.3.inf +9 -0
- data/installed/rwdshellxp-0.4.inf +5 -0
- data/installed/rwdtinkerwin2-0.5.inf +16 -0
- data/lang/en/rwdcore/languagefile.rb +6 -0
- data/lang/es/rwdcore/languagefile.rb +4 -0
- data/lang/nl/rwdcore/languagefile.rb +4 -0
- data/lib/temp.rb +1 -0
- data/rwd_files/HowTo_RubyEval.html +80 -0
- data/rwd_files/HowTo_Scriptrunner.txt +171 -0
- data/rwd_files/HowTo_Shell.txt +94 -0
- data/rwd_files/HowTo_Tinker.html +370 -0
- data/rwd_files/HowTo_Tinker.txt +244 -0
- data/rwd_files/HowTo_TinkerWin2.txt +202 -0
- data/rwd_files/Readme.txt +57 -0
- data/rwd_files/favicon.ico +0 -0
- data/rwd_files/rdoc-style.css +175 -0
- data/rwd_files/rwdapplications.html +54 -0
- data/rwd_files/rwdindex.html +6 -0
- data/scripts/date.sh +2 -0
- data/scripts/lister.sh +2 -0
- data/scripts/uname.sh +2 -0
- data/tests/rwdtinkertestEN.rb +87 -0
- data/tests/temptest.out +18 -0
- data/tests/totranslate.lang +93 -0
- data/zips/rwdaviewphoto-0.3.zip +0 -0
- data/zips/rwdhelloworld-0.2.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
- metadata +227 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
<window name = "applicationversion" title="Application Version">
|
2
|
+
|
3
|
+
<row> <p></row>
|
4
|
+
<p>%versionappnamedisplay%</p>
|
5
|
+
<row> <p></row>
|
6
|
+
<p>%versioncopyrightdisplay%</p>
|
7
|
+
|
8
|
+
<row> <p></row>
|
9
|
+
<p>%versionnumberdisplay%</p>
|
10
|
+
|
11
|
+
<horizontal>
|
12
|
+
<cancel/>
|
13
|
+
</horizontal>
|
14
|
+
|
15
|
+
</window>
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<window name = "rwdtinkerhelpwindow" title="RwdTinker Help">
|
2
|
+
<tabs>
|
3
|
+
<tab name="main" caption="Help">
|
4
|
+
<row> <p></row>
|
5
|
+
<row> <p>RwdTinker</row>
|
6
|
+
<cancel/>
|
7
|
+
</tab>
|
8
|
+
|
9
|
+
<tab name="nexttab" caption="Next">
|
10
|
+
<row> <p></row>
|
11
|
+
<row> <p>RwdTinker Help</row>
|
12
|
+
<cancel/>
|
13
|
+
</tab>
|
14
|
+
|
15
|
+
</tabs>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<tab name="diagnostictab" caption="Diagnostic Tab">
|
2
|
+
<horizontal>
|
3
|
+
<button caption="View Ruby Version" action="runrubyversion"/>
|
4
|
+
|
5
|
+
|
6
|
+
</horizontal>
|
7
|
+
<p>%rubyversion%</p>
|
8
|
+
|
9
|
+
|
10
|
+
<table>
|
11
|
+
<row> <p> </row>
|
12
|
+
|
13
|
+
</table>
|
14
|
+
|
15
|
+
<horizontal>
|
16
|
+
<button caption="view platform" action="runviewplatform"/>
|
17
|
+
|
18
|
+
</horizontal>
|
19
|
+
|
20
|
+
<p>%platformdisplay%</p>
|
21
|
+
<horizontal>
|
22
|
+
<button caption="View rwdtinker Version" action="rwdtinkerversiondiagnostic"/>
|
23
|
+
|
24
|
+
</horizontal>
|
25
|
+
|
26
|
+
<p>%rwdtinkerversionreturn%</p>
|
27
|
+
|
28
|
+
</tab>
|
29
|
+
|
30
|
+
|
31
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
<tab name="filelister" caption="List Applets">
|
2
|
+
|
3
|
+
|
4
|
+
<table>
|
5
|
+
<row> <p align="right">File Name:</p> <text name="a_installlist"/> </row>
|
6
|
+
|
7
|
+
</table>
|
8
|
+
|
9
|
+
<horizontal>
|
10
|
+
<button caption="View Install Text" action="openname"/>
|
11
|
+
<button caption="Cancel" action="main"/>
|
12
|
+
</horizontal>
|
13
|
+
<p>%displaytext%</p>
|
14
|
+
|
15
|
+
<table>
|
16
|
+
<row> <p align="right">File Name:</p> <text name="a_removeapplet"/> </row>
|
17
|
+
|
18
|
+
</table>
|
19
|
+
|
20
|
+
<p>%removeapplettext%</p>
|
21
|
+
<horizontal>
|
22
|
+
<button caption="remove applet" action="removeapplet"/>
|
23
|
+
<button caption="Cancel" action="main"/>
|
24
|
+
|
25
|
+
</horizontal>
|
26
|
+
<table>
|
27
|
+
<row> <p> </row>
|
28
|
+
<row> <p align="right">View the list of installation files </row>
|
29
|
+
|
30
|
+
</table>
|
31
|
+
<horizontal>
|
32
|
+
|
33
|
+
<button caption="List Files" action="listinstalledfiles"/>
|
34
|
+
|
35
|
+
</horizontal>
|
36
|
+
|
37
|
+
<p>%%filesresult%%</p>
|
38
|
+
|
39
|
+
</tab>
|
40
|
+
|
41
|
+
|
42
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<tab name="zipslister" caption="List Zips">
|
2
|
+
|
3
|
+
<table>
|
4
|
+
<row> <p align="right">File Name:</p> <text name="a_installapplet"/> </row>
|
5
|
+
|
6
|
+
</table>
|
7
|
+
|
8
|
+
<horizontal>
|
9
|
+
<button caption="install applet" action="installapplet"/>
|
10
|
+
<button caption="Cancel" action="main"/>
|
11
|
+
|
12
|
+
</horizontal>
|
13
|
+
<p>%installapplettext%</p>
|
14
|
+
|
15
|
+
|
16
|
+
<table>
|
17
|
+
<row> <p align="right">Click below to view the list of zip files </row>
|
18
|
+
|
19
|
+
</table>
|
20
|
+
|
21
|
+
<horizontal>
|
22
|
+
<button caption="List applets available for installing" action="listzipfilestoinstall"/>
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
</horizontal>
|
27
|
+
|
28
|
+
<p>%%zipslistresult%%</p>
|
29
|
+
|
30
|
+
</tab>
|
31
|
+
|
32
|
+
|
33
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
<helpwindow name="main" title="Help About">
|
@@ -0,0 +1 @@
|
|
1
|
+
<row> <p align="center">copyright s. gibson 2004</p></row>
|
@@ -0,0 +1 @@
|
|
1
|
+
<row> <p align="center">copyright s. gibson 2004</p></row>
|
data/init.rb
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
|
2
|
+
#***********************************************************************
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
+
#* Copyright (c) 2004 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
|
+
require "ev/rwd"
|
25
|
+
require 'fileutils'
|
26
|
+
|
27
|
+
$progdir = File::expand_path( File.dirname(__FILE__))
|
28
|
+
|
29
|
+
$tempdoc = " "
|
30
|
+
|
31
|
+
def findfiles(d)
|
32
|
+
a = Array.new(Dir[d].entries.sort)
|
33
|
+
#loop through and get the files names
|
34
|
+
a.each do |x|
|
35
|
+
#adjust the filters to the files you want to see...
|
36
|
+
if(!test(?d,x))
|
37
|
+
# only rwd files
|
38
|
+
if x =~ /rb|rwd|txt/
|
39
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
40
|
+
$tempdoc+=fileA.read #reads the file into the doc string
|
41
|
+
fileA.close
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
|
48
|
+
# Read in the configuration files
|
49
|
+
|
50
|
+
Dir.chdir("configuration") #changes the current working directory
|
51
|
+
|
52
|
+
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
|
53
|
+
@doc = ""
|
54
|
+
fileList.length.times{ #opening of a block
|
55
|
+
fileName=fileList.pop #pops the first item out of the Array
|
56
|
+
load fileName #loads the the config file thats in fileName
|
57
|
+
} #closing block
|
58
|
+
# END of configuration reading
|
59
|
+
|
60
|
+
Dir.chdir($progdir) # change back to top program directory
|
61
|
+
|
62
|
+
# build the Language hash file from the parts
|
63
|
+
startlangdir = @@langdir +"/" + $lang
|
64
|
+
#get a list of the files and subdirectories on the starting directory only
|
65
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
66
|
+
#loop through the list, ignore the files and add all new directories found
|
67
|
+
alanghash.each do |x|
|
68
|
+
#if a directory...
|
69
|
+
if(test(?d,x))
|
70
|
+
# add to the original list of directories
|
71
|
+
@@tmproot = x + "/**"
|
72
|
+
#adds the new ones to the array
|
73
|
+
blanghash = Dir[@@tmproot].entries.sort
|
74
|
+
blanghash.each do |x|
|
75
|
+
if(test(?d,x))
|
76
|
+
alanghash.push(x) #appends to the end of the array...
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
81
|
+
alanghash.each do |x|
|
82
|
+
#if it is a file...
|
83
|
+
if(!test(?d,x))
|
84
|
+
alanghash.delete(x)
|
85
|
+
else #it is a directory...
|
86
|
+
findfiles(x + "/**")
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
fileLangHash=File.open(TempLangHashFile,"w") #deletes and opens a the file in fileName
|
91
|
+
fileLangHash.write($tempdoc) #writes the contents of doc into the file
|
92
|
+
fileLangHash.close
|
93
|
+
# END of Lang building
|
94
|
+
$tempdoc = " "
|
95
|
+
Dir.chdir($progdir) # change back to top program directory
|
96
|
+
|
97
|
+
# build the actual program from the code parts
|
98
|
+
#get a list of the files and subdirectories on the starting directory only
|
99
|
+
a = Array.new(Dir[@@codedir].entries.sort)
|
100
|
+
#loop through the list, ignore the files and add all new directories found
|
101
|
+
a.each do |x|
|
102
|
+
#if a directory...
|
103
|
+
if(test(?d,x))
|
104
|
+
# add to the original list of directories
|
105
|
+
@@root = x + "/**"
|
106
|
+
#adds the new ones to the array
|
107
|
+
b = Dir[@@root].entries.sort
|
108
|
+
b.each do |x|
|
109
|
+
if(test(?d,x))
|
110
|
+
a.push(x) #appends to the end of the array...
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
a.each do |x|
|
116
|
+
#if it is a file...
|
117
|
+
if(!test(?d,x))
|
118
|
+
a.delete(x)
|
119
|
+
else #it is a directory...
|
120
|
+
findfiles(x + "/**")
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
fileB=File.open(CodeNameFile,"w") #deletes and opens a the file in fileName
|
125
|
+
fileB.write($tempdoc) #writes the contents of doc into the file
|
126
|
+
fileB.close
|
127
|
+
require CodeName # load the program file
|
128
|
+
|
129
|
+
# build the actual GUI from the gui parts
|
130
|
+
$tempdoc = " "
|
131
|
+
#get a list of the files and subdirectories on the starting directory only
|
132
|
+
a = Array.new(Dir[@@guidir].entries.sort)
|
133
|
+
#loop through the list, ignore the files and add all new directories found
|
134
|
+
a.each do |x|
|
135
|
+
#if a directory...
|
136
|
+
if(test(?d,x))
|
137
|
+
#use this new dir find to add to the original list of directories
|
138
|
+
@@root = x + "/**"
|
139
|
+
#adds the new ones to the array
|
140
|
+
b = Dir[@@root].entries.sort
|
141
|
+
b.each do |x|
|
142
|
+
if(test(?d,x))
|
143
|
+
a.push(x) #appends to the end of the array...
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end
|
147
|
+
end
|
148
|
+
a.each do |x|
|
149
|
+
#if it is a file...
|
150
|
+
if(!test(?d,x))
|
151
|
+
a.delete(x)
|
152
|
+
|
153
|
+
else #it is a directory...
|
154
|
+
findfiles(x + "/**")
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
fileB=File.open(RWDFile,"w") #deletes and opens a the file in fileName
|
159
|
+
fileB.write($tempdoc) #writes the contents of doc into the file
|
160
|
+
fileB.close
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
RwdTinker.file(RWDFile).serve($port) # start the main class and program
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
|
2
|
+
configuration/ab1tinkerwin2.cnf
|
3
|
+
code/xb1rwdtinkerbackwindow
|
4
|
+
gui/en/ll5rwdtinkerwin2selectiontab
|
5
|
+
gui/en/xb1rwdtinkerbackwindow
|
6
|
+
gui/en/uu6rwdtinkerwin2documents
|
7
|
+
gui/en/yg6rwdwin2helpabout
|
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
|
16
|
+
rwd_files/HowTo_TinkerWin2.txt
|
data/lib/temp.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# this file does nothing
|
@@ -0,0 +1,80 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<title>
|
4
|
+
rwdrubyeval - for rwdtinker and RubyWebDialogs
|
5
|
+
</title>
|
6
|
+
</head>
|
7
|
+
<body>
|
8
|
+
<h3>
|
9
|
+
|
10
|
+
run Ruby commands in the browser
|
11
|
+
|
12
|
+
<p>
|
13
|
+
At the Ruby tab here are some commands you might try
|
14
|
+
<p>
|
15
|
+
print "hello" + "\n"
|
16
|
+
<p>
|
17
|
+
bar=46; print "%s" % bar, "\n"
|
18
|
+
<p>
|
19
|
+
"abc".each_byte{|c| printf "<%c>", c}; print "\n"
|
20
|
+
<p>
|
21
|
+
"a\nb\nc\n".each_line{|l| print l}
|
22
|
+
<p>
|
23
|
+
for l in "a\nb\nc\n" ; print l ; end
|
24
|
+
<p>
|
25
|
+
print "%s" % "abcdef".length
|
26
|
+
<p>
|
27
|
+
|
28
|
+
<p>
|
29
|
+
The GUI interface used is RubyWebDialogs
|
30
|
+
<p>
|
31
|
+
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/
|
32
|
+
<p>
|
33
|
+
|
34
|
+
Install rwdtinker<br>
|
35
|
+
unzip this applet in the directory where you put rwdtinker
|
36
|
+
<p>
|
37
|
+
Start the program by typing<br>
|
38
|
+
ruby init.rb
|
39
|
+
<p>
|
40
|
+
Then point your web browser to:<br>
|
41
|
+
http://localhost:7701/
|
42
|
+
<p>
|
43
|
+
The rwdtinker framework is used by:<br>
|
44
|
+
|
45
|
+
Spliting the source code and the gui code into atomic parts and use init.rb to merge the parts together.
|
46
|
+
<p>
|
47
|
+
With the framework, we are able to ship a "plugin" or as I calling them "applet" that can be dropped into a directory and installed automatically. Also uninstalled. I am calling this framework Tinker, so the core program I call rwdtinker. My wife, Charlotte. suggested the name. It relates to the the "Tinker Toys" that has blocks and dowls and shapes that can be assembled by children and take different shapes. Without the word toy, it reminds us if the older English meaning of "a person who repairs pots and household devices by soldering and hammering.
|
48
|
+
<p>
|
49
|
+
The delivered applet is setup in the required directory structure with code configueration gui including help files location of documentation rwd_files = where documention for the applet can go. installed = a inf file that lists the manifest of files
|
50
|
+
<p>
|
51
|
+
This package is zipped up and uploaded as a file like rwdashedule-0.2.zip
|
52
|
+
<p>
|
53
|
+
The enduser who has the rwdtinker program drops the zip file into a directory called zips. I have parts of rwdtinker now (for Linux) that can install it automatically and remove it (based on the .inf file)
|
54
|
+
<p>
|
55
|
+
</h3>
|
56
|
+
<pre>
|
57
|
+
Requirements:
|
58
|
+
RubyWebDialogs - I am using 0.1.1 2004-12-5
|
59
|
+
|
60
|
+
Ruby I am using version 1.8.2
|
61
|
+
|
62
|
+
|
63
|
+
I have tested this under Linux-Debian kernel 2.6.9
|
64
|
+
|
65
|
+
PROBLEMS:
|
66
|
+
you should consult what beginning 3 characters for you files.
|
67
|
+
|
68
|
+
|
69
|
+
don't type in the extension .sch
|
70
|
+
|
71
|
+
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.
|
72
|
+
|
73
|
+
Don't use the back-button of the browser! Strange and unpredictable things may and will happen!
|
74
|
+
|
75
|
+
Steven Gibson
|
76
|
+
steven@superant.com
|
77
|
+
http://rwdapplications.rubyforge.org/wiki/wiki.pl
|
78
|
+
</pre>
|
79
|
+
</body>
|
80
|
+
</html>
|