bigtinker 0.95 → 0.96

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.
Files changed (254) hide show
  1. data/Readme.txt +20 -7
  2. data/code/superant.com.rwdaddresses/0uninstallapplet.rb +14 -0
  3. data/code/superant.com.rwdaddresses/attachtmpcontactphoto.rb +24 -0
  4. data/code/superant.com.rwdaddresses/clearscreendisplay.rb +15 -0
  5. data/code/superant.com.rwdaddresses/createnewnamerecord.rb +19 -0
  6. data/code/superant.com.rwdaddresses/deletecontactrecord.rb +25 -0
  7. data/code/superant.com.rwdaddresses/deleterwdaddressesupdatefiles.rb +19 -0
  8. data/code/superant.com.rwdaddresses/downloadrwdaddressfiles.rb +36 -0
  9. data/code/superant.com.rwdaddresses/helptexthashrwdaddresses.rb +69 -0
  10. data/code/superant.com.rwdaddresses/listnamerecord.rb +15 -0
  11. data/code/superant.com.rwdaddresses/listvcardrecord.rb +15 -0
  12. data/code/{superant.com.schedule → superant.com.rwdaddresses}/loadconfigurationrecord.rb +4 -4
  13. data/code/superant.com.rwdaddresses/loadconfigurationvariables.rb +15 -0
  14. data/code/superant.com.rwdaddresses/loadnamerecord.rb +30 -0
  15. data/code/superant.com.rwdaddresses/openhelpwindowrwdaddresses.rb +30 -0
  16. data/code/superant.com.rwdaddresses/renamecontact.rb +15 -0
  17. data/code/superant.com.rwdaddresses/runaddresseswindow.rb +10 -0
  18. data/code/superant.com.rwdaddresses/runrwdaddressesmenu1.rb +34 -0
  19. data/code/superant.com.rwdaddresses/runrwdaddresssyncbackwindow.rb +10 -0
  20. data/code/superant.com.rwdaddresses/rwdaddressesbackwindow.rb +10 -0
  21. data/code/superant.com.rwdaddresses/rwdaddresseshelpabout.rb +10 -0
  22. data/code/superant.com.rwdaddresses/saveconfigurationrecord.rb +20 -0
  23. data/code/superant.com.rwdaddresses/savevcardrecord.rb +76 -0
  24. data/code/superant.com.rwdaddresses/syncrwdaddress.rb +28 -0
  25. data/code/{superant.com.schedule → superant.com.rwdaddresses}/test_cases.rb +10 -10
  26. data/code/superant.com.rwdaddresses/uploadrwdaddressfiles.rb +30 -0
  27. data/code/superant.com.rwdaddresses/viewaddressconfiguration.rb +21 -0
  28. data/code/superant.com.rwdaddresses/viewnamedata.rb +28 -0
  29. data/code/superant.com.rwdaddresses/viewphoto.rb +4 -0
  30. data/code/superant.com.rwdaddresses/viewrwdaddressesconfiguration.rb +23 -0
  31. data/code/superant.com.rwdaddresses/viewtmpcontactphoto.rb +12 -0
  32. data/code/superant.com.rwdaddresses/viewvcarddata.rb +22 -0
  33. data/code/superant.com.rwdcalc/ca2multiply.rb +10 -0
  34. data/code/superant.com.rwdcalc/changescriptname.rb +16 -0
  35. data/code/superant.com.rwdcalc/clearscriptscreendisplay.rb +9 -0
  36. data/code/superant.com.rwdcalc/deletescriptrecord.rb +20 -0
  37. data/code/superant.com.rwdcalc/fadd.rb +10 -0
  38. data/code/superant.com.rwdcalc/frwdcleartape.rb +9 -0
  39. data/code/superant.com.rwdcalc/frwddivide.rb +10 -0
  40. data/code/superant.com.rwdcalc/frwdmultiply.rb +10 -0
  41. data/code/superant.com.rwdcalc/frwdsubtract.rb +10 -0
  42. data/code/superant.com.rwdcalc/helptexthashrwdcalc.rb +16 -0
  43. data/code/superant.com.rwdcalc/listscripts.rb +13 -0
  44. data/code/superant.com.rwdcalc/loadscriptrecord.rb +20 -0
  45. data/code/superant.com.rwdcalc/mathcommands.rb +53 -0
  46. data/code/superant.com.rwdcalc/openhelpwindowrwdcalc.rb +21 -0
  47. data/code/superant.com.rwdcalc/playscript.rb +22 -0
  48. data/code/superant.com.rwdcalc/renamecalcrecord.rb +14 -0
  49. data/code/{superant.com.rwdshell/returntomain.rb → superant.com.rwdcalc/runrwdcalcwindow.rb} +9 -9
  50. data/code/superant.com.rwdcalc/rwdadd.rb +10 -0
  51. data/code/{superant.com.schedule/rwdmoviesversion.rb → superant.com.rwdcalc/rwdcalcversion.rb} +2 -2
  52. data/code/superant.com.rwdcalc/rwdcleartape.rb +9 -0
  53. data/code/superant.com.rwdcalc/rwddivision.rb +10 -0
  54. data/code/superant.com.rwdcalc/rwdsubtraction.rb +10 -0
  55. data/code/superant.com.rwdcalc/savechangedscript.rb +19 -0
  56. data/code/superant.com.rwdcalc/uninstallapplet.rb +31 -0
  57. data/code/superant.com.rwdcalc/viewscript.rb +18 -0
  58. data/code/superant.com.rwdshell/0runrefreshacpi.rb +7 -0
  59. data/code/superant.com.rwdshell/0uninstallapplet.rb +7 -7
  60. data/code/superant.com.rwdshell/helptexthashshell.rb +13 -1
  61. data/code/superant.com.rwdshell/loadconfigurationrecord.rb +3 -3
  62. data/code/superant.com.rwdshell/loadconfigurationvariables.rb +2 -2
  63. data/code/superant.com.rwdshell/openhelpwindowshell.rb +3 -1
  64. data/code/superant.com.rwdshell/refresh.rb +19 -0
  65. data/code/superant.com.rwdshell/refreshacpi.rb +16 -0
  66. data/code/superant.com.rwdshell/rubyeval.rb +15 -20
  67. data/code/superant.com.rwdshell/runrwdshellbackwindow.rb +3 -3
  68. data/code/superant.com.rwdshell/runrwdshellwindow.rb +2 -2
  69. data/code/superant.com.rwdshell/rwdtinkerversion.rb +2 -2
  70. data/code/superant.com.rwdshell/saveconfigurationrecord.rb +1 -1
  71. data/code/superant.com.rwdshell/test_cases.rb +1 -1
  72. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +39 -34
  73. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +9 -7
  74. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +8 -2
  75. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +8 -6
  76. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +13 -0
  77. data/configuration/bigtinker.dist +2 -2
  78. data/configuration/language.dist +2 -2
  79. data/configuration/rwdapplicationidentity.dist +1 -1
  80. data/configuration/rwdtinker.dist +4 -7
  81. data/configuration/rwdwaddresses.dist +24 -0
  82. data/configuration/rwdwcalc.dist +19 -0
  83. data/configuration/rwdwruby.dist +24 -0
  84. data/configuration/tinkerwin2variables.dist +8 -7
  85. data/gui/tinkerbackwindows/superant.com.addressesphotowindow/yy7addressesphoto.rwd +6 -0
  86. data/gui/tinkerbackwindows/superant.com.ashellscripts/1appname.rwd +1 -1
  87. data/gui/tinkerbackwindows/superant.com.ashellscripts/1rwdrubyeval.rwd +2 -1
  88. data/gui/tinkerbackwindows/superant.com.ashellscripts/2arubyeval.rwd +17 -0
  89. data/gui/tinkerbackwindows/superant.com.refreshacpi/1appname.rwd +4 -0
  90. data/gui/tinkerbackwindows/superant.com.refreshacpi/2rwdrefresh.rwd +14 -0
  91. data/gui/tinkerbackwindows/superant.com.refreshacpi/3rwdacpirefresh.rwd +14 -0
  92. data/gui/tinkerbackwindows/superant.com.refreshacpi/81jumplinkcommands.rwd +17 -0
  93. data/gui/tinkerbackwindows/{superant.com.rwdschedules/zvbackend.rwd → superant.com.refreshacpi/z9end.rwd} +6 -6
  94. data/gui/tinkerbackwindows/superant.com.rwdaddresses/10appletbegin.rwd +4 -0
  95. data/gui/tinkerbackwindows/superant.com.rwdaddresses/11viewnamedata.rwd +19 -0
  96. data/gui/tinkerbackwindows/superant.com.rwdaddresses/13listnamerecordfiles.rwd +21 -0
  97. data/gui/tinkerbackwindows/superant.com.rwdaddresses/16editrecord.rwd +39 -0
  98. data/gui/tinkerbackwindows/superant.com.rwdaddresses/17viewvcardrecord.rwd +32 -0
  99. data/gui/tinkerbackwindows/superant.com.rwdaddresses/18contactutilities.rwd +34 -0
  100. data/gui/tinkerbackwindows/superant.com.rwdaddresses/81jumplinkcommands.rwd +17 -0
  101. data/gui/tinkerbackwindows/{superant.com.rwdschedulesback/zvbackend.rwd → superant.com.rwdaddresses/9end.rwd} +6 -6
  102. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/1appname.rwd +5 -0
  103. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/20downloadftp.rwd +45 -0
  104. data/gui/tinkerbackwindows/{superant.com.rwdschedulebackwindow → superant.com.rwdaddressessyncbackwindow}/70rwddiagnostics.rwd +23 -16
  105. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/87viewconfiguration.rwd +34 -0
  106. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/94selectiontab.rwd +11 -0
  107. data/gui/tinkerbackwindows/{superant.com.rwdschedules/m01menubegin.rwd → superant.com.rwdaddressessyncbackwindow/95jumplink.rwd} +2 -5
  108. data/gui/tinkerbackwindows/superant.com.rwdaddressessyncbackwindow/97selectionend.rwd +3 -0
  109. data/gui/tinkerbackwindows/{superant.com.rwdschedulebackwindow → superant.com.rwdaddressessyncbackwindow}/zvbackend.rwd +6 -6
  110. data/gui/tinkerbackwindows/superant.com.rwdcalc/1appname.rwd +4 -0
  111. data/gui/tinkerbackwindows/superant.com.rwdcalc/20floatrwdcalc.rwd +24 -0
  112. data/gui/tinkerbackwindows/superant.com.rwdcalc/30intrwdcalc.rwd +25 -0
  113. data/gui/tinkerbackwindows/superant.com.rwdcalc/35mathcommands.rwd +25 -0
  114. data/gui/tinkerbackwindows/superant.com.rwdcalc/44listplayscripts.rwd +19 -0
  115. data/gui/tinkerbackwindows/superant.com.rwdcalc/45listscripts.rwd +25 -0
  116. data/gui/tinkerbackwindows/superant.com.rwdcalc/46editscriptrecord.rwd +30 -0
  117. data/gui/tinkerbackwindows/superant.com.rwdcalc/4scriptutilities.rwd +25 -0
  118. data/gui/tinkerbackwindows/{superant.com.rwdschedulesback/m01menubegin.rwd → superant.com.rwdcalc/77jumplinkcommands.rwd} +4 -5
  119. data/gui/tinkerbackwindows/superant.com.rwdcalc/z9end.rwd +6 -0
  120. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/1appname.rwd +1 -1
  121. data/gui/tinkerbackwindows/superant.com.rwdshellbackwindow/92viewconfiguration.rwd +1 -1
  122. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
  123. data/init.rb +5 -0
  124. data/installed/rwdaddressesdata2.inf +7 -0
  125. data/installed/{rwdshelldata1.inf → rwdrubydata1.inf} +1 -1
  126. data/installed/rwdwaddresses.inf +13 -0
  127. data/installed/rwdwcalc.inf +10 -0
  128. data/installed/rwdwruby.inf +12 -0
  129. data/lang/en/rwdcore/languagefile.rb +1 -0
  130. data/lang/es/rwdcore/languagefile-es.rb +1 -0
  131. data/lang/fr/rwdcore/languagefile.rb +1 -0
  132. data/lang/jp/rwdcore/languagefile.rb +1 -0
  133. data/lang/nl/rwdcore/languagefile.rb +1 -0
  134. data/lib/rconftool.rb +13 -6
  135. data/lib/rwd/net.rb +15 -4
  136. data/lib/rwd/ruby.rb +1 -1
  137. data/lib/rwd/rwd.rb +103 -620
  138. data/lib/rwdthemes/default.rwd +317 -0
  139. data/lib/rwdthemes/pda.rwd +72 -0
  140. data/lib/rwdthemes/windowslike.rwd +171 -0
  141. data/lib/rwdtinker/rwdtinkertools.rb +24 -0
  142. data/names/Angelina Jolie.jpg +0 -0
  143. data/names/Angelina Jolie.nam +8 -0
  144. data/names/Angelina Jolie.vcf +8 -0
  145. data/names/Steven Gibson.jpg +0 -0
  146. data/names/Steven Gibson.nam +5 -0
  147. data/names/elektra.jpg +0 -0
  148. data/names/elektra.nam +7 -0
  149. data/names/nophoto.jpg +0 -0
  150. data/rwd_files/HowTo_Addresses.txt +272 -0
  151. data/rwd_files/HowTo_BigTinker.txt +11 -0
  152. data/rwd_files/{HowTo_Shell.txt → HowTo_Ruby.txt} +35 -4
  153. data/rwd_files/HowTo_RwdCalc.txt +127 -0
  154. data/rwd_files/HowTo_Tinker.txt +17 -1
  155. data/rwd_files/contacttmp.jpg +0 -0
  156. data/rwd_files/log/rwdtinker.log +2 -0
  157. data/rwdconfig.dist +14 -13
  158. data/scripts/test02.math +2 -0
  159. data/tests/{makedist-rwdwhypernote.rb → makedist-rwdwaddesses.rb} +3 -3
  160. data/tests/makedist-rwdwcalc.rb +58 -0
  161. data/tests/{makedist-rwdwshell.rb → makedist-rwdwruby.rb} +7 -5
  162. data/tests/makedist.rb +1 -1
  163. data/updates/temp.rb +1 -0
  164. data/zips/{rwdwaddresses-1.05.zip → rwdwaddresses-1.07.zip} +0 -0
  165. data/zips/rwdwcalc-0.63.zip +0 -0
  166. data/zips/rwdwfoldeditor-0.05.zip +0 -0
  167. data/zips/{rwdwgutenberg-0.09.zip → rwdwgutenberg-0.11.zip} +0 -0
  168. data/zips/rwdwhypernote-0.15.zip +0 -0
  169. data/zips/rwdwruby-1.08.zip +0 -0
  170. data/zips/{rwdwschedule-1.04.zip → rwdwschedule-1.05.zip} +0 -0
  171. data/zips/rwdwtorrent-0.07.zip +0 -0
  172. data/zips/wrubyslippers-1.07.zip +0 -0
  173. metadata +148 -103
  174. data/code/superant.com.rwdcalendar/gh9calendar.rb +0 -40
  175. data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +0 -14
  176. data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +0 -17
  177. data/code/superant.com.schedule/0uninstallapplet.rb +0 -15
  178. data/code/superant.com.schedule/archiveevent.rb +0 -14
  179. data/code/superant.com.schedule/archiveicsevent.rb +0 -14
  180. data/code/superant.com.schedule/cleareventscreendisplay.rb +0 -19
  181. data/code/superant.com.schedule/deleteeventrecord.rb +0 -19
  182. data/code/superant.com.schedule/deleteicseventrecord.rb +0 -19
  183. data/code/superant.com.schedule/deleterwdscheduleupdatefiles.rb +0 -20
  184. data/code/superant.com.schedule/downloadrwdschedulefiles.rb +0 -37
  185. data/code/superant.com.schedule/exporticseventrecord.rb +0 -97
  186. data/code/superant.com.schedule/helptexthashrwdschedule.rb +0 -82
  187. data/code/superant.com.schedule/listeventdates.rb +0 -19
  188. data/code/superant.com.schedule/listicseventdates.rb +0 -19
  189. data/code/superant.com.schedule/loadconfigurationvariables.rb +0 -14
  190. data/code/superant.com.schedule/loadeventrecord.rb +0 -38
  191. data/code/superant.com.schedule/loadicseventrecord.rb +0 -30
  192. data/code/superant.com.schedule/openhelpwindowrwdschedule.rb +0 -43
  193. data/code/superant.com.schedule/renameeventdata.rb +0 -14
  194. data/code/superant.com.schedule/renameicseventdata.rb +0 -17
  195. data/code/superant.com.schedule/returntomain.rb +0 -10
  196. data/code/superant.com.schedule/runrwdscheduleicsbackwindow.rb +0 -10
  197. data/code/superant.com.schedule/runrwdschedulemenu1.rb +0 -34
  198. data/code/superant.com.schedule/runrwdschedulesyncbackwindow.rb +0 -10
  199. data/code/superant.com.schedule/saveconfigurationrecord.rb +0 -19
  200. data/code/superant.com.schedule/saveeventrecord.rb +0 -25
  201. data/code/superant.com.schedule/saveicseventrecord.rb +0 -98
  202. data/code/superant.com.schedule/syncrwdschedule.rb +0 -30
  203. data/code/superant.com.schedule/uploadrwdschedulefiles.rb +0 -30
  204. data/code/superant.com.schedule/viewevent.rb +0 -20
  205. data/code/superant.com.schedule/viewicsevent.rb +0 -20
  206. data/code/superant.com.schedule/viewrwdschedulesconfiguration.rb +0 -21
  207. data/configuration/rwdwschedule-1.04.dist +0 -25
  208. data/configuration/rwdwshell-1.04.dist +0 -16
  209. data/extras/cal.rb +0 -158
  210. data/extras/icalendar/base.rb +0 -17
  211. data/extras/icalendar/calendar.rb +0 -44
  212. data/extras/icalendar/calendar_parser.rb +0 -237
  213. data/extras/icalendar/component/alarm.rb +0 -16
  214. data/extras/icalendar/component/event.rb +0 -25
  215. data/extras/icalendar/component/freebusy.rb +0 -12
  216. data/extras/icalendar/component/journal.rb +0 -25
  217. data/extras/icalendar/component/timezone.rb +0 -26
  218. data/extras/icalendar/component/todo.rb +0 -21
  219. data/extras/icalendar/component.rb +0 -91
  220. data/extras/icalendar/helpers.rb +0 -103
  221. data/extras/icalendar/parameter.rb +0 -25
  222. data/extras/icalendar.rb +0 -18
  223. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +0 -5
  224. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +0 -45
  225. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +0 -29
  226. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +0 -18
  227. data/gui/tinkerbackwindows/superant.com.rwdschedules/1appname.rwd +0 -5
  228. data/gui/tinkerbackwindows/superant.com.rwdschedules/gg0viewevent.rwd +0 -27
  229. data/gui/tinkerbackwindows/superant.com.rwdschedules/gl6editrecord.rwd +0 -56
  230. data/gui/tinkerbackwindows/superant.com.rwdschedules/gl8contactutilities.rwd +0 -25
  231. data/gui/tinkerbackwindows/superant.com.rwdschedules/hl9calendar.rwd +0 -27
  232. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/1appname.rwd +0 -5
  233. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/30viewevent.rwd +0 -27
  234. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +0 -49
  235. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/60eventicsutilities.rwd +0 -25
  236. data/installed/rwdscheduledate2.inf +0 -6
  237. data/installed/rwdwschedule-1.04.inf +0 -17
  238. data/installed/rwdwshell-1.04.inf +0 -11
  239. data/lang/en/rwdcalendar/calendar-en.rb +0 -6
  240. data/lang/es/rwdcalendar/calendar-nl.rb +0 -6
  241. data/lang/nl/rwdcalendar/calendar-nl.rb +0 -6
  242. data/rwd_files/HowTo_RubyEval.html +0 -80
  243. data/rwd_files/HowTo_Schedule.txt +0 -257
  244. data/zips/rwdwcalc-0.61.zip +0 -0
  245. data/zips/rwdwshell-1.04.zip +0 -0
  246. data/zips/wrubyslippers-1.06.zip +0 -0
  247. /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/44listplayscripts.rwd +0 -0
  248. /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/45listscripts.rwd +0 -0
  249. /data/gui/tinkerbackwindows/{superant.com.rwdshellbackwindow → superant.com.ashellscripts}/46editscriptrecord.rwd +0 -0
  250. /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/2listplayscripts.rwd +0 -0
  251. /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/2listscripts.rwd +0 -0
  252. /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/3editscripts.rwd +0 -0
  253. /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/4scriptutilities.rwd +0 -0
  254. /data/gui/tinkerbackwindows/{superant.com.ashellscripts → superant.com.rwdshellbackwindow}/6rwdshelleval.rwd +0 -0
data/Readme.txt CHANGED
@@ -19,13 +19,6 @@ ruby init.rb
19
19
  Then point your web browser to:
20
20
  http://localhost:7705/
21
21
 
22
- Change language at:
23
-
24
- configuration/language.dist
25
-
26
- Change to Windows XP directory structure at:
27
- configuration/tinkerwin2variables.dist
28
-
29
22
  == Viewing installed Applets:
30
23
 
31
24
  Go to "List Scripts" tab
@@ -234,6 +227,26 @@ http://www.erikveen.dds.nl/rubywebdialogs/index.html
234
227
  Thanks, Steven Gibson
235
228
 
236
229
  == Changelog
230
+ Version 1.77
231
+ Fixed zips location to be relative or absolute
232
+ Made themes loadable
233
+
234
+ Version 1.76
235
+ Move rwd code files into lib directory - bug - 21886
236
+ change tab name list applets - bug - 21864
237
+ change extra folder to be lib folder - bug 21887
238
+ remove duplicate intall applet code - bug 21885
239
+ On Menu tab/Selection Tab - add help button - bug 21884
240
+ clean up directory structure in gui directory - bug 21882
241
+
242
+ Version 1.75
243
+ change rwd.rb to use UTF-8 for web pages
244
+ add language load for applets
245
+
246
+ Version 1.74
247
+ remove remote control from help
248
+ more dependable gui loading for applets
249
+
237
250
  Version 1.73
238
251
  more debug info in initiateapplet
239
252
  remove gutenberg lang translations
@@ -0,0 +1,14 @@
1
+
2
+ def rwdwaddresses()
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
@@ -0,0 +1,24 @@
1
+ # this code is to attach a photo from the tmp directory
2
+ def attachtmpcontactphoto
3
+ if @a_viewnamedata
4
+ $currentnametext = @a_viewnamedata
5
+ end
6
+ if $currentnametext
7
+ tmpcontactphotoName = $tmpphoto_directory + "/" + @a_tmpphotoname
8
+ begin
9
+ if File.exist?(tmpcontactphotoName)
10
+ newcontactphotoName = $tmpphoto_directory + "/" + $currentnametext + ".jpg"
11
+ if ! (tmpcontactphotoName == newcontactphotoName )
12
+ File.rename(tmpcontactphotoName, newcontactphotoName)
13
+ end
14
+ @listphotosfromtmp = "Photo attached"
15
+ FileUtils.cp(newcontactphotoName , $addressfiles_directory)
16
+ else
17
+ @listphotosfromtmp = "attachment failed"
18
+ end
19
+ rescue
20
+ @listphotosfromtmp = "attachment failed"
21
+ end
22
+ end
23
+ end
24
+
@@ -0,0 +1,15 @@
1
+ # this method clears the on screen variables
2
+ def clearnamescreendisplay
3
+
4
+ @a_filename = ""
5
+ @a_name = ""
6
+ @a_address = ""
7
+ @a_citystatezip = ""
8
+ @a_phone = ""
9
+ @a_email = ""
10
+ @a_comment1 = ""
11
+ @a_comment2 = ""
12
+ @a_comment3 = ""
13
+ @extranamedatadisplay = ""
14
+ end
15
+
@@ -0,0 +1,19 @@
1
+ # this method adds a new address record or saves changes
2
+ def createnewnamerecord
3
+ require 'fileutils'
4
+ if @a_filename
5
+ newname = "%s" % [@a_filename] # grab the new filename to create
6
+ newdata =@a_name.to_s + "\n" + @a_address.to_s + "\n" + @a_citystatezip.to_s + "\n" + @a_phone.to_s + "\n" + @a_email.to_s + "\n" + @a_comment1.to_s + "\n" + @a_comment2.to_s + "\n" + @a_comment3.to_s + "\n"
7
+ fullnewname = newname + ".nam"
8
+ begin # exception trapped block
9
+ fileName = File.join($addressfiles_directory, fullnewname )
10
+ fd = File.open(fileName,"w")
11
+ fd.print(newdata) # save the record info to the file
12
+ fd.close
13
+ @createnewnamerecorddisplay=newdata # show the record info in the browser
14
+ rescue SystemCallError, StandardError
15
+ $stderr.print "system call error: " + $!
16
+ end # exception rescue
17
+ end
18
+ end
19
+
@@ -0,0 +1,25 @@
1
+ # this method deletes an address record
2
+ def deletecontactrecord
3
+
4
+ require 'fileutils'
5
+
6
+ if @a_viewnamedata
7
+ $currentnametext = @a_viewnamedata
8
+ end
9
+
10
+ fileName = $addressfiles_directory + "/" + $currentnametext + ".nam"
11
+ $stderr.print fileName
12
+
13
+ begin # exception trapped block
14
+
15
+ File.delete(fileName)
16
+ fileNamephoto = $addressfiles_directory + "/" + $currentnametext + ".jpg"
17
+ if File.exist?(fileNamephoto)
18
+ File.delete(fileNamephoto)
19
+ end
20
+ rescue SystemCallError, StandardError
21
+ $stderr.print "system call error: " + $!
22
+ end # exception rescue
23
+
24
+ end
25
+
@@ -0,0 +1,19 @@
1
+ # this code is to delete update files
2
+ def deleterwdaddressesupdatefiles
3
+ # exception begin
4
+ begin
5
+ fileListarray = Dir.new($rwdaddresses_updatedirectory).entries.sort.delete_if { |x| ! (x =~ /nam$/) }
6
+ #loop through and get the files names
7
+
8
+ fileListarray.each do |x|
9
+ filetodelete = File.join($rwdaddresses_updatedirectory,x)
10
+ if File.exist?(filetodelete)
11
+ File.delete(filetodelete)
12
+ end
13
+ end
14
+ @rwdaddressesftpdisplay = "update files deleted"
15
+ rescue
16
+ @rwdaddressesftpdisplay = "error opening schedule update directory"
17
+ end # end of error function
18
+ end
19
+
@@ -0,0 +1,36 @@
1
+ # down load address
2
+ def downloadrwdaddressfiles
3
+ require 'net/ftp'
4
+ BasicSocket.do_not_reverse_lookup = true
5
+ @rwdaddressesftpdisplays = ""
6
+ begin
7
+ ftp = Net::FTP::new($rwdaddresses_ftpsite)
8
+ @rwdaddressesftpdisplay = "files downloaded" + "\n"
9
+ ftp.debug_mode = false
10
+ ftp.login($rwdaddresses_ftplogin, $rwdaddresses_ftppassword)
11
+ ftp.chdir($rwdaddresses_ftpdirectory)
12
+ print "I'm in the directory ", ftp.pwd(), "\n"
13
+ schfiles = ftp.nlst($rwdaddresses_ftpdirectory)
14
+ schfiles.each do |x|
15
+ #adjust the filters to the files you want to see...
16
+
17
+ if x =~ /nam/
18
+ newstring = x
19
+ localupdatefile = File.join($rwdaddresses_updatedirectory, "#{x}")
20
+ ftp.getbinaryfile("#{x}" , localupdatefile )
21
+
22
+ @rwdaddressesftpdisplay = @rwdaddressesftpdisplay + newstring + "\n"
23
+ end
24
+
25
+
26
+ end
27
+ ftp.close
28
+
29
+ rescue
30
+ if ftp
31
+ ftp.close
32
+ end
33
+ @rwdaddressesftpdisplay = "ftp error"
34
+ end
35
+ end
36
+
@@ -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,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
+
@@ -1,19 +1,19 @@
1
1
  # this method puts the configuration rexord on the screen
2
- def loadrwdscheduleconfiguration
2
+ def loadrwdaddressesconfiguration
3
3
 
4
4
  require 'fileutils'
5
5
 
6
- @a_schconfigurationfilename = RwdScheduleName+"-"+RwdScheduleVersion+".cnf"
6
+ @a_adconfigurationfilename = "rwdwaddresses.cnf"
7
7
 
8
8
 
9
9
  begin # exception trapped block
10
10
 
11
11
  Dir.chdir($progdir)
12
- fileName = File.join(ConfigurationDir, @a_schconfigurationfilename)
12
+ fileName = File.join(ConfigurationDir, @a_adconfigurationfilename )
13
13
 
14
14
 
15
15
  fd = File.open(fileName,"r")
16
- @a_schconfigurationfile = fd.read
16
+ @a_adconfigurationfile= fd.read
17
17
  fd.close
18
18
  rescue SystemCallError, StandardError
19
19
  $stderr.print "system call error: " + $!
@@ -0,0 +1,15 @@
1
+ # this method loads the on screen variables into the running class
2
+ def loadrwdaddressesconfigurationvariables
3
+
4
+ tempfilename = "rwdwaddresses.cnf"
5
+ configfiletoload = File.join( ConfigurationDir , tempfilename )
6
+ begin
7
+ load configfiletoload
8
+ @extraadconfigdatadisplay = ""
9
+ @newadconfigurationresult = "Config Variables loaded"
10
+ rescue
11
+ @extraadconfigdatadisplay = ""
12
+ @newadconfigurationresult = "loading error"
13
+ end
14
+ end
15
+
@@ -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 = "rwdaddresseswindow"
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 = "rwdaddresseswindow"
8
+ @rwd_tab = "Viewnamedata"
9
+ end
10
+ def runrwdaddressesmenu2
11
+ @rwd_window = "rwdaddresseswindow"
12
+ @rwd_tab = "editnamerecordfile"
13
+ end
14
+
15
+
16
+ def runrwdaddressesmenu3
17
+ @rwd_window = "rwdaddresseswindow"
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 = "rwdaddresseswindow"
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 = "rwdaddressessyncwindow"
8
+ @rwd_tab="rwdaddressessynctasks"
9
+ end
10
+
@@ -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 Steven Gibson ", "Version #{RwdAddressesVersion}"]
8
+
9
+ end
10
+
@@ -0,0 +1,20 @@
1
+ # this method adds a new address record
2
+ def saverwdaddressesconfiguration
3
+ require 'fileutils'
4
+
5
+ newname = "rwdwaddresses.cnf" # grab the filename to create
6
+
7
+
8
+ newdata = @a_adconfigurationfile
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
@@ -4,24 +4,24 @@
4
4
  require 'test/unit/testcase'
5
5
  require 'test/unit/assertions'
6
6
 
7
- def rwdschedule_all_tests
8
- print "in rwdschedule all tests\n"
9
- $testrwdscheduletestcase = TestSuite.new
10
- test_runrwdschedule
7
+ def rwdaddresses_all_tests
8
+ print "in rwdaddresses all tests\n"
9
+ $testrwdaddressestestcase = TestSuite.new
10
+ test_runrwdaddresses
11
11
  end
12
12
 
13
- def test_runrwdschedule
13
+ def test_runrwdaddresses
14
14
 
15
15
 
16
16
  begin
17
17
  testasserts = 0
18
- print "Starting rwdtorrent tests!\n"
18
+ print "Starting rwdaddresses tests!\n"
19
19
  runselectiontab
20
20
  assert_equal("selectiontab",@rwd_tab) ; testasserts += 1
21
- runrwdschedulemenu10
22
- assert_equal("viewrwdscheduleconfiguration",@rwd_tab) ; testasserts += 1
23
- loadrwdscheduleconfiguration
24
- assert_equal(RwdScheduleName,@a_schconfigurationfilename) ; testasserts += 1
21
+ runrwdaddressesmenu10
22
+ assert_equal("viewaddressesconfiguration",@rwd_tab) ; testasserts += 1
23
+ loadrwdaddressesconfiguration
24
+ assert_equal("rwdaddresses.cnf",@a_adconfigurationfilename) ; testasserts += 1
25
25
 
26
26
  $stderr.print "tests completed succesfully!\n"
27
27
  $stderr.print testasserts, " asserts performed\n"