rwdtinker 1.2 → 1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/code/ag1core/aa0begin.rb +1 -0
- data/code/ag1core/rwdtinkerversion.rb +15 -0
- data/code/xa5rwdtinkercallable/callable.rb +13 -0
- data/code/{ll0listapplets → xb1rwdtinkerbackwindow}/05listinstalledfiles.rb +0 -0
- data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +21 -0
- data/code/{ll0listapplets → xb1rwdtinkerbackwindow}/ll1openname.rb +0 -0
- data/code/{lm1installapplets → xb1rwdtinkerbackwindow}/ll5listzips.rb +0 -0
- data/code/{lm1installapplets → xb1rwdtinkerbackwindow}/lm1installapplet.rb +0 -0
- data/code/{ll0listapplets → xb1rwdtinkerbackwindow}/mm1removeapplet.rb +0 -0
- data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -0
- data/configuration/aa0rwdframework.cnf +5 -3
- data/configuration/ab1tinkerwin2.cnf +4 -0
- data/gui/aa2core/aa0rwdtop.rwd +4 -0
- data/gui/cc0viewphoto/cc0openphoto.rwd +17 -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/{es/uu5rwddocuments → uu5rwddocuments}/uu5documents.rwd +9 -7
- data/gui/uu6rwdtinkerwin2documents/uu5documents.rwd +6 -0
- data/gui/ww0documentsend/ww0documentend.rwd +7 -0
- data/gui/wz6finaltabs/xx0rwdfirsttab.rwd +6 -0
- data/gui/xa1versionwindow/1appname.rwd +19 -0
- 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/yy5helpaboutend/helpscreenend.rwd +3 -0
- data/gui/za1applicationend/yy9rwdend.rwd +4 -0
- data/init.rb +91 -6
- data/installed/rwdtinkerwin2-0.5.inf +8 -0
- data/installed/rwdviewlogo-0.4.inf +4 -0
- 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 +7 -0
- data/{code/al5languagefiles/zlanguagehashend.rb → lang/vlanguagehashend.rb} +0 -0
- data/lang/wlocallangstart.rb +5 -0
- data/lang/xlocallangfile.rb +7 -0
- data/lang/zlocallangend.rb +2 -0
- data/rwd_files/HowTo_Tinker.txt +42 -0
- data/rwd_files/HowTo_TinkerWin2.txt +202 -0
- data/zips/{rwdhelloworld-0.2.zip → rwdhelloworld-0.3.zip} +0 -0
- metadata +52 -65
- data/code/al5languagefiles/templangfile.rb +0 -6
- data/gui/en/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/en/cc0viewphoto/cc0openphoto.rwd +0 -17
- data/gui/en/ll5listapplets/ll0rwdlistapplets.rwd +0 -42
- data/gui/en/ll9rwdlistzips/ll5rwdlistzips.rwd +0 -33
- data/gui/en/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/en/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/en/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/en/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/en/xx9photoview/xx9photoview.rwd +0 -3
- data/gui/en/ya1helpbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/en/yg5rwdhelp/yf0helpscreen.rwd +0 -2
- data/gui/en/yg5rwdhelp/yf6rwdtinker.rwd +0 -3
- data/gui/en/yg5rwdhelp/yg0helpscreen.rwd +0 -1
- data/gui/en/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/es/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/es/cc0viewphoto/cc0openphoto.rwd +0 -17
- data/gui/es/ll5listapplets/ll0rwdlistapplets.rwd +0 -41
- data/gui/es/ll9rwdlistzips/ll5rwdlistzips.rwd +0 -33
- data/gui/es/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/es/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/es/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/es/xx9photoview/xx9photoview.rwd +0 -3
- data/gui/es/ya1helpbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/es/yg5rwdhelp/yf0helpscreen.rwd +0 -2
- data/gui/es/yg5rwdhelp/yf6rwdtinker.rwd +0 -3
- data/gui/es/yg5rwdhelp/yg0helpscreen.rwd +0 -1
- data/gui/es/za1applicationend/yy9rwdend.rwd +0 -2
- data/gui/nl/aa2core/aa0rwdtop.rwd +0 -3
- data/gui/nl/cc0viewphoto/cc0openphoto.rwd +0 -17
- data/gui/nl/ll5listapplets/ll0rwdlistapplets.rwd +0 -41
- data/gui/nl/ll9rwdlistzips/ll5rwdlistzips.rwd +0 -33
- data/gui/nl/tt0documentsbegin/tt0documentbegin.rwd +0 -5
- data/gui/nl/uu5rwddocuments/uu5documents.rwd +0 -13
- data/gui/nl/ww0documentsend/ww0documentend.rwd +0 -6
- data/gui/nl/wz6finaltabs/xx0rwdfirsttab.rwd +0 -4
- data/gui/nl/xx9photoview/xx9photoview.rwd +0 -3
- data/gui/nl/ya1helpbegin/ya0helpscreenstart.rwd +0 -1
- data/gui/nl/yg5rwdhelp/yf0helpscreen.rwd +0 -2
- data/gui/nl/yg5rwdhelp/yf6rwdtinker.rwd +0 -3
- data/gui/nl/yg5rwdhelp/yg0helpscreen.rwd +0 -1
- data/gui/nl/za1applicationend/yy9rwdend.rwd +0 -2
- data/installed/rwdlistapplets-0.4.inf +0 -5
- data/installed/rwdlistzips-0.4.inf +0 -4
- data/installed/rwdviewphoto-0.3.inf +0 -9
- data/rwd_files/HowTo_Tinker.html +0 -365
- data/zips/arubyslippers-0.7.zip +0 -0
- data/zips/rwdamovies-0.5.zip +0 -0
- data/zips/rwdaschedule-0.3.zip +0 -0
- data/zips/rwdaviewphoto-0.3.zip +0 -0
- data/zips/rwdlistapplets-0.4.zip +0 -0
- data/zips/rwdlistzips-0.4.zip +0 -0
- data/zips/rwdrefreshacpi-0.1.zip +0 -0
data/code/ag1core/aa0begin.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
4
|
+
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
|
+
|
6
|
+
# return the version constant defined in the config file
|
7
|
+
def runrwdtinkerversion
|
8
|
+
@rwd_window = "applicationversion"
|
9
|
+
@versionappnamedisplay = "RwdTinker"
|
10
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
11
|
+
@versionnumberdisplay = "Version " + RwdTinkerVersion
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
4
|
+
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
|
+
|
6
|
+
# call the rwdtinker helpwindow
|
7
|
+
def runrwdtinkerhelpwindow
|
8
|
+
@rwd_window = "rwdtinkerhelpwindow"
|
9
|
+
end
|
10
|
+
def runrwdtinkerbackwindow
|
11
|
+
@rwd_window = "tinkerbackwindow"
|
12
|
+
end
|
13
|
+
|
File without changes
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
4
|
+
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
|
+
|
6
|
+
# return the Ruby constant
|
7
|
+
def runrubyversion
|
8
|
+
@rubyversion = "Version " + VERSION
|
9
|
+
end
|
10
|
+
|
11
|
+
# return the platform constan
|
12
|
+
def runviewplatform
|
13
|
+
@platformdisplay = "Platform is " + RUBY_PLATFORM
|
14
|
+
end
|
15
|
+
|
16
|
+
# return Rwdtinker version to diagnostic tab
|
17
|
+
def rwdtinkerversiondiagnostic
|
18
|
+
@rwdtinkerversionreturn = "rwdtinker version " + RwdTinkerVersion
|
19
|
+
end
|
20
|
+
|
21
|
+
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# http://www.erikveen.dds.nl/rubywebdialogs/index.html
|
4
|
+
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
|
+
|
6
|
+
# return the version constant defined in the config file
|
7
|
+
def runrwdtinkerwin2version
|
8
|
+
@rwd_window = "applicationversion"
|
9
|
+
@versionappnamedisplay = "RwdTinkerWin2"
|
10
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
11
|
+
@versionnumberdisplay = "Version " + RwdTinkerWin2Version
|
12
|
+
|
13
|
+
end
|
14
|
+
|
@@ -1,11 +1,13 @@
|
|
1
|
-
|
1
|
+
RwdTinkerVersion = "1.3"
|
2
2
|
CodeName = "rwdtinker"
|
3
3
|
CodeNameFile = CodeName + ".rb"
|
4
|
+
LangNameFile = "rwdlanguage.rb"
|
4
5
|
RWDFile = "rwdtinker.rwd"
|
5
6
|
$lang = "en"
|
6
7
|
@@codedir = "code"
|
7
|
-
@@guidir = "gui"
|
8
|
+
@@guidir = "gui"
|
8
9
|
@@langdir = "lang"
|
9
10
|
|
10
|
-
TempLangHashFile = @@
|
11
|
+
TempLangHashFile = @@langdir + "/" + "templangfile.rb"
|
12
|
+
LocalLangHashFile = @@langdir + "/" + "xlocallangfile.rb"
|
11
13
|
$port = 7705
|
@@ -0,0 +1,16 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"selectiontab\" caption=\"Selection Panel\">
|
4
|
+
|
5
|
+
<table>
|
6
|
+
<row> <p align=\"right\">Open a new window with callable applets you have loaded</row>
|
7
|
+
|
8
|
+
</table>
|
9
|
+
<horizontal>
|
10
|
+
|
11
|
+
<button caption=\"RwdTinker Help Window\" action=\"runrwdtinkerhelpwindow\"/>
|
12
|
+
|
13
|
+
|
14
|
+
</horizontal>"
|
15
|
+
|
16
|
+
|
@@ -1,13 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
<row> <p align
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<row> <p align=\"left\">
|
4
|
+
<a href=HowTo_Tinker.txt>Howto_Tinker.txt</a></p></row>
|
5
|
+
<row> <p align=\"left\">
|
4
6
|
<a href=Readme.txt>Readme.txt</a></p></row>
|
5
|
-
<row> <p align
|
7
|
+
<row> <p align=\"left\">
|
6
8
|
<a href=COPYING>GPL License </a></p></row>
|
7
|
-
<row> <p align
|
9
|
+
<row> <p align=\"left\">
|
8
10
|
<a href=rwdapplications.html>more information about rwdapplications </a></p></row>
|
9
|
-
<row> <p align
|
10
|
-
<a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>
|
11
|
+
<row> <p align=\"left\">
|
12
|
+
<a href=rwdindex.html>Link to online information about RubyWebdialogs </a></p></row>"
|
11
13
|
|
12
14
|
|
13
15
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<window name = \"applicationversion\" title=\"Application Version\">
|
4
|
+
|
5
|
+
<row> <p></row>
|
6
|
+
<p>%versionappnamedisplay%</p>
|
7
|
+
<row> <p></row>
|
8
|
+
<p>%versioncopyrightdisplay%</p>
|
9
|
+
|
10
|
+
<row> <p></row>
|
11
|
+
<p>%versionnumberdisplay%</p>
|
12
|
+
|
13
|
+
<horizontal>
|
14
|
+
<cancel/>
|
15
|
+
</horizontal>
|
16
|
+
|
17
|
+
</window>"
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$guivargui=
|
2
|
+
"
|
3
|
+
<window name = \"rwdtinkerhelpwindow\" title=\"RwdTinker Help\">
|
4
|
+
<tabs>
|
5
|
+
<tab name=\"main\" caption=\"Help\">
|
6
|
+
<row> <p></row>
|
7
|
+
<row> <p>RwdTinker</row>
|
8
|
+
<cancel/>
|
9
|
+
</tab>
|
10
|
+
|
11
|
+
<tab name=\"nexttab\" caption=\"Next\">
|
12
|
+
<row> <p></row>
|
13
|
+
<row> <p>RwdTinker Help</row>
|
14
|
+
<cancel/>
|
15
|
+
</tab>
|
16
|
+
|
17
|
+
</tabs>"
|
@@ -0,0 +1,33 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"diagnostictab\" caption=\"Diagnostic Tab\">
|
4
|
+
<horizontal>
|
5
|
+
<button caption=\"View Ruby Version\" action=\"runrubyversion\"/>
|
6
|
+
|
7
|
+
|
8
|
+
</horizontal>
|
9
|
+
<p>%rubyversion%</p>
|
10
|
+
|
11
|
+
|
12
|
+
<table>
|
13
|
+
<row> <p> </row>
|
14
|
+
|
15
|
+
</table>
|
16
|
+
|
17
|
+
<horizontal>
|
18
|
+
<button caption=\"view platform\" action=\"runviewplatform\"/>
|
19
|
+
|
20
|
+
</horizontal>
|
21
|
+
|
22
|
+
<p>%platformdisplay%</p>
|
23
|
+
<horizontal>
|
24
|
+
<button caption=\"View rwdtinker Version\" action=\"rwdtinkerversiondiagnostic\"/>
|
25
|
+
|
26
|
+
</horizontal>
|
27
|
+
|
28
|
+
<p>%rwdtinkerversionreturn%</p>
|
29
|
+
|
30
|
+
</tab>"
|
31
|
+
|
32
|
+
|
33
|
+
|
@@ -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,35 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
46
|
-
|
46
|
+
def findfilelines(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
|
+
fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
|
55
|
+
$tempdoc+=fileA.read #reads the file into the doc string
|
56
|
+
fileA.close
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
def loadguifile(d)
|
62
|
+
a = Array.new(Dir[d].entries.sort)
|
63
|
+
#loop through and get the files names
|
64
|
+
a.each do |x|
|
65
|
+
#adjust the filters to the files you want to see...
|
66
|
+
if(!test(?d,x))
|
67
|
+
# only rwd files
|
68
|
+
if x =~ /rb|rwd|txt/
|
69
|
+
load x #opens the file thats in fileName and reads it
|
70
|
+
$tempdoc += $rwdguivar # adds the file into the doc string
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
47
75
|
|
48
76
|
# Read in the configuration files
|
49
77
|
|
@@ -59,8 +87,8 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
59
87
|
|
60
88
|
Dir.chdir($progdir) # change back to top program directory
|
61
89
|
|
62
|
-
# build the Language hash file from the parts
|
63
|
-
startlangdir = @@langdir +"/" +
|
90
|
+
# build the English Language hash file from the parts
|
91
|
+
startlangdir = @@langdir +"/" + "en"
|
64
92
|
#get a list of the files and subdirectories on the starting directory only
|
65
93
|
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
66
94
|
#loop through the list, ignore the files and add all new directories found
|
@@ -93,6 +121,63 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
93
121
|
# END of Lang building
|
94
122
|
$tempdoc = " "
|
95
123
|
Dir.chdir($progdir) # change back to top program directory
|
124
|
+
|
125
|
+
# build the local Language hash file from the parts
|
126
|
+
startlangdir = @@langdir +"/" + $lang
|
127
|
+
#get a list of the files and subdirectories on the starting directory only
|
128
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
129
|
+
#loop through the list, ignore the files and add all new directories found
|
130
|
+
alanghash.each do |x|
|
131
|
+
#if a directory...
|
132
|
+
if(test(?d,x))
|
133
|
+
# add to the original list of directories
|
134
|
+
@@tmproot = x + "/**"
|
135
|
+
#adds the new ones to the array
|
136
|
+
blanghash = Dir[@@tmproot].entries.sort
|
137
|
+
blanghash.each do |x|
|
138
|
+
if(test(?d,x))
|
139
|
+
alanghash.push(x) #appends to the end of the array...
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
alanghash.each do |x|
|
145
|
+
#if it is a file...
|
146
|
+
if(!test(?d,x))
|
147
|
+
alanghash.delete(x)
|
148
|
+
else #it is a directory...
|
149
|
+
findfiles(x + "/**")
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
|
154
|
+
filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
|
155
|
+
filelocalLangHash.close
|
156
|
+
|
157
|
+
$tempdoc = " "
|
158
|
+
|
159
|
+
Dir.chdir($progdir) # change back to top program directory
|
160
|
+
|
161
|
+
# build the language hash constant object from the lang parts
|
162
|
+
#get a list of the files in lang directory only
|
163
|
+
alangfile = Dir.new(@@langdir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
|
164
|
+
alangfile.length.times{
|
165
|
+
fileName = alangfile.pop
|
166
|
+
print fileName
|
167
|
+
Dir.chdir($progdir)
|
168
|
+
Dir.chdir(@@langdir)
|
169
|
+
fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
|
170
|
+
$tempdoc += fileLangA.read #reads the file into the doc string
|
171
|
+
fileLangA.close
|
172
|
+
}
|
173
|
+
|
174
|
+
Dir.chdir($progdir)
|
175
|
+
fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
|
176
|
+
fileLangB.write($tempdoc) #writes the contents of doc into the file
|
177
|
+
fileLangB.close
|
178
|
+
load LangNameFile # load the file
|
179
|
+
|
180
|
+
$tempdoc = " "
|
96
181
|
|
97
182
|
# build the actual program from the code parts
|
98
183
|
#get a list of the files and subdirectories on the starting directory only
|
@@ -117,7 +202,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
117
202
|
if(!test(?d,x))
|
118
203
|
a.delete(x)
|
119
204
|
else #it is a directory...
|
120
|
-
|
205
|
+
findfilelines(x + "/**")
|
121
206
|
end
|
122
207
|
end
|
123
208
|
|
@@ -151,7 +236,7 @@ $progdir = File::expand_path( File.dirname(__FILE__))
|
|
151
236
|
a.delete(x)
|
152
237
|
|
153
238
|
else #it is a directory...
|
154
|
-
|
239
|
+
loadguifile(x + "/**")
|
155
240
|
end
|
156
241
|
end
|
157
242
|
|
@@ -0,0 +1,8 @@
|
|
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/ll5rwdtinkerwin2selectiontab
|
5
|
+
gui/xb1rwdtinkerbackwindow
|
6
|
+
gui/uu6rwdtinkerwin2documents
|
7
|
+
gui/yg6rwdwin2helpabout
|
8
|
+
rwd_files/HowTo_TinkerWin2.txt
|
File without changes
|
File without changes
|