rwdschedule 0.6 → 0.07

Sign up to get free protection for your applications and to get access to all the features.
Files changed (292) hide show
  1. data/Readme.txt +435 -17
  2. data/bin/rwdschedule +0 -0
  3. data/code/01rwdcore/01rwdcore.rb +29 -0
  4. data/code/01rwdcore/02helptexthashbegin.rb +16 -0
  5. data/code/01rwdcore/03helptexthash.rb +21 -0
  6. data/code/01rwdcore/jumplinkcommand.rb +36 -0
  7. data/code/01rwdcore/openhelpwindow.rb +38 -0
  8. data/code/01rwdcore/returntomain.rb +10 -0
  9. data/code/01rwdcore/rundocuments.rb +10 -0
  10. data/code/01rwdcore/runeditconfiguration.rb +10 -0
  11. data/code/01rwdcore/runhelpabout.rb +15 -0
  12. data/code/01rwdcore/runopentinkerdocument.rb +7 -0
  13. data/code/01rwdcore/runtab.rb +15 -0
  14. data/code/01rwdcore/rwdtinkerversion.rb +22 -0
  15. data/code/01rwdcore/rwdwindowreturn.rb +9 -0
  16. data/code/01rwdcore/selectiontab.rb +11 -0
  17. data/code/01rwdcore/setuphelpaboutoptions.rb +15 -0
  18. data/code/01rwdcore/setuptinkerdocuments.rb +7 -0
  19. data/code/01rwdcore/test_cases.rb +158 -0
  20. data/code/01rwdcore/test_harness.rb +20 -0
  21. data/code/01rwdcore/uploadreturns.rb +65 -0
  22. data/code/dd0viewphoto/dd0viewphoto.rb +5 -0
  23. data/code/superant.com.rwdcalendar/gh9calendar.rb +40 -0
  24. data/code/superant.com.rwdcalendar/helptexthashrwdschedule.rb +14 -0
  25. data/code/superant.com.rwdcalendar/openhelpwindowrwdschedule.rb +17 -0
  26. data/code/superant.com.rwdtinkerbackwindow/changelocale.rb +84 -0
  27. data/code/superant.com.rwdtinkerbackwindow/diagnostictab.rb +19 -0
  28. data/code/superant.com.rwdtinkerbackwindow/initiateapplets.rb +169 -0
  29. data/code/superant.com.rwdtinkerbackwindow/installgemapplet.rb +38 -0
  30. data/code/superant.com.rwdtinkerbackwindow/installremotegem.rb +20 -0
  31. data/code/superant.com.rwdtinkerbackwindow/listgemdirs.rb +12 -0
  32. data/code/superant.com.rwdtinkerbackwindow/listgemzips.rb +55 -0
  33. data/code/superant.com.rwdtinkerbackwindow/listinstalledfiles.rb +14 -0
  34. data/code/superant.com.rwdtinkerbackwindow/listzips.rb +37 -0
  35. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationrecord.rb +24 -0
  36. data/code/superant.com.rwdtinkerbackwindow/loadconfigurationvariables.rb +14 -0
  37. data/code/superant.com.rwdtinkerbackwindow/network.rb +87 -0
  38. data/code/superant.com.rwdtinkerbackwindow/openappletname.rb +19 -0
  39. data/code/superant.com.rwdtinkerbackwindow/openhelpwindowtinkerwin2.rb +40 -0
  40. data/code/superant.com.rwdtinkerbackwindow/remotegemlist.rb +24 -0
  41. data/code/superant.com.rwdtinkerbackwindow/removeapplet.rb +46 -0
  42. data/code/superant.com.rwdtinkerbackwindow/removeappletvariables.rb +52 -0
  43. data/code/superant.com.rwdtinkerbackwindow/runremoteinstall.rb +11 -0
  44. data/code/superant.com.rwdtinkerbackwindow/runrwdtinkerbackwindow.rb +15 -0
  45. data/code/superant.com.rwdtinkerbackwindow/rwdtinkerwin2version.rb +13 -0
  46. data/code/superant.com.rwdtinkerbackwindow/saveconfigurationrecord.rb +19 -0
  47. data/code/superant.com.rwdtinkerbackwindow/showlocaleoptions.rb +9 -0
  48. data/code/superant.com.rwdtinkerbackwindow/viewappletcontents.rb +23 -0
  49. data/code/superant.com.rwdtinkerbackwindow/viewgemappletcontents.rb +24 -0
  50. data/code/superant.com.rwdtinkerbackwindow/viewlogfile.rb +16 -0
  51. data/code/superant.com.schedule/0uninstallapplet.rb +24 -0
  52. data/code/superant.com.schedule/archiveevent.rb +14 -0
  53. data/code/superant.com.schedule/archiveicsevent.rb +14 -0
  54. data/code/superant.com.schedule/cleareventscreendisplay.rb +19 -0
  55. data/code/{gg0schedules → superant.com.schedule}/deleteeventrecord.rb +18 -18
  56. data/code/superant.com.schedule/deleteicseventrecord.rb +19 -0
  57. data/code/superant.com.schedule/deleterwdscheduleupdatefiles.rb +20 -0
  58. data/code/superant.com.schedule/downloadrwdschedulefiles.rb +37 -0
  59. data/code/superant.com.schedule/exporticseventrecord.rb +97 -0
  60. data/code/superant.com.schedule/helptexthashload.rb +22 -0
  61. data/code/{gg0schedules/gh5listdaterecords.rb → superant.com.schedule/listeventdates.rb} +18 -18
  62. data/code/superant.com.schedule/listicseventdates.rb +19 -0
  63. data/code/superant.com.schedule/loadconfigurationrecord.rb +22 -0
  64. data/code/superant.com.schedule/loadconfigurationvariables.rb +14 -0
  65. data/code/superant.com.schedule/loadeventrecord.rb +38 -0
  66. data/code/{gg0schedules/loadeventrecord.rb → superant.com.schedule/loadicseventrecord.rb} +29 -29
  67. data/code/superant.com.schedule/openhelpwindowrwdschedule.rb +43 -0
  68. data/code/{gg0schedules → superant.com.schedule}/renameeventdata.rb +10 -10
  69. data/code/superant.com.schedule/renameicseventdata.rb +17 -0
  70. data/code/superant.com.schedule/returntomain.rb +10 -0
  71. data/code/superant.com.schedule/runrwdscheduleicsbackwindow.rb +10 -0
  72. data/code/superant.com.schedule/runrwdschedulemenu1.rb +34 -0
  73. data/code/superant.com.schedule/runrwdschedulesyncbackwindow.rb +10 -0
  74. data/code/superant.com.schedule/rwdversion.rb +10 -0
  75. data/code/superant.com.schedule/saveconfigurationrecord.rb +19 -0
  76. data/code/{gg0schedules/gg9saveeventchanges.rb → superant.com.schedule/saveeventrecord.rb} +25 -18
  77. data/code/superant.com.schedule/saveicseventrecord.rb +98 -0
  78. data/code/superant.com.schedule/syncrwdschedule.rb +30 -0
  79. data/code/superant.com.schedule/test_cases.rb +45 -0
  80. data/code/superant.com.schedule/uploadrwdschedulefiles.rb +30 -0
  81. data/code/{gg0schedules/gg0viewevent.rb → superant.com.schedule/viewevent.rb} +20 -20
  82. data/code/superant.com.schedule/viewicsevent.rb +20 -0
  83. data/code/superant.com.schedule/viewrwdschedulesconfiguration.rb +21 -0
  84. data/code/zz0applicationend/zz0end.rb +2 -1
  85. data/configuration/rwdtinker.dist +15 -0
  86. data/configuration/rwdwschedule.dist +28 -0
  87. data/configuration/tinkerwin2variables.dist +23 -0
  88. data/gui/00coreguibegin/applicationguitop.rwd +9 -0
  89. data/gui/frontwindow0/cc0openphoto.rwd +22 -0
  90. data/gui/frontwindowselections/00selectiontabbegin.rwd +11 -0
  91. data/gui/frontwindowselections/jumplinkcommands.rwd +15 -0
  92. data/gui/{lz1selectiontabend/endselectiontab.rwd → frontwindowselections/wwselectionend.rwd} +0 -0
  93. data/gui/frontwindowtdocuments/00documentbegin.rwd +6 -0
  94. data/gui/frontwindowtdocuments/tinkerdocuments.rwd +14 -0
  95. data/gui/frontwindowtdocuments/zzdocumentend.rwd +8 -0
  96. data/gui/{wz6finaltabs/xx0rwdfirsttab.rwd → helpaboutbegin/zzzrwdlasttab.rwd} +0 -0
  97. data/gui/helpaboutbegin/zzzzhelpscreenstart.rwd +3 -0
  98. data/gui/helpaboutbegin/zzzzzzhelpabouttab.rwd +15 -0
  99. data/gui/{yy5helpaboutend → helpaboutzend}/helpscreenend.rwd +0 -0
  100. data/gui/helpaboutzend/zhelpscreenstart2.rwd +3 -0
  101. data/gui/helpaboutzend/zzzzhelpabout2.rwd +15 -0
  102. data/gui/helpaboutzend/zzzzhelpscreen2end.rwd +3 -0
  103. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/1appname.rwd +5 -0
  104. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/20downloadftp.rwd +45 -0
  105. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/67viewconfiguration.rwd +29 -0
  106. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/70rwddiagnostics.rwd +16 -0
  107. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/m01menubegin.rwd +18 -0
  108. data/gui/tinkerbackwindows/superant.com.rwdschedulebackwindow/zvbackend.rwd +6 -0
  109. data/gui/tinkerbackwindows/superant.com.rwdschedules/1appname.rwd +5 -0
  110. data/gui/{gg0schedules → tinkerbackwindows/superant.com.rwdschedules}/gg0viewevent.rwd +27 -27
  111. data/gui/tinkerbackwindows/superant.com.rwdschedules/gl6editrecord.rwd +56 -0
  112. data/gui/{gg0schedules → tinkerbackwindows/superant.com.rwdschedules}/gl8contactutilities.rwd +25 -24
  113. data/gui/tinkerbackwindows/superant.com.rwdschedules/hl9calendar.rwd +27 -0
  114. data/gui/tinkerbackwindows/superant.com.rwdschedules/m01menubegin.rwd +18 -0
  115. data/gui/tinkerbackwindows/superant.com.rwdschedules/zvbackend.rwd +6 -0
  116. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/1appname.rwd +5 -0
  117. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/30viewevent.rwd +27 -0
  118. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/40editrecord.rwd +49 -0
  119. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/60eventicsutilities.rwd +25 -0
  120. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/m01menubegin.rwd +18 -0
  121. data/gui/tinkerbackwindows/superant.com.rwdschedulesback/zvbackend.rwd +6 -0
  122. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/1appname.rwd +5 -0
  123. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/40rwdlistzips.rwd +41 -0
  124. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/45installremotezip.rwd +44 -0
  125. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/50rwdlistapplets.rwd +44 -0
  126. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/60editconfiguration.rwd +30 -0
  127. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/70rwddiagnostics.rwd +29 -0
  128. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/75rwdlogfile.rwd +20 -0
  129. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/80localechanger.rwd +17 -0
  130. data/gui/tinkerbackwindows/superant.com.tinkerbackwindow/81jumplinkcommands.rwd +17 -0
  131. data/gui/{xb1rwdtinkerbackwindow → tinkerbackwindows/superant.com.tinkerbackwindow}/9backend.rwd +0 -0
  132. data/gui/tinkerbackwindows/superant.com.tinkerhelpwindow/1appname.rwd +31 -0
  133. data/gui/{xa5rwdtinkercallablewindow → tinkerbackwindows/superant.com.tinkerhelpwindow}/9end.rwd +0 -0
  134. data/gui/{xa1versionwindow → tinkerbackwindows/superant.com.versionwindow}/1appname.rwd +2 -2
  135. data/gui/tinkerbackwindows/superant.com.versionwindow/helpaboutwindow.rwd +17 -0
  136. data/gui/{za1applicationend → zzcoreguiend}/yy9rwdend.rwd +0 -0
  137. data/init.rb +144 -198
  138. data/installed/rwdscheduledate2.inf +6 -0
  139. data/installed/rwdwschedule.inf +20 -0
  140. data/{lib → installed}/temp.rb +0 -0
  141. data/lang/en/rwdcalendar/en.po +32 -0
  142. data/lang/en/rwdcore/en.po +197 -0
  143. data/lang/es/rwdcalendar/es.po +10 -0
  144. data/lang/es/rwdcore/es.po +184 -0
  145. data/lang/fr/rwdcalendar/fr.po +11 -0
  146. data/lang/fr/rwdcore/fr.po +169 -0
  147. data/lang/hi/rwdcalendar/hi.po +11 -0
  148. data/lang/hi/rwdcore/hi.po +173 -0
  149. data/lang/ja/rwdcalendar/ja.po +11 -0
  150. data/lang/ja/rwdcore/ja.po +171 -0
  151. data/lang/nl/rwdcalendar/nl.po +12 -0
  152. data/lang/nl/rwdcore/nl.po +169 -0
  153. data/{extras → lib}/cal.rb +158 -166
  154. data/lib/icalendar/base.rb +17 -0
  155. data/lib/icalendar/calendar.rb +44 -0
  156. data/lib/icalendar/calendar_parser.rb +237 -0
  157. data/lib/icalendar/component/alarm.rb +16 -0
  158. data/lib/icalendar/component/event.rb +25 -0
  159. data/lib/icalendar/component/freebusy.rb +12 -0
  160. data/lib/icalendar/component/journal.rb +25 -0
  161. data/lib/icalendar/component/timezone.rb +26 -0
  162. data/lib/icalendar/component/todo.rb +21 -0
  163. data/lib/icalendar/component.rb +91 -0
  164. data/lib/icalendar/helpers.rb +103 -0
  165. data/lib/icalendar/parameter.rb +25 -0
  166. data/lib/icalendar.rb +18 -0
  167. data/lib/rconftool.rb +387 -0
  168. data/{ev → lib/rwd}/browser.rb +26 -12
  169. data/{ev → lib/rwd}/ftools.rb +23 -19
  170. data/lib/rwd/mime.rb +328 -0
  171. data/{ev → lib/rwd}/net.rb +172 -45
  172. data/{ev → lib/rwd}/ruby.rb +97 -27
  173. data/{ev → lib/rwd}/rwd.rb +245 -668
  174. data/{ev → lib/rwd}/sgml.rb +2 -2
  175. data/{ev → lib/rwd}/thread.rb +1 -1
  176. data/{ev → lib/rwd}/tree.rb +35 -7
  177. data/lib/rwd/xml.rb +101 -0
  178. data/lib/rwdthemes/default.rwd +317 -0
  179. data/lib/rwdthemes/pda.rwd +72 -0
  180. data/lib/rwdthemes/windowslike.rwd +171 -0
  181. data/lib/rwdtinker/rwdcodedir.rb +56 -0
  182. data/lib/rwdtinker/rwdguidir.rb +57 -0
  183. data/lib/rwdtinker/rwdlangdir.rb +60 -0
  184. data/lib/rwdtinker/rwdtinkertools.rb +25 -0
  185. data/lib/zip/ioextras.rb +155 -0
  186. data/lib/zip/stdrubyext.rb +111 -0
  187. data/lib/zip/tempfile_bugfixed.rb +195 -0
  188. data/lib/zip/zip.rb +1847 -0
  189. data/lib/zip/zipfilesystem.rb +609 -0
  190. data/lib/zip/ziprequire.rb +90 -0
  191. data/rwd_files/HowTo_Schedule.txt +259 -82
  192. data/rwd_files/HowTo_Tinker.txt +274 -35
  193. data/rwd_files/{rwdindex.html → RubyWebDialogs.html} +0 -0
  194. data/rwd_files/Tinkerhelptexthash.txt +84 -0
  195. data/rwd_files/log/rwdtinker.log +2 -0
  196. data/rwd_files/rwdapplications.html +23 -1
  197. data/rwd_files/rwdschedulehelpfiles.txt +19 -0
  198. data/rwd_files/schedules/20050120T09.ics +9 -0
  199. data/rwd_files/schedules/200505may02a.sch +4 -0
  200. data/rwd_files/schedules/Enterprise.ics +411 -0
  201. data/rwd_files/schedules/US Holidays.ics +575 -0
  202. data/rwd_files/schedules/archive/sample.archive +1 -0
  203. data/rwd_files/schedules/testics05.ics +11 -0
  204. data/rwd_files/tinker.png +0 -0
  205. data/rwdconfig.dist +24 -0
  206. data/rwdschedule.rb +1 -0
  207. data/tests/RubyGauge.rb +179 -0
  208. data/tests/checkdepends.sh +4 -0
  209. data/tests/cleancnf.sh +6 -0
  210. data/tests/makedist-rwdwhypernote.rb +56 -0
  211. data/tests/makedist.rb +66 -0
  212. data/tests/rdep.rb +354 -0
  213. data/updates/temp.rb +1 -0
  214. data/zips/rwdwcalc-0.63.zip +0 -0
  215. data/zips/rwdwfoldeditor-0.07.zip +0 -0
  216. data/zips/rwdwhypernote-0.16.zip +0 -0
  217. data/zips/rwdwmovies-0.98.zip +0 -0
  218. data/zips/rwdwruby-1.08.zip +0 -0
  219. data/zips/rwdwschedule-1.07.zip +0 -0
  220. data/zips/temp.rb +1 -0
  221. data/zips/tinkerbellw-0.04.zip +0 -0
  222. data/zips/wrubyslippers-1.08.zip +0 -0
  223. metadata +279 -139
  224. data/code/ag1core/aa0begin.rb +0 -18
  225. data/code/ag1core/rwdtinkerversion.rb +0 -15
  226. data/code/gg0schedules/gl7clearscreendisplay.rb +0 -15
  227. data/code/gg0schedules/gm3deletecontactrecord.rb +0 -24
  228. data/code/gg0schedules/rwdaddresseshelpabout.rb +0 -14
  229. data/code/gg0schedules/rwdschedulehelpabout.rb +0 -14
  230. data/code/gh9calendar/gh9calendar.rb +0 -16
  231. data/code/xa5rwdtinkercallable/callable.rb +0 -13
  232. data/code/xb1rwdtinkerbackwindow/05listinstalledfiles.rb +0 -11
  233. data/code/xb1rwdtinkerbackwindow/diagnostictab.rb +0 -21
  234. data/code/xb1rwdtinkerbackwindow/ll1openname.rb +0 -18
  235. data/code/xb1rwdtinkerbackwindow/ll5listzips.rb +0 -14
  236. data/code/xb1rwdtinkerbackwindow/lm1installapplet.rb +0 -20
  237. data/code/xb1rwdtinkerbackwindow/mm1removeapplet.rb +0 -28
  238. data/code/xb1rwdtinkerbackwindow/rwdtinkerwin2version.rb +0 -14
  239. data/configuration/aa0rwdframework.cnf +0 -13
  240. data/configuration/ab1tinkerwin2.cnf +0 -4
  241. data/configuration/gg1rwdschedule.cnf +0 -3
  242. data/configuration/gh1rwdcalendar.cnf +0 -27
  243. data/ev/xml.rb +0 -4
  244. data/gui/aa2core/aa0rwdtop.rwd +0 -4
  245. data/gui/gg0schedules/gl6editrecord.rwd +0 -36
  246. data/gui/hl9calendar/hl9calendar.rwd +0 -20
  247. data/gui/ll1selectiontabbegin/selectiontabbegin.rwd +0 -16
  248. data/gui/ll5rwdtinkerwin2selectiontab/rwdwin2selectiontab.rwd +0 -12
  249. data/gui/tt0documentsbegin/tt0documentbegin.rwd +0 -6
  250. data/gui/uu5rwddocuments/uu5documents.rwd +0 -15
  251. data/gui/uu6rwdtinkerwin2documents/uu5documents.rwd +0 -6
  252. data/gui/uu8schedule/uu8doc_rwdschedule.rwd +0 -5
  253. data/gui/ww0documentsend/ww0documentend.rwd +0 -7
  254. data/gui/xa5rwdtinkercallablewindow/1appname.rwd +0 -17
  255. data/gui/xb1rwdtinkerbackwindow/1appname.rwd +0 -5
  256. data/gui/xb1rwdtinkerbackwindow/2tab1.rwd +0 -11
  257. data/gui/xb1rwdtinkerbackwindow/3arwddiagnostics.rwd +0 -33
  258. data/gui/xb1rwdtinkerbackwindow/4arwdlistapplets.rwd +0 -44
  259. data/gui/xb1rwdtinkerbackwindow/4arwdlistzips.rwd +0 -35
  260. data/gui/ya1helpaboutbegin/ya0helpscreenstart.rwd +0 -3
  261. data/gui/yg5rwdhelpabout/1appname.rwd +0 -4
  262. data/gui/yg5rwdhelpabout/3copyright.rwd +0 -3
  263. data/gui/yg5rwdhelpabout/5version.rwd +0 -10
  264. data/gui/yg6rwdwin2helpabout/1appname.rwd +0 -4
  265. data/gui/yg6rwdwin2helpabout/3copyright.rwd +0 -3
  266. data/gui/yg6rwdwin2helpabout/5version.rwd +0 -10
  267. data/gui/yh1helpschedule/1rwdschedule.rwd +0 -6
  268. data/gui/yh1helpschedule/5version.rwd +0 -9
  269. data/installed/rwdcalendar-0.4.inf +0 -6
  270. data/installed/rwdschedule-0.5.inf +0 -7
  271. data/installed/rwdtinkerwin2-0.5.inf +0 -8
  272. data/installed/schedulesampledata1.inf +0 -3
  273. data/lang/alanguagehashbegin.rb +0 -4
  274. data/lang/en/rwdcore/languagefile.rb +0 -7
  275. data/lang/es/rwdcore/languagefile.rb +0 -3
  276. data/lang/languagehash.rb +0 -4
  277. data/lang/nl/rwdcore/languagefile.rb +0 -4
  278. data/lang/templangfile.rb +0 -7
  279. data/lang/vlanguagehashend.rb +0 -6
  280. data/lang/wlocallangstart.rb +0 -5
  281. data/lang/xlocallangfile.rb +0 -7
  282. data/lang/zlocallangend.rb +0 -2
  283. data/rwd_files/HowTo_Shell.txt +0 -97
  284. data/schedules/200501january23CharlotteB-Day.sch +0 -8
  285. data/schedules/200501january24jazzfuller.sch +0 -8
  286. data/tests/rubyslippers-0.92.gemspec +0 -17
  287. data/tests/rwdtinker-1.2.gemspec +0 -17
  288. data/tests/rwdtinkertestEN.rb +0 -87
  289. data/tests/temptest.out +0 -18
  290. data/zips/rwdhelloworld-0.3.zip +0 -0
  291. data/zips/rwdwshell-0.91.zip +0 -0
  292. data/zips/wrubyslippers-0.93.zip +0 -0
@@ -0,0 +1,31 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name = \"rwdtinkerhelpwindow\" title=#{Message[:rwdtinker_help]}>
4
+ <horizontal>
5
+ %rwdhelptopic%
6
+ </horizontal>
7
+
8
+ <table>
9
+ <row> <p></row>
10
+
11
+ </table>
12
+ <horizontal>
13
+ %%rwdhelpdataoutput%%
14
+ </horizontal>
15
+ <row> <p></row>
16
+ <table>
17
+
18
+
19
+ <row> <p></row>
20
+ </table>
21
+ <horizontal>
22
+
23
+ <button caption=\"Return\" action=\"rwdwindowreturn\"/>
24
+ </horizontal>
25
+ <table>
26
+ <row> <p></row>
27
+
28
+ </table>
29
+
30
+ %%rwdhelpsubchoicesoutput%%
31
+ "
@@ -1,6 +1,6 @@
1
1
  $rwdguivar=
2
2
  "
3
- <window name = \"applicationversion\" title=\"Application Version\">
3
+ <window name = \"applicationversion\" title=#{Message[:application_version]}>
4
4
 
5
5
  <row> <p></row>
6
6
  <p>%versionappnamedisplay%</p>
@@ -11,7 +11,7 @@ $rwdguivar=
11
11
  <p>%versionnumberdisplay%</p>
12
12
 
13
13
  <horizontal>
14
- <cancel/>
14
+ <button caption=#{Message[:return]} action=returntomain/>
15
15
  </horizontal>
16
16
 
17
17
  </window>"
@@ -0,0 +1,17 @@
1
+ $rwdguivar=
2
+ "
3
+ <window name=tinkerhelpabout title=#{Message[:help_about]}>
4
+ <horizontal>
5
+ <button caption=#{Message[:showhelpabout_links]} action=\"setuphelpaboutoptions\"/>
6
+
7
+ </horizontal>
8
+ <table>
9
+ <select name=\"a_helpaboutinput\"> %%helpaboutoptions%% </select>
10
+
11
+ </table>
12
+
13
+ <horizontal>
14
+ <button caption=#{Message[:openselectedhelp_about]} action=\"runrwdtinkerversion\"/>
15
+ </horizontal>
16
+ </window>
17
+ "
data/init.rb CHANGED
@@ -18,216 +18,162 @@
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 "steven@superant.com".
21
+ #* at "smalllinux@gmail.com".
22
22
  #***********************************************************************/
23
23
 
24
- require "ev/rwd"
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"
25
33
  require 'fileutils'
26
-
34
+ require 'lib/rconftool'
35
+
36
+ $KCODE = 'u'
37
+ require 'jcode'
38
+
27
39
  $progdir = File::expand_path( File.dirname(__FILE__))
28
40
 
29
- $tempdoc = " "
30
-
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
62
-
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
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
70
60
  } #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
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
102
74
 
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 = " "
108
75
  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
137
76
 
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
141
77
 
142
- $tempdoc = " "
143
-
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
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 )
191
91
  end
92
+ end
93
+
94
+ require 'lib/rwdtinker/rwdlangdir'
95
+
96
+ tempdoc = " "
97
+ #go get all the po language file files in english
98
+ tempdoc = RwdtinkerTools.findlanguagefiles(LangDir,"en")
192
99
 
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
100
+ #writes the contents of doc into the languagehashvariable
101
+ languagehashvariable = tempdoc
226
102
 
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
-
103
+ # END of en Lang building
104
+ tempdoc = " "
105
+ Dir.chdir($progdir) # change back to top program directory
106
+
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)
127
+
128
+ # load the program file
129
+
130
+ tempcoderesult = eval( tempdoc )
131
+
132
+ # build the actual GUI from the gui parts
133
+ require 'lib/rwdtinker/rwdguidir'
231
134
 
135
+ tempdoc = RwdtinkerTools.findguifiles(GuiDir)
136
+
137
+
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
144
+
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
232
177
 
233
- RwdTinker.file(RWDFile).serve($port) # start the main class and program
178
+
179
+ RwdTinker.new( $rwd_gui_tinker ).serve(port) # start the main class and program
@@ -0,0 +1,6 @@
1
+ ## rwdschedule sample data
2
+ rwd_files/schedules/20050120T09.ics
3
+ rwd_files/schedules/Enterprise.ics
4
+ rwd_files/schedules/US Holidays.ics
5
+ rwd_files/schedules/testics05.ics
6
+ rwd_files/schedules/200505may02a.sch
@@ -0,0 +1,20 @@
1
+ ## rwdwschedule
2
+ gui/tinkerbackwindows/superant.com.rwdschedulesback
3
+ gui/tinkerbackwindows/superant.com.rwdschedules
4
+ gui/tinkerbackwindows/superant.com.rwdschedulebackwindow
5
+ code/superant.com.schedule
6
+ code/superant.com.rwdcalendar
7
+ lang/en/rwdcalendar
8
+ lang/es/rwdcalendar
9
+ lang/nl/rwdcalendar
10
+ lang/hi/rwdcalendar
11
+ lang/ja/rwdcalendar
12
+ lang/fr/rwdcalendar
13
+ tests/makedist-rwdwhypernote.rb
14
+ tests/gemspec-rwdwschedule
15
+ rwd_files/HowTo_Schedule.txt
16
+ rwd_files/rwdschedulehelpfiles.txt
17
+ configuration/rwdwschedule.dist
18
+ lib/cal.rb
19
+ lib/icalendar
20
+ lib/icalendar.rb
File without changes
@@ -0,0 +1,32 @@
1
+ # Lang file for rwdcalendar - en
2
+
3
+ msgid "year"
4
+ msgstr "Year:"
5
+
6
+ msgid "month"
7
+ msgstr "Month:"
8
+
9
+ msgid "show_month"
10
+ msgstr '"Show Month"'
11
+
12
+ msgid "rwdschedule_calendar_generalhelp"
13
+ msgstr "Use the 'Edit Event' tab<br> The first field is the most important. It is the filename that<br> will be created. I use the event date starting with yearmonthday<br> 2005january11 <br> The following lines for entry are for you to fill in as you want.<br> When you are finished press the Save Changes button <br> You use this same screen for editing an already saved event "
14
+
15
+ msgid "rwdschedule_filelist_generalhelp"
16
+ msgstr "Click on the list events button. <br> Click on the date you want <br> Then click the 'Open' button <br> If it finds the record it will open it. It displays the record as text under the 'Open' button."
17
+
18
+ msgid "event_utilities_help "
19
+ msgstr "On the event utilities tab <br> You can rename event filenames <br> You can delete events"
20
+
21
+ msgid "rwdschedule_calendar_configuration"
22
+ msgstr "click on 'Edit Configuration' <br> You can view the configuration file <br><br> You can edit the configuration <br> Remember to reload the configuration variables if you want your changes used."
23
+
24
+ msgid "rwdschedule_calendar_sync"
25
+ msgstr "Sync for multiple computers<br> If you are like me, you have more than one system<br> I use rwdTinker at home on my Linux laptop at work I use it on XP<br> So I am adding schedule events on different machines. <br> There is a function to help sync the separate systems <p> in 'Selection Panel' click on 'Open Schedule Sync Window' <p> First you need your ftp details set in the configuration/rwdschedule.cnf file <p> you can upload your events from your local schedules directory to the ftp site<br> you can download events from the ftp site to your local updates directory<br> you can perform a sync which finds remote events and adds them to your local schedules directory<br> There is a button to delete the update directory when finished"
26
+
27
+ msgid "rwdschedule_calendar_help"
28
+ msgstr "On the 'Show Month' tab<br> You can see the current month or enter a year and month <br> for example: <br> Year: 2005 <br> Month: 2 <br> Click on 'show month' <br> It will display one month"
29
+
30
+ msgid "rwdschedule_icsfile_help"
31
+ msgstr "You can create an ics file<br> you can view a raw ics file <br> Rename ics File<br> Delete ics File<br> <br><br> format of date year = 2005<br> month = 02<br> day = 01<br> hour = 01<br> minute = 01<br>"
32
+