rwdlanguage 0.01
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/Readme.txt +475 -0
- data/bin/rwdlanguage +19 -0
- data/code/01rwdcore/01rwdcore.rb +29 -0
- data/code/01rwdcore/02helptexthashbegin.rb +16 -0
- data/code/01rwdcore/03helptexthash.rb +21 -0
- data/code/01rwdcore/jumplinkcommand.rb +36 -0
- data/code/01rwdcore/openhelpwindow.rb +38 -0
- data/code/01rwdcore/returntomain.rb +10 -0
- data/code/01rwdcore/rundocuments.rb +10 -0
- data/code/01rwdcore/runeditconfiguration.rb +10 -0
- data/code/01rwdcore/runhelpabout.rb +15 -0
- data/code/01rwdcore/runopentinkerdocument.rb +7 -0
- data/code/01rwdcore/runtab.rb +15 -0
- data/code/01rwdcore/rwdtinkerversion.rb +22 -0
- data/code/01rwdcore/rwdwindowreturn.rb +9 -0
- data/code/01rwdcore/selectiontab.rb +11 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +15 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +7 -0
- data/code/01rwdcore/test_cases.rb +158 -0
- data/code/01rwdcore/test_harness.rb +20 -0
- data/code/01rwdcore/uploadreturns.rb +65 -0
- data/code/dd0viewphoto/dd0viewphoto.rb +5 -0
- data/code/superant.com.language/0uninstallapplet.rb +22 -0
- data/code/superant.com.language/googlelang.rb +25 -0
- data/code/superant.com.language/helptexthashload.rb +22 -0
- data/code/superant.com.language/loadconfigurationrecord.rb +22 -0
- data/code/superant.com.language/loadconfigurationvariables.rb +14 -0
- data/code/superant.com.language/openhelpwindow.rb +24 -0
- data/code/superant.com.language/rubySteak.rb +40 -0
- data/code/superant.com.language/runappletwindow.rb +12 -0
- data/code/superant.com.language/runrwdshellwindow.rb +12 -0
- data/code/superant.com.language/runrwdwordsbackwindow.rb +10 -0
- data/code/superant.com.language/rwdtinkerversion.rb +10 -0
- data/code/superant.com.language/saveconfigurationrecord.rb +20 -0
- data/code/superant.com.language/test_cases.rb +20 -0
- data/code/superant.com.rwdtinkerbackwindow/changelocale.rb +84 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +169 -0
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +38 -0
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +20 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +55 -0
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +14 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +37 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +24 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -0
- data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +19 -0
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +40 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +46 -0
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +15 -0
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -0
- data/code/superant.com.rwdtinkerbackwindow/showlocaleoptions.rb +9 -0
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +23 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +16 -0
- data/code/superant.com.thesaurus/clearhttpview3.rb +9 -0
- data/code/superant.com.thesaurus/listwordlookup.rb +37 -0
- data/code/superant.com.thesaurus/runappletwindow.rb +12 -0
- data/code/superant.com.words/dictlookup.rb +20 -0
- data/code/superant.com.words/runrwdwordsbackwindow.rb +10 -0
- data/code/superant.com.words/rwdtinkerversion.rb +10 -0
- data/code/zz0applicationend/zz0end.rb +5 -0
- data/configuration/rwdtinker.dist +15 -0
- data/configuration/rwdwlanguage.dist +21 -0
- data/configuration/tinkerwin2variables.dist +23 -0
- data/gui/00coreguibegin/applicationguitop.rwd +9 -0
- data/gui/frontwindow0/cc0openphoto.rwd +22 -0
- data/gui/frontwindowselections/00selectiontabbegin.rwd +11 -0
- data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
- data/gui/frontwindowselections/wwselectionend.rwd +3 -0
- data/gui/frontwindowtdocuments/00documentbegin.rwd +6 -0
- data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
- data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
- data/gui/helpaboutbegin/zzzrwdlasttab.rwd +6 -0
- data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
- data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
- data/gui/helpaboutzend/helpscreenend.rwd +3 -0
- data/gui/helpaboutzend/zhelpscreenstart2.rwd +3 -0
- data/gui/helpaboutzend/zzzzhelpabout2.rwd +15 -0
- data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +3 -0
- data/gui/tinkerbackwindows/superant.com.language/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.language/22google.rwd +38 -0
- data/gui/tinkerbackwindows/superant.com.language/44germany.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.language/67viewconfiguration.rwd +27 -0
- data/gui/tinkerbackwindows/superant.com.language/77jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.language/z9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +41 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +30 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80localechanger.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.words/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.words/1dictionary.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.words/4thesaurus.rwd +36 -0
- data/gui/tinkerbackwindows/superant.com.words/77jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.words/z9end.rwd +6 -0
- data/gui/zzcoreguiend/yy9rwdend.rwd +4 -0
- data/init.rb +179 -0
- data/installed/rwdwlanguage.inf +24 -0
- data/installed/temp.rb +1 -0
- data/lang/en/rwdcore/en.po +197 -0
- data/lang/en/rwdlanguage/en.po +32 -0
- data/lang/es/rwdcore/es.po +184 -0
- data/lang/es/rwdlanguage/en.po +32 -0
- data/lang/fr/rwdcore/fr.po +169 -0
- data/lang/fr/rwdlanguage/en.po +32 -0
- data/lang/hi/rwdcore/hi.po +173 -0
- data/lang/hi/rwdlanguage/en.po +32 -0
- data/lang/ja/rwdcore/ja.po +171 -0
- data/lang/ja/rwdlanguage/en.po +32 -0
- data/lang/nl/rwdcore/nl.po +169 -0
- data/lang/nl/rwdlanguage/en.po +32 -0
- data/lib/dict.rb +438 -0
- data/lib/g_translate.rb +43 -0
- data/lib/g_translate/client.rb +84 -0
- data/lib/g_translate/translator.rb +57 -0
- data/lib/ger-eng.txt +111283 -0
- data/lib/oothesaurus.rb +76 -0
- data/lib/rconftool.rb +387 -0
- data/lib/rwd/browser.rb +123 -0
- data/lib/rwd/ftools.rb +174 -0
- data/lib/rwd/mime.rb +328 -0
- data/lib/rwd/net.rb +877 -0
- data/lib/rwd/ruby.rb +889 -0
- data/lib/rwd/rwd.rb +1425 -0
- data/lib/rwd/sgml.rb +236 -0
- data/lib/rwd/thread.rb +63 -0
- data/lib/rwd/tree.rb +371 -0
- data/lib/rwd/xml.rb +101 -0
- data/lib/rwdthemes/default.rwd +317 -0
- data/lib/rwdthemes/pda.rwd +72 -0
- data/lib/rwdthemes/windowslike.rwd +171 -0
- data/lib/rwdtinker/rwdcodedir.rb +56 -0
- data/lib/rwdtinker/rwdguidir.rb +57 -0
- data/lib/rwdtinker/rwdlangdir.rb +60 -0
- data/lib/rwdtinker/rwdtinkertools.rb +25 -0
- data/lib/zip/ioextras.rb +155 -0
- data/lib/zip/stdrubyext.rb +111 -0
- data/lib/zip/tempfile_bugfixed.rb +195 -0
- data/lib/zip/zip.rb +1847 -0
- data/lib/zip/zipfilesystem.rb +609 -0
- data/lib/zip/ziprequire.rb +90 -0
- data/rwd_files/HowTo_Language.txt +179 -0
- data/rwd_files/HowTo_Tinker.txt +515 -0
- data/rwd_files/HowTo_TinkerWin2.txt +202 -0
- data/rwd_files/Readme.txt +57 -0
- data/rwd_files/RubyWebDialogs.html +6 -0
- data/rwd_files/Tinkerhelptexthash.txt +84 -0
- data/rwd_files/favicon.ico +0 -0
- data/rwd_files/log/rwdtinker.log +726 -0
- data/rwd_files/rdoc-style.css +175 -0
- data/rwd_files/rwdapplications.html +76 -0
- data/rwd_files/rwdlanguagehelpfiles.txt +34 -0
- data/rwd_files/tinker.png +0 -0
- data/rwdconfig.dist +24 -0
- data/rwdlanguage.rb +1 -0
- data/tests/RubyGauge.rb +179 -0
- data/tests/checkdepends.sh +4 -0
- data/tests/cleancnf.sh +6 -0
- data/tests/makedist-rwdwlanguage.rb +56 -0
- data/tests/makedist.rb +66 -0
- data/tests/rdep.rb +354 -0
- data/tests/totranslate.lang +93 -0
- data/zips/rwdwcalc-0.63.zip +0 -0
- data/zips/rwdwfoldeditor-0.08.zip +0 -0
- data/zips/rwdwhypernote-0.16.zip +0 -0
- data/zips/rwdwlanguage-0.01.zip +0 -0
- data/zips/rwdwmovies-0.98.zip +0 -0
- data/zips/rwdwruby-1.08.zip +0 -0
- data/zips/temp.rb +1 -0
- data/zips/tinkerbellw-0.04.zip +0 -0
- data/zips/wrubyslippers-1.08.zip +0 -0
- metadata +246 -0
@@ -0,0 +1,44 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"filelister\" caption=#{Message[:list_applets]}>
|
4
|
+
|
5
|
+
|
6
|
+
<table>
|
7
|
+
<row> <p align=\"right\">#{Message[:file_name]}</p> <text name=\"a_installlist\"/> </row>
|
8
|
+
|
9
|
+
</table>
|
10
|
+
|
11
|
+
<horizontal>
|
12
|
+
<button caption=#{Message[:viewinstalled_text]} action=\"openappletname\"/>
|
13
|
+
<button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
|
14
|
+
</horizontal>
|
15
|
+
<p>%displaytext%</p>
|
16
|
+
|
17
|
+
<table>
|
18
|
+
<row> <p align=\"right\">#{Message[:file_name]}</p> <text name=\"a_removeapplet\"/> </row>
|
19
|
+
|
20
|
+
</table>
|
21
|
+
|
22
|
+
<p>%removeapplettext%</p>
|
23
|
+
<horizontal>
|
24
|
+
<button caption=#{Message[:remove_applet]} action=\"removeapplet\"/>
|
25
|
+
<button caption=#{Message[:cancel]} action=\"main\"/>
|
26
|
+
|
27
|
+
</horizontal>
|
28
|
+
<table>
|
29
|
+
<row> <p> </row>
|
30
|
+
<row> <p align=\"right\">#{Message[:viewlistinstall_files]} </row>
|
31
|
+
|
32
|
+
</table>
|
33
|
+
<horizontal>
|
34
|
+
|
35
|
+
<button caption=#{Message[:list_files]} action=\"listinstalledfiles\"/>
|
36
|
+
|
37
|
+
</horizontal>
|
38
|
+
|
39
|
+
<p>%%filesresult%%</p>
|
40
|
+
|
41
|
+
</tab>"
|
42
|
+
|
43
|
+
|
44
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"editconfigurationfile\" caption=\"Edit Configuration\">
|
4
|
+
<table>
|
5
|
+
<row> <p> </row>
|
6
|
+
<row> <p align=\"right\">You can view or edit the rwdtinker applet confiruration file here</row>
|
7
|
+
<row> <p> </row>
|
8
|
+
<horizontal>
|
9
|
+
<button caption=\"Load Record\" action=\"loadconfigurationrecord\"/>
|
10
|
+
<button caption=#{Message[:save_changes]} action=\"saveconfigurationrecord\"/>
|
11
|
+
<button caption=\"Reload Variables\" action=\"loadconfigurationvariables\"/>
|
12
|
+
<button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
</horizontal>
|
18
|
+
<table>
|
19
|
+
<textarea name=\"a_configurationfile\"/>
|
20
|
+
|
21
|
+
|
22
|
+
</table>
|
23
|
+
<p>%extraconfigdatadisplay%</p>
|
24
|
+
<p>
|
25
|
+
<p>%newconfigurationresult%</p>
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
</tab>"
|
30
|
+
|
@@ -0,0 +1,29 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"diagnostictab\" caption=#{Message[:diagnostic_tab]}>
|
4
|
+
<horizontal>
|
5
|
+
<button caption=#{Message[:viewplatform_information]} action=\"runviewplatform\"/>
|
6
|
+
|
7
|
+
|
8
|
+
</horizontal>
|
9
|
+
|
10
|
+
<p>%platformdisplay%</p>
|
11
|
+
<horizontal>
|
12
|
+
|
13
|
+
|
14
|
+
</horizontal>
|
15
|
+
<horizontal>
|
16
|
+
<button caption=\"upload this page of information to the Program Author\" action=\"uploadreturnsfile\"/>
|
17
|
+
</horizontal>
|
18
|
+
<horizontal>
|
19
|
+
<p align=\"right\">Email:(optional)</p> <text size=50 name=\"a_emailupload\"/>
|
20
|
+
|
21
|
+
</horizontal>
|
22
|
+
<p align=\"center\">Comment/Suggestion/Feature Request or Bug Report:(optional)</p> <textarea name=\"a_commentupload\"/>
|
23
|
+
|
24
|
+
<p>%returnsftpdisplay%</p>
|
25
|
+
|
26
|
+
</tab>"
|
27
|
+
|
28
|
+
|
29
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"rwdlogfiletab\" caption=\"RWD Log Files\">
|
4
|
+
<table>
|
5
|
+
<horizontal>
|
6
|
+
|
7
|
+
|
8
|
+
<p align=\"left\">Number of lines to display</p> <text size=11 name=\"a_rwdtinkerlognumber\"/>
|
9
|
+
|
10
|
+
<button caption=#{Message[:viewlogger_information]} action=\"rwdtinkerrunviewlog\"/>
|
11
|
+
</horizontal>
|
12
|
+
|
13
|
+
</table>
|
14
|
+
|
15
|
+
<p>%returnlogdisplay%</p>
|
16
|
+
|
17
|
+
</tab>"
|
18
|
+
|
19
|
+
|
20
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=localechangertab caption=#{Message[:localechangertablabel]}>
|
4
|
+
<horizontal>
|
5
|
+
<button caption=#{Message[:tinkercoreshowlocale_choices]} action=\"showlocalechoicesoptions\"/>
|
6
|
+
<button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
|
7
|
+
</horizontal>
|
8
|
+
<table>
|
9
|
+
<select name=\"a_localechooseinput\"> %%localechooseoptions%% </select>
|
10
|
+
|
11
|
+
</table>
|
12
|
+
|
13
|
+
<horizontal>
|
14
|
+
<button caption=#{Message[:tinkercorechangelocale]} action=\"runlocalechangercommand\"/>
|
15
|
+
</horizontal>
|
16
|
+
</tab>
|
17
|
+
"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=selectiontab caption=#{Message[:selection_tab]}>
|
4
|
+
<horizontal>
|
5
|
+
<button caption=#{Message[:showjump_links]} action=\"showjumplinkoptions\"/>
|
6
|
+
<button caption=#{Message[:help]} action=\"runhelpwindowtinkerwin2\"/>
|
7
|
+
</horizontal>
|
8
|
+
<table>
|
9
|
+
<select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
|
10
|
+
|
11
|
+
</table>
|
12
|
+
|
13
|
+
<horizontal>
|
14
|
+
<button caption=#{Message[:jumptoapplication_location]} action=\"runjumplinkcommand\"/>
|
15
|
+
</horizontal>
|
16
|
+
</tab>
|
17
|
+
"
|
@@ -0,0 +1,31 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<window name = \"rwdtinkerhelpwindow\" title=#{Message[:rwdtinker_help]}>
|
4
|
+
<horizontal>
|
5
|
+
%rwdhelptopic%
|
6
|
+
</horizontal>
|
7
|
+
|
8
|
+
<table>
|
9
|
+
<row> <p></row>
|
10
|
+
|
11
|
+
</table>
|
12
|
+
<horizontal>
|
13
|
+
%%rwdhelpdataoutput%%
|
14
|
+
</horizontal>
|
15
|
+
<row> <p></row>
|
16
|
+
<table>
|
17
|
+
|
18
|
+
|
19
|
+
<row> <p></row>
|
20
|
+
</table>
|
21
|
+
<horizontal>
|
22
|
+
|
23
|
+
<button caption=\"Return\" action=\"rwdwindowreturn\"/>
|
24
|
+
</horizontal>
|
25
|
+
<table>
|
26
|
+
<row> <p></row>
|
27
|
+
|
28
|
+
</table>
|
29
|
+
|
30
|
+
%%rwdhelpsubchoicesoutput%%
|
31
|
+
"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<window name = \"applicationversion\" title=#{Message[: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
|
+
<button caption=#{Message[:return]} action=returntomain/>
|
15
|
+
</horizontal>
|
16
|
+
|
17
|
+
</window>"
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<window name=tinkerhelpabout title=#{Message[:help_about]}>
|
4
|
+
<horizontal>
|
5
|
+
<button caption=#{Message[:showhelpabout_links]} action=\"setuphelpaboutoptions\"/>
|
6
|
+
|
7
|
+
</horizontal>
|
8
|
+
<table>
|
9
|
+
<select name=\"a_helpaboutinput\"> %%helpaboutoptions%% </select>
|
10
|
+
|
11
|
+
</table>
|
12
|
+
|
13
|
+
<horizontal>
|
14
|
+
<button caption=#{Message[:openselectedhelp_about]} action=\"runrwdtinkerversion\"/>
|
15
|
+
</horizontal>
|
16
|
+
</window>
|
17
|
+
"
|
@@ -0,0 +1,19 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"sagdictlookup\" caption=\"Dictionary Lookup\">
|
4
|
+
|
5
|
+
|
6
|
+
<table>
|
7
|
+
<row> <p align=\"right\">Word:</p> <text name=\"a_dictionaryinput\"/> </row>
|
8
|
+
|
9
|
+
</table>
|
10
|
+
|
11
|
+
<horizontal>
|
12
|
+
<button caption=\"Lookup\" action=\"dictlookup\"/>
|
13
|
+
<button caption=\"Cancel\" action=\"main\"/>
|
14
|
+
<button caption=\"Help\" action=\"runhelpwindowrwdlanguage\"/>
|
15
|
+
</horizontal>
|
16
|
+
<p>%dictionary_display%</p>
|
17
|
+
</tab>
|
18
|
+
"
|
19
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=\"superantcomthesaurus\" caption=\"Thesaurus View\">
|
4
|
+
|
5
|
+
<table>
|
6
|
+
|
7
|
+
<table>
|
8
|
+
<row> <p align=\"right\">Word:</p> <text name=\"a_thesaurusinput\"/> </row>
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
<row> <p> </row>
|
13
|
+
|
14
|
+
</table>
|
15
|
+
<horizontal>
|
16
|
+
<button caption=\"Display word results\" action=\"listwordresults\"/>
|
17
|
+
|
18
|
+
<button caption=\"Clear file list\" action=\"clearthesaurus\"/>
|
19
|
+
|
20
|
+
<button caption=\"Help\" action=\"runhelpwindowrwdlanguage\"/>
|
21
|
+
|
22
|
+
</horizontal>
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
|
31
|
+
<table>
|
32
|
+
<p>%%a_thesaurusdata%%</p>
|
33
|
+
|
34
|
+
|
35
|
+
</table>
|
36
|
+
</tab>"
|
@@ -0,0 +1,17 @@
|
|
1
|
+
$rwdguivar=
|
2
|
+
"
|
3
|
+
<tab name=RwdwordsMenu caption=Menu>
|
4
|
+
<horizontal>
|
5
|
+
<button caption=\"Show Jump Links\" action=\"showjumplinkoptions\"/>
|
6
|
+
|
7
|
+
</horizontal>
|
8
|
+
<table>
|
9
|
+
<select name=\"a_jumplinkinput\"> %%jumplinkoptions%% </select>
|
10
|
+
|
11
|
+
</table>
|
12
|
+
|
13
|
+
<horizontal>
|
14
|
+
<button caption=\"Jump to Application Location\" action=\"runjumplinkcommand\"/>
|
15
|
+
</horizontal>
|
16
|
+
</tab>
|
17
|
+
"
|
data/init.rb
ADDED
@@ -0,0 +1,179 @@
|
|
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
|
+
require 'logger'
|
25
|
+
|
26
|
+
LogDirectory = 'rwd_files/log/'
|
27
|
+
logfilelocation = File.join(LogDirectory, 'rwdtinker.log')
|
28
|
+
|
29
|
+
$rwdtinkerlog = Logger.new( logfilelocation , 'weekly' )
|
30
|
+
$rwdtinkerlog.level = Logger::INFO
|
31
|
+
|
32
|
+
require "lib/rwd/rwd"
|
33
|
+
require 'fileutils'
|
34
|
+
require 'lib/rconftool'
|
35
|
+
|
36
|
+
$KCODE = 'u'
|
37
|
+
require 'jcode'
|
38
|
+
|
39
|
+
$progdir = File::expand_path( File.dirname(__FILE__))
|
40
|
+
|
41
|
+
tempdoc = " "
|
42
|
+
|
43
|
+
# integrate the new configuration files
|
44
|
+
MAINconfignew = "rwdconfig.cnf"
|
45
|
+
MAINconfigdist = "rwdconfig.dist"
|
46
|
+
Rconftool::install(MAINconfigdist,MAINconfignew)
|
47
|
+
|
48
|
+
#load main config file
|
49
|
+
load 'rwdconfig.cnf'
|
50
|
+
|
51
|
+
Dir.chdir("configuration") #changes the current working directory
|
52
|
+
|
53
|
+
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /dist$/) } #creates an Array separated with \n
|
54
|
+
@doc = ""
|
55
|
+
fileList.length.times{ #opening of a block
|
56
|
+
configdist =fileList.pop #pops the first item out of the Array
|
57
|
+
tempconfigfile = configdist.gsub(/\.dist$/, "")
|
58
|
+
confignew = tempconfigfile + ".cnf"
|
59
|
+
Rconftool::install(configdist,confignew) #integrates new file with old
|
60
|
+
} #closing block
|
61
|
+
# END of configuration integration
|
62
|
+
Dir.chdir($progdir)
|
63
|
+
|
64
|
+
# Read in the configuration files
|
65
|
+
Dir.chdir("configuration") #changes the current working directory
|
66
|
+
|
67
|
+
fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
|
68
|
+
@doc = ""
|
69
|
+
fileList.length.times{ #opening of a block
|
70
|
+
fileName=fileList.pop #pops the first item out of the Array
|
71
|
+
load fileName #loads the the config file thats in fileName
|
72
|
+
} #closing block
|
73
|
+
# END of configuration reading
|
74
|
+
|
75
|
+
Dir.chdir($progdir) # change back to top program directory
|
76
|
+
|
77
|
+
|
78
|
+
# build the English Language hash file from the parts
|
79
|
+
Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
|
80
|
+
langmessage = { :clear => "Clear", :rwdtinker => "Rwdtinker" } ; langmessage.each { |kk, vv| Message[kk] = vv }
|
81
|
+
|
82
|
+
def msgid(programkey)
|
83
|
+
$programkey = programkey
|
84
|
+
end
|
85
|
+
|
86
|
+
def msgstr(programmsg)
|
87
|
+
if programmsg == ""
|
88
|
+
$rwdtinkerlog.info "msgstr: no translation for #{$programkey}"
|
89
|
+
else
|
90
|
+
Message.update( $programkey.to_sym => programmsg )
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
require 'lib/rwdtinker/rwdlangdir'
|
95
|
+
|
96
|
+
tempdoc = " "
|
97
|
+
#go get all the po language file files in english
|
98
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
|
99
|
+
|
100
|
+
#writes the contents of doc into the languagehashvariable
|
101
|
+
languagehashvariable = tempdoc
|
102
|
+
|
103
|
+
# END of en Lang building
|
104
|
+
tempdoc = " "
|
105
|
+
Dir.chdir($progdir) # change back to top program directory
|
106
|
+
|
107
|
+
# build the local Language hash file from the parts
|
108
|
+
|
109
|
+
$lang = $langarray[0] # pick the language of choice
|
110
|
+
|
111
|
+
# Go get all the po files for the language of choice
|
112
|
+
tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
|
113
|
+
# the contents of doc into the variable
|
114
|
+
languagehashvariable = languagehashvariable + tempdoc
|
115
|
+
|
116
|
+
Dir.chdir($progdir) # change back to top program directory
|
117
|
+
|
118
|
+
# lets read those po files, first english then the chosen language
|
119
|
+
temp = eval( languagehashvariable )
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
# build the actual program from the code parts
|
124
|
+
require 'lib/rwdtinker/rwdcodedir'
|
125
|
+
|
126
|
+
tempdoc = RwdtinkerTools.findprogramfiles(CodeDir)
|
127
|
+
|
128
|
+
# load the program file
|
129
|
+
|
130
|
+
tempcoderesult = eval( tempdoc )
|
131
|
+
|
132
|
+
# build the actual GUI from the gui parts
|
133
|
+
require 'lib/rwdtinker/rwdguidir'
|
134
|
+
|
135
|
+
tempdoc = RwdtinkerTools.findguifiles(GuiDir)
|
136
|
+
|
137
|
+
|
138
|
+
# gui variable is done
|
139
|
+
guiRWD = ""
|
140
|
+
$rwd_gui_tinker = tempdoc
|
141
|
+
require 'socket' # Network stuff
|
142
|
+
host = "127.0.0.1"
|
143
|
+
port = $port
|
144
|
+
|
145
|
+
# Create a socket to listen on and bind it to the host and port
|
146
|
+
freeportfound = false
|
147
|
+
until freeportfound
|
148
|
+
begin
|
149
|
+
@socket = UDPSocket::new()
|
150
|
+
@socket.bind(host, port)
|
151
|
+
freeportfound = true
|
152
|
+
$port = port
|
153
|
+
# Rescue the "Address in use" error
|
154
|
+
rescue Errno::EADDRINUSE
|
155
|
+
$rwdtinkerlog.warn "RWD Startup: Port #{port} on host #{host} is already in use."
|
156
|
+
port=port +1
|
157
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
158
|
+
# Rescue the "Address not available' error
|
159
|
+
rescue Errno::EADDRNOTAVAIL
|
160
|
+
$rwdtinkerlog.warn "RWD Startup: Address #{host} is not available to bind."
|
161
|
+
port =port + 1
|
162
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
163
|
+
# Rescue "permission denied errors
|
164
|
+
rescue Errno::EACCES
|
165
|
+
$rwdtinkerlog.warn "RWD Startup: Access denied when binding interface addresses. ?"
|
166
|
+
port =port + 1
|
167
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
168
|
+
# Rescue all other errors
|
169
|
+
rescue
|
170
|
+
$rwdtinkerlog.warn "RWD Startup: An error occured."
|
171
|
+
port =port + 1
|
172
|
+
$rwdtinkerlog.warn "trying port: #{port}"
|
173
|
+
# Rescue all other errors
|
174
|
+
end
|
175
|
+
$port = port
|
176
|
+
end
|
177
|
+
|
178
|
+
|
179
|
+
RwdTinker.new( $rwd_gui_tinker ).serve(port) # start the main class and program
|