bigtinker 0.93
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/Books/Mariposa.gut +2 -0
- data/Books/marip10.txt +2598 -0
- data/Notes/changes.lnk +1 -0
- data/Notes/changes.txt +1 -0
- data/Notes/hypernote/hypernote01.txt +1 -0
- data/Notes/hypernote/hypernote02.txt +1 -0
- data/Notes/hypernote/newnote3.txt +2 -0
- data/Notes/rwdtinker/RwdtinkerProgrammingQuickStart.lnk +1 -0
- data/Notes/rwdtinker/RwdtinkerProgrammingQuickStart.txt +11 -0
- data/Notes/rwdtinker/newnote.txt +1 -0
- data/Notes/rwdtinker/rwdtinker01.txt +9 -0
- data/Notes/rwdtinker/testnote2.txt +1 -0
- data/Readme.txt +146 -0
- data/bin/bigtinker +19 -0
- data/code/01rwdcore/01rwdcore.rb +25 -0
- data/code/01rwdcore/02helptexthashbegin.rb +4 -0
- data/code/01rwdcore/03helptexthash.rb +31 -0
- data/code/01rwdcore/04helptextend.rb +6 -0
- data/code/01rwdcore/jumplinkcommand.rb +26 -0
- data/code/01rwdcore/openhelpwindow.rb +31 -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 +10 -0
- data/code/01rwdcore/runopentinkerdocument.rb +7 -0
- data/code/01rwdcore/rwdtinkerversion.rb +22 -0
- data/code/01rwdcore/rwdwindowreturn.rb +9 -0
- data/code/01rwdcore/selectiontab.rb +9 -0
- data/code/01rwdcore/setuphelpaboutoptions.rb +13 -0
- data/code/01rwdcore/setuptinkerdocuments.rb +6 -0
- data/code/01rwdcore/test_cases.rb +109 -0
- data/code/01rwdcore/test_harness.rb +13 -0
- data/code/01rwdcore/uploadreturns.rb +62 -0
- data/code/superant.com.bigtinker/rwdtinkerversion.rb +10 -0
- data/code/superant.com.gutenberg/changegutenbergname.rb +16 -0
- data/code/superant.com.gutenberg/clearbookscreendisplay.rb +8 -0
- data/code/superant.com.gutenberg/copyfilename.rb +24 -0
- data/code/superant.com.gutenberg/createnewnote.rb +23 -0
- data/code/superant.com.gutenberg/deletegutenbergrecord.rb +21 -0
- data/code/superant.com.gutenberg/gutenbergcreatefile.rb +9 -0
- data/code/superant.com.gutenberg/helptexthashrwdgutenberg.rb +41 -0
- data/code/superant.com.gutenberg/jumplinkupdate.rb +7 -0
- data/code/superant.com.gutenberg/listnamerecord.rb +15 -0
- data/code/superant.com.gutenberg/listtextfilesgutenberg.rb +58 -0
- data/code/superant.com.gutenberg/loadbookrecord.rb +21 -0
- data/code/superant.com.gutenberg/loadconfigurationrecord.rb +36 -0
- data/code/superant.com.gutenberg/loadconfigurationvariables.rb +13 -0
- data/code/superant.com.gutenberg/openhelpwindowgutenberg.rb +29 -0
- data/code/superant.com.gutenberg/returntomain.rb +10 -0
- data/code/superant.com.gutenberg/runbackwindow.rb +10 -0
- data/code/superant.com.gutenberg/rungutenbergwindow.rb +57 -0
- data/code/superant.com.gutenberg/rwdgutenbergbackward.rb +27 -0
- data/code/superant.com.gutenberg/rwdhypernotehelpabout.rb +14 -0
- data/code/superant.com.gutenberg/rwdtinkerversion.rb +10 -0
- data/code/superant.com.gutenberg/saveconfigurationrecord.rb +18 -0
- data/code/superant.com.gutenberg/savegutenbergrecord.rb +20 -0
- data/code/superant.com.gutenberg/savelinkrecord.rb +23 -0
- data/code/superant.com.hypernote/archiveevent.rb +14 -0
- data/code/superant.com.hypernote/changehypernotename.rb +21 -0
- data/code/superant.com.hypernote/clearhypernotescreendisplay.rb +8 -0
- data/code/superant.com.hypernote/clearlinkscreendisplay.rb +8 -0
- data/code/superant.com.hypernote/copyfilename.rb +10 -0
- data/code/superant.com.hypernote/createnewnote.rb +14 -0
- data/code/superant.com.hypernote/deletehypernoterecord.rb +20 -0
- data/code/superant.com.hypernote/helptexthashrwdhypernote.rb +74 -0
- data/code/superant.com.hypernote/hyperlinkcreatelinkfile.rb +19 -0
- data/code/superant.com.hypernote/jumplinkupdate.rb +7 -0
- data/code/superant.com.hypernote/listhypernotelinks.rb +55 -0
- data/code/superant.com.hypernote/listhypernotes.rb +63 -0
- data/code/superant.com.hypernote/listlinknotes.rb +33 -0
- data/code/superant.com.hypernote/loadconfigurationrecord.rb +34 -0
- data/code/superant.com.hypernote/loadconfigurationvariables.rb +13 -0
- data/code/superant.com.hypernote/loadlinksrecord.rb +21 -0
- data/code/superant.com.hypernote/loadnoterecord.rb +24 -0
- data/code/superant.com.hypernote/openhelpwindowrwdhyernote.rb +34 -0
- data/code/superant.com.hypernote/returntomain.rb +10 -0
- data/code/superant.com.hypernote/runrwdhypernotconfiguration.rb +12 -0
- data/code/superant.com.hypernote/runrwdhypernotebackwindow.rb +12 -0
- data/code/superant.com.hypernote/rwdhypernotehelpabout.rb +14 -0
- data/code/superant.com.hypernote/rwdtinkerversion.rb +10 -0
- data/code/superant.com.hypernote/saveconfigurationrecord.rb +18 -0
- data/code/superant.com.hypernote/savehypernoterecord.rb +20 -0
- data/code/superant.com.hypernote/savelinkrecord.rb +23 -0
- data/code/superant.com.rwdaddresses/attachtmpcontactphoto.rb +24 -0
- data/code/superant.com.rwdaddresses/clearscreendisplay.rb +15 -0
- data/code/superant.com.rwdaddresses/createnewnamerecord.rb +19 -0
- data/code/superant.com.rwdaddresses/deletecontactrecord.rb +25 -0
- data/code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb +19 -0
- data/code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb +36 -0
- data/code/superant.com.rwdaddresses/helptexthashrwdaddresses.rb +69 -0
- data/code/superant.com.rwdaddresses/jumplinkupdate.rb +9 -0
- data/code/superant.com.rwdaddresses/listnamerecord.rb +15 -0
- data/code/superant.com.rwdaddresses/listvcardrecord.rb +15 -0
- data/code/superant.com.rwdaddresses/loadconfigurationrecord.rb +45 -0
- data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +14 -0
- data/code/superant.com.rwdaddresses/loadnamerecord.rb +30 -0
- data/code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb +30 -0
- data/code/superant.com.rwdaddresses/renamecontact.rb +15 -0
- data/code/superant.com.rwdaddresses/runaddresseswindow.rb +10 -0
- data/code/superant.com.rwdaddresses/runrwdaddressesmenu1.rb +34 -0
- data/code/superant.com.rwdaddresses/runrwdaddresssyncbackwindow.rb +10 -0
- data/code/superant.com.rwdaddresses/rwdaddressesbackwindow.rb +10 -0
- data/code/superant.com.rwdaddresses/rwdaddresseshelpabout.rb +13 -0
- data/code/superant.com.rwdaddresses/rwdtinkerversion.rb +10 -0
- data/code/superant.com.rwdaddresses/saveconfigurationrecord.rb +20 -0
- data/code/superant.com.rwdaddresses/savevcardrecord.rb +76 -0
- data/code/superant.com.rwdaddresses/syncrwdaddress.rb +28 -0
- data/code/superant.com.rwdaddresses/test_cases.rb +46 -0
- data/code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb +46 -0
- data/code/superant.com.rwdaddresses/viewaddressconfiguration.rb +21 -0
- data/code/superant.com.rwdaddresses/viewnamedata.rb +28 -0
- data/code/superant.com.rwdaddresses/viewphoto.rb +4 -0
- data/code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb +23 -0
- data/code/superant.com.rwdaddresses/viewtmpcontactphoto.rb +12 -0
- data/code/superant.com.rwdaddresses/viewvcarddata.rb +22 -0
- data/code/superant.com.rwdcalc/ca2multiply.rb +10 -0
- data/code/superant.com.rwdcalc/changescriptname.rb +16 -0
- data/code/superant.com.rwdcalc/clearrubyscriptscreendisplay.rb +9 -0
- data/code/superant.com.rwdcalc/clearscriptscreendisplay.rb +9 -0
- data/code/superant.com.rwdcalc/deletescriptrecord.rb +20 -0
- data/code/superant.com.rwdcalc/fadd.rb +10 -0
- data/code/superant.com.rwdcalc/frwdcleartape.rb +9 -0
- data/code/superant.com.rwdcalc/frwddivide.rb +10 -0
- data/code/superant.com.rwdcalc/frwdmultiply.rb +10 -0
- data/code/superant.com.rwdcalc/frwdsubtract.rb +10 -0
- data/code/superant.com.rwdcalc/helptexthashrwdcalc.rb +14 -0
- data/code/superant.com.rwdcalc/jumplinkupdate.rb +11 -0
- data/code/superant.com.rwdcalc/listscripts.rb +13 -0
- data/code/superant.com.rwdcalc/loadrubyrecord.rb +20 -0
- data/code/superant.com.rwdcalc/loadscriptrecord.rb +20 -0
- data/code/superant.com.rwdcalc/mathcommands.rb +53 -0
- data/code/superant.com.rwdcalc/openhelpwindowrwdcalc.rb +21 -0
- data/code/superant.com.rwdcalc/playscript.rb +22 -0
- data/code/superant.com.rwdcalc/renamecalcrecord.rb +14 -0
- data/code/superant.com.rwdcalc/runrwdcalcwindow.rb +10 -0
- data/code/superant.com.rwdcalc/rwdadd.rb +10 -0
- data/code/superant.com.rwdcalc/rwdcleartape.rb +9 -0
- data/code/superant.com.rwdcalc/rwddivision.rb +10 -0
- data/code/superant.com.rwdcalc/rwdsubtraction.rb +10 -0
- data/code/superant.com.rwdcalc/savechangedscript.rb +19 -0
- data/code/superant.com.rwdcalc/saverubyscript.rb +20 -0
- data/code/superant.com.rwdcalc/viewscript.rb +18 -0
- data/code/superant.com.rwdcalendar/gh9calendar.rb +40 -0
- data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +14 -0
- data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +17 -0
- data/code/superant.com.rwdshell/changescriptname.rb +16 -0
- data/code/superant.com.rwdshell/clearscriptscreendisplay.rb +9 -0
- data/code/superant.com.rwdshell/deletescriptrecord.rb +20 -0
- data/code/superant.com.rwdshell/helptexthashshell.rb +31 -0
- data/code/superant.com.rwdshell/listrubyscripts.rb +13 -0
- data/code/superant.com.rwdshell/listscripts.rb +13 -0
- data/code/superant.com.rwdshell/loadconfigurationrecord.rb +33 -0
- data/code/superant.com.rwdshell/loadconfigurationvariables.rb +13 -0
- data/code/superant.com.rwdshell/loadscriptrecord.rb +20 -0
- data/code/superant.com.rwdshell/openhelpwindowshell.rb +33 -0
- data/code/superant.com.rwdshell/playrubyscript.rb +23 -0
- data/code/superant.com.rwdshell/playscript.rb +23 -0
- data/code/superant.com.rwdshell/returntomain.rb +10 -0
- data/code/superant.com.rwdshell/rubyeval.rb +25 -0
- data/code/superant.com.rwdshell/runrwdshellbackwindow.rb +10 -0
- data/code/superant.com.rwdshell/runrwdshellwindow.rb +12 -0
- data/code/superant.com.rwdshell/rwdshellversion.rb +14 -0
- data/code/superant.com.rwdshell/savechangedscript.rb +19 -0
- data/code/superant.com.rwdshell/saveconfigurationrecord.rb +18 -0
- data/code/superant.com.rwdshell/shelleval.rb +20 -0
- data/code/superant.com.rwdshell/viewrubyscript.rb +18 -0
- data/code/superant.com.rwdshell/viewscript.rb +18 -0
- data/code/superant.com.rwdtinkerbackwindow/controlclient.rb +96 -0
- data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
- data/code/superant.com.rwdtinkerbackwindow/helptexthashtinkerwin2.rb +61 -0
- data/code/superant.com.rwdtinkerbackwindow/installapplet.rb +25 -0
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +21 -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 +53 -0
- data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +12 -0
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +27 -0
- data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +39 -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 +42 -0
- data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
- data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +33 -0
- data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
- data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +11 -0
- data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
- data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +22 -0
- data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +22 -0
- data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
- data/code/superant.com.words/dictlookup.rb +20 -0
- data/code/superant.com.words/jumplinkupdate.rb +6 -0
- data/code/superant.com.words/runfortunewindow.rb +14 -0
- data/code/superant.com.words/runrwdwordsbackwindow.rb +10 -0
- data/code/superant.com.words/runrwdwordsversion.rb +14 -0
- data/code/superant.com.words/rwdtinkerversion.rb +10 -0
- data/code/zz0applicationend/zz0end.rb +4 -0
- data/configuration/bigtinker.dist +3 -0
- data/configuration/language.dist +7 -0
- data/configuration/rwdaddresses.dist +21 -0
- data/configuration/rwdapplicationidentity.dist +3 -0
- data/configuration/rwdcalc.dist +8 -0
- data/configuration/rwdcalendar.dist +10 -0
- data/configuration/rwdgutenberg.dist +14 -0
- data/configuration/rwdhypernote.dist +13 -0
- data/configuration/rwdshell.dist +4 -0
- data/configuration/rwdtinker.dist +19 -0
- data/configuration/rwdwords.dist +18 -0
- data/configuration/tinkerwin2variables.dist +17 -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 +1849 -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 +158 -0
- data/extras/dict.rb +438 -0
- data/extras/icalendar/base.rb +17 -0
- data/extras/icalendar/calendar.rb +44 -0
- data/extras/icalendar/calendar_parser.rb +237 -0
- data/extras/icalendar/component/alarm.rb +16 -0
- data/extras/icalendar/component/event.rb +25 -0
- data/extras/icalendar/component/freebusy.rb +12 -0
- data/extras/icalendar/component/journal.rb +25 -0
- data/extras/icalendar/component/timezone.rb +26 -0
- data/extras/icalendar/component/todo.rb +21 -0
- data/extras/icalendar/component.rb +91 -0
- data/extras/icalendar/helpers.rb +103 -0
- data/extras/icalendar/parameter.rb +25 -0
- data/extras/icalendar.rb +18 -0
- data/extras/rconftool.rb +380 -0
- data/extras/zip/ioextras.rb +114 -0
- data/extras/zip/stdrubyext.rb +111 -0
- data/extras/zip/tempfile_bugfixed.rb +195 -0
- data/extras/zip/zip.rb +1377 -0
- data/extras/zip/zipfilesystem.rb +558 -0
- data/extras/zip/ziprequire.rb +61 -0
- data/gui/00coreguibegin/applicationguitop.rwd +4 -0
- data/gui/frontwindow0/superant.com.rwdcalendar/hl9calendar.rwd +27 -0
- data/gui/frontwindow0/superant.com.shellscripts/1listplayscripts.rwd +17 -0
- data/gui/frontwindow0/superant.com.shellscripts/2listscripts.rwd +25 -0
- data/gui/frontwindow0/superant.com.shellscripts/3editscripts.rwd +26 -0
- data/gui/frontwindow0/superant.com.shellscripts/4scriptutilities.rwd +24 -0
- data/gui/frontwindow0/superant.com.shellscripts/6rwdshelleval.rwd +15 -0
- data/gui/frontwindow0/superant.com.shellscripts/cb7rwdrubyeval.rwd +13 -0
- data/gui/frontwindowselectionbegin/selectiontabbegin/00selectiontabbegin.rwd +11 -0
- data/gui/frontwindowselections/superant.com.rwdtinkerwin2selectiontab/jumplinkcommands.rwd +15 -0
- data/gui/frontwindowselectionzend/viewselectionzend/wwselectionend.rwd +3 -0
- data/gui/frontwindowselectionzend/viewselectionzend/zzdocumentbegin.rwd +6 -0
- data/gui/frontwindowtdocuments/superant.com.documents/tinkerdocuments.rwd +14 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzdocumentend.rwd +8 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzrwdlasttab.rwd +6 -0
- data/gui/helpaboutbegin/superant.com.helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
- data/gui/helpaboutinstalled/superant.com.tinkerhelpabout/helpabouttab.rwd +15 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/helpscreenend.rwd +3 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zhelpscreenstart2.rwd +3 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpabout2.rwd +15 -0
- data/gui/helpaboutzend/superant.com.helpaboutend/zzzzhelpscreen2end.rwd +3 -0
- data/gui/tinkerbackwindows/superant.com.addressesphotowindow/yy7addressesphoto.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/00rwdgutenberg.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/10viewnote.rwd +32 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/20listfiles.rwd +35 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/30booklistutilities.rwd +28 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/35displaytab.rwd +10 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/40rwdgutenberg.rwd +16 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/67viewconfiguration.rwd +40 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/77jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.gutenberg/zvbackend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.gutendisplay/gutendisplaywindow.rwd +9 -0
- data/gui/tinkerbackwindows/superant.com.hypernote/00windowbegin.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.hypernote/10viewnote.rwd +32 -0
- data/gui/tinkerbackwindows/superant.com.hypernote/20editlinks.rwd +34 -0
- data/gui/tinkerbackwindows/superant.com.hypernote/30noteutilities.rwd +27 -0
- data/gui/tinkerbackwindows/superant.com.hypernote/67viewconfiguration.rwd +38 -0
- data/gui/tinkerbackwindows/superant.com.hypernote/m01menubegin.rwd +18 -0
- data/gui/tinkerbackwindows/superant.com.hypernote/zbackend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.refreshwindow/fortunerefreshwindowtwo.rwd +9 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/00rwdaddresses.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/11viewnamedata.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/13listnamerecordfiles.rwd +21 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/16editrecord.rwd +39 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/17viewvcardrecord.rwd +32 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/18contactutilities.rwd +34 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/m01menubegin.rwd +18 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/zvbackend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/20downloadftp.rwd +45 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/70rwddiagnostics.rwd +23 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/88viewconfiguration.rwd +47 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/94selectiontab.rwd +11 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/95jumplink.rwd +15 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/97selectionend.rwd +3 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/zvbackend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/20floatrwdcalc.rwd +23 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/30intrwdcalc.rwd +23 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/35mathcommands.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/44listplayscripts.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/45listscripts.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/46editscriptrecord.rwd +30 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/4scriptutilities.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/z9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/44listplayscripts.rwd +19 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/45listscripts.rwd +25 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/46editscriptrecord.rwd +30 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/92viewconfiguration.rwd +38 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/94rwddiagnostics.rwd +16 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/98jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/zbackend.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +42 -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 +44 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdcontrol.rwd +33 -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/3rwdfortune.rwd +14 -0
- data/gui/tinkerbackwindows/superant.com.words/77jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.words/80tab1.rwd +11 -0
- data/gui/tinkerbackwindows/superant.com.words/z9end.rwd +6 -0
- data/gui/zzcoreguiend/tinkerapplicationguiend/yy9rwdend.rwd +4 -0
- data/init.rb +277 -0
- data/installed/gutenbergdata01.inf +3 -0
- data/installed/hypernotedata1.inf +12 -0
- data/installed/rwdaddressesdata2.inf +8 -0
- data/installed/rwdgutenberg-0.03.inf +9 -0
- data/installed/rwdviewlogo-0.4.inf +4 -0
- data/installed/rwdwaddresses-1.04.inf +13 -0
- data/installed/rwdwhypernote-0.07.inf +7 -0
- data/installed/rwdwwords-0.02.inf +10 -0
- data/lang/en/rwdcalendar/calendar-en.rb +6 -0
- data/lang/en/rwdcore/languagefile.rb +16 -0
- data/lang/es/rwdcalendar/calendar-nl.rb +6 -0
- data/lang/es/rwdcore/languagefile-es.rb +14 -0
- data/lang/jp/rwdcore/languagefile.rb +9 -0
- data/lang/nl/rwdcalendar/calendar-nl.rb +6 -0
- data/lang/nl/rwdcore/languagefile.rb +19 -0
- data/lib/temp.rb +1 -0
- data/names/Angelina Jolie.jpg +0 -0
- data/names/Angelina Jolie.nam +8 -0
- data/names/Angelina Jolie.vcf +8 -0
- data/names/Steven Gibson.jpg +0 -0
- data/names/Steven Gibson.nam +5 -0
- data/names/elektra.jpg +0 -0
- data/names/elektra.nam +7 -0
- data/names/nophoto.jpg +0 -0
- data/rwd_files/HowTo_Addresses.txt +259 -0
- data/rwd_files/HowTo_BigTinker.txt +146 -0
- data/rwd_files/HowTo_Gutenberg.txt +94 -0
- data/rwd_files/HowTo_HyperNote.txt +121 -0
- data/rwd_files/HowTo_RubyEval.html +80 -0
- data/rwd_files/HowTo_RwdCalc.txt +110 -0
- data/rwd_files/HowTo_Shell.txt +257 -0
- data/rwd_files/HowTo_Tinker.txt +425 -0
- data/rwd_files/HowTo_TinkerWin2.txt +202 -0
- data/rwd_files/HowTo_Words.txt +132 -0
- data/rwd_files/Readme.txt +57 -0
- data/rwd_files/RubyWebDialogs.html +6 -0
- data/rwd_files/contacttmp.jpg +0 -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/tinker.png +0 -0
- data/rwdconfig.dist +18 -0
- data/tests/RubyGauge.rb +179 -0
- data/tests/checkdepends.sh +4 -0
- data/tests/cleancnf.sh +5 -0
- data/tests/makedist.rb +59 -0
- data/tests/makerwdwaddresses-1.04.rb +40 -0
- data/tests/rdep.rb +354 -0
- data/tests/totranslate.lang +93 -0
- data/zips/rwdahelloworld-0.5.zip +0 -0
- metadata +447 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
Helptext.update(:viewaddresses_help => " Type in the name of the contact you want.
|
|
4
|
+
|
|
5
|
+
Type it as the record file is saved or click on the list
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Then click the 'Open' button
|
|
9
|
+
|
|
10
|
+
If it finds the record it will open it. It displays the record as text under the search box.
|
|
11
|
+
",
|
|
12
|
+
|
|
13
|
+
:editcontact_help => " Use the 'Edit Contact' tab
|
|
14
|
+
this is where you can add records.
|
|
15
|
+
The first field is the filename that will be created.
|
|
16
|
+
You can use the person's name, Ringo Starr
|
|
17
|
+
|
|
18
|
+
The following lines for entry are for you to fill in as you want.
|
|
19
|
+
|
|
20
|
+
When you are finished press the Save Changes button
|
|
21
|
+
|
|
22
|
+
You use this same screen for editing an already saved event
|
|
23
|
+
|
|
24
|
+
For the 'Fill Record' button to work, you need to select an existing record on 'view contact' tab
|
|
25
|
+
",
|
|
26
|
+
:contactutilities_help => "
|
|
27
|
+
on the Contacts Utilities tab you can
|
|
28
|
+
rename records
|
|
29
|
+
delete records
|
|
30
|
+
or attach photos
|
|
31
|
+
|
|
32
|
+
select the name record,
|
|
33
|
+
put a jpg photo in the /tmp directory
|
|
34
|
+
select the photo
|
|
35
|
+
click on Attach photo, it will rename the photo and copy it to the
|
|
36
|
+
addresses directory",
|
|
37
|
+
|
|
38
|
+
:rwdaddresses_configuration => " click on 'Edit Configuration'
|
|
39
|
+
You can view the configuration file
|
|
40
|
+
|
|
41
|
+
You can edit the configuration
|
|
42
|
+
|
|
43
|
+
Remember to reload the configuration variables if you want your
|
|
44
|
+
changes used.",
|
|
45
|
+
:rwdaddresses_sync => "Sync for multiple computers
|
|
46
|
+
|
|
47
|
+
If you are like me, you have more than one system
|
|
48
|
+
I use rwdTinker at home on my Linux laptop
|
|
49
|
+
at work I use it on XP
|
|
50
|
+
on the go I use rwdtinker on my Zaurus PDA
|
|
51
|
+
So I am adding contacts on different machines.
|
|
52
|
+
There is a function to help sync the separate systems
|
|
53
|
+
|
|
54
|
+
in 'Selection Panel' click on 'Open Addresses Sync Window'
|
|
55
|
+
|
|
56
|
+
First you need your ftp details set in the
|
|
57
|
+
configuration/rwdaddresses.cnf file
|
|
58
|
+
|
|
59
|
+
you can upload your events from your local names directory to the ftp site
|
|
60
|
+
you can download contacts from the ftp site to your local updates directory
|
|
61
|
+
you can perform a sync which finds remote contacts and adds them to your local
|
|
62
|
+
names directory
|
|
63
|
+
|
|
64
|
+
There is a button to delete the update directory when finished"
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
)
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
#jumplinkupdate
|
|
2
|
+
|
|
3
|
+
JumpLink.update(:RwdAddressesMainWindow=>"runrwdaddressesbackwindow",
|
|
4
|
+
:RwdAddressesConfiguration=>"runrwdaddressesmenu10",
|
|
5
|
+
:ViewContactRecord=>"runrwdaddressesbackwindow",
|
|
6
|
+
:AddressesSyncTab=>"runrwdaddressesmenu4"
|
|
7
|
+
|
|
8
|
+
)
|
|
9
|
+
$rwdjumplink +=["RwdAddressesMainWindow","RwdAddressesConfiguration","AddressesSyncTab"]
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# this code is to list the contact names
|
|
2
|
+
def listnamerecordfiles
|
|
3
|
+
if File.exist?($addressfiles_directory)
|
|
4
|
+
fileList = Dir.new($addressfiles_directory).entries.sort.delete_if { |x| ! (x =~ /nam$/) }
|
|
5
|
+
@listphotosfromtmp = ""
|
|
6
|
+
@listnamerecordfilesresult = fileList.rwd_method("fillcontactrecordname")
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
# this method is to help fill in list of names
|
|
11
|
+
def fillcontactrecordname(inffile)
|
|
12
|
+
applet = inffile.gsub(/\.nam$/, "")
|
|
13
|
+
@a_viewnamedata = applet
|
|
14
|
+
end
|
|
15
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# this code is to list the vcard names
|
|
2
|
+
def listvcardrecordfiles
|
|
3
|
+
if File.exist?($addressfiles_directory)
|
|
4
|
+
fileList = Dir.new($addressfiles_directory).entries.sort.delete_if { |x| ! (x =~ /vcf$/) }
|
|
5
|
+
|
|
6
|
+
@listvcardrecordfilesresult = fileList.rwd_method("fillvcardrecordname")
|
|
7
|
+
end
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
# this method is to help fill in list of names
|
|
11
|
+
def fillvcardrecordname(inffile)
|
|
12
|
+
applet = inffile.gsub(/\.vcf$/, "")
|
|
13
|
+
@a_viewvcarddata = applet
|
|
14
|
+
end
|
|
15
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# this method puts the configuration rexord on the screen
|
|
2
|
+
def loadrwdaddressesconfiguration
|
|
3
|
+
|
|
4
|
+
require 'fileutils'
|
|
5
|
+
|
|
6
|
+
@a_adconfigurationfilename = "rwdaddresses.cnf"
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
begin # exception trapped block
|
|
10
|
+
|
|
11
|
+
Dir.chdir($progdir)
|
|
12
|
+
fileName = File.join(ConfigurationDir, "rwdaddresses.cnf")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
fd = File.open(fileName,"r")
|
|
16
|
+
@a_adconfigline1= fd.readline.chomp
|
|
17
|
+
@a_adconfigline2 = fd.readline.chomp
|
|
18
|
+
@a_adconfigline3 = fd.readline.chomp
|
|
19
|
+
@a_adconfigline4 = fd.readline.chomp
|
|
20
|
+
@a_adconfigline5 = fd.readline.chomp
|
|
21
|
+
@a_adconfigline6 = fd.readline.chomp
|
|
22
|
+
@a_adconfigline7 =fd.readline.chomp
|
|
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
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
# this method loads the on screen variables into the running class
|
|
2
|
+
def loadrwdaddressesconfigurationvariables
|
|
3
|
+
|
|
4
|
+
configfiletoload = File.join(ConfigurationDir,"rwdaddresses.cnf")
|
|
5
|
+
begin
|
|
6
|
+
load configfiletoload
|
|
7
|
+
@extraadconfigdatadisplay = ""
|
|
8
|
+
@newadconfigurationresult = "Config Variables loaded"
|
|
9
|
+
rescue
|
|
10
|
+
@extraadconfigdatadisplay = ""
|
|
11
|
+
@newadconfigurationresult = "loading error"
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# this method views an existing address record
|
|
2
|
+
def loadnamerecord
|
|
3
|
+
|
|
4
|
+
require 'fileutils'
|
|
5
|
+
@a_filename = $currentnametext
|
|
6
|
+
|
|
7
|
+
begin # exception trapped block
|
|
8
|
+
|
|
9
|
+
fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
|
|
10
|
+
|
|
11
|
+
fd = File.open(fileName,"r")
|
|
12
|
+
@a_name = fd.readline.chomp
|
|
13
|
+
@a_address = fd.readline.chomp
|
|
14
|
+
@a_citystatezip = fd.readline.chomp
|
|
15
|
+
@a_phone = fd.readline.chomp
|
|
16
|
+
@a_email = fd.readline.chomp
|
|
17
|
+
@a_comment1 = fd.readline.chomp
|
|
18
|
+
@a_comment2 =fd.readline.chomp
|
|
19
|
+
@a_comment3 = fd.readline.chomp
|
|
20
|
+
|
|
21
|
+
while ! fd.eof?
|
|
22
|
+
@extranamedatadisplay = fd.readline
|
|
23
|
+
end
|
|
24
|
+
fd.close
|
|
25
|
+
rescue SystemCallError, StandardError
|
|
26
|
+
$stderr.print "system call error: " + $!
|
|
27
|
+
end # exception rescue
|
|
28
|
+
|
|
29
|
+
end
|
|
30
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# this code is to call the help window
|
|
2
|
+
def runhelpwindowrwdaddresses
|
|
3
|
+
|
|
4
|
+
$help_topic = "viewaddresses_help"
|
|
5
|
+
if @rwd_tab == "Viewnamedata"
|
|
6
|
+
$help_topic = "viewaddresses_help"
|
|
7
|
+
end
|
|
8
|
+
if @rwd_tab == "viewaddressesconfiguration"
|
|
9
|
+
$help_topic = "rwdaddresses_configuration"
|
|
10
|
+
end
|
|
11
|
+
if @rwd_tab == "editnamerecordfile"
|
|
12
|
+
$help_topic = "editcontact_help"
|
|
13
|
+
end
|
|
14
|
+
if @rwd_tab == "contactutilitiesrwdaddresses"
|
|
15
|
+
$help_topic = "contactutilities_help"
|
|
16
|
+
end
|
|
17
|
+
if @rwd_tab == "rwdaddressessynctasks"
|
|
18
|
+
$help_topic = "rwdaddresses_sync"
|
|
19
|
+
end
|
|
20
|
+
$helptopicsarray = $helptopicsarray | ["viewaddresses_help","editcontact_help","rwdaddresses_configuration","rwdaddresses_sync"]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
|
24
|
+
$previouswindow = @rwd_window
|
|
25
|
+
$previoustab = @rwd_tab
|
|
26
|
+
end
|
|
27
|
+
runhelpwindow
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# this code is to change the contact name
|
|
2
|
+
def changenamedata
|
|
3
|
+
oldName = $addressfiles_directory + "/" + @a_viewnamedata + ".nam"
|
|
4
|
+
if ! @a_changenamedata.empty?
|
|
5
|
+
|
|
6
|
+
newName = $addressfiles_directory + "/" + @a_changenamedata + ".nam"
|
|
7
|
+
File.rename(oldName, newName)
|
|
8
|
+
oldphotoName = $addressfiles_directory + "/" + @a_viewnamedata + ".jpg"
|
|
9
|
+
newphotoName = $addressfiles_directory + "/" + @a_changenamedata + ".jpg"
|
|
10
|
+
if File.exist?(oldphotoName)
|
|
11
|
+
File.rename(oldphotoName, newphotoName)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
+
# This application is a contact book
|
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
+
|
|
5
|
+
# call the window
|
|
6
|
+
def runrwdaddresseswindow
|
|
7
|
+
@rwd_window = "main"
|
|
8
|
+
@rwd_tab = "Viewnamedata"
|
|
9
|
+
end
|
|
10
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
+
#
|
|
3
|
+
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
+
|
|
5
|
+
# call the window
|
|
6
|
+
def runrwdaddressesmenu1
|
|
7
|
+
@rwd_window = "rwdaddresswindow"
|
|
8
|
+
@rwd_tab = "Viewnamedata"
|
|
9
|
+
end
|
|
10
|
+
def runrwdaddressesmenu2
|
|
11
|
+
@rwd_window = "rwdaddresswindow"
|
|
12
|
+
@rwd_tab = "editnamerecordfile"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def runrwdaddressesmenu3
|
|
17
|
+
@rwd_window = "rwdaddresswindow"
|
|
18
|
+
@rwd_tab = "contactutilitiesrwdaddresses"
|
|
19
|
+
end
|
|
20
|
+
def runrwdaddressesmenu4
|
|
21
|
+
@rwd_window = "rwdaddressessyncwindow"
|
|
22
|
+
@rwd_tab = "rwdaddressessynctasks"
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
def runrwdaddressesmenu10
|
|
26
|
+
@rwd_window = "rwdaddressessyncwindow"
|
|
27
|
+
@rwd_tab = "viewaddressesconfiguration"
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def runrwdaddressesmenu11
|
|
31
|
+
@rwd_window = "rwdaddresswindow"
|
|
32
|
+
@rwd_tab = "documentsrwdtinkerone"
|
|
33
|
+
end
|
|
34
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
+
# This application is a contact book
|
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
+
|
|
5
|
+
# call the window
|
|
6
|
+
def runrwdaddressessyncbackwindow
|
|
7
|
+
@rwd_window = "rwdaddressessyncwindow"
|
|
8
|
+
@rwd_tab = "rwdaddressessynctasks"
|
|
9
|
+
end
|
|
10
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
|
2
|
+
# This application is a contact book
|
|
3
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
+
|
|
5
|
+
# call the window
|
|
6
|
+
def runrwdaddressesbackwindow
|
|
7
|
+
@rwd_window = "rwdaddresseswindow"
|
|
8
|
+
@rwd_tab="Viewnamedata"
|
|
9
|
+
end
|
|
10
|
+
|
|
@@ -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
|
+
# For information see http://www.rubyforge.net/projects/rwdapplications
|
|
4
|
+
|
|
5
|
+
# return the version constant defined in the config file
|
|
6
|
+
def runrwdaddressesversion
|
|
7
|
+
@rwd_window = "applicationversion"
|
|
8
|
+
@versionappnamedisplay = "RwdAddresses"
|
|
9
|
+
@versioncopyrightdisplay = "(c) 2004 Steven Gibson "
|
|
10
|
+
@versionnumberdisplay = "Version " + RwdAddressesVersion
|
|
11
|
+
|
|
12
|
+
end
|
|
13
|
+
|
|
@@ -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 rwdaddresseshelpaboutsetup
|
|
7
|
+
return ["RwdAddresses","(c) 2004,2005 Steven Gibson ","Version #{RwdAddressesVersion}"]
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# this method adds a new address record
|
|
2
|
+
def saverwdaddressesconfiguration
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
|
|
5
|
+
newname = "rwdaddresses.cnf" # grab the filename to create
|
|
6
|
+
|
|
7
|
+
|
|
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"
|
|
9
|
+
|
|
10
|
+
begin # exception trapped block
|
|
11
|
+
fileName = File.join( ConfigurationDir, newname )
|
|
12
|
+
fd = File.open(fileName,"w")
|
|
13
|
+
fd.print(newdata) # save the record info to the file
|
|
14
|
+
fd.close
|
|
15
|
+
@newconfigurationresult=newdata # show the record info in the browser
|
|
16
|
+
rescue SystemCallError, StandardError
|
|
17
|
+
$stderr.print "system call error: " + $!
|
|
18
|
+
end # exception rescue
|
|
19
|
+
|
|
20
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# this method adds a new record
|
|
2
|
+
def savevcardrecord
|
|
3
|
+
Dir.chdir($progdir)
|
|
4
|
+
require 'fileutils'
|
|
5
|
+
require 'extras/vpim/maker/vcard'
|
|
6
|
+
if ! @a_filename.empty?
|
|
7
|
+
newname = "%s" % [@a_filename] # grab the new filename to create
|
|
8
|
+
|
|
9
|
+
fullnewname = newname + ".vcf"
|
|
10
|
+
if ! @a_name.empty?
|
|
11
|
+
contactnameText = @a_name.to_s
|
|
12
|
+
else
|
|
13
|
+
contactnameText = @a_filename.to_s
|
|
14
|
+
end
|
|
15
|
+
card = Vpim::Maker::Vcard.make(contactnameText) do |card|
|
|
16
|
+
card.add_name do |name|
|
|
17
|
+
name.family = contactnameText
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
if ! @a_address.empty?
|
|
21
|
+
addressText = @a_address.to_s
|
|
22
|
+
else
|
|
23
|
+
addressText = " "
|
|
24
|
+
end
|
|
25
|
+
if ! @a_citystatezip.empty?
|
|
26
|
+
localityText = @a_citystatezip.to_s
|
|
27
|
+
else
|
|
28
|
+
localityText = " "
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
card.add_addr do |addr|
|
|
32
|
+
addr.preferred = true
|
|
33
|
+
addr.location = 'home'
|
|
34
|
+
addr.street = addressText
|
|
35
|
+
addr.locality = localityText
|
|
36
|
+
addr.country = 'rwdaddress'
|
|
37
|
+
end
|
|
38
|
+
if ! @a_phone.empty?
|
|
39
|
+
phoneText = @a_phone.to_s
|
|
40
|
+
else
|
|
41
|
+
phoneText = " "
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
card.add_tel(phoneText) do |tel|
|
|
46
|
+
tel.location = 'home'
|
|
47
|
+
|
|
48
|
+
end
|
|
49
|
+
if ! @a_email.empty?
|
|
50
|
+
emailText = @a_email.to_s
|
|
51
|
+
else
|
|
52
|
+
emailText = " "
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
card.add_email(emailText) { |e| e.location = 'home' }
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
end # end of vcard creation
|
|
61
|
+
|
|
62
|
+
end
|
|
63
|
+
vCardString = card.to_s
|
|
64
|
+
p vCardString
|
|
65
|
+
|
|
66
|
+
begin # exception trapped block
|
|
67
|
+
fileName = File.join($addressfiles_directory, fullnewname )
|
|
68
|
+
fd = File.open(fileName,"w")
|
|
69
|
+
fd.print( vCardString ) # save the record info to the file
|
|
70
|
+
fd.close
|
|
71
|
+
@createnewnamerecorddisplay= vCardString # show the record info in the browser
|
|
72
|
+
rescue SystemCallError, StandardError
|
|
73
|
+
$stderr.print "system call error: " + $!
|
|
74
|
+
end # exception rescue
|
|
75
|
+
|
|
76
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
def syncrwdaddressdata
|
|
2
|
+
require 'fileutils'
|
|
3
|
+
@rwdaddressessyncresult = ""
|
|
4
|
+
begin
|
|
5
|
+
|
|
6
|
+
@rwdaddressessyncresult = "updating local files" + "\n"
|
|
7
|
+
Dir.chdir($progdir)
|
|
8
|
+
|
|
9
|
+
localfileListarray = Dir.new($addressfiles_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /nam$/) }
|
|
10
|
+
remotefileListarray = Dir.new($rwdaddresses_updatedirectory ).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /nam$/) }
|
|
11
|
+
|
|
12
|
+
tempupdatefilelistarray = remotefileListarray - localfileListarray
|
|
13
|
+
|
|
14
|
+
if tempupdatefilelistarray
|
|
15
|
+
tempupdatefilelistarray.each do |temp|
|
|
16
|
+
tmpfilenametosync = File.join($rwdaddresses_updatedirectory,temp)
|
|
17
|
+
tmpfilenamecopied = File.join($addressfiles_directory,temp)
|
|
18
|
+
FileUtils.cp( tmpfilenametosync, tmpfilenamecopied)
|
|
19
|
+
@rwdaddressessyncresult = @rwdaddressessyncresult + temp + "\n"
|
|
20
|
+
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
rescue
|
|
26
|
+
print "sync error"
|
|
27
|
+
end
|
|
28
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# test harness
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
require 'test/unit/testcase'
|
|
5
|
+
require 'test/unit/assertions'
|
|
6
|
+
include Test::Unit::Assertions
|
|
7
|
+
include Test::Unit
|
|
8
|
+
def rwdaddresses_all_tests
|
|
9
|
+
print "in rwdaddresses all tests\n"
|
|
10
|
+
$testrwdaddressestestcase = TestSuite.new
|
|
11
|
+
test_runrwdaddresses
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
def test_runrwdaddresses
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
begin
|
|
18
|
+
testasserts = 0
|
|
19
|
+
print "Starting rwdaddresses tests!\n"
|
|
20
|
+
runselectiontab
|
|
21
|
+
assert_equal("selectiontab",@rwd_tab) ; testasserts += 1
|
|
22
|
+
runrwdaddressesmenu10
|
|
23
|
+
assert_equal("viewaddressesconfiguration",@rwd_tab) ; testasserts += 1
|
|
24
|
+
loadrwdaddressesconfiguration
|
|
25
|
+
assert_equal("rwdaddresses.cnf",@a_adconfigurationfilename) ; testasserts += 1
|
|
26
|
+
|
|
27
|
+
$stderr.print "tests completed succesfully!\n"
|
|
28
|
+
$stderr.print testasserts, " asserts performed\n"
|
|
29
|
+
|
|
30
|
+
rescue NotImplementedError, Exception
|
|
31
|
+
$stderr.print $!
|
|
32
|
+
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
def teststobedown
|
|
40
|
+
runtinkerhelpabout
|
|
41
|
+
assert_equal("rwdtinkerhelpwindow",@rwd_tab) ; testasserts += 1
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# upload files to a ftp server
|
|
2
|
+
def uploadrwdaddressfiles
|
|
3
|
+
require 'net/ftp'
|
|
4
|
+
BasicSocket.do_not_reverse_lookup = true
|
|
5
|
+
@rwdaddressftpdisplays = ""
|
|
6
|
+
|
|
7
|
+
begin
|
|
8
|
+
|
|
9
|
+
ftp = Net::FTP::new($rwdaddresses_ftpsite)
|
|
10
|
+
@rwdaddressesftpdisplay = "files uploaded" + "\n"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
fileListarray = Dir.new($addressfiles_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /nam$/) }
|
|
14
|
+
if fileListarray
|
|
15
|
+
ftp.debug_mode = false
|
|
16
|
+
ftp.login($rwdaddresses_ftplogin, $rwdaddresses_ftppassword)
|
|
17
|
+
ftp.chdir($rwdaddresses_ftpdirectory)
|
|
18
|
+
|
|
19
|
+
print "I'm in the directory ", ftp.pwd(), "\n"
|
|
20
|
+
end
|
|
21
|
+
rescue
|
|
22
|
+
print "ftp error"
|
|
23
|
+
end
|
|
24
|
+
begin
|
|
25
|
+
if fileListarray
|
|
26
|
+
remotelist = ftp.nlst($rwdaddresses_ftpdirectory)
|
|
27
|
+
uploadListarray = fileListarray - remotelist
|
|
28
|
+
|
|
29
|
+
uploadListarray.each do |temp|
|
|
30
|
+
tmpfilenametoupload = File.join($addressfiles_directory,temp)
|
|
31
|
+
|
|
32
|
+
ftp.puttextfile(tmpfilenametoupload , temp)
|
|
33
|
+
|
|
34
|
+
@rwdaddressesftpdisplay = @rwdaddressesftpdisplay + temp + "\n"
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
end
|
|
39
|
+
rescue
|
|
40
|
+
|
|
41
|
+
print "ftp error code: #{ftp.last_response}"
|
|
42
|
+
ensure
|
|
43
|
+
ftp.close
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
end
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
def viewaddressesconfiguration
|
|
2
|
+
require 'fileutils'
|
|
3
|
+
begin # exception trapped block
|
|
4
|
+
|
|
5
|
+
Dir.chdir($progdir)
|
|
6
|
+
rwdaddrssesconfigurationfile = File.join( "configuration", "rwdaddresses.cnf" )
|
|
7
|
+
if File.exist?(rwdaddrssesconfigurationfile)
|
|
8
|
+
fd = File.open(rwdaddrssesconfigurationfile,"r")
|
|
9
|
+
@rwdaddressesconfigurationtext = " "
|
|
10
|
+
while ! fd.eof?
|
|
11
|
+
@rwdaddressesconfigurationtext = fd.read
|
|
12
|
+
end
|
|
13
|
+
fd.close
|
|
14
|
+
else
|
|
15
|
+
@rwdaddressesconfigurationtext = "File error"
|
|
16
|
+
end
|
|
17
|
+
rescue SystemCallError, StandardError
|
|
18
|
+
$stderr.print "system call error: " + $!
|
|
19
|
+
@rwdaddressesconfigurationtext = "File error"
|
|
20
|
+
end # exception rescue
|
|
21
|
+
end
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#view name
|
|
2
|
+
def viewnamedata
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
$currentnametext = "%s" % [@a_viewnamedata]
|
|
5
|
+
photoname = $currentnametext + ".jpg"
|
|
6
|
+
begin # exception trapped block
|
|
7
|
+
path_to = File.join( "rwd_files", "contacttmp.jpg" )
|
|
8
|
+
path_from = File.join($addressfiles_directory, photoname )
|
|
9
|
+
if ! File.exist?(path_from)
|
|
10
|
+
path_from = File.join($addressfiles_directory,"nophoto.jpg" )
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
Dir.chdir($progdir)
|
|
14
|
+
FileUtils.cp(path_from, path_to)
|
|
15
|
+
sleep $photodelay
|
|
16
|
+
fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
|
|
17
|
+
|
|
18
|
+
fd = File.open(fileName,"r")
|
|
19
|
+
@viewnamedatadisplay = " "
|
|
20
|
+
while ! fd.eof?
|
|
21
|
+
@viewnamedatadisplay = fd.read
|
|
22
|
+
end
|
|
23
|
+
fd.close
|
|
24
|
+
rescue SystemCallError, StandardError
|
|
25
|
+
$stderr.print "system call error: " + $!
|
|
26
|
+
end # exception rescue
|
|
27
|
+
|
|
28
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#view configuration
|
|
2
|
+
def viewrwdaddressesconfiguration
|
|
3
|
+
require 'fileutils'
|
|
4
|
+
begin # exception trapped block
|
|
5
|
+
|
|
6
|
+
Dir.chdir($progdir)
|
|
7
|
+
rwdaddressesconfigurationfile = File.join( "configuration", "rwdaddresses.cnf" )
|
|
8
|
+
if File.exist?(rwdaddressesconfigurationfile)
|
|
9
|
+
fd = File.open(rwdaddressesconfigurationfile,"r")
|
|
10
|
+
@rwdaddressesconfigurationtext = " "
|
|
11
|
+
while ! fd.eof?
|
|
12
|
+
@rwdaddressesconfigurationtext = fd.read
|
|
13
|
+
end
|
|
14
|
+
fd.close
|
|
15
|
+
else
|
|
16
|
+
@rwdaddressesconfigurationtext = "File error"
|
|
17
|
+
end
|
|
18
|
+
rescue SystemCallError, StandardError
|
|
19
|
+
$stderr.print "system call error: " + $!
|
|
20
|
+
@rwdaddressesconfigurationtext = "File error"
|
|
21
|
+
end # exception rescue
|
|
22
|
+
end
|
|
23
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# this code is to list the photo names
|
|
2
|
+
def viewtmpcontactphoto
|
|
3
|
+
fileList = Dir.new($tmpphoto_directory).entries.sort.delete_if { |x| ! (x =~ /jpg$/) }
|
|
4
|
+
@listnamerecordfilesresult = ""
|
|
5
|
+
@listphotosfromtmp = fileList.rwd_method("filltmpcontactphoto")
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def filltmpcontactphoto(inffile)
|
|
9
|
+
applet = inffile.gsub(/\.nam$/, "")
|
|
10
|
+
@a_tmpphotoname = applet
|
|
11
|
+
end
|
|
12
|
+
|