bigtinker 0.95 → 0.96
Sign up to get free protection for your applications and to get access to all the features.
- data/Readme.txt +20 -7
- data/code/superant.com.rwdaddresses/0uninstallapplet.rb +14 -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/listnamerecord.rb +15 -0
- data/code/superant.com.rwdaddresses/listvcardrecord.rb +15 -0
- data/code/{superant.com.schedule → superant.com.rwdaddresses}/loadconfigurationrecord.rb +4 -4
- data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +15 -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 +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.schedule → superant.com.rwdaddresses}/test_cases.rb +10 -10
- data/code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb +30 -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/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 +16 -0
- data/code/superant.com.rwdcalc/listscripts.rb +13 -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.rwdshell/returntomain.rb → superant.com.rwdcalc/runrwdcalcwindow.rb} +9 -9
- data/code/superant.com.rwdcalc/rwdadd.rb +10 -0
- data/code/{superant.com.schedule/rwdmoviesversion.rb → superant.com.rwdcalc/rwdcalcversion.rb} +2 -2
- 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/uninstallapplet.rb +31 -0
- data/code/superant.com.rwdcalc/viewscript.rb +18 -0
- data/code/superant.com.rwdshell/0runrefreshacpi.rb +7 -0
- data/code/superant.com.rwdshell/0uninstallapplet.rb +7 -7
- data/code/superant.com.rwdshell/helptexthashshell.rb +13 -1
- data/code/superant.com.rwdshell/loadconfigurationrecord.rb +3 -3
- data/code/superant.com.rwdshell/loadconfigurationvariables.rb +2 -2
- data/code/superant.com.rwdshell/openhelpwindowshell.rb +3 -1
- data/code/superant.com.rwdshell/refresh.rb +19 -0
- data/code/superant.com.rwdshell/refreshacpi.rb +16 -0
- data/code/superant.com.rwdshell/rubyeval.rb +15 -20
- data/code/superant.com.rwdshell/runrwdshellbackwindow.rb +3 -3
- data/code/superant.com.rwdshell/runrwdshellwindow.rb +2 -2
- data/code/superant.com.rwdshell/rwdtinkerversion.rb +2 -2
- data/code/superant.com.rwdshell/saveconfigurationrecord.rb +1 -1
- data/code/superant.com.rwdshell/test_cases.rb +1 -1
- data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +39 -34
- data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +9 -7
- data/code/superant.com.rwdtinkerbackwindow/listzips.rb +8 -2
- data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +8 -6
- data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
- data/configuration/bigtinker.dist +2 -2
- data/configuration/language.dist +2 -2
- data/configuration/rwdapplicationidentity.dist +1 -1
- data/configuration/rwdtinker.dist +4 -7
- data/configuration/rwdwaddresses.dist +24 -0
- data/configuration/rwdwcalc.dist +19 -0
- data/configuration/rwdwruby.dist +24 -0
- data/configuration/tinkerwin2variables.dist +8 -7
- data/gui/tinkerbackwindows/superant.com.addressesphotowindow/yy7addressesphoto.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.ashellscripts/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.ashellscripts/1rwdrubyeval.rwd +2 -1
- data/gui/tinkerbackwindows/superant.com.ashellscripts/2arubyeval.rwd +17 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/2rwdrefresh.rwd +14 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/3rwdacpirefresh.rwd +14 -0
- data/gui/tinkerbackwindows/superant.com.refreshacpi/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedules/zvbackend.rwd → superant.com.refreshacpi/z9end.rwd} +6 -6
- data/gui/tinkerbackwindows/superant.com.rwdaddresses/10appletbegin.rwd +4 -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/81jumplinkcommands.rwd +17 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedulesback/zvbackend.rwd → superant.com.rwdaddresses/9end.rwd} +6 -6
- 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.rwdschedulebackwindow → superant.com.rwdaddressessyncbackwindow}/70rwddiagnostics.rwd +23 -16
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/87viewconfiguration.rwd +34 -0
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/94selectiontab.rwd +11 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedules/m01menubegin.rwd → superant.com.rwdaddressessyncbackwindow/95jumplink.rwd} +2 -5
- data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/97selectionend.rwd +3 -0
- data/gui/tinkerbackwindows/{superant.com.rwdschedulebackwindow → superant.com.rwdaddressessyncbackwindow}/zvbackend.rwd +6 -6
- data/gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd +4 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/20floatrwdcalc.rwd +24 -0
- data/gui/tinkerbackwindows/superant.com.rwdcalc/30intrwdcalc.rwd +25 -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.rwdschedulesback/m01menubegin.rwd → superant.com.rwdcalc/77jumplinkcommands.rwd} +4 -5
- data/gui/tinkerbackwindows/superant.com.rwdcalc/z9end.rwd +6 -0
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/1appname.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/92viewconfiguration.rwd +1 -1
- data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
- data/init.rb +5 -0
- data/installed/rwdaddressesdata2.inf +7 -0
- data/installed/{rwdshelldata1.inf → rwdrubydata1.inf} +1 -1
- data/installed/rwdwaddresses.inf +13 -0
- data/installed/rwdwcalc.inf +10 -0
- data/installed/rwdwruby.inf +12 -0
- data/lang/en/rwdcore/languagefile.rb +1 -0
- data/lang/es/rwdcore/languagefile-es.rb +1 -0
- data/lang/fr/rwdcore/languagefile.rb +1 -0
- data/lang/jp/rwdcore/languagefile.rb +1 -0
- data/lang/nl/rwdcore/languagefile.rb +1 -0
- data/lib/rconftool.rb +13 -6
- data/lib/rwd/net.rb +15 -4
- data/lib/rwd/ruby.rb +1 -1
- data/lib/rwd/rwd.rb +103 -620
- data/lib/rwdthemes/default.rwd +317 -0
- data/lib/rwdthemes/pda.rwd +72 -0
- data/lib/rwdthemes/windowslike.rwd +171 -0
- data/lib/rwdtinker/rwdtinkertools.rb +24 -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 +272 -0
- data/rwd_files/HowTo_BigTinker.txt +11 -0
- data/rwd_files/{HowTo_Shell.txt → HowTo_Ruby.txt} +35 -4
- data/rwd_files/HowTo_RwdCalc.txt +127 -0
- data/rwd_files/HowTo_Tinker.txt +17 -1
- data/rwd_files/contacttmp.jpg +0 -0
- data/rwd_files/log/rwdtinker.log +2 -0
- data/rwdconfig.dist +14 -13
- data/scripts/test02.math +2 -0
- data/tests/{makedist-rwdwhypernote.rb → makedist-rwdwaddesses.rb} +3 -3
- data/tests/makedist-rwdwcalc.rb +58 -0
- data/tests/{makedist-rwdwshell.rb → makedist-rwdwruby.rb} +7 -5
- data/tests/makedist.rb +1 -1
- data/updates/temp.rb +1 -0
- data/zips/{rwdwaddresses-1.05.zip → rwdwaddresses-1.07.zip} +0 -0
- data/zips/rwdwcalc-0.63.zip +0 -0
- data/zips/rwdwfoldeditor-0.05.zip +0 -0
- data/zips/{rwdwgutenberg-0.09.zip → rwdwgutenberg-0.11.zip} +0 -0
- data/zips/rwdwhypernote-0.15.zip +0 -0
- data/zips/rwdwruby-1.08.zip +0 -0
- data/zips/{rwdwschedule-1.04.zip → rwdwschedule-1.05.zip} +0 -0
- data/zips/rwdwtorrent-0.07.zip +0 -0
- data/zips/wrubyslippers-1.07.zip +0 -0
- metadata +148 -103
- data/code/superant.com.rwdcalendar/gh9calendar.rb +0 -40
- data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +0 -14
- data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +0 -17
- data/code/superant.com.schedule/0uninstallapplet.rb +0 -15
- data/code/superant.com.schedule/archiveevent.rb +0 -14
- data/code/superant.com.schedule/archiveicsevent.rb +0 -14
- data/code/superant.com.schedule/cleareventscreendisplay.rb +0 -19
- data/code/superant.com.schedule/deleteeventrecord.rb +0 -19
- data/code/superant.com.schedule/deleteicseventrecord.rb +0 -19
- data/code/superant.com.schedule/deleterwdscheduleupdatefiles.rb +0 -20
- data/code/superant.com.schedule/downloadrwdschedulefiles.rb +0 -37
- data/code/superant.com.schedule/exporticseventrecord.rb +0 -97
- data/code/superant.com.schedule/helptexthashrwdschedule.rb +0 -82
- data/code/superant.com.schedule/listeventdates.rb +0 -19
- data/code/superant.com.schedule/listicseventdates.rb +0 -19
- data/code/superant.com.schedule/loadconfigurationvariables.rb +0 -14
- data/code/superant.com.schedule/loadeventrecord.rb +0 -38
- data/code/superant.com.schedule/loadicseventrecord.rb +0 -30
- data/code/superant.com.schedule/openhelpwindowrwdschedule.rb +0 -43
- data/code/superant.com.schedule/renameeventdata.rb +0 -14
- data/code/superant.com.schedule/renameicseventdata.rb +0 -17
- data/code/superant.com.schedule/returntomain.rb +0 -10
- data/code/superant.com.schedule/runrwdscheduleicsbackwindow.rb +0 -10
- data/code/superant.com.schedule/runrwdschedulemenu1.rb +0 -34
- data/code/superant.com.schedule/runrwdschedulesyncbackwindow.rb +0 -10
- data/code/superant.com.schedule/saveconfigurationrecord.rb +0 -19
- data/code/superant.com.schedule/saveeventrecord.rb +0 -25
- data/code/superant.com.schedule/saveicseventrecord.rb +0 -98
- data/code/superant.com.schedule/syncrwdschedule.rb +0 -30
- data/code/superant.com.schedule/uploadrwdschedulefiles.rb +0 -30
- data/code/superant.com.schedule/viewevent.rb +0 -20
- data/code/superant.com.schedule/viewicsevent.rb +0 -20
- data/code/superant.com.schedule/viewrwdschedulesconfiguration.rb +0 -21
- data/configuration/rwdwschedule-1.04.dist +0 -25
- data/configuration/rwdwshell-1.04.dist +0 -16
- data/extras/cal.rb +0 -158
- data/extras/icalendar/base.rb +0 -17
- data/extras/icalendar/calendar.rb +0 -44
- data/extras/icalendar/calendar_parser.rb +0 -237
- data/extras/icalendar/component/alarm.rb +0 -16
- data/extras/icalendar/component/event.rb +0 -25
- data/extras/icalendar/component/freebusy.rb +0 -12
- data/extras/icalendar/component/journal.rb +0 -25
- data/extras/icalendar/component/timezone.rb +0 -26
- data/extras/icalendar/component/todo.rb +0 -21
- data/extras/icalendar/component.rb +0 -91
- data/extras/icalendar/helpers.rb +0 -103
- data/extras/icalendar/parameter.rb +0 -25
- data/extras/icalendar.rb +0 -18
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +0 -45
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +0 -29
- data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +0 -18
- data/gui/tinkerbackwindows/superant.com.rwdschedules/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedules/gg0viewevent.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedules/gl6editrecord.rwd +0 -56
- data/gui/tinkerbackwindows/superant.com.rwdschedules/gl8contactutilities.rwd +0 -25
- data/gui/tinkerbackwindows/superant.com.rwdschedules/hl9calendar.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/1appname.rwd +0 -5
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/30viewevent.rwd +0 -27
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +0 -49
- data/gui/tinkerbackwindows/superant.com.rwdschedulesback/60eventicsutilities.rwd +0 -25
- data/installed/rwdscheduledate2.inf +0 -6
- data/installed/rwdwschedule-1.04.inf +0 -17
- data/installed/rwdwshell-1.04.inf +0 -11
- data/lang/en/rwdcalendar/calendar-en.rb +0 -6
- data/lang/es/rwdcalendar/calendar-nl.rb +0 -6
- data/lang/nl/rwdcalendar/calendar-nl.rb +0 -6
- data/rwd_files/HowTo_RubyEval.html +0 -80
- data/rwd_files/HowTo_Schedule.txt +0 -257
- data/zips/rwdwcalc-0.61.zip +0 -0
- data/zips/rwdwshell-1.04.zip +0 -0
- data/zips/wrubyslippers-1.06.zip +0 -0
- /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/44listplayscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/45listscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/46editscriptrecord.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/2listplayscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/2listscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/3editscripts.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/4scriptutilities.rwd +0 -0
- /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/6rwdshelleval.rwd +0 -0
@@ -0,0 +1,30 @@
|
|
1
|
+
def uploadrwdaddressfiles
|
2
|
+
require 'net/ftp'
|
3
|
+
BasicSocket.do_not_reverse_lookup = true
|
4
|
+
@rwdaddressftpdisplays = ""
|
5
|
+
begin
|
6
|
+
ftp = Net::FTP::new($rwdaddresses_ftpsite)
|
7
|
+
@rwdaddressesftpdisplay = "files uploaded" + "\n"
|
8
|
+
|
9
|
+
fileListarray = Dir.new($addressfiles_directory).entries.sort.delete_if { |tmpfile| ! (tmpfile =~ /nam$/) }
|
10
|
+
if fileListarray
|
11
|
+
ftp.debug_mode = false
|
12
|
+
ftp.login($rwdaddresses_ftplogin, $rwdaddresses_ftppassword)
|
13
|
+
ftp.chdir($rwdaddresses_ftpdirectory)
|
14
|
+
print "I'm in the directory ", ftp.pwd(), "\n"
|
15
|
+
fileListarray.each do |temp|
|
16
|
+
tmpfilenametoupload = File.join($addressfiles_directory,temp)
|
17
|
+
ftp.puttextfile(tmpfilenametoupload , temp)
|
18
|
+
@rwdaddressesftpdisplay = @rwdaddressesftpdisplay + temp + "\n"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
ftp.close
|
22
|
+
|
23
|
+
rescue
|
24
|
+
|
25
|
+
if ftp
|
26
|
+
ftp.close
|
27
|
+
end
|
28
|
+
print "ftp error"
|
29
|
+
end
|
30
|
+
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
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
#view name
|
2
|
+
def viewvcarddata
|
3
|
+
require 'fileutils'
|
4
|
+
$currentnametext = "%s" % [@a_viewvcarddata]
|
5
|
+
|
6
|
+
begin # exception trapped block
|
7
|
+
|
8
|
+
|
9
|
+
|
10
|
+
fileName = $addressfiles_directory + "/" + $currentnametext + ".vcf"
|
11
|
+
|
12
|
+
fd = File.open(fileName,"r")
|
13
|
+
@viewvcarddatadisplay = " "
|
14
|
+
while ! fd.eof?
|
15
|
+
@viewvcarddatadisplay = fd.read
|
16
|
+
end
|
17
|
+
fd.close
|
18
|
+
rescue SystemCallError, StandardError
|
19
|
+
$stderr.print "system call error: " + $!
|
20
|
+
end # exception rescue
|
21
|
+
|
22
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# this code is to change the contact name
|
2
|
+
def calcchangescriptname
|
3
|
+
begin
|
4
|
+
oldName = $shellscript_directory + "/" + @a_scriptfilename + ".sh"
|
5
|
+
newName = $shellscript_directory + "/" + @a_changescriptname + ".sh"
|
6
|
+
|
7
|
+
File.rename(oldName, newName)
|
8
|
+
@scriptfilechangeresult = "File Renamed!"
|
9
|
+
$currentscriptname = @a_changescriptname
|
10
|
+
rescue
|
11
|
+
@scriptfilechangeresult = "rename error"
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# this method views an existing address record
|
2
|
+
def deletecalcscriptrecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
|
6
|
+
if @a_calcscriptfilename
|
7
|
+
$currentscriptname = @a_calcscriptfilename
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
begin # exception trapped block
|
12
|
+
fileName = $calcscript_directory + "/" + $currentscriptname + ".math"
|
13
|
+
File.delete(fileName)
|
14
|
+
@calcscriptfilechangeresult = "File Deleted!"
|
15
|
+
$currentscriptname = ""
|
16
|
+
rescue
|
17
|
+
@calcscriptfilechangeresult = "File Deletion error"
|
18
|
+
end # exception rescue
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
|
2
|
+
|
3
|
+
Helptext.update( :rwdcalc_generalhelp => " Simple Calculator
|
4
|
+
add or multiply 2 numbers together
|
5
|
+
subtract or divide
|
6
|
+
see a running tape
|
7
|
+
|
8
|
+
|
9
|
+
",
|
10
|
+
|
11
|
+
:rwdcalc_scripthelp => "
|
12
|
+
script running tab
|
13
|
+
script editing
|
14
|
+
script rename, delete
|
15
|
+
"
|
16
|
+
)
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# this code is to list the scripts
|
2
|
+
def listcalcscripts
|
3
|
+
fileList = Dir.new($calcscript_directory).entries.sort.delete_if { |x| ! (x =~ /math$/) }
|
4
|
+
@listcalcscriptresult = fileList.rwd_method("calcfillscriptname")
|
5
|
+
end
|
6
|
+
|
7
|
+
def calcfillscriptname(inffile)
|
8
|
+
applet = inffile.gsub(/\.math$/, "")
|
9
|
+
@a_calcscriptfilename = applet
|
10
|
+
$currentcalcscriptname = applet
|
11
|
+
@a_calcscriptcmd = applet
|
12
|
+
end
|
13
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# this method views an existing address record
|
2
|
+
def loadcalcscriptrecord
|
3
|
+
|
4
|
+
require 'fileutils'
|
5
|
+
$currentscriptname = @a_calcscriptfilename
|
6
|
+
|
7
|
+
begin # exception trapped block
|
8
|
+
|
9
|
+
|
10
|
+
fileName = $calcscript_directory + "/" + $currentscriptname + ".math"
|
11
|
+
|
12
|
+
fd = File.open(fileName,"r")
|
13
|
+
@a_calcscriptrecord = fd.read
|
14
|
+
|
15
|
+
fd.close
|
16
|
+
rescue SystemCallError, StandardError
|
17
|
+
$stderr.print "system call error: " + $!
|
18
|
+
end # exception rescue
|
19
|
+
|
20
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
|
2
|
+
def runmathcommand
|
3
|
+
|
4
|
+
commandtext = @a_mathcommandinput.to_s
|
5
|
+
|
6
|
+
|
7
|
+
begin # exception trapped block
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
@mathcommandresult = "no result"
|
12
|
+
|
13
|
+
if commandtext == "sin"
|
14
|
+
|
15
|
+
@mathcommandresult = Math.sin( @a_mathtoola.to_f )
|
16
|
+
end
|
17
|
+
if commandtext == "cos"
|
18
|
+
|
19
|
+
@mathcommandresult = Math.cos( @a_mathtoola.to_f )
|
20
|
+
end
|
21
|
+
if commandtext == "atan2"
|
22
|
+
@mathcommandresult = Math.atan2( @a_mathtoola.to_f ,@a_mathtoolsb.to_f)
|
23
|
+
end
|
24
|
+
if commandtext == "exp"
|
25
|
+
|
26
|
+
@mathcommandresult = Math.exp( @a_mathtoola.to_f )
|
27
|
+
end
|
28
|
+
if commandtext == "log"
|
29
|
+
|
30
|
+
@mathcommandresult = Math.log( @a_mathtoola.to_f )
|
31
|
+
end
|
32
|
+
if commandtext == "log10"
|
33
|
+
|
34
|
+
@mathcommandresult = Math.log10( @a_mathtoola.to_f )
|
35
|
+
end
|
36
|
+
if commandtext == "sqrt"
|
37
|
+
|
38
|
+
@mathcommandresult = Math.sqrt( @a_mathtoola.to_f )
|
39
|
+
end
|
40
|
+
if commandtext == "tan"
|
41
|
+
|
42
|
+
@mathcommandresult = Math.tan( @a_mathtoola.to_f )
|
43
|
+
end
|
44
|
+
rescue SystemCallError, StandardError
|
45
|
+
@mathcommandresult = "system call error: " + $!
|
46
|
+
end # exception rescue
|
47
|
+
|
48
|
+
end
|
49
|
+
|
50
|
+
|
51
|
+
def showmathcommandoptions
|
52
|
+
@mathcommandoptions = ["sin","atan2","cos","exp","log","log10","sqrt","tan"].rwd_options
|
53
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# this code is to call the help window
|
2
|
+
def runhelpwindowrwdcalc
|
3
|
+
|
4
|
+
$help_topic = "rwdcalc_generalhelp"
|
5
|
+
|
6
|
+
|
7
|
+
if @rwd_tab == "scriptutilitiesrwdshell"
|
8
|
+
$help_topic = "rwdcalc_scripthelp"
|
9
|
+
end
|
10
|
+
$helptopicsarray = $helptopicsarray | ["rwdcalc_generalhelp","rwdcalc_scripthelp" ]
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
if @rwd_window != "rwdtinkerhelpwindow"
|
15
|
+
$previouswindow = @rwd_window
|
16
|
+
$previoustab = @rwd_tab
|
17
|
+
end
|
18
|
+
runhelpwindow
|
19
|
+
end
|
20
|
+
|
21
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
def playcalcscript
|
2
|
+
|
3
|
+
|
4
|
+
nametext = "%s" % [@a_calcscriptcmd]
|
5
|
+
|
6
|
+
begin # exception trapped block
|
7
|
+
fileName = "scripts/" + nametext + ".math"
|
8
|
+
|
9
|
+
|
10
|
+
calcfile_contents = File.read( fileName)
|
11
|
+
temp = eval( calcfile_contents)
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
rescue SystemCallError, StandardError
|
20
|
+
$stderr.print "system call error: " + $!
|
21
|
+
end # exception rescue
|
22
|
+
end
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# this code is to change the file name
|
2
|
+
def changecalcscriptname
|
3
|
+
oldName = $calcscript_directory + "/" + @a_calcscriptfilename + ".math"
|
4
|
+
newName = $calcscript_directory + "/" + @a_changecalcscriptname + ".math"
|
5
|
+
begin
|
6
|
+
File.rename(oldName, newName)
|
7
|
+
@calcscriptfilechangeresult = "File Renamed!"
|
8
|
+
rescue
|
9
|
+
@calcscriptfilechangeresult = "rename error"
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
|
14
|
+
|
data/code/{superant.com.rwdshell/returntomain.rb → superant.com.rwdcalc/runrwdcalcwindow.rb}
RENAMED
@@ -1,10 +1,10 @@
|
|
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
|
7
|
-
@rwd_window = "
|
8
|
-
|
9
|
-
end
|
1
|
+
# Application RwdAddresses orginally (c) 2004 Steven Gibson under GPL.
|
2
|
+
# This application is a calculator
|
3
|
+
# For more information about see http://www.rubyforge.net/projects/rwdapplications
|
4
|
+
|
5
|
+
# call the window
|
6
|
+
def runrwdcalcwindow
|
7
|
+
@rwd_window = "rwdcalcwindow"
|
8
|
+
@rwd_tab = "rwdfcalc"
|
9
|
+
end
|
10
10
|
|
data/code/{superant.com.schedule/rwdmoviesversion.rb → superant.com.rwdcalc/rwdcalcversion.rb}
RENAMED
@@ -3,8 +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
|
-
return ["
|
6
|
+
def rwdcalchelpaboutsetup
|
7
|
+
return ["RwdCalc","(c) 2004-2008 Steven Gibson ","Version #{RwdcalcVersion}"]
|
8
8
|
end
|
9
9
|
|
10
10
|
|
@@ -0,0 +1,19 @@
|
|
1
|
+
|
2
|
+
def savecalcrecord # this method adds a new script file
|
3
|
+
require 'fileutils'
|
4
|
+
if @a_calcscriptfilename
|
5
|
+
newdata =@a_calcscriptrecord.to_s
|
6
|
+
fullnewname = @a_calcscriptfilename.to_s + ".math"
|
7
|
+
begin # exception trapped block
|
8
|
+
fileName = File.join( $calcscript_directory, fullnewname )
|
9
|
+
fd = File.open(fileName,"w")
|
10
|
+
fd.print(newdata) # save the record info to the file
|
11
|
+
fd.close
|
12
|
+
@newdisplay=newdata # show the record info in the browser
|
13
|
+
$currentscriptname = "%s" % [@a_calcscriptfilename] # grab the new filename to create
|
14
|
+
|
15
|
+
rescue
|
16
|
+
@newdisplay = "\n" + "system error in createnew method"
|
17
|
+
end # exception rescue
|
18
|
+
end
|
19
|
+
end # end of createnew
|
@@ -0,0 +1,31 @@
|
|
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@gmai.com".
|
22
|
+
#***********************************************************************/
|
23
|
+
|
24
|
+
def rwdwcalc
|
25
|
+
$tinkerdocumentsarray.delete_if {|x| x == "HowTo_RwdCalc.txt"}
|
26
|
+
$tinkerhelpaboutarray.delete_if {|x| x == "RwdCalc"}
|
27
|
+
Helptext.delete_if {|key, value| key == :rwdcalc_generalhelp }
|
28
|
+
Helptext.delete_if {|key, value| key == :rwdcalc_scripthelp }
|
29
|
+
$rwdjumplink.delete_if {|x| x == "RwdCalcMainWindow"}
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
def viewcalcscript
|
2
|
+
require 'fileutils'
|
3
|
+
$currentscriptname = "%s" % [@a_calcscriptfilename]
|
4
|
+
|
5
|
+
begin # exception trapped block
|
6
|
+
fileName = $calcscript_directory+ "/" + $currentscriptname + ".math"
|
7
|
+
|
8
|
+
fd = File.open(fileName,"r")
|
9
|
+
@displayscripttext = " "
|
10
|
+
while ! fd.eof?
|
11
|
+
@displayscripttext = fd.read
|
12
|
+
end
|
13
|
+
fd.close
|
14
|
+
rescue
|
15
|
+
@displayscripttext = "\n" + "error"
|
16
|
+
end # exception rescue
|
17
|
+
|
18
|
+
end
|
@@ -1,15 +1,15 @@
|
|
1
1
|
# uninstall
|
2
2
|
|
3
|
-
def
|
3
|
+
def rwdwruby()
|
4
4
|
|
5
|
-
$tinkerdocumentsarray.delete_if {|x| x == "
|
6
|
-
$tinkerhelpaboutarray.delete_if {|x| x == "
|
7
|
-
Helptext.delete_if {|key, value| key == :
|
8
|
-
Helptext.delete_if {|key, value| key == :rwdcalc_scripthelp }
|
5
|
+
$tinkerdocumentsarray.delete_if {|x| x == "HowTo_Ruby.txt"}
|
6
|
+
$tinkerhelpaboutarray.delete_if {|x| x == "RwdRuby"}
|
7
|
+
Helptext.delete_if {|key, value| key == :rwdruby_help }
|
9
8
|
Helptext.delete_if {|key, value| key == :ShellEnvironment_help }
|
10
9
|
Helptext.delete_if {|key, value| key == :shelledit_help }
|
11
|
-
$rwdjumplink.delete_if {|x| x == "
|
12
|
-
$rwdjumplink.delete_if {|x| x == "
|
10
|
+
$rwdjumplink.delete_if {|x| x == "RwdRubyBackWindow"}
|
11
|
+
$rwdjumplink.delete_if {|x| x == "RunRuby" }
|
12
|
+
$rwdjumplink.delete_if {|x| x == "RefreshAcpi" }
|
13
13
|
|
14
14
|
@rwd_window = "main"
|
15
15
|
|
@@ -27,5 +27,17 @@
|
|
27
27
|
:shelledit_help => "You can edit scripts here
|
28
28
|
'Fill Record' will load the file selected on the script run tab
|
29
29
|
'Save Changes' will save the changes you have made -
|
30
|
-
'Clear' will clear the screen "
|
30
|
+
'Clear' will clear the screen " ,
|
31
|
+
:RubyScript_help=> ' you can put in something like "Hello!"
|
32
|
+
<p>
|
33
|
+
"Howdy Steven".upcase
|
34
|
+
<p>
|
35
|
+
carray = ["one "] ; carray << " two" ; carray.each{|x| x.upcase}
|
36
|
+
<p>
|
37
|
+
10.between?(7,12)
|
38
|
+
<p>
|
39
|
+
["tivo","nokia", "ipaq"].length
|
40
|
+
<p>
|
41
|
+
xhash = { "altima" => "nissan", "camry" => "toyota", "rx7" => "mazda" } ; xhash.keys
|
42
|
+
'
|
31
43
|
)
|
@@ -3,14 +3,14 @@
|
|
3
3
|
|
4
4
|
require 'fileutils'
|
5
5
|
|
6
|
-
|
7
|
-
@a_rshellconfigurationfilename =
|
6
|
+
rwdrubyname = "rwdwruby.cnf"
|
7
|
+
@a_rshellconfigurationfilename = rwdrubyname
|
8
8
|
|
9
9
|
|
10
10
|
begin # exception trapped block
|
11
11
|
|
12
12
|
Dir.chdir($progdir)
|
13
|
-
fileName = File.join(ConfigurationDir,
|
13
|
+
fileName = File.join(ConfigurationDir, rwdrubyname)
|
14
14
|
|
15
15
|
|
16
16
|
fd = File.open(fileName,"r")
|