rwdschedule 0.07 → 0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (300) hide show
  1. data/Readme.txt +16 -434
  2. data/bin/rwdschedule +0 -0
  3. data/code/ag1core/aa0begin.rb +18 -0
  4. data/code/ag1core/rwdtinkerversion.rb +15 -0
  5. data/code/{superant.com.schedule → gg0schedules}/deleteeventrecord.rb +18 -18
  6. data/code/{superant.com.schedule/viewevent.rb → gg0schedules/gg0viewevent.rb} +20 -20
  7. data/code/{superant.com.schedule/saveeventrecord.rb → gg0schedules/gg9saveeventchanges.rb} +18 -25
  8. data/code/{superant.com.schedule/listeventdates.rb → gg0schedules/gh5listdaterecords.rb} +18 -18
  9. data/code/gg0schedules/gl7clearscreendisplay.rb +15 -0
  10. data/code/gg0schedules/gm3deletecontactrecord.rb +24 -0
  11. data/code/{superant.com.schedule/loadicseventrecord.rb → gg0schedules/loadeventrecord.rb} +29 -29
  12. data/code/{superant.com.schedule → gg0schedules}/renameeventdata.rb +10 -10
  13. data/code/gg0schedules/rwdaddresseshelpabout.rb +14 -0
  14. data/code/gg0schedules/rwdschedulehelpabout.rb +14 -0
  15. data/code/gh9calendar/gh9calendar.rb +16 -0
  16. data/code/xa5rwdtinkercallable/callable.rb +13 -0
  17. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +21 -0
  18. data/code/xb1rwdtinkerbackwindow/installapplet.rb +20 -0
  19. data/code/xb1rwdtinkerbackwindow/listinstalledfiles.rb +11 -0
  20. data/code/xb1rwdtinkerbackwindow/listzips.rb +14 -0
  21. data/code/xb1rwdtinkerbackwindow/openappletname.rb +18 -0
  22. data/code/xb1rwdtinkerbackwindow/removeapplet.rb +28 -0
  23. data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +14 -0
  24. data/code/zz0applicationend/zz0end.rb +1 -2
  25. data/configuration/language.cnf +5 -0
  26. data/configuration/rwdcalendar.cnf +4 -0
  27. data/configuration/rwdcalendarversion.cnf +4 -0
  28. data/configuration/rwdschedule.cnf +2 -0
  29. data/configuration/rwdscheduleversion.cnf +3 -0
  30. data/configuration/rwdtinker.cnf +12 -0
  31. data/configuration/rwdtinkerversion.cnf +2 -0
  32. data/configuration/tinkerwin2.cnf +3 -0
  33. data/configuration/tinkerwin2version.cnf +3 -0
  34. data/{lib/rwd → ev}/browser.rb +12 -26
  35. data/{lib/rwd → ev}/ftools.rb +19 -23
  36. data/{lib/rwd → ev}/net.rb +45 -172
  37. data/{lib/rwd → ev}/ruby.rb +27 -97
  38. data/{lib/rwd → ev}/rwd.rb +668 -245
  39. data/{lib/rwd → ev}/sgml.rb +2 -2
  40. data/{lib/rwd → ev}/thread.rb +1 -1
  41. data/{lib/rwd → ev}/tree.rb +7 -35
  42. data/ev/xml.rb +4 -0
  43. data/{lib → extras}/cal.rb +166 -158
  44. data/gui/aa2core/aa0rwdtop.rwd +4 -0
  45. data/gui/{tinkerbackwindows/superant.com.rwdschedules → gg0schedules}/gg0viewevent.rwd +27 -27
  46. data/gui/gg0schedules/gl6editrecord.rwd +36 -0
  47. data/gui/{tinkerbackwindows/superant.com.rwdschedules → gg0schedules}/gl8contactutilities.rwd +24 -25
  48. data/gui/hl9calendar/hl9calendar.rwd +20 -0
  49. data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +16 -0
  50. data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +12 -0
  51. data/gui/{frontwindowselections/wwselectionend.rwd → lz1selectiontabend/endselectiontab.rwd} +0 -0
  52. data/gui/tt0documentsbegin/tt0documentbegin.rwd +6 -0
  53. data/gui/uu5rwddocuments/uu5documents.rwd +15 -0
  54. data/gui/uu6rwdtinkerwin2documents/uu5documents.rwd +6 -0
  55. data/gui/uu8schedule/uu8doc_rwdschedule.rwd +5 -0
  56. data/gui/ww0documentsend/ww0documentend.rwd +7 -0
  57. data/gui/{helpaboutbegin/zzzrwdlasttab.rwd → wz6finaltabs/xx0rwdfirsttab.rwd} +0 -0
  58. data/gui/{tinkerbackwindows/superant.com.versionwindow → xa1versionwindow}/1appname.rwd +2 -2
  59. data/gui/xa5rwdtinkercallablewindow/1appname.rwd +17 -0
  60. data/gui/{tinkerbackwindows/superant.com.tinkerhelpwindow → xa5rwdtinkercallablewindow}/9end.rwd +0 -0
  61. data/gui/xb1rwdtinkerbackwindow/1appname.rwd +5 -0
  62. data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +11 -0
  63. data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +33 -0
  64. data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +44 -0
  65. data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +35 -0
  66. data/gui/{tinkerbackwindows/superant.com.tinkerbackwindow → xb1rwdtinkerbackwindow}/9backend.rwd +0 -0
  67. data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +3 -0
  68. data/gui/yg5rwdhelpabout/1appname.rwd +4 -0
  69. data/gui/yg5rwdhelpabout/3copyright.rwd +3 -0
  70. data/gui/yg5rwdhelpabout/5version.rwd +10 -0
  71. data/gui/yg6rwdwin2helpabout/1appname.rwd +4 -0
  72. data/gui/yg6rwdwin2helpabout/3copyright.rwd +3 -0
  73. data/gui/yg6rwdwin2helpabout/5version.rwd +10 -0
  74. data/gui/yh1helpschedule/1rwdschedule.rwd +6 -0
  75. data/gui/yh1helpschedule/5version.rwd +9 -0
  76. data/gui/{helpaboutzend → yy5helpaboutend}/helpscreenend.rwd +0 -0
  77. data/gui/{zzcoreguiend → za1applicationend}/yy9rwdend.rwd +0 -0
  78. data/init.rb +198 -144
  79. data/installed/rwdcalendar-0.5.inf +8 -0
  80. data/installed/rwdschedule-0.8.inf +7 -0
  81. data/installed/rwdtinkerwin2-0.5.inf +8 -0
  82. data/installed/schedulesampledata1.inf +3 -0
  83. data/lang/alanguagehashbegin.rb +4 -0
  84. data/lang/en/rwdcalendar/calendar-nl.rb +6 -0
  85. data/lang/en/rwdcore/languagefile.rb +16 -0
  86. data/lang/es/rwdcalendar/calendar-nl.rb +6 -0
  87. data/lang/es/rwdcore/languagefile-es.rb +14 -0
  88. data/lang/jp/rwdcore/languagefile.rb +9 -0
  89. data/lang/languagehash.rb +4 -0
  90. data/lang/nl/rwdcalendar/calendar-nl.rb +6 -0
  91. data/lang/nl/rwdcore/languagefile.rb +19 -0
  92. data/lang/templangfile.rb +22 -0
  93. data/lang/vlanguagehashend.rb +6 -0
  94. data/lang/wlocallangstart.rb +5 -0
  95. data/lang/xlocallangfile.rb +22 -0
  96. data/lang/zlocallangend.rb +2 -0
  97. data/{installed → lib}/temp.rb +0 -0
  98. data/rwd_files/HowTo_Schedule.txt +83 -197
  99. data/rwd_files/HowTo_Tinker.txt +35 -258
  100. data/rwd_files/rwdapplications.html +1 -23
  101. data/rwd_files/{RubyWebDialogs.html → rwdindex.html} +0 -0
  102. data/schedules/200501january23CharlotteB-Day.sch +8 -0
  103. data/schedules/200501january24jazzfuller.sch +8 -0
  104. data/tests/rwdtinkertestEN.rb +163 -0
  105. data/tests/test.result +32 -0
  106. data/zips/rwdaschedule-0.8.zip +0 -0
  107. data/zips/rwdhelloworld-0.4.zip +0 -0
  108. data/zips/rwdrefreshacpi-0.4.zip +0 -0
  109. data/zips/rwdwcalc-0.4.zip +0 -0
  110. data/zips/rwdwshell-0.92.zip +0 -0
  111. metadata +147 -279
  112. data/code/01rwdcore/01rwdcore.rb +0 -29
  113. data/code/01rwdcore/02helptexthashbegin.rb +0 -16
  114. data/code/01rwdcore/03helptexthash.rb +0 -21
  115. data/code/01rwdcore/jumplinkcommand.rb +0 -36
  116. data/code/01rwdcore/openhelpwindow.rb +0 -38
  117. data/code/01rwdcore/returntomain.rb +0 -10
  118. data/code/01rwdcore/rundocuments.rb +0 -10
  119. data/code/01rwdcore/runeditconfiguration.rb +0 -10
  120. data/code/01rwdcore/runhelpabout.rb +0 -15
  121. data/code/01rwdcore/runopentinkerdocument.rb +0 -7
  122. data/code/01rwdcore/runtab.rb +0 -15
  123. data/code/01rwdcore/rwdtinkerversion.rb +0 -22
  124. data/code/01rwdcore/rwdwindowreturn.rb +0 -9
  125. data/code/01rwdcore/selectiontab.rb +0 -11
  126. data/code/01rwdcore/setuphelpaboutoptions.rb +0 -15
  127. data/code/01rwdcore/setuptinkerdocuments.rb +0 -7
  128. data/code/01rwdcore/test_cases.rb +0 -158
  129. data/code/01rwdcore/test_harness.rb +0 -20
  130. data/code/01rwdcore/uploadreturns.rb +0 -65
  131. data/code/dd0viewphoto/dd0viewphoto.rb +0 -5
  132. data/code/superant.com.rwdcalendar/gh9calendar.rb +0 -40
  133. data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +0 -14
  134. data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +0 -17
  135. data/code/superant.com.rwdtinkerbackwindow/changelocale.rb +0 -84
  136. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +0 -19
  137. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +0 -169
  138. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +0 -38
  139. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +0 -20
  140. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +0 -12
  141. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +0 -55
  142. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +0 -14
  143. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +0 -37
  144. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +0 -24
  145. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +0 -14
  146. data/code/superant.com.rwdtinkerbackwindow/network.rb +0 -87
  147. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +0 -19
  148. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +0 -40
  149. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +0 -24
  150. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +0 -46
  151. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +0 -52
  152. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +0 -11
  153. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +0 -15
  154. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -13
  155. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +0 -19
  156. data/code/superant.com.rwdtinkerbackwindow/showlocaleoptions.rb +0 -9
  157. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +0 -23
  158. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +0 -24
  159. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +0 -16
  160. data/code/superant.com.schedule/0uninstallapplet.rb +0 -24
  161. data/code/superant.com.schedule/archiveevent.rb +0 -14
  162. data/code/superant.com.schedule/archiveicsevent.rb +0 -14
  163. data/code/superant.com.schedule/cleareventscreendisplay.rb +0 -19
  164. data/code/superant.com.schedule/deleteicseventrecord.rb +0 -19
  165. data/code/superant.com.schedule/deleterwdscheduleupdatefiles.rb +0 -20
  166. data/code/superant.com.schedule/downloadrwdschedulefiles.rb +0 -37
  167. data/code/superant.com.schedule/exporticseventrecord.rb +0 -97
  168. data/code/superant.com.schedule/helptexthashload.rb +0 -22
  169. data/code/superant.com.schedule/listicseventdates.rb +0 -19
  170. data/code/superant.com.schedule/loadconfigurationrecord.rb +0 -22
  171. data/code/superant.com.schedule/loadconfigurationvariables.rb +0 -14
  172. data/code/superant.com.schedule/loadeventrecord.rb +0 -38
  173. data/code/superant.com.schedule/openhelpwindowrwdschedule.rb +0 -43
  174. data/code/superant.com.schedule/renameicseventdata.rb +0 -17
  175. data/code/superant.com.schedule/returntomain.rb +0 -10
  176. data/code/superant.com.schedule/runrwdscheduleicsbackwindow.rb +0 -10
  177. data/code/superant.com.schedule/runrwdschedulemenu1.rb +0 -34
  178. data/code/superant.com.schedule/runrwdschedulesyncbackwindow.rb +0 -10
  179. data/code/superant.com.schedule/rwdversion.rb +0 -10
  180. data/code/superant.com.schedule/saveconfigurationrecord.rb +0 -19
  181. data/code/superant.com.schedule/saveicseventrecord.rb +0 -98
  182. data/code/superant.com.schedule/syncrwdschedule.rb +0 -30
  183. data/code/superant.com.schedule/test_cases.rb +0 -45
  184. data/code/superant.com.schedule/uploadrwdschedulefiles.rb +0 -30
  185. data/code/superant.com.schedule/viewicsevent.rb +0 -20
  186. data/code/superant.com.schedule/viewrwdschedulesconfiguration.rb +0 -21
  187. data/configuration/rwdtinker.dist +0 -15
  188. data/configuration/rwdwschedule.dist +0 -28
  189. data/configuration/tinkerwin2variables.dist +0 -23
  190. data/gui/00coreguibegin/applicationguitop.rwd +0 -9
  191. data/gui/frontwindow0/cc0openphoto.rwd +0 -22
  192. data/gui/frontwindowselections/00selectiontabbegin.rwd +0 -11
  193. data/gui/frontwindowselections/jumplinkcommands.rwd +0 -15
  194. data/gui/frontwindowtdocuments/00documentbegin.rwd +0 -6
  195. data/gui/frontwindowtdocuments/tinkerdocuments.rwd +0 -14
  196. data/gui/frontwindowtdocuments/zzdocumentend.rwd +0 -8
  197. data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +0 -3
  198. data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +0 -15
  199. data/gui/helpaboutzend/zhelpscreenstart2.rwd +0 -3
  200. data/gui/helpaboutzend/zzzzhelpabout2.rwd +0 -15
  201. data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +0 -3
  202. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +0 -5
  203. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +0 -45
  204. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +0 -29
  205. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/70rwddiagnostics.rwd +0 -16
  206. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +0 -18
  207. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/zvbackend.rwd +0 -6
  208. data/gui/tinkerbackwindows/superant.com.rwdschedules/1appname.rwd +0 -5
  209. data/gui/tinkerbackwindows/superant.com.rwdschedules/gl6editrecord.rwd +0 -56
  210. data/gui/tinkerbackwindows/superant.com.rwdschedules/hl9calendar.rwd +0 -27
  211. data/gui/tinkerbackwindows/superant.com.rwdschedules/m01menubegin.rwd +0 -18
  212. data/gui/tinkerbackwindows/superant.com.rwdschedules/zvbackend.rwd +0 -6
  213. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/1appname.rwd +0 -5
  214. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/30viewevent.rwd +0 -27
  215. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +0 -49
  216. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/60eventicsutilities.rwd +0 -25
  217. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m01menubegin.rwd +0 -18
  218. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/zvbackend.rwd +0 -6
  219. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +0 -5
  220. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +0 -41
  221. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +0 -44
  222. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +0 -44
  223. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +0 -30
  224. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +0 -29
  225. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +0 -20
  226. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80localechanger.rwd +0 -17
  227. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +0 -17
  228. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +0 -31
  229. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +0 -17
  230. data/installed/rwdscheduledate2.inf +0 -6
  231. data/installed/rwdwschedule.inf +0 -20
  232. data/lang/en/rwdcalendar/en.po +0 -32
  233. data/lang/en/rwdcore/en.po +0 -197
  234. data/lang/es/rwdcalendar/es.po +0 -10
  235. data/lang/es/rwdcore/es.po +0 -184
  236. data/lang/fr/rwdcalendar/fr.po +0 -11
  237. data/lang/fr/rwdcore/fr.po +0 -169
  238. data/lang/hi/rwdcalendar/hi.po +0 -11
  239. data/lang/hi/rwdcore/hi.po +0 -173
  240. data/lang/ja/rwdcalendar/ja.po +0 -11
  241. data/lang/ja/rwdcore/ja.po +0 -171
  242. data/lang/nl/rwdcalendar/nl.po +0 -12
  243. data/lang/nl/rwdcore/nl.po +0 -169
  244. data/lib/icalendar.rb +0 -18
  245. data/lib/icalendar/base.rb +0 -17
  246. data/lib/icalendar/calendar.rb +0 -44
  247. data/lib/icalendar/calendar_parser.rb +0 -237
  248. data/lib/icalendar/component.rb +0 -91
  249. data/lib/icalendar/component/alarm.rb +0 -16
  250. data/lib/icalendar/component/event.rb +0 -25
  251. data/lib/icalendar/component/freebusy.rb +0 -12
  252. data/lib/icalendar/component/journal.rb +0 -25
  253. data/lib/icalendar/component/timezone.rb +0 -26
  254. data/lib/icalendar/component/todo.rb +0 -21
  255. data/lib/icalendar/helpers.rb +0 -103
  256. data/lib/icalendar/parameter.rb +0 -25
  257. data/lib/rconftool.rb +0 -387
  258. data/lib/rwd/mime.rb +0 -328
  259. data/lib/rwd/xml.rb +0 -101
  260. data/lib/rwdthemes/default.rwd +0 -317
  261. data/lib/rwdthemes/pda.rwd +0 -72
  262. data/lib/rwdthemes/windowslike.rwd +0 -171
  263. data/lib/rwdtinker/rwdcodedir.rb +0 -56
  264. data/lib/rwdtinker/rwdguidir.rb +0 -57
  265. data/lib/rwdtinker/rwdlangdir.rb +0 -60
  266. data/lib/rwdtinker/rwdtinkertools.rb +0 -25
  267. data/lib/zip/ioextras.rb +0 -155
  268. data/lib/zip/stdrubyext.rb +0 -111
  269. data/lib/zip/tempfile_bugfixed.rb +0 -195
  270. data/lib/zip/zip.rb +0 -1847
  271. data/lib/zip/zipfilesystem.rb +0 -609
  272. data/lib/zip/ziprequire.rb +0 -90
  273. data/rwd_files/Tinkerhelptexthash.txt +0 -84
  274. data/rwd_files/log/rwdtinker.log +0 -2
  275. data/rwd_files/rwdschedulehelpfiles.txt +0 -19
  276. data/rwd_files/schedules/20050120T09.ics +0 -9
  277. data/rwd_files/schedules/200505may02a.sch +0 -4
  278. data/rwd_files/schedules/Enterprise.ics +0 -411
  279. data/rwd_files/schedules/US Holidays.ics +0 -575
  280. data/rwd_files/schedules/archive/sample.archive +0 -1
  281. data/rwd_files/schedules/testics05.ics +0 -11
  282. data/rwd_files/tinker.png +0 -0
  283. data/rwdconfig.dist +0 -24
  284. data/rwdschedule.rb +0 -1
  285. data/tests/RubyGauge.rb +0 -179
  286. data/tests/checkdepends.sh +0 -4
  287. data/tests/cleancnf.sh +0 -6
  288. data/tests/makedist-rwdwhypernote.rb +0 -56
  289. data/tests/makedist.rb +0 -66
  290. data/tests/rdep.rb +0 -354
  291. data/updates/temp.rb +0 -1
  292. data/zips/rwdwcalc-0.63.zip +0 -0
  293. data/zips/rwdwfoldeditor-0.07.zip +0 -0
  294. data/zips/rwdwhypernote-0.16.zip +0 -0
  295. data/zips/rwdwmovies-0.98.zip +0 -0
  296. data/zips/rwdwruby-1.08.zip +0 -0
  297. data/zips/rwdwschedule-1.07.zip +0 -0
  298. data/zips/temp.rb +0 -1
  299. data/zips/tinkerbellw-0.04.zip +0 -0
  300. data/zips/wrubyslippers-1.08.zip +0 -0
data/init.rb CHANGED
@@ -18,162 +18,216 @@
18
18
  #* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
19
  #*
20
20
  #* For further information please contact the author by e-mail
21
- #* at "smalllinux@gmail.com".
21
+ #* at "steven@superant.com".
22
22
  #***********************************************************************/
23
23
 
24
- require 'logger'
25
-
26
- LogDirectory = 'rwd_files/log/'
27
- logfilelocation = File.join(LogDirectory, 'rwdtinker.log')
28
-
29
- $rwdtinkerlog = Logger.new( logfilelocation , 'weekly' )
30
- $rwdtinkerlog.level = Logger::INFO
31
-
32
- require "lib/rwd/rwd"
24
+ require "ev/rwd"
33
25
  require 'fileutils'
34
- require 'lib/rconftool'
35
-
36
- $KCODE = 'u'
37
- require 'jcode'
38
-
26
+
39
27
  $progdir = File::expand_path( File.dirname(__FILE__))
40
28
 
41
- tempdoc = " "
42
-
43
- # integrate the new configuration files
44
- MAINconfignew = "rwdconfig.cnf"
45
- MAINconfigdist = "rwdconfig.dist"
46
- Rconftool::install(MAINconfigdist,MAINconfignew)
47
-
48
- #load main config file
49
- load 'rwdconfig.cnf'
50
-
51
- Dir.chdir("configuration") #changes the current working directory
52
-
53
- fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /dist$/) } #creates an Array separated with \n
54
- @doc = ""
55
- fileList.length.times{ #opening of a block
56
- configdist =fileList.pop #pops the first item out of the Array
57
- tempconfigfile = configdist.gsub(/\.dist$/, "")
58
- confignew = tempconfigfile + ".cnf"
59
- Rconftool::install(configdist,confignew) #integrates new file with old
60
- } #closing block
61
- # END of configuration integration
62
- Dir.chdir($progdir)
63
-
64
- # Read in the configuration files
65
- Dir.chdir("configuration") #changes the current working directory
66
-
67
- fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
68
- @doc = ""
69
- fileList.length.times{ #opening of a block
70
- fileName=fileList.pop #pops the first item out of the Array
71
- load fileName #loads the the config file thats in fileName
72
- } #closing block
73
- # END of configuration reading
74
-
75
- Dir.chdir($progdir) # change back to top program directory
76
-
77
-
78
- # build the English Language hash file from the parts
79
- Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Message not found: #{kk.inspect}."; hh[kk] }
80
- langmessage = { :clear => "Clear", :rwdtinker => "Rwdtinker" } ; langmessage.each { |kk, vv| Message[kk] = vv }
81
-
82
- def msgid(programkey)
83
- $programkey = programkey
84
- end
85
-
86
- def msgstr(programmsg)
87
- if programmsg == ""
88
- $rwdtinkerlog.info "msgstr: no translation for #{$programkey}"
89
- else
90
- Message.update( $programkey.to_sym => programmsg )
91
- end
92
- end
29
+ $tempdoc = " "
93
30
 
94
- require 'lib/rwdtinker/rwdlangdir'
31
+ def findfiles(d)
32
+ a = Array.new(Dir[d].entries.sort)
33
+ #loop through and get the files names
34
+ a.each do |x|
35
+ #adjust the filters to the files you want to see...
36
+ if(!test(?d,x))
37
+ # only rwd files
38
+ if x =~ /rb|rwd|txt/
39
+ fileA=File.open("#{x}","r") #opens the file thats in fileName as read only
40
+ $tempdoc+=fileA.read #reads the file into the doc string
41
+ fileA.close
42
+ end
43
+ end
44
+ end
45
+ end
46
+ def loadguifile(d)
47
+ a = Array.new(Dir[d].entries.sort)
48
+ #loop through and get the files names
49
+ a.each do |x|
50
+ #adjust the filters to the files you want to see...
51
+ if(!test(?d,x))
52
+ # only rwd files
53
+ if x =~ /rb|rwd|txt/
54
+ load x #opens the file thats in fileName and reads it
55
+ $tempdoc += $rwdguivar # adds the file into the doc string
56
+ end
57
+ end
58
+ end
59
+ end
60
+
61
+ # Read in the configuration files
95
62
 
96
- tempdoc = " "
97
- #go get all the po language file files in english
98
- tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
99
-
100
- #writes the contents of doc into the languagehashvariable
101
- languagehashvariable = tempdoc
63
+ Dir.chdir("configuration") #changes the current working directory
64
+
65
+ fileList = Dir.new(".").entries.sort.reverse.delete_if { |x| ! (x =~ /cnf$/) } #creates an Array separated with \n
66
+ @doc = ""
67
+ fileList.length.times{ #opening of a block
68
+ fileName=fileList.pop #pops the first item out of the Array
69
+ load fileName #loads the the config file thats in fileName
70
+ } #closing block
71
+ # END of configuration reading
72
+
73
+ Dir.chdir($progdir) # change back to top program directory
74
+
75
+ # build the English Language hash file from the parts
76
+ startlangdir = @@langdir +"/" + "en"
77
+ #get a list of the files and subdirectories on the starting directory only
78
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
79
+ #loop through the list, ignore the files and add all new directories found
80
+ alanghash.each do |x|
81
+ #if a directory...
82
+ if(test(?d,x))
83
+ # add to the original list of directories
84
+ @@tmproot = x + "/**"
85
+ #adds the new ones to the array
86
+ blanghash = Dir[@@tmproot].entries.sort
87
+ blanghash.each do |x|
88
+ if(test(?d,x))
89
+ alanghash.push(x) #appends to the end of the array...
90
+ end
91
+ end
92
+ end
93
+ end
94
+ alanghash.each do |x|
95
+ #if it is a file...
96
+ if(!test(?d,x))
97
+ alanghash.delete(x)
98
+ else #it is a directory...
99
+ findfiles(x + "/**")
100
+ end
101
+ end
102
102
 
103
- # END of en Lang building
104
- tempdoc = " "
103
+ fileLangHash=File.open(TempLangHashFile,"w") #deletes and opens a the file in fileName
104
+ fileLangHash.write($tempdoc) #writes the contents of doc into the file
105
+ fileLangHash.close
106
+ # END of Lang building
107
+ $tempdoc = " "
105
108
  Dir.chdir($progdir) # change back to top program directory
109
+
110
+ # build the local Language hash file from the parts
111
+ startlangdir = @@langdir +"/" + $lang
112
+ #get a list of the files and subdirectories on the starting directory only
113
+ alanghash = Array.new(Dir[startlangdir].entries.sort)
114
+ #loop through the list, ignore the files and add all new directories found
115
+ alanghash.each do |x|
116
+ #if a directory...
117
+ if(test(?d,x))
118
+ # add to the original list of directories
119
+ @@tmproot = x + "/**"
120
+ #adds the new ones to the array
121
+ blanghash = Dir[@@tmproot].entries.sort
122
+ blanghash.each do |x|
123
+ if(test(?d,x))
124
+ alanghash.push(x) #appends to the end of the array...
125
+ end
126
+ end
127
+ end
128
+ end
129
+ alanghash.each do |x|
130
+ #if it is a file...
131
+ if(!test(?d,x))
132
+ alanghash.delete(x)
133
+ else #it is a directory...
134
+ findfiles(x + "/**")
135
+ end
136
+ end
106
137
 
107
- # build the local Language hash file from the parts
108
-
109
- $lang = $langarray[0] # pick the language of choice
110
-
111
- # Go get all the po files for the language of choice
112
- tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,$lang)
113
- # the contents of doc into the variable
114
- languagehashvariable = languagehashvariable + tempdoc
115
-
116
- Dir.chdir($progdir) # change back to top program directory
117
-
118
- # lets read those po files, first english then the chosen language
119
- temp = eval( languagehashvariable )
120
-
121
-
122
-
123
- # build the actual program from the code parts
124
- require 'lib/rwdtinker/rwdcodedir'
125
-
126
- tempdoc = RwdtinkerTools.findprogramfiles(CodeDir)
138
+ filelocalLangHash=File.open(LocalLangHashFile,"w") #deletes and opens a the file in fileName
139
+ filelocalLangHash.write($tempdoc) #writes the contents of doc into the file
140
+ filelocalLangHash.close
127
141
 
128
- # load the program file
142
+ $tempdoc = " "
129
143
 
130
- tempcoderesult = eval( tempdoc )
131
-
132
- # build the actual GUI from the gui parts
133
- require 'lib/rwdtinker/rwdguidir'
134
-
135
- tempdoc = RwdtinkerTools.findguifiles(GuiDir)
136
-
144
+ Dir.chdir($progdir) # change back to top program directory
145
+
146
+ # build the language hash constant object from the lang parts
147
+ #get a list of the files in lang directory only
148
+ alangfile = Dir.new(@@langdir).entries.sort.reverse.delete_if { |x| ! (x =~ /rb$/) }
149
+ alangfile.length.times{
150
+ fileName = alangfile.pop
151
+ Dir.chdir($progdir)
152
+ Dir.chdir(@@langdir)
153
+ fileLangA=File.open("#{fileName}","r") #opens the file thats in fileName as read only
154
+ $tempdoc += fileLangA.read #reads the file into the doc string
155
+ fileLangA.close
156
+ }
157
+
158
+ Dir.chdir($progdir)
159
+ fileLangB=File.open(LangNameFile,"w") #deletes and opens a the file in fileName
160
+ fileLangB.write($tempdoc) #writes the contents of doc into the file
161
+ fileLangB.close
162
+ load LangNameFile # load the file
163
+
164
+ $tempdoc = " "
165
+
166
+ # build the actual program from the code parts
167
+ #get a list of the files and subdirectories on the starting directory only
168
+ a = Array.new(Dir[@@codedir].entries.sort)
169
+ #loop through the list, ignore the files and add all new directories found
170
+ a.each do |x|
171
+ #if a directory...
172
+ if(test(?d,x))
173
+ # add to the original list of directories
174
+ @@root = x + "/**"
175
+ #adds the new ones to the array
176
+ b = Dir[@@root].entries.sort
177
+ b.each do |x|
178
+ if(test(?d,x))
179
+ a.push(x) #appends to the end of the array...
180
+ end
181
+ end
182
+ end
183
+ end
184
+ a.each do |x|
185
+ #if it is a file...
186
+ if(!test(?d,x))
187
+ a.delete(x)
188
+ else #it is a directory...
189
+ findfiles(x + "/**")
190
+ end
191
+ end
137
192
 
138
- # gui variable is done
139
- guiRWD = ""
140
- $rwd_gui_tinker = tempdoc
141
- require 'socket' # Network stuff
142
- host = "127.0.0.1"
143
- port = $port
193
+ fileB=File.open(CodeNameFile,"w") #deletes and opens a the file in fileName
194
+ fileB.write($tempdoc) #writes the contents of doc into the file
195
+ fileB.close
196
+ require CodeName # load the program file
197
+
198
+ # build the actual GUI from the gui parts
199
+ $tempdoc = " "
200
+ #get a list of the files and subdirectories on the starting directory only
201
+ a = Array.new(Dir[@@guidir].entries.sort)
202
+ #loop through the list, ignore the files and add all new directories found
203
+ a.each do |x|
204
+ #if a directory...
205
+ if(test(?d,x))
206
+ #use this new dir find to add to the original list of directories
207
+ @@root = x + "/**"
208
+ #adds the new ones to the array
209
+ b = Dir[@@root].entries.sort
210
+ b.each do |x|
211
+ if(test(?d,x))
212
+ a.push(x) #appends to the end of the array...
213
+ end
214
+ end
215
+ end
216
+ end
217
+ a.each do |x|
218
+ #if it is a file...
219
+ if(!test(?d,x))
220
+ a.delete(x)
221
+
222
+ else #it is a directory...
223
+ loadguifile(x + "/**")
224
+ end
225
+ end
144
226
 
145
- # Create a socket to listen on and bind it to the host and port
146
- freeportfound = false
147
- until freeportfound
148
- begin
149
- @socket = UDPSocket::new()
150
- @socket.bind(host, port)
151
- freeportfound = true
152
- $port = port
153
- # Rescue the "Address in use" error
154
- rescue Errno::EADDRINUSE
155
- $rwdtinkerlog.warn "RWD Startup: Port #{port} on host #{host} is already in use."
156
- port=port +1
157
- $rwdtinkerlog.warn "trying port: #{port}"
158
- # Rescue the "Address not available' error
159
- rescue Errno::EADDRNOTAVAIL
160
- $rwdtinkerlog.warn "RWD Startup: Address #{host} is not available to bind."
161
- port =port + 1
162
- $rwdtinkerlog.warn "trying port: #{port}"
163
- # Rescue "permission denied errors
164
- rescue Errno::EACCES
165
- $rwdtinkerlog.warn "RWD Startup: Access denied when binding interface addresses. ?"
166
- port =port + 1
167
- $rwdtinkerlog.warn "trying port: #{port}"
168
- # Rescue all other errors
169
- rescue
170
- $rwdtinkerlog.warn "RWD Startup: An error occured."
171
- port =port + 1
172
- $rwdtinkerlog.warn "trying port: #{port}"
173
- # Rescue all other errors
174
- end
175
- $port = port
176
- end
227
+ fileB=File.open(RWDFile,"w") #deletes and opens a the file in fileName
228
+ fileB.write($tempdoc) #writes the contents of doc into the file
229
+ fileB.close
230
+
231
+
177
232
 
178
-
179
- RwdTinker.new( $rwd_gui_tinker ).serve(port) # start the main class and program
233
+ RwdTinker.file(RWDFile).serve($port) # start the main class and program
@@ -0,0 +1,8 @@
1
+ # rwdcalendar - simple little monthly calendar
2
+ code/gh9calendar
3
+ gui/rwdcalendar
4
+ extras/cal.rb
5
+ lang/en/rwdcalendar/calendar-en.rb
6
+ lang/es/rwdcalendar/calendar-es.rb
7
+ lang/nl/rwdcalendar/calendar-nl/rb
8
+ configuration/gh1rwdcalendar.cnf
@@ -0,0 +1,7 @@
1
+ # rwdschedule - applet to keep track of appointments
2
+ code/gg0schedules
3
+ configuration/gg1rwdschedule.cnf
4
+ gui/en/gg0schedules
5
+ gui/en/uu8schedule
6
+ gui/en/yh1helpschedule
7
+ rwd_files/HowTo_Schedule.txt
@@ -0,0 +1,8 @@
1
+ # rwdwin2 - rwd applet in second window - core for Tinker: Applet adding/removing and Diagnostic tab
2
+ configuration/ab1tinkerwin2.cnf
3
+ code/xb1rwdtinkerbackwindow
4
+ gui/ll5rwdtinkerwin2selectiontab
5
+ gui/xb1rwdtinkerbackwindow
6
+ gui/uu6rwdtinkerwin2documents
7
+ gui/yg6rwdwin2helpabout
8
+ rwd_files/HowTo_TinkerWin2.txt
@@ -0,0 +1,3 @@
1
+ # rwdschedulesampledata1 - applet to keep track of appointments
2
+ 200501january23CharlotteB-Day.sch
3
+ 200501january24jazzfuller.sch
@@ -0,0 +1,4 @@
1
+
2
+
3
+ Message = Hash.new { |hh, kk| hh[kk] = "ERROR: Identificador de mensaje desconocido: #{kk.inspect}."; hh[kk] }
4
+ langmessage = {
@@ -0,0 +1,6 @@
1
+ # Lang file for rwdclandar - nl
2
+
3
+ :year => "Jaar:",
4
+ :month => "Maand:",
5
+
6
+
@@ -0,0 +1,16 @@
1
+ # English Language files for RwdTinker core
2
+
3
+
4
+ :applet_installed => "applet installed!.",
5
+ :clickfor_version => '"click for version"',
6
+ :documents => '"Documents"',
7
+ :help => '"Help"',
8
+ :module_unknown => "Module unknown",
9
+ :next => '"Next"',
10
+ :rwdtinker_window_2 => "RwdTinker Window 2",
11
+ :rwdtinker => "RwdTinker",
12
+ :rwdtinker_help_window => '"RwdTinker Help Window"',
13
+ :rwdtinker_back_window => '"RwdTinker Back Window"',
14
+ :rwdtinker_help => '"RwdTinker Help"',
15
+ :tinker_logo => "Tinker Logo",
16
+ :selection_panel => '"Selection Panel"',
@@ -0,0 +1,6 @@
1
+ # Lang file for rwdclandar - nl
2
+
3
+ :year => "Jaar:",
4
+ :month => "Maand:",
5
+
6
+
@@ -0,0 +1,14 @@
1
+ :applet_installed => "applet instalado! ",
2
+ :clickfor_version => '"click para version"',
3
+ :documents => '"Documentos"',
4
+ :help => '"Ayuda"',
5
+ :module_unknown => "Module desconocido.",
6
+ :next => '"Siguiente"',
7
+ :rwdtinker => "RwdTinker",
8
+ :rwdtinker_help_window => '"RwdTinker Ventana Ayuda"',
9
+ :rwdtinker_help => '"RwdTinker Ayuda"',
10
+ :rwdtinker_window_2 => "RwdTinker Ventana 2",
11
+ :rwdtinker_back_window => '"RwdTinker Ventana Trasera"',
12
+ :tinker_logo => "Insignia de Tinker",
13
+ :selection_panel => '"Selecci�n Panel"',
14
+