rwdaddresses 1.04 → 1.05
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +380 -179
- data/code/01rwdcore/01rwdcore.rb +7 -0
- data/code/01rwdcore/02helptexthashbegin.rb +0 -0
- data/code/01rwdcore/03helptexthash.rb +13 -21
- data/code/01rwdcore/04helptextend.rb +0 -0
- data/code/01rwdcore/jumplinkcommand.rb +1 -1
- data/code/01rwdcore/openhelpwindow.rb +1 -1
- data/code/01rwdcore/returntomain.rb +0 -0
- data/code/01rwdcore/rundocuments.rb +0 -0
- data/code/01rwdcore/runeditconfiguration.rb +0 -0
- data/code/01rwdcore/runhelpabout.rb +0 -0
- data/code/01rwdcore/runopentinkerdocument.rb +7 -0
- data/code/01rwdcore/rwdtinkerversion.rb +11 -3
- data/code/01rwdcore/rwdwindowreturn.rb +0 -0
- data/code/01rwdcore/selectiontab.rb +0 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +13 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +6 -0
- data/code/01rwdcore/test_cases.rb +0 -0
- data/code/01rwdcore/test_harness.rb +0 -0
- data/code/01rwdcore/uploadreturns.rb +0 -0
- data/code/dd0viewphoto/dd0viewphoto.rb +3 -0
- data/code/superant.com.bigtinker/rwdtinkerversion.rb +10 -0
- data/code/superant.com.rwdaddresses/0uninstallapplet.rb +14 -0
- data/code/superant.com.rwdaddresses/attachtmpcontactphoto.rb +0 -0
- data/code/superant.com.rwdaddresses/clearscreendisplay.rb +0 -0
- data/code/superant.com.rwdaddresses/createnewnamerecord.rb +0 -0
- data/code/superant.com.rwdaddresses/deletecontactrecord.rb +0 -0
- data/code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb +0 -0
- data/code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb +0 -0
- data/code/superant.com.rwdaddresses/helptexthashrwdaddresses.rb +0 -0
- data/code/superant.com.rwdaddresses/listnamerecord.rb +0 -0
- data/code/superant.com.rwdaddresses/listvcardrecord.rb +0 -0
- data/code/superant.com.rwdaddresses/loadconfigurationrecord.rb +22 -45
- data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +2 -1
- data/code/superant.com.rwdaddresses/loadnamerecord.rb +0 -0
- data/code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb +0 -0
- data/code/superant.com.rwdaddresses/renamecontact.rb +0 -0
- data/code/superant.com.rwdaddresses/runaddresseswindow.rb +1 -1
- data/code/superant.com.rwdaddresses/runrwdaddressesmenu1.rb +4 -4
- data/code/superant.com.rwdaddresses/runrwdaddresssyncbackwindow.rb +0 -0
- data/code/superant.com.rwdaddresses/rwdaddressesbackwindow.rb +2 -2
- data/code/superant.com.rwdaddresses/rwdaddresseshelpabout.rb +2 -5
- data/code/superant.com.rwdaddresses/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.rwdaddresses/savevcardrecord.rb +0 -0
- data/code/superant.com.rwdaddresses/syncrwdaddress.rb +0 -0
- data/code/superant.com.rwdaddresses/test_cases.rb +1 -2
- data/code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb +0 -0
- data/code/superant.com.rwdaddresses/viewaddressconfiguration.rb +0 -0
- data/code/superant.com.rwdaddresses/viewnamedata.rb +0 -0
- data/code/superant.com.rwdaddresses/viewphoto.rb +0 -0
- data/code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb +0 -0
- data/code/superant.com.rwdaddresses/viewtmpcontactphoto.rb +0 -0
- data/code/superant.com.rwdaddresses/viewvcarddata.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +240 -0
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +18 -5
- data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +1 -12
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +1 -5
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +19 -6
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +4 -0
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +2 -2
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +1 -1
- data/code/zz0applicationend/zz0end.rb +0 -0
- data/configuration/language.dist +2 -1
- data/configuration/rwdapplicationidentity.dist +2 -2
- data/configuration/rwdtinker.dist +6 -3
- data/configuration/{rwdaddresses.dist → rwdwaddresses-1.05.dist} +6 -2
- data/configuration/tinkerwin2variables.dist +1 -1
- data/gui/00coreguibegin/applicationguitop.rwd +1 -1
- data/gui/frontwindow0/cc0openphoto.rwd +22 -0
- data/gui/{frontwindowselectionbegin/selectiontabbegin/selectiontabbegin.rwd → frontwindowselections/00selectiontabbegin.rwd} +1 -1
- data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
- data/gui/{frontwindowselectionzend/viewselectionzend/viewselectionend.rwd → frontwindowselections/wwselectionend.rwd} +0 -0
- data/gui/{frontwindowtdocumentbegin/superant.com.documentsbegin/tt0documentbegin.rwd → frontwindowtdocuments/00documentbegin.rwd} +0 -0
- data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
- data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
- data/gui/{frontwindowz1end/frontwindowend/xx0rwdfirsttab.rwd → helpaboutbegin/zzzrwdlasttab.rwd} +0 -0
- data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
- data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
- data/gui/helpaboutzend/{superant.com.helpaboutend/helpscreenend.rwd → helpscreenend.rwd} +0 -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.addressesphotowindow/yy7addressesphoto.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/10appletbegin.rwd +4 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdaddresses/11viewnamedata.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdaddresses/13listnamerecordfiles.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdaddresses/16editrecord.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdaddresses/17viewvcardrecord.rwd +0 -0
- data/gui/{frontwindow0 → tinkerbackwindows}/superant.com.rwdaddresses/18contactutilities.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/1appname.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/20downloadftp.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/70rwddiagnostics.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/87viewconfiguration.rwd +34 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/94selectiontab.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/95jumplink.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/97selectionend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/zvbackend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +45 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +29 -0
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/70rwddiagnostics.rwd +16 -0
- data/gui/{frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd → tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd} +5 -2
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/zvbackend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +9 -10
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +5 -5
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +9 -9
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +4 -12
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +4 -4
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/9backend.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/9end.rwd +0 -0
- data/gui/tinkerbackwindows/superant.com.versionwindow/1appname.rwd +2 -2
- data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
- data/gui/zzcoreguiend/{tinkerapplicationguiend/yy9rwdend.rwd → yy9rwdend.rwd} +0 -0
- data/init.rb +7 -7
- data/installed/rwdaddressesdata2.inf +7 -0
- data/installed/rwdwaddresses-1.05.inf +12 -0
- data/{lib → installed}/temp.rb +0 -0
- data/lang/en/rwdcore/languagefile.rb +57 -15
- data/lang/es/rwdcore/languagefile-es.rb +61 -13
- data/lang/fr/rwdcore/languagefile.rb +64 -0
- data/lang/jp/rwdcore/languagefile.rb +69 -6
- data/lang/nl/rwdcore/languagefile.rb +56 -0
- data/{extras → lib}/rconftool.rb +0 -0
- data/{ev → lib/rwd}/browser.rb +2 -2
- data/{ev → lib/rwd}/ftools.rb +0 -0
- data/{ev → lib/rwd}/mime.rb +0 -0
- data/{ev → lib/rwd}/net.rb +5 -5
- data/{ev → lib/rwd}/ruby.rb +0 -0
- data/{ev → lib/rwd}/rwd.rb +37 -17
- data/{ev → lib/rwd}/sgml.rb +1 -1
- data/{ev → lib/rwd}/thread.rb +1 -1
- data/{ev → lib/rwd}/tree.rb +2 -2
- data/{ev → lib/rwd}/xml.rb +1 -1
- data/{extras → lib}/zip/ioextras.rb +0 -0
- data/{extras → lib}/zip/stdrubyext.rb +0 -0
- data/{extras → lib}/zip/tempfile_bugfixed.rb +0 -0
- data/{extras → lib}/zip/zip.rb +5 -4
- data/{extras → lib}/zip/zipfilesystem.rb +0 -0
- data/{extras → lib}/zip/ziprequire.rb +0 -0
- data/names/Angelina Jolie.jpg b/data/names/Angelina → Jolie.jpg +0 -0
- data/names/Angelina Jolie.nam b/data/names/Angelina → Jolie.nam +0 -0
- data/names/Angelina Jolie.vcf b/data/names/Angelina → Jolie.vcf +0 -0
- data/names/Steven Gibson.jpg b/data/names/Steven → Gibson.jpg +0 -0
- data/names/Steven Gibson.nam b/data/names/Steven → Gibson.nam +0 -0
- data/names/elektra.jpg +0 -0
- data/names/elektra.nam +0 -0
- data/names/nophoto.jpg +0 -0
- data/rwd_files/HowTo_Addresses.txt +8 -0
- data/rwd_files/HowTo_BigTinker.txt +146 -0
- data/rwd_files/HowTo_Tinker.txt +52 -0
- data/rwd_files/HowTo_TinkerWin2.txt +0 -0
- data/rwd_files/Readme.txt +0 -0
- data/rwd_files/{rwdindex.html → RubyWebDialogs.html} +0 -0
- data/rwd_files/contacttmp.jpg +0 -0
- data/rwd_files/favicon.ico +0 -0
- data/rwd_files/rdoc-style.css +0 -0
- data/rwd_files/rwdapplications.html +0 -0
- data/rwd_files/tinker.png +0 -0
- data/rwdaddresses.rb +1 -0
- data/rwdconfig.dist +11 -2
- data/tests/checkdepends.sh +0 -0
- data/tests/cleancnf.sh +2 -1
- data/tests/makedist-rwdwaddesses.rb +56 -0
- data/tests/makedist.rb +12 -5
- data/tests/rdep.rb +0 -0
- data/tests/totranslate.lang +0 -0
- data/updates/temp.rb +1 -0
- data/zips/rwdwaddresses-1.05.zip +0 -0
- data/zips/rwdwcalc-0.61.zip +0 -0
- data/zips/rwdwgutenberg-0.09.zip +0 -0
- data/zips/rwdwschedule-1.04.zip +0 -0
- data/zips/rwdwshell-1.04.zip +0 -0
- data/zips/temp.rb +1 -0
- data/zips/wrubyslippers-1.06.zip +0 -0
- metadata +78 -77
- data/code/superant.com.rwdaddresses/jumplinkupdate.rb +0 -11
- data/code/superant.com.rwdaddresses/returntomain.rb +0 -10
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +0 -96
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +0 -25
- data/extras/vpim/date.rb +0 -198
- data/extras/vpim/dirinfo.rb +0 -229
- data/extras/vpim/enumerator.rb +0 -29
- data/extras/vpim/field.rb +0 -497
- data/extras/vpim/maker/vcard.rb +0 -312
- data/extras/vpim/rfc2425.rb +0 -244
- data/extras/vpim/rrule.rb +0 -482
- data/extras/vpim/time.rb +0 -42
- data/extras/vpim/vcard.rb +0 -151
- data/extras/vpim/vpim.rb +0 -94
- data/gui/frontwindowtdocuments/superant.com.addressesdocuments/uu8doc_rwdschedule.rwd +0 -5
- data/gui/frontwindowtdocuments/superant.com.documents/uu5documents.rwd +0 -15
- data/gui/frontwindowtdocuments/superant.com.tinkerwin2documents/uu5documents.rwd +0 -6
- data/gui/frontwindowtdocumentzend/superant.com.documentsend/ww0documentend.rwd +0 -12
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/ya0helpscreenstart.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.rwdaddresseshelpabout/1appname.rwd +0 -4
- data/gui/helpaboutinstalled/superant.com.rwdaddresseshelpabout/3copyright.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.rwdaddresseshelpabout/5version.rwd +0 -9
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/1appname.rwd +0 -4
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/3copyright.rwd +0 -3
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/5version.rwd +0 -10
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/88viewconfiguration.rwd +0 -47
- data/installed/rwdviewlogo-0.4.inf +0 -4
- data/zips/rwdahelloworld-0.5.zip +0 -0
data/code/01rwdcore/01rwdcore.rb
CHANGED
@@ -4,16 +4,23 @@
|
|
4
4
|
# For more information about RwdTinker see http://www.rubyforge.net/projects/rwdapplications
|
5
5
|
# This class is the top class for the RwdTinker application
|
6
6
|
|
7
|
+
$DEBUG=false
|
8
|
+
$VERBOSE=false
|
9
|
+
|
7
10
|
class RwdTinker < RWDialog
|
8
11
|
|
9
12
|
def main
|
10
13
|
@rwd_window = "main"
|
11
14
|
@result = "idle"
|
15
|
+
|
12
16
|
@display= "idle"
|
13
17
|
if TestNow
|
14
18
|
|
15
19
|
rwdtest_harness
|
16
20
|
end
|
21
|
+
showjumplinkoptions
|
22
|
+
setuptinkerdocuments
|
23
|
+
setuphelpaboutoptionspassive
|
17
24
|
end
|
18
25
|
|
19
26
|
def inspect
|
File without changes
|
@@ -1,31 +1,23 @@
|
|
1
1
|
# Help files for RwdTinker core
|
2
2
|
|
3
3
|
|
4
|
-
:general_help => "You can work with Applets: go to 'Selection tab',
|
5
|
-
On that back screen you will find
|
6
|
-
List Applets: you can see and delete installed applets
|
7
|
-
List Zips: you can see lists of applets that you can install
|
8
|
-
Edit Configuration: You can view the rwdtinker configuration and change it
|
9
|
-
Diagnostic Tab: You can view the environments variables that rwdtinker is running with
|
4
|
+
:general_help => "You can work with Applets: go to 'Selection tab', <br>
|
5
|
+
On that back screen you will find:<br>
|
6
|
+
List Applets: you can see and delete installed applets<br>
|
7
|
+
List Zips: you can see lists of applets that you can install<br>
|
8
|
+
Edit Configuration: You can view the rwdtinker configuration and change it<br>
|
9
|
+
Diagnostic Tab: You can view the environments variables that rwdtinker is running with<br>
|
10
10
|
",
|
11
|
-
:network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the
|
12
|
-
init.rb file to something like:\n
|
13
|
-
RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n
|
11
|
+
:network_help => "Using over a Network: To serve the application over your local LAN,change the last line in the<br>
|
12
|
+
init.rb file to something like:\n<br>
|
13
|
+
RwdTinker.file(RWDFile).serve(8080, '-r' ? '.rwduids' : nil)\n<br>
|
14
14
|
Then you should be able to login at: http://yourhostname:8080",
|
15
15
|
|
16
16
|
|
17
|
-
:documents_rwdtinker => "Documents:
|
17
|
+
:documents_rwdtinker => "<b>Documents:
|
18
|
+
<p>
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
browser window, or in another browser tab.",
|
22
|
-
:remote_control => "Remote control gives you a way to determine what applications are running on which ports
|
23
|
-
|
24
|
-
The name of the application is set in the config file
|
25
|
-
You need to click the show remote command choices first - this will show the port and query choices
|
26
|
-
Then you can click in 'Run Command' to see if other applications are running.
|
27
|
-
|
28
|
-
The remote ports daemon will not be running unless you start it.
|
29
|
-
|
20
|
+
when you click on a document name, the document should pop up in a <br>
|
21
|
+
browser window, or in another browser tab.</b>
|
30
22
|
"
|
31
23
|
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# this code is to call the help window
|
2
2
|
def runhelpwindow
|
3
|
-
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration"
|
3
|
+
$helptopicsarray = $helptopicsarray | ["applet_installation","applet_viewing","applet_tinkerbackeditconfiguration"]
|
4
4
|
|
5
5
|
if @rwd_window == "main"
|
6
6
|
if @rwd_tab == "documentsrwdtinkerone"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -3,11 +3,19 @@
|
|
3
3
|
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
4
|
|
5
5
|
# return the version constant defined in the config file
|
6
|
+
def tinkerhelpaboutsetup
|
7
|
+
return ["RwdTinker","(c) 2004-2008 Steven Gibson ","Version #{RwdTinkerVersion}"]
|
8
|
+
end
|
9
|
+
|
6
10
|
def runrwdtinkerversion
|
7
11
|
@rwd_window = "applicationversion"
|
8
|
-
|
9
|
-
|
10
|
-
|
12
|
+
helpaboutinput = @a_helpaboutinput.downcase
|
13
|
+
versionarraysetup = "#{helpaboutinput}helpaboutsetup"
|
14
|
+
versionarray= self.send(versionarraysetup)
|
15
|
+
|
16
|
+
@versionappnamedisplay = versionarray[0].to_s
|
17
|
+
@versioncopyrightdisplay = versionarray[1].to_s
|
18
|
+
@versionnumberdisplay = versionarray[2].to_s
|
11
19
|
|
12
20
|
end
|
13
21
|
|
File without changes
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# help about option setup for rwdtinker application
|
2
|
+
def setuphelpaboutoptions
|
3
|
+
|
4
|
+
@rwd_window = "tinkerhelpabout"
|
5
|
+
@helpaboutoptions = $tinkerhelpaboutarray.rwd_options
|
6
|
+
end
|
7
|
+
|
8
|
+
def setuphelpaboutoptionspassive
|
9
|
+
|
10
|
+
|
11
|
+
@helpaboutoptions = $tinkerhelpaboutarray.rwd_options
|
12
|
+
end
|
13
|
+
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# Application RwdTinker orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a framework for writing programs from RubyWebDialogs
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# return the version constant defined in the config file
|
6
|
+
def bigtinkerhelpaboutsetup
|
7
|
+
return ["BigTinker","(c) 2004-2008 Steven Gibson ","Version #{BigTinkerVersion}"]
|
8
|
+
end
|
9
|
+
|
10
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
|
2
|
+
def rwdwaddresses_1_05()
|
3
|
+
$tinkerdocumentsarray.delete_if {|x| x == "HowTo_Addresses.txt"}
|
4
|
+
$tinkerhelpaboutarray.delete_if {|x| x == "RwdAddresses"}
|
5
|
+
Helptext.delete_if {|key, value| key == :viewaddresses_help}
|
6
|
+
Helptext.delete_if {|key, value| key == :editcontact_help }
|
7
|
+
Helptext.delete_if {|key, value| key == :contactutilities_help }
|
8
|
+
Helptext.delete_if {|key, value| key == :rwdaddresses_configuration }
|
9
|
+
Helptext.delete_if {|key, value| key == :rwdaddresses_sync }
|
10
|
+
$rwdjumplink.delete_if {|x| x == "AddressesTab"}
|
11
|
+
$rwdjumplink.delete_if {|x| x == "RwdAddressesBackWindow"}
|
12
|
+
$rwdjumplink.delete_if {|x| x == "ContactUtilitiesTab"}
|
13
|
+
|
14
|
+
end
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -1,45 +1,22 @@
|
|
1
|
-
# this method puts the configuration rexord on the screen
|
2
|
-
def loadrwdaddressesconfiguration
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
@a_adconfigline8 = fd.readline.chomp
|
24
|
-
@a_adconfigline9 = fd.readline.chomp
|
25
|
-
@a_adconfigline10 = fd.readline.chomp
|
26
|
-
@a_adconfigline11 = fd.readline.chomp
|
27
|
-
@a_adconfigline12 = fd.readline.chomp
|
28
|
-
@a_adconfigline13 = fd.readline.chomp
|
29
|
-
@a_adconfigline14 = fd.readline.chomp
|
30
|
-
@a_adconfigline15 = fd.readline.chomp
|
31
|
-
@a_adconfigline16 = fd.readline.chomp
|
32
|
-
@a_adconfigline17 = fd.readline.chomp
|
33
|
-
@a_adconfigline18 = fd.readline.chomp
|
34
|
-
@a_adconfigline19 = fd.readline.chomp
|
35
|
-
|
36
|
-
while ! fd.eof?
|
37
|
-
@extraadconfigdatadisplay = fd.readline
|
38
|
-
end
|
39
|
-
fd.close
|
40
|
-
rescue SystemCallError, StandardError
|
41
|
-
$stderr.print "system call error: " + $!
|
42
|
-
end # exception rescue
|
43
|
-
|
44
|
-
end
|
45
|
-
|
1
|
+
# this method puts the configuration rexord on the screen
|
2
|
+
def loadrwdaddressesconfiguration
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
@a_adconfigurationfilename = "rwdwaddresses-" + RwdAddressesVersion + ".cnf"
|
7
|
+
|
8
|
+
|
9
|
+
begin # exception trapped block
|
10
|
+
|
11
|
+
Dir.chdir($progdir)
|
12
|
+
fileName = File.join(ConfigurationDir, @a_adconfigurationfilename )
|
13
|
+
|
14
|
+
|
15
|
+
fd = File.open(fileName,"r")
|
16
|
+
@a_adconfigurationfile= fd.read
|
17
|
+
fd.close
|
18
|
+
rescue SystemCallError, StandardError
|
19
|
+
$stderr.print "system call error: " + $!
|
20
|
+
end # exception rescue
|
21
|
+
|
22
|
+
end
|
@@ -1,7 +1,8 @@
|
|
1
1
|
# this method loads the on screen variables into the running class
|
2
2
|
def loadrwdaddressesconfigurationvariables
|
3
3
|
|
4
|
-
|
4
|
+
tempfilename = "rwdwaddresses-" + #{RwdAddressesVersion} + ".cnf"
|
5
|
+
configfiletoload = File.join(ConfigurationDir, tempfilename)
|
5
6
|
begin
|
6
7
|
load configfiletoload
|
7
8
|
@extraadconfigdatadisplay = ""
|
File without changes
|
File without changes
|
File without changes
|
@@ -4,17 +4,17 @@
|
|
4
4
|
|
5
5
|
# call the window
|
6
6
|
def runrwdaddressesmenu1
|
7
|
-
@rwd_window = "
|
7
|
+
@rwd_window = "rwdaddresseswindow"
|
8
8
|
@rwd_tab = "Viewnamedata"
|
9
9
|
end
|
10
10
|
def runrwdaddressesmenu2
|
11
|
-
@rwd_window = "
|
11
|
+
@rwd_window = "rwdaddresseswindow"
|
12
12
|
@rwd_tab = "editnamerecordfile"
|
13
13
|
end
|
14
14
|
|
15
15
|
|
16
16
|
def runrwdaddressesmenu3
|
17
|
-
@rwd_window = "
|
17
|
+
@rwd_window = "rwdaddresseswindow"
|
18
18
|
@rwd_tab = "contactutilitiesrwdaddresses"
|
19
19
|
end
|
20
20
|
def runrwdaddressesmenu4
|
@@ -28,7 +28,7 @@ def runrwdaddressesmenu10
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def runrwdaddressesmenu11
|
31
|
-
@rwd_window = "
|
31
|
+
@rwd_window = "rwdaddresseswindow"
|
32
32
|
@rwd_tab = "documentsrwdtinkerone"
|
33
33
|
end
|
34
34
|
|
File without changes
|
@@ -3,11 +3,8 @@
|
|
3
3
|
# For information see http://www.rubyforge.net/projects/rwdapplications
|
4
4
|
|
5
5
|
# return the version constant defined in the config file
|
6
|
-
def
|
7
|
-
|
8
|
-
@versionappnamedisplay = "RwdAddresses"
|
9
|
-
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
10
|
-
@versionnumberdisplay = "Version " + RwdAddressesVersion
|
6
|
+
def rwdaddresseshelpaboutsetup
|
7
|
+
return ["RwdAddresses", "(c) 2004 Steven Gibson ", "Version #{RwdAddressesVersion}"]
|
11
8
|
|
12
9
|
end
|
13
10
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
def saverwdaddressesconfiguration
|
3
3
|
require 'fileutils'
|
4
4
|
|
5
|
-
newname = "
|
5
|
+
newname = "rwdwaddresses-" + #{RwdAddressesVersion} + ".cnf" # grab the filename to create
|
6
6
|
|
7
7
|
|
8
8
|
newdata =@a_adconfigline1.to_s + "\n" + @a_adconfigline2.to_s + "\n" + @a_adconfigline3.to_s + "\n" + @a_adconfigline4.to_s + "\n" + @a_adconfigline5.to_s + "\n" + @a_adconfigline6.to_s + "\n" + @a_adconfigline7.to_s + "\n" + @a_adconfigline8.to_s + "\n" + @a_adconfigline9.to_s + "\n" + @a_adconfigline10.to_s + "\n" + @a_adconfigline11.to_s + "\n" + @a_adconfigline12.to_s + "\n" + @a_adconfigline13.to_s + "\n" + @a_adconfigline14.to_s + "\n" + @a_adconfigline15.to_s + "\n" + @a_adconfigline16.to_s + "\n" + @a_adconfigline17.to_s + "\n" + @a_adconfigline18.to_s + "\n" + @a_adconfigline19.to_s + "\n"
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,240 @@
|
|
1
|
+
|
2
|
+
#***********************************************************************
|
3
|
+
#* Rwd/Tinker -- A Ruby program for the RudyWebDialog.
|
4
|
+
#* Copyright (c) 2004 - 2005 by Steven Gibson. All Rights Reserved.
|
5
|
+
#*
|
6
|
+
#* This library is free software; you can redistribute it and/or
|
7
|
+
#* modify it under the terms of the GNU General Public
|
8
|
+
#* License as published by the Free Software Foundation; either
|
9
|
+
#* .
|
10
|
+
#*
|
11
|
+
#* These files are distributed in the hope that they will be useful,
|
12
|
+
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
#* General Public License for more details.
|
15
|
+
#*
|
16
|
+
#* You should have received a copy of the GNU General Public
|
17
|
+
#* License along with these files; if not, write to the Free Software
|
18
|
+
#* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
19
|
+
#*
|
20
|
+
#* For further information please contact the author by e-mail
|
21
|
+
#* at "smalllinux@gmail.com".
|
22
|
+
#***********************************************************************/
|
23
|
+
|
24
|
+
|
25
|
+
|
26
|
+
# integrate the new configuration files
|
27
|
+
def initiateapplet(nametextlocal)
|
28
|
+
|
29
|
+
debuginitiate = 0
|
30
|
+
|
31
|
+
if $DEBUG
|
32
|
+
$stderr.puts "starting config load with: #{nametextlocal}"
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
Dir.chdir($progdir ) #changes the current working directory
|
37
|
+
|
38
|
+
@confignew = "configuration/" + "#{nametextlocal}.cnf"
|
39
|
+
@configdist = "configuration/" + "#{nametextlocal}.dist"
|
40
|
+
Rconftool::install(@configdist,@confignew)
|
41
|
+
|
42
|
+
begin
|
43
|
+
|
44
|
+
configfileload = File.open(@configdist){|f| f.read}
|
45
|
+
|
46
|
+
eval configfileload #load config file
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
rescue
|
51
|
+
|
52
|
+
if $DEBUG
|
53
|
+
$stderr.puts "error in initiateapplets - config load"
|
54
|
+
end
|
55
|
+
debuginitiate += 1
|
56
|
+
end
|
57
|
+
$tempdoc = " "
|
58
|
+
|
59
|
+
Dir.chdir($progdir) # change back to top program directory
|
60
|
+
|
61
|
+
# build the English Language hash file from the parts
|
62
|
+
languagehashvariable = 'Message.update('
|
63
|
+
startlangdir = File.join(LangDir,"en")
|
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
|
+
|
91
|
+
#writes the contents of doc into the languagehashvariable
|
92
|
+
|
93
|
+
|
94
|
+
languagehashvariable = languagehashvariable + $tempdoc + ' :rwdtinker => "Rwdtinker" ) ;'
|
95
|
+
|
96
|
+
# END of en Lang building
|
97
|
+
$tempdoc = " "
|
98
|
+
Dir.chdir($progdir) # change back to top program directory
|
99
|
+
|
100
|
+
# build the local Language hash file from the parts
|
101
|
+
startlangdir = File.join(LangDir,$lang)
|
102
|
+
#get a list of the files and subdirectories on the starting directory only
|
103
|
+
alanghash = Array.new(Dir[startlangdir].entries.sort)
|
104
|
+
#loop through the list, ignore the files and add all new directories found
|
105
|
+
alanghash.each do |x|
|
106
|
+
#if a directory...
|
107
|
+
if(test(?d,x))
|
108
|
+
# add to the original list of directories
|
109
|
+
@@tmproot = x + "/**"
|
110
|
+
#adds the new ones to the array
|
111
|
+
blanghash = Dir[@@tmproot].entries.sort
|
112
|
+
blanghash.each do |x|
|
113
|
+
if(test(?d,x))
|
114
|
+
alanghash.push(x) #appends to the end of the array...
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
119
|
+
alanghash.each do |x|
|
120
|
+
#if it is a file...
|
121
|
+
if(!test(?d,x))
|
122
|
+
alanghash.delete(x)
|
123
|
+
else #it is a directory...
|
124
|
+
findfiles(x + "/**")
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
#writes the contents of doc into the variable
|
130
|
+
|
131
|
+
languagehashvariable = languagehashvariable + " Message.update(" + $tempdoc + ' :rwdtinker => "Rwdtinker" ) '
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
$tempdoc = " "
|
136
|
+
|
137
|
+
Dir.chdir($progdir) # change back to top program directory
|
138
|
+
|
139
|
+
temp = eval( languagehashvariable )
|
140
|
+
|
141
|
+
|
142
|
+
tempguistorage = $rwd_gui_tinker # if gui load fails restore old
|
143
|
+
begin # error trap
|
144
|
+
|
145
|
+
# build the actual GUI from the gui parts
|
146
|
+
$tempdoc = " "
|
147
|
+
#get a list of the files and subdirectories on the starting directory only
|
148
|
+
a = Array.new(Dir[GuiDir].entries.sort)
|
149
|
+
#loop through the list, ignore the files and add all new directories found
|
150
|
+
a.each do |x|
|
151
|
+
#if a directory...
|
152
|
+
if(test(?d,x))
|
153
|
+
#use this new dir find to add to the original list of directories
|
154
|
+
@@root = x + "/**"
|
155
|
+
#adds the new ones to the array
|
156
|
+
b = Dir[@@root].entries.sort
|
157
|
+
b.each do |x|
|
158
|
+
if(test(?d,x))
|
159
|
+
a.push(x) #appends to the end of the array...
|
160
|
+
end
|
161
|
+
end
|
162
|
+
end
|
163
|
+
end
|
164
|
+
a.each do |x|
|
165
|
+
#if it is a file...
|
166
|
+
if(!test(?d,x))
|
167
|
+
a.delete(x)
|
168
|
+
|
169
|
+
else #it is a directory...
|
170
|
+
loadguifile(x + "/**")
|
171
|
+
|
172
|
+
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
$rwd_gui_tinker = $tempdoc
|
177
|
+
|
178
|
+
|
179
|
+
rescue
|
180
|
+
$rwd_gui_tinker = tempguistorage # restore old gui
|
181
|
+
if $DEBUG
|
182
|
+
$stderr.puts "error in initiateapplets - gui building"
|
183
|
+
end
|
184
|
+
|
185
|
+
debuginitiate += 1
|
186
|
+
end
|
187
|
+
|
188
|
+
begin # error trap
|
189
|
+
# now load in the code files
|
190
|
+
|
191
|
+
$tempdoc = ""
|
192
|
+
tempcodeinstallline = ""
|
193
|
+
|
194
|
+
@fileName = "installed/" + nametextlocal + ".inf"
|
195
|
+
|
196
|
+
tmpfilearray = File.readlines(@fileName)
|
197
|
+
|
198
|
+
tmpfilearray.each do |line|
|
199
|
+
|
200
|
+
tempcodeinstallline = line.chomp
|
201
|
+
if tempcodeinstallline.include?('code/')
|
202
|
+
findfiles(tempcodeinstallline + "/**")
|
203
|
+
tempcoderesult = eval( $tempdoc ) # read the program code and evaluate
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
|
208
|
+
rescue
|
209
|
+
if $DEBUG
|
210
|
+
$stderr.puts "error in initiateapplets - code building"
|
211
|
+
end
|
212
|
+
debuginitiate += 1
|
213
|
+
|
214
|
+
|
215
|
+
end
|
216
|
+
|
217
|
+
setuphelpaboutoptions # update the help about list
|
218
|
+
setuptinkerdocuments # update the document pull down list
|
219
|
+
runhelpwindow # update the help menu
|
220
|
+
showjumplinkoptions # update the application link menu
|
221
|
+
runrwdtinkerbackwindow # back to applet window
|
222
|
+
|
223
|
+
# resultend = tempcodeinstallline .index("\n",resultstart)
|
224
|
+
tempresult = @fileName
|
225
|
+
|
226
|
+
return " applet loading successful " + tempresult
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
if debuginitiate > 0
|
231
|
+
return " initiateapplet .."
|
232
|
+
else
|
233
|
+
return " initiateapplet success"
|
234
|
+
end
|
235
|
+
|
236
|
+
end
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|