lacci 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (597) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/Gemfile.lock +79 -0
  4. data/Rakefile +1 -4
  5. data/lib/lacci/scarpe_cli.rb +71 -0
  6. data/lib/lacci/scarpe_core.rb +22 -0
  7. data/lib/lacci/version.rb +13 -0
  8. data/lib/scarpe/niente/app.rb +23 -0
  9. data/lib/scarpe/niente/display_service.rb +62 -0
  10. data/lib/scarpe/niente/drawable.rb +57 -0
  11. data/lib/scarpe/niente/logger.rb +29 -0
  12. data/lib/scarpe/niente/shoes_spec.rb +87 -0
  13. data/lib/scarpe/niente.rb +20 -0
  14. data/lib/shoes/app.rb +165 -43
  15. data/lib/{scarpe → shoes}/background.rb +2 -2
  16. data/lib/{scarpe → shoes}/border.rb +2 -2
  17. data/lib/shoes/builtins.rb +63 -0
  18. data/lib/shoes/changelog.rb +52 -0
  19. data/lib/{scarpe → shoes}/colors.rb +3 -1
  20. data/lib/shoes/constants.rb +24 -3
  21. data/lib/{scarpe → shoes}/display_service.rb +45 -23
  22. data/lib/{scarpe → shoes}/download.rb +7 -7
  23. data/lib/shoes/drawable.rb +380 -0
  24. data/lib/shoes/drawables/arc.rb +49 -0
  25. data/lib/shoes/drawables/arrow.rb +41 -0
  26. data/lib/shoes/drawables/button.rb +73 -0
  27. data/lib/shoes/drawables/check.rb +29 -0
  28. data/lib/{scarpe → shoes/drawables}/document_root.rb +5 -5
  29. data/lib/{scarpe → shoes/drawables}/edit_box.rb +6 -6
  30. data/lib/{scarpe → shoes/drawables}/edit_line.rb +6 -6
  31. data/lib/shoes/drawables/flow.rb +22 -0
  32. data/lib/{scarpe → shoes/drawables}/image.rb +7 -13
  33. data/lib/shoes/drawables/line.rb +20 -0
  34. data/lib/shoes/drawables/link.rb +34 -0
  35. data/lib/shoes/drawables/list_box.rb +56 -0
  36. data/lib/shoes/drawables/para.rb +118 -0
  37. data/lib/shoes/drawables/progress.rb +14 -0
  38. data/lib/shoes/drawables/radio.rb +33 -0
  39. data/lib/shoes/drawables/rect.rb +17 -0
  40. data/lib/shoes/drawables/shape.rb +36 -0
  41. data/lib/shoes/drawables/slot.rb +87 -0
  42. data/lib/{scarpe → shoes/drawables}/span.rb +8 -7
  43. data/lib/{scarpe → shoes/drawables}/stack.rb +10 -4
  44. data/lib/shoes/drawables/star.rb +50 -0
  45. data/lib/shoes/drawables/subscription_item.rb +93 -0
  46. data/lib/shoes/drawables/text_drawable.rb +63 -0
  47. data/lib/shoes/drawables/video.rb +16 -0
  48. data/lib/shoes/drawables/widget.rb +69 -0
  49. data/lib/shoes/drawables.rb +31 -0
  50. data/lib/shoes/errors.rb +28 -0
  51. data/lib/shoes/log.rb +71 -0
  52. data/lib/shoes/ruby_extensions.rb +15 -0
  53. data/lib/shoes/spacing.rb +9 -0
  54. data/lib/shoes-spec.rb +93 -0
  55. data/lib/shoes.rb +93 -11
  56. metadata +67 -557
  57. data/.rubocop.yml +0 -85
  58. data/.ruby-version +0 -1
  59. data/.vscode/extensions.json +0 -5
  60. data/.yardopts +0 -12
  61. data/CHANGELOG.md +0 -19
  62. data/CODE_OF_CONDUCT.md +0 -84
  63. data/CONTRIBUTING.md +0 -20
  64. data/LICENSE.txt +0 -21
  65. data/README.md +0 -178
  66. data/bin/console +0 -15
  67. data/bin/setup +0 -8
  68. data/dev.yml +0 -7
  69. data/docs/static/PKGBUILD +0 -47
  70. data/docs/static/Shoes.icns +0 -0
  71. data/docs/static/avatar.png +0 -0
  72. data/docs/static/code_highlighter.js +0 -188
  73. data/docs/static/code_highlighter_ruby.js +0 -26
  74. data/docs/static/icon-debug.png +0 -0
  75. data/docs/static/icon-error.png +0 -0
  76. data/docs/static/icon-info.png +0 -0
  77. data/docs/static/icon-warn.png +0 -0
  78. data/docs/static/listbox_button1.png +0 -0
  79. data/docs/static/listbox_button2.png +0 -0
  80. data/docs/static/man-app.png +0 -0
  81. data/docs/static/man-builds.png +0 -0
  82. data/docs/static/man-builds1.png +0 -0
  83. data/docs/static/man-editor-notepad.png +0 -0
  84. data/docs/static/man-editor-osx.png +0 -0
  85. data/docs/static/man-ele-background.png +0 -0
  86. data/docs/static/man-ele-border.png +0 -0
  87. data/docs/static/man-ele-button.png +0 -0
  88. data/docs/static/man-ele-check.png +0 -0
  89. data/docs/static/man-ele-editbox.png +0 -0
  90. data/docs/static/man-ele-editline.png +0 -0
  91. data/docs/static/man-ele-image.png +0 -0
  92. data/docs/static/man-ele-listbox.png +0 -0
  93. data/docs/static/man-ele-progress.png +0 -0
  94. data/docs/static/man-ele-radio.png +0 -0
  95. data/docs/static/man-ele-shape.png +0 -0
  96. data/docs/static/man-ele-textblock.png +0 -0
  97. data/docs/static/man-ele-video.png +0 -0
  98. data/docs/static/man-intro-dmg.png +0 -0
  99. data/docs/static/man-intro-exe.png +0 -0
  100. data/docs/static/man-look-tiger.png +0 -0
  101. data/docs/static/man-look-ubuntu.png +0 -0
  102. data/docs/static/man-look-vista.png +0 -0
  103. data/docs/static/man-run-osx.png +0 -0
  104. data/docs/static/man-run-vista.png +0 -0
  105. data/docs/static/man-run-xp.png +0 -0
  106. data/docs/static/man-shot1.png +0 -0
  107. data/docs/static/manual-en.txt +0 -3529
  108. data/docs/static/manual-ja.txt +0 -2829
  109. data/docs/static/manual.css +0 -171
  110. data/docs/static/manual.md +0 -3528
  111. data/docs/static/menu-corner1.png +0 -0
  112. data/docs/static/menu-corner2.png +0 -0
  113. data/docs/static/menu-gray.png +0 -0
  114. data/docs/static/menu-left.png +0 -0
  115. data/docs/static/menu-right.png +0 -0
  116. data/docs/static/menu-top.png +0 -0
  117. data/docs/static/shoes-dmg.jpg +0 -0
  118. data/docs/static/shoes-icon-blue.png +0 -0
  119. data/docs/static/shoes-icon.png +0 -0
  120. data/docs/static/shoes-manual-apps.gif +0 -0
  121. data/docs/static/shoes_main_window.png +0 -0
  122. data/docs/static/stripe.png +0 -0
  123. data/docs/static/stubs/blank.exe +0 -0
  124. data/docs/static/stubs/blank.hfz +0 -0
  125. data/docs/static/stubs/blank.run +0 -375
  126. data/docs/static/stubs/cocoa-install +0 -0
  127. data/docs/static/stubs/sh-install +0 -49
  128. data/docs/static/stubs/shoes-stub-inject.exe +0 -0
  129. data/docs/static/stubs/shoes-stub.exe +0 -0
  130. data/docs/static/tutor-back.png +0 -0
  131. data/docs/yard/catscradle.md +0 -44
  132. data/docs/yard/template/default/fulldoc/html/setup.rb +0 -13
  133. data/docs/yard/template/default/layout/html/setup.rb +0 -9
  134. data/examples/backdround_with_image.rb +0 -16
  135. data/examples/bloopsaphone/working/1901_by_Aanand_Prasad.rb +0 -478
  136. data/examples/bloopsaphone/working/b1.rb +0 -64
  137. data/examples/bloopsaphone/working/b2.rb +0 -36
  138. data/examples/bloopsaphone/working/bloops_test.rb +0 -41
  139. data/examples/bloopsaphone/working/bloopsaphone_theme_song_by_why.rb +0 -31
  140. data/examples/bloopsaphone/working/feepogram.rb +0 -67
  141. data/examples/bloopsaphone/working/simpsons_theme_song_by_why.rb +0 -14
  142. data/examples/bloopsaphone/working/tune_cheeky_drat.rb +0 -210
  143. data/examples/button.rb +0 -10
  144. data/examples/button_alert.rb +0 -6
  145. data/examples/button_go_away.rb +0 -6
  146. data/examples/button_with_position_and_size.rb +0 -7
  147. data/examples/coffee.rb +0 -14
  148. data/examples/download.rb +0 -5
  149. data/examples/download_and_show_image.rb +0 -28
  150. data/examples/edit_box.rb +0 -8
  151. data/examples/edit_line.rb +0 -8
  152. data/examples/fill.rb +0 -25
  153. data/examples/flow.rb +0 -11
  154. data/examples/fonts.rb +0 -6
  155. data/examples/gen.rb +0 -140
  156. data/examples/get_headers.rb +0 -10
  157. data/examples/hello_world.rb +0 -3
  158. data/examples/highlander.rb +0 -87
  159. data/examples/image/clickable_image.rb +0 -5
  160. data/examples/image/image.rb +0 -3
  161. data/examples/image/image_size.rb +0 -7
  162. data/examples/image/image_with_position_and_size.rb +0 -3
  163. data/examples/info.rb +0 -9
  164. data/examples/legacy/not_checked/expert/colours.rb +0 -105
  165. data/examples/legacy/not_checked/expert/curve-animation.rb +0 -31
  166. data/examples/legacy/not_checked/expert/curve-control-point.rb +0 -51
  167. data/examples/legacy/not_checked/expert/custom-list-box.rb +0 -53
  168. data/examples/legacy/not_checked/expert/definr.rb +0 -23
  169. data/examples/legacy/not_checked/expert/funnies.rb +0 -56
  170. data/examples/legacy/not_checked/expert/minesweeper.rb +0 -267
  171. data/examples/legacy/not_checked/expert/othello.rb +0 -318
  172. data/examples/legacy/not_checked/expert/pong.rb +0 -62
  173. data/examples/legacy/not_checked/expert/tankspank.rb +0 -385
  174. data/examples/legacy/not_checked/expert/tooltips.rb +0 -45
  175. data/examples/legacy/not_checked/expert/url.rb +0 -37
  176. data/examples/legacy/not_checked/expert/video-player.rb +0 -256
  177. data/examples/legacy/not_checked/good/_why-stories.rb +0 -44
  178. data/examples/legacy/not_checked/good/_why-stories.yaml +0 -387
  179. data/examples/legacy/not_checked/good/arc.rb +0 -37
  180. data/examples/legacy/not_checked/good/cardflip.rb +0 -141
  181. data/examples/legacy/not_checked/good/clock.rb +0 -51
  182. data/examples/legacy/not_checked/good/console.rb +0 -21
  183. data/examples/legacy/not_checked/good/follow.rb +0 -26
  184. data/examples/legacy/not_checked/good/image-rotate.rb +0 -14
  185. data/examples/legacy/not_checked/good/paris.svg +0 -7236
  186. data/examples/legacy/not_checked/good/path-animation.rb +0 -46
  187. data/examples/legacy/not_checked/good/plots.rb +0 -100
  188. data/examples/legacy/not_checked/good/reminder.rb +0 -174
  189. data/examples/legacy/not_checked/good/svgview.rb +0 -113
  190. data/examples/legacy/not_checked/good/vjot.rb +0 -56
  191. data/examples/legacy/not_checked/shoes-contrib/.gitignore +0 -2
  192. data/examples/legacy/not_checked/shoes-contrib/README.md +0 -34
  193. data/examples/legacy/not_checked/shoes-contrib/animation/animate-ovals.rb +0 -21
  194. data/examples/legacy/not_checked/shoes-contrib/animation/flowers.rb +0 -59
  195. data/examples/legacy/not_checked/shoes-contrib/animation/happy-trails.rb +0 -31
  196. data/examples/legacy/not_checked/shoes-contrib/animation/mice-satellites.rb +0 -27
  197. data/examples/legacy/not_checked/shoes-contrib/animation/oval-motion.rb +0 -12
  198. data/examples/legacy/not_checked/shoes-contrib/animation/pink-bubbles.rb +0 -34
  199. data/examples/legacy/not_checked/shoes-contrib/animation/pulsate.rb +0 -18
  200. data/examples/legacy/not_checked/shoes-contrib/animation/rotating-star.rb +0 -18
  201. data/examples/legacy/not_checked/shoes-contrib/app/download-and-save.rb +0 -11
  202. data/examples/legacy/not_checked/shoes-contrib/app/download.rb +0 -10
  203. data/examples/legacy/not_checked/shoes-contrib/app/get-google.rb +0 -11
  204. data/examples/legacy/not_checked/shoes-contrib/app/mouse-detection.rb +0 -7
  205. data/examples/legacy/not_checked/shoes-contrib/app/resizeable-false.rb +0 -6
  206. data/examples/legacy/not_checked/shoes-contrib/art/bubble-bullseye.rb +0 -23
  207. data/examples/legacy/not_checked/shoes-contrib/art/faded.rb +0 -17
  208. data/examples/legacy/not_checked/shoes-contrib/art/fill-oval.rb +0 -5
  209. data/examples/legacy/not_checked/shoes-contrib/art/mask.rb +0 -15
  210. data/examples/legacy/not_checked/shoes-contrib/art/oval-gradient.rb +0 -6
  211. data/examples/legacy/not_checked/shoes-contrib/art/star-gradient.rb +0 -4
  212. data/examples/legacy/not_checked/shoes-contrib/basic/basic-edit-box.rb +0 -8
  213. data/examples/legacy/not_checked/shoes-contrib/basic/basic-new-window.rb +0 -8
  214. data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-image.rb +0 -8
  215. data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval-shape.rb +0 -8
  216. data/examples/legacy/not_checked/shoes-contrib/basic/basic-oval.rb +0 -6
  217. data/examples/legacy/not_checked/shoes-contrib/basic/class-book.rb +0 -43
  218. data/examples/legacy/not_checked/shoes-contrib/basic/class-book.yaml +0 -387
  219. data/examples/legacy/not_checked/shoes-contrib/basic/clock.rb +0 -6
  220. data/examples/legacy/not_checked/shoes-contrib/basic/edit-stack +0 -14
  221. data/examples/legacy/not_checked/shoes-contrib/basic/gradient-shoes.rb +0 -7
  222. data/examples/legacy/not_checked/shoes-contrib/basic/list_box-shape-report.rb +0 -19
  223. data/examples/legacy/not_checked/shoes-contrib/basic/rect-arrow.rb +0 -7
  224. data/examples/legacy/not_checked/shoes-contrib/basic/scribble.rb +0 -8
  225. data/examples/legacy/not_checked/shoes-contrib/basic/search.rb +0 -32
  226. data/examples/legacy/not_checked/shoes-contrib/basic/shoes-notes.rb +0 -16
  227. data/examples/legacy/not_checked/shoes-contrib/basic/url-shoes-subclassing.rb +0 -24
  228. data/examples/legacy/not_checked/shoes-contrib/browser.rb +0 -21
  229. data/examples/legacy/not_checked/shoes-contrib/elements/background-column.rb +0 -3
  230. data/examples/legacy/not_checked/shoes-contrib/elements/background.rb +0 -4
  231. data/examples/legacy/not_checked/shoes-contrib/elements/basic-fps.rb +0 -6
  232. data/examples/legacy/not_checked/shoes-contrib/elements/border-cat.rb +0 -6
  233. data/examples/legacy/not_checked/shoes-contrib/elements/button-block.rb +0 -8
  234. data/examples/legacy/not_checked/shoes-contrib/elements/check-mate.rb +0 -15
  235. data/examples/legacy/not_checked/shoes-contrib/elements/common-styles.rb +0 -13
  236. data/examples/legacy/not_checked/shoes-contrib/elements/displace-animation.rb +0 -13
  237. data/examples/legacy/not_checked/shoes-contrib/elements/edit_box-character-count.rb +0 -7
  238. data/examples/legacy/not_checked/shoes-contrib/elements/edit_line-character-count.rb +0 -7
  239. data/examples/legacy/not_checked/shoes-contrib/elements/image-icon.rb +0 -3
  240. data/examples/legacy/not_checked/shoes-contrib/elements/list_box-select-class.rb +0 -13
  241. data/examples/legacy/not_checked/shoes-contrib/elements/list_box.rb +0 -6
  242. data/examples/legacy/not_checked/shoes-contrib/elements/move-flow-animate.rb +0 -13
  243. data/examples/legacy/not_checked/shoes-contrib/elements/phat-button.rb +0 -7
  244. data/examples/legacy/not_checked/shoes-contrib/elements/popup.rb +0 -7
  245. data/examples/legacy/not_checked/shoes-contrib/elements/progress-bar.rb +0 -10
  246. data/examples/legacy/not_checked/shoes-contrib/elements/radio-dreamcast-favs.rb +0 -17
  247. data/examples/legacy/not_checked/shoes-contrib/elements/timer.rb +0 -6
  248. data/examples/legacy/not_checked/shoes-contrib/elements/width-introspec.rb +0 -8
  249. data/examples/legacy/not_checked/shoes-contrib/events/background-hover.rb +0 -11
  250. data/examples/legacy/not_checked/shoes-contrib/events/motion-detect.rb +0 -9
  251. data/examples/legacy/not_checked/shoes-contrib/events/pressed-key.rb +0 -6
  252. data/examples/legacy/not_checked/shoes-contrib/expert/expert-funnies.rb +0 -51
  253. data/examples/legacy/not_checked/shoes-contrib/expert/expert-irb.rb +0 -112
  254. data/examples/legacy/not_checked/shoes-contrib/expert/expert-othello.rb +0 -319
  255. data/examples/legacy/not_checked/shoes-contrib/good/good-arc.rb +0 -37
  256. data/examples/legacy/not_checked/shoes-contrib/good/good-clock.rb +0 -51
  257. data/examples/legacy/not_checked/shoes-contrib/good/good-follow.rb +0 -26
  258. data/examples/legacy/not_checked/shoes-contrib/good/good-reminder.rb +0 -174
  259. data/examples/legacy/not_checked/shoes-contrib/good/good-vjot.rb +0 -56
  260. data/examples/legacy/not_checked/shoes-contrib/kernel/ask.rb +0 -4
  261. data/examples/legacy/not_checked/shoes-contrib/kernel/ask_color.rb +0 -4
  262. data/examples/legacy/not_checked/shoes-contrib/kernel/ask_open_file.rb +0 -4
  263. data/examples/legacy/not_checked/shoes-contrib/kernel/ask_save_file.rb +0 -7
  264. data/examples/legacy/not_checked/shoes-contrib/kernel/confirm.rb +0 -3
  265. data/examples/legacy/not_checked/shoes-contrib/kernel/debug.rb +0 -4
  266. data/examples/legacy/not_checked/shoes-contrib/kernel/exit.rb +0 -5
  267. data/examples/legacy/not_checked/shoes-contrib/kernel/font.rb +0 -5
  268. data/examples/legacy/not_checked/shoes-contrib/kernel/fonts.rb +0 -3
  269. data/examples/legacy/not_checked/shoes-contrib/manipulation/append-slot.rb +0 -9
  270. data/examples/legacy/not_checked/shoes-contrib/manipulation/clear-slot.rb +0 -6
  271. data/examples/legacy/not_checked/shoes-contrib/manipulation/prepend-slot.rb +0 -6
  272. data/examples/legacy/not_checked/shoes-contrib/manipulation/roll.rb +0 -17
  273. data/examples/legacy/not_checked/shoes-contrib/position/gutter-margin.rb +0 -5
  274. data/examples/legacy/not_checked/shoes-contrib/position/stack-width.rb +0 -3
  275. data/examples/legacy/not_checked/shoes-contrib/simple/simple-accordion.rb +0 -75
  276. data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-shapes.rb +0 -17
  277. data/examples/legacy/not_checked/shoes-contrib/simple/simple-anim-text.rb +0 -13
  278. data/examples/legacy/not_checked/shoes-contrib/simple/simple-arc.rb +0 -23
  279. data/examples/legacy/not_checked/shoes-contrib/simple/simple-bounce.rb +0 -24
  280. data/examples/legacy/not_checked/shoes-contrib/simple/simple-calc.rb +0 -70
  281. data/examples/legacy/not_checked/shoes-contrib/simple/simple-chipmunk.rb +0 -26
  282. data/examples/legacy/not_checked/shoes-contrib/simple/simple-control-sizes.rb +0 -24
  283. data/examples/legacy/not_checked/shoes-contrib/simple/simple-curve.rb +0 -26
  284. data/examples/legacy/not_checked/shoes-contrib/simple/simple-dialogs.rb +0 -29
  285. data/examples/legacy/not_checked/shoes-contrib/simple/simple-downloader.rb +0 -27
  286. data/examples/legacy/not_checked/shoes-contrib/simple/simple-draw.rb +0 -13
  287. data/examples/legacy/not_checked/shoes-contrib/simple/simple-editor.rb +0 -28
  288. data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.rb +0 -28
  289. data/examples/legacy/not_checked/shoes-contrib/simple/simple-form.shy +0 -0
  290. data/examples/legacy/not_checked/shoes-contrib/simple/simple-mask.rb +0 -21
  291. data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu.rb +0 -31
  292. data/examples/legacy/not_checked/shoes-contrib/simple/simple-menu1.rb +0 -35
  293. data/examples/legacy/not_checked/shoes-contrib/simple/simple-rubygems.rb +0 -29
  294. data/examples/legacy/not_checked/shoes-contrib/simple/simple-slide.rb +0 -45
  295. data/examples/legacy/not_checked/shoes-contrib/simple/simple-sphere.rb +0 -28
  296. data/examples/legacy/not_checked/shoes-contrib/simple/simple-sqlite3.rb +0 -13
  297. data/examples/legacy/not_checked/shoes-contrib/simple/simple-timer.rb +0 -13
  298. data/examples/legacy/not_checked/shoes-contrib/simple/simple-video.rb +0 -13
  299. data/examples/legacy/not_checked/shoes-contrib/styles/alignment.rb +0 -4
  300. data/examples/legacy/not_checked/shoes-contrib/styles/attachment.rb +0 -5
  301. data/examples/legacy/not_checked/shoes-contrib/styles/emphasis.rb +0 -3
  302. data/examples/legacy/not_checked/shoes-contrib/styles/gradient-angle.rb +0 -3
  303. data/examples/legacy/not_checked/shoes-contrib/styles/para-methods.rb +0 -5
  304. data/examples/legacy/not_checked/shoes-contrib/styles/para-red-underlined.rb +0 -3
  305. data/examples/legacy/not_checked/shoes-contrib/styles/para-style-method.rb +0 -4
  306. data/examples/legacy/not_checked/shoes-dep-samples/expert-game-of-life.rb +0 -243
  307. data/examples/legacy/not_checked/shoes-dep-samples/expert-othello.rb +0 -319
  308. data/examples/legacy/not_checked/shoes-dep-samples/good-clock.rb +0 -51
  309. data/examples/legacy/not_checked/shoes-dep-samples/good-follow.rb +0 -26
  310. data/examples/legacy/not_checked/shoes-dep-samples/good-reminder.rb +0 -174
  311. data/examples/legacy/not_checked/shoes-dep-samples/good-vjot.rb +0 -56
  312. data/examples/legacy/not_checked/shoes-dep-samples/simple-accordion.rb +0 -75
  313. data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-shapes.rb +0 -17
  314. data/examples/legacy/not_checked/shoes-dep-samples/simple-anim-text.rb +0 -13
  315. data/examples/legacy/not_checked/shoes-dep-samples/simple-arc.rb +0 -23
  316. data/examples/legacy/not_checked/shoes-dep-samples/simple-bounce.rb +0 -24
  317. data/examples/legacy/not_checked/shoes-dep-samples/simple-calc.rb +0 -70
  318. data/examples/legacy/not_checked/shoes-dep-samples/simple-chipmunk.rb +0 -26
  319. data/examples/legacy/not_checked/shoes-dep-samples/simple-control-sizes.rb +0 -24
  320. data/examples/legacy/not_checked/shoes-dep-samples/simple-curve.rb +0 -26
  321. data/examples/legacy/not_checked/shoes-dep-samples/simple-dialogs.rb +0 -29
  322. data/examples/legacy/not_checked/shoes-dep-samples/simple-draw.rb +0 -13
  323. data/examples/legacy/not_checked/shoes-dep-samples/simple-editor.rb +0 -28
  324. data/examples/legacy/not_checked/shoes-dep-samples/simple-form.rb +0 -28
  325. data/examples/legacy/not_checked/shoes-dep-samples/simple-form.shy +0 -0
  326. data/examples/legacy/not_checked/shoes-dep-samples/simple-mask.rb +0 -21
  327. data/examples/legacy/not_checked/shoes-dep-samples/simple-menu.rb +0 -31
  328. data/examples/legacy/not_checked/shoes-dep-samples/simple-menu1.rb +0 -35
  329. data/examples/legacy/not_checked/shoes-dep-samples/simple-rubygems.rb +0 -29
  330. data/examples/legacy/not_checked/shoes-dep-samples/simple-slide.rb +0 -45
  331. data/examples/legacy/not_checked/shoes-dep-samples/simple-sphere.rb +0 -28
  332. data/examples/legacy/not_checked/shoes-dep-samples/simple-sqlite3.rb +0 -13
  333. data/examples/legacy/not_checked/shoes-dep-samples/simple-timer.rb +0 -13
  334. data/examples/legacy/not_checked/shoes-dep-samples/simple-video.rb +0 -13
  335. data/examples/legacy/not_checked/shoes3-tests/AnemicCinema1926marcelDuchampCut.mp4 +0 -0
  336. data/examples/legacy/not_checked/shoes3-tests/button/button.rb +0 -53
  337. data/examples/legacy/not_checked/shoes3-tests/cache/cache.rb +0 -41
  338. data/examples/legacy/not_checked/shoes3-tests/combo/combo.rb +0 -24
  339. data/examples/legacy/not_checked/shoes3-tests/curl/bare.rb +0 -34
  340. data/examples/legacy/not_checked/shoes3-tests/curl/downloader.rb +0 -40
  341. data/examples/legacy/not_checked/shoes3-tests/curl/m1.rb +0 -11
  342. data/examples/legacy/not_checked/shoes3-tests/curl/m2.rb +0 -12
  343. data/examples/legacy/not_checked/shoes3-tests/curl/m3.rb +0 -11
  344. data/examples/legacy/not_checked/shoes3-tests/curl/m4.rb +0 -5
  345. data/examples/legacy/not_checked/shoes3-tests/curl/typ.rb +0 -30
  346. data/examples/legacy/not_checked/shoes3-tests/cursor/c1.rb +0 -21
  347. data/examples/legacy/not_checked/shoes3-tests/decoration.rb +0 -14
  348. data/examples/legacy/not_checked/shoes3-tests/dialogs/ask.rb +0 -6
  349. data/examples/legacy/not_checked/shoes3-tests/dialogs/confirm.rb +0 -6
  350. data/examples/legacy/not_checked/shoes3-tests/editbox/editbox.rb +0 -36
  351. data/examples/legacy/not_checked/shoes3-tests/editline/editline.rb +0 -27
  352. data/examples/legacy/not_checked/shoes3-tests/events/button.rb +0 -32
  353. data/examples/legacy/not_checked/shoes3-tests/events/button.yaml +0 -40
  354. data/examples/legacy/not_checked/shoes3-tests/events/capture.rb +0 -57
  355. data/examples/legacy/not_checked/shoes3-tests/events/chipmunk.yaml +0 -47
  356. data/examples/legacy/not_checked/shoes3-tests/events/event0.rb +0 -8
  357. data/examples/legacy/not_checked/shoes3-tests/events/event1.rb +0 -51
  358. data/examples/legacy/not_checked/shoes3-tests/events/event1.yaml +0 -26
  359. data/examples/legacy/not_checked/shoes3-tests/events/event2.rb +0 -46
  360. data/examples/legacy/not_checked/shoes3-tests/events/event3.rb +0 -44
  361. data/examples/legacy/not_checked/shoes3-tests/events/event4.rb +0 -65
  362. data/examples/legacy/not_checked/shoes3-tests/events/event5.rb +0 -17
  363. data/examples/legacy/not_checked/shoes3-tests/events/event6.rb +0 -51
  364. data/examples/legacy/not_checked/shoes3-tests/events/replay.rb +0 -60
  365. data/examples/legacy/not_checked/shoes3-tests/gapp/fullscreen.rb +0 -38
  366. data/examples/legacy/not_checked/shoes3-tests/gapp/icon.rb +0 -56
  367. data/examples/legacy/not_checked/shoes3-tests/gapp/mon1.rb +0 -46
  368. data/examples/legacy/not_checked/shoes3-tests/gapp/settings1.rb +0 -22
  369. data/examples/legacy/not_checked/shoes3-tests/gapp/title1.rb +0 -34
  370. data/examples/legacy/not_checked/shoes3-tests/indian.m4a +0 -0
  371. data/examples/legacy/not_checked/shoes3-tests/menus/event.rb +0 -33
  372. data/examples/legacy/not_checked/shoes3-tests/menus/menu1.rb +0 -8
  373. data/examples/legacy/not_checked/shoes3-tests/menus/menu2.rb +0 -25
  374. data/examples/legacy/not_checked/shoes3-tests/menus/menu3.rb +0 -103
  375. data/examples/legacy/not_checked/shoes3-tests/menus/menu4.rb +0 -41
  376. data/examples/legacy/not_checked/shoes3-tests/menus/tests.txt +0 -42
  377. data/examples/legacy/not_checked/shoes3-tests/opacity.rb +0 -13
  378. data/examples/legacy/not_checked/shoes3-tests/plot/^IRX.R +0 -5219
  379. data/examples/legacy/not_checked/shoes3-tests/plot/^SPX +0 -5219
  380. data/examples/legacy/not_checked/shoes3-tests/plot/cstest.rb +0 -51
  381. data/examples/legacy/not_checked/shoes3-tests/plot/gr1.rb +0 -73
  382. data/examples/legacy/not_checked/shoes3-tests/plot/gr2.rb +0 -40
  383. data/examples/legacy/not_checked/shoes3-tests/plot/gr3.rb +0 -47
  384. data/examples/legacy/not_checked/shoes3-tests/plot/gr4.rb +0 -35
  385. data/examples/legacy/not_checked/shoes3-tests/plot/gr5.rb +0 -31
  386. data/examples/legacy/not_checked/shoes3-tests/plot/gr6.rb +0 -35
  387. data/examples/legacy/not_checked/shoes3-tests/plot/gr7.rb +0 -37
  388. data/examples/legacy/not_checked/shoes3-tests/plot/grcsv.rb +0 -219
  389. data/examples/legacy/not_checked/shoes3-tests/plot/manual.rb +0 -40
  390. data/examples/legacy/not_checked/shoes3-tests/progress/progress.rb +0 -29
  391. data/examples/legacy/not_checked/shoes3-tests/radio/clear.rb +0 -20
  392. data/examples/legacy/not_checked/shoes3-tests/radio/group.rb +0 -18
  393. data/examples/legacy/not_checked/shoes3-tests/radio/multiple.rb +0 -32
  394. data/examples/legacy/not_checked/shoes3-tests/radio/nogroup.rb +0 -9
  395. data/examples/legacy/not_checked/shoes3-tests/simpletest.svg +0 -14
  396. data/examples/legacy/not_checked/shoes3-tests/spinner.rb +0 -15
  397. data/examples/legacy/not_checked/shoes3-tests/svg.rb +0 -208
  398. data/examples/legacy/not_checked/shoes3-tests/switch/switch.rb +0 -28
  399. data/examples/legacy/not_checked/shoes3-tests/systray/back.rb +0 -20
  400. data/examples/legacy/not_checked/shoes3-tests/systray/note.rb +0 -17
  401. data/examples/legacy/not_checked/shoes3-tests/terminal/cursor.rb +0 -27
  402. data/examples/legacy/not_checked/shoes3-tests/terminal/ed.rb +0 -65
  403. data/examples/legacy/not_checked/shoes3-tests/terminal/el.rb +0 -50
  404. data/examples/legacy/not_checked/shoes3-tests/terminal/logattr.rb +0 -31
  405. data/examples/legacy/not_checked/shoes3-tests/tests_color.rb +0 -138
  406. data/examples/legacy/not_checked/shoes3-tests/tests_svg.rb +0 -228
  407. data/examples/legacy/not_checked/shoes3-tests/tests_video_vlc.rb +0 -186
  408. data/examples/legacy/not_checked/shoes3-tests/tooltips.rb +0 -20
  409. data/examples/legacy/not_checked/shoes3-tests/video_vlc.rb +0 -242
  410. data/examples/legacy/not_checked/shoes3-tests/wheel/wheel1.rb +0 -21
  411. data/examples/legacy/not_checked/simple/accordion.rb +0 -81
  412. data/examples/legacy/not_checked/simple/anim-shapes.rb +0 -17
  413. data/examples/legacy/not_checked/simple/anim-text.rb +0 -13
  414. data/examples/legacy/not_checked/simple/arc.rb +0 -23
  415. data/examples/legacy/not_checked/simple/bounce.rb +0 -24
  416. data/examples/legacy/not_checked/simple/chipmunk.rb +0 -26
  417. data/examples/legacy/not_checked/simple/control-sizes.rb +0 -24
  418. data/examples/legacy/not_checked/simple/curve-control-points.rb +0 -24
  419. data/examples/legacy/not_checked/simple/curve.rb +0 -26
  420. data/examples/legacy/not_checked/simple/dialogs.rb +0 -29
  421. data/examples/legacy/not_checked/simple/downloader.rb +0 -40
  422. data/examples/legacy/not_checked/simple/downloader1.rb +0 -31
  423. data/examples/legacy/not_checked/simple/draw.rb +0 -13
  424. data/examples/legacy/not_checked/simple/editor.rb +0 -28
  425. data/examples/legacy/not_checked/simple/form.rb +0 -30
  426. data/examples/legacy/not_checked/simple/image.rb +0 -21
  427. data/examples/legacy/not_checked/simple/info.rb +0 -78
  428. data/examples/legacy/not_checked/simple/mask.rb +0 -21
  429. data/examples/legacy/not_checked/simple/mask2.rb +0 -27
  430. data/examples/legacy/not_checked/simple/menu.rb +0 -31
  431. data/examples/legacy/not_checked/simple/menu1.rb +0 -35
  432. data/examples/legacy/not_checked/simple/slide.rb +0 -45
  433. data/examples/legacy/not_checked/simple/sphere.rb +0 -28
  434. data/examples/legacy/not_checked/superleg.rb +0 -244
  435. data/examples/legacy/working/shoes-contrib/basic/a-poem.rb +0 -24
  436. data/examples/legacy/working/shoes-contrib/basic/basic-blocks-instances.rb +0 -7
  437. data/examples/legacy/working/shoes-contrib/basic/basic-blocks.rb +0 -7
  438. data/examples/legacy/working/shoes-contrib/basic/basic-slot.rb +0 -8
  439. data/examples/legacy/working/shoes-contrib/basic/intro.rb +0 -20
  440. data/examples/legacy/working/shoes-contrib/basic/two-column.rb +0 -12
  441. data/examples/legacy/working/shoes-contrib/elements/edit_box.rb +0 -6
  442. data/examples/legacy/working/shoes-contrib/kernel/alert.rb +0 -3
  443. data/examples/legacy/working/simple/calc.rb +0 -71
  444. data/examples/legacy/working/simple/sqlite3.rb +0 -27
  445. data/examples/legacy/working/simple/timer.rb +0 -13
  446. data/examples/line.rb +0 -5
  447. data/examples/link.rb +0 -20
  448. data/examples/list_box.rb +0 -8
  449. data/examples/local_fonts.rb +0 -4
  450. data/examples/local_images.rb +0 -4
  451. data/examples/motion_events.rb +0 -20
  452. data/examples/para/collection_of_arguments.rb +0 -9
  453. data/examples/para/hello_world.rb +0 -5
  454. data/examples/para/hide_and_show.rb +0 -9
  455. data/examples/para/rainbow.rb +0 -11
  456. data/examples/para/rainbow_2.rb +0 -11
  457. data/examples/para/sizes.rb +0 -11
  458. data/examples/para/sizes_2.rb +0 -12
  459. data/examples/para/strong.rb +0 -3
  460. data/examples/para_text_widgets.rb +0 -4
  461. data/examples/parse_xl_funnies.rb +0 -58
  462. data/examples/pirate.png +0 -0
  463. data/examples/raw_flow.rb +0 -11
  464. data/examples/ruby_racer.rb +0 -50
  465. data/examples/selfitude.rb +0 -18
  466. data/examples/shapes/arc.rb +0 -8
  467. data/examples/shapes/shapes.rb +0 -8
  468. data/examples/shapes/shapes_fill.rb +0 -10
  469. data/examples/shapes/star.rb +0 -5
  470. data/examples/shoes_school.rb +0 -66
  471. data/examples/shoes_splorer.rb +0 -150
  472. data/examples/simple_slides.rb +0 -73
  473. data/examples/skip_ci/parrot.rb +0 -22
  474. data/examples/skip_ci/say.rb +0 -20
  475. data/examples/sleepless.rb +0 -26
  476. data/examples/slots.rb +0 -10
  477. data/examples/spacing.rb +0 -18
  478. data/examples/span.rb +0 -6
  479. data/examples/stack/background.rb +0 -35
  480. data/examples/stack/border.rb +0 -11
  481. data/examples/stack/gradients.rb +0 -6
  482. data/examples/stack/raw_stack.rb +0 -8
  483. data/examples/stack/stack.rb +0 -27
  484. data/examples/text_change.rb +0 -4
  485. data/examples/text_sizes.rb +0 -10
  486. data/examples/timmy.rb +0 -109
  487. data/examples/title_and_resize.rb +0 -3
  488. data/examples/video.rb +0 -10
  489. data/exe/scarpe +0 -107
  490. data/fonts/Pacifico.ttf +0 -0
  491. data/lib/scarpe/alert.rb +0 -19
  492. data/lib/scarpe/arc.rb +0 -49
  493. data/lib/scarpe/base64.rb +0 -27
  494. data/lib/scarpe/button.rb +0 -35
  495. data/lib/scarpe/cats_cradle.rb +0 -255
  496. data/lib/scarpe/fill.rb +0 -23
  497. data/lib/scarpe/flow.rb +0 -18
  498. data/lib/scarpe/font.rb +0 -14
  499. data/lib/scarpe/glibui/README.md +0 -34
  500. data/lib/scarpe/glibui/alert.rb +0 -65
  501. data/lib/scarpe/glibui/app.rb +0 -27
  502. data/lib/scarpe/glibui/background.rb +0 -18
  503. data/lib/scarpe/glibui/border.rb +0 -22
  504. data/lib/scarpe/glibui/button.rb +0 -38
  505. data/lib/scarpe/glibui/dimensions.rb +0 -22
  506. data/lib/scarpe/glibui/document_root.rb +0 -33
  507. data/lib/scarpe/glibui/edit_box.rb +0 -44
  508. data/lib/scarpe/glibui/edit_line.rb +0 -43
  509. data/lib/scarpe/glibui/flow.rb +0 -33
  510. data/lib/scarpe/glibui/html.rb +0 -77
  511. data/lib/scarpe/glibui/image.rb +0 -36
  512. data/lib/scarpe/glibui/link.rb +0 -29
  513. data/lib/scarpe/glibui/local_display.rb +0 -62
  514. data/lib/scarpe/glibui/para.rb +0 -84
  515. data/lib/scarpe/glibui/spacing.rb +0 -41
  516. data/lib/scarpe/glibui/stack.rb +0 -33
  517. data/lib/scarpe/glibui/text_widget.rb +0 -30
  518. data/lib/scarpe/glibui/widget.rb +0 -81
  519. data/lib/scarpe/glibui.rb +0 -29
  520. data/lib/scarpe/libui/alert.rb +0 -9
  521. data/lib/scarpe/libui/button.rb +0 -18
  522. data/lib/scarpe/libui/colors.rb +0 -157
  523. data/lib/scarpe/libui/core.rb +0 -66
  524. data/lib/scarpe/libui/flow.rb +0 -16
  525. data/lib/scarpe/libui/libui.rb +0 -45
  526. data/lib/scarpe/libui/notepad.md +0 -26
  527. data/lib/scarpe/libui/para.rb +0 -154
  528. data/lib/scarpe/libui/stack.rb +0 -34
  529. data/lib/scarpe/line.rb +0 -25
  530. data/lib/scarpe/link.rb +0 -25
  531. data/lib/scarpe/list_box.rb +0 -25
  532. data/lib/scarpe/logger.rb +0 -159
  533. data/lib/scarpe/para.rb +0 -92
  534. data/lib/scarpe/promises.rb +0 -405
  535. data/lib/scarpe/shape.rb +0 -20
  536. data/lib/scarpe/slot.rb +0 -7
  537. data/lib/scarpe/spacing.rb +0 -9
  538. data/lib/scarpe/star.rb +0 -47
  539. data/lib/scarpe/subscription_item.rb +0 -60
  540. data/lib/scarpe/unit_test_helpers.rb +0 -236
  541. data/lib/scarpe/version.rb +0 -5
  542. data/lib/scarpe/video.rb +0 -15
  543. data/lib/scarpe/widgets.rb +0 -35
  544. data/lib/scarpe/wv/alert.rb +0 -65
  545. data/lib/scarpe/wv/app.rb +0 -104
  546. data/lib/scarpe/wv/arc.rb +0 -57
  547. data/lib/scarpe/wv/background.rb +0 -27
  548. data/lib/scarpe/wv/border.rb +0 -24
  549. data/lib/scarpe/wv/button.rb +0 -50
  550. data/lib/scarpe/wv/control_interface.rb +0 -147
  551. data/lib/scarpe/wv/control_interface_test.rb +0 -234
  552. data/lib/scarpe/wv/dimensions.rb +0 -22
  553. data/lib/scarpe/wv/document_root.rb +0 -8
  554. data/lib/scarpe/wv/edit_box.rb +0 -44
  555. data/lib/scarpe/wv/edit_line.rb +0 -43
  556. data/lib/scarpe/wv/fill.rb +0 -30
  557. data/lib/scarpe/wv/flow.rb +0 -24
  558. data/lib/scarpe/wv/font.rb +0 -36
  559. data/lib/scarpe/wv/html.rb +0 -108
  560. data/lib/scarpe/wv/image.rb +0 -41
  561. data/lib/scarpe/wv/line.rb +0 -38
  562. data/lib/scarpe/wv/link.rb +0 -29
  563. data/lib/scarpe/wv/list_box.rb +0 -50
  564. data/lib/scarpe/wv/para.rb +0 -90
  565. data/lib/scarpe/wv/shape.rb +0 -35
  566. data/lib/scarpe/wv/shape_helper.rb +0 -44
  567. data/lib/scarpe/wv/slot.rb +0 -81
  568. data/lib/scarpe/wv/spacing.rb +0 -41
  569. data/lib/scarpe/wv/span.rb +0 -66
  570. data/lib/scarpe/wv/stack.rb +0 -24
  571. data/lib/scarpe/wv/star.rb +0 -64
  572. data/lib/scarpe/wv/subscription_item.rb +0 -50
  573. data/lib/scarpe/wv/text_widget.rb +0 -30
  574. data/lib/scarpe/wv/video.rb +0 -42
  575. data/lib/scarpe/wv/web_wrangler.rb +0 -683
  576. data/lib/scarpe/wv/webview_local_display.rb +0 -73
  577. data/lib/scarpe/wv/webview_relay_display.rb +0 -185
  578. data/lib/scarpe/wv/widget.rb +0 -185
  579. data/lib/scarpe/wv/wv_display_worker.rb +0 -65
  580. data/lib/scarpe/wv.rb +0 -43
  581. data/lib/scarpe/wv_local.rb +0 -6
  582. data/lib/scarpe/wv_relay.rb +0 -6
  583. data/lib/scarpe.rb +0 -29
  584. data/lib/shoes/text_widget.rb +0 -52
  585. data/lib/shoes/widget.rb +0 -209
  586. data/logger/debug_web_wrangler.json +0 -4
  587. data/logger/scarpe_wv_test.json +0 -4
  588. data/scarpe-0.2.0.gem +0 -0
  589. data/scarpe.gemspec +0 -44
  590. data/scarpegen.rb +0 -193
  591. data/sig/scarpe.rbs +0 -4
  592. data/templates/basic_class_template.erb +0 -38
  593. data/templates/class_template_with_event_bind.erb +0 -27
  594. data/templates/class_template_with_shapes.erb +0 -43
  595. data/templates/example_template.erb +0 -3
  596. data/templates/module_template.erb +0 -12
  597. data/templates/webview_template.erb +0 -27
@@ -1,228 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- require 'test/unit'
4
- require 'test/unit/ui/console/testrunner'
5
- require 'svg.rb'
6
-
7
-
8
- Shoes.app title: "Testing Shoes::Svg", resizable: false do
9
-
10
- TestRunner = Test::Unit::UI::Console::TestRunner
11
-
12
- # width, height : 190x110, subid = '#xml_rectangle', 180x100, offsetx = 5, offsety = 5
13
- XML = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>
14
- <svg xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" version="1.1" id="svg2" viewBox="0 0 190 110" height="110" width="190">
15
- <defs id="defs4" />
16
- <metadata id="metadata7">
17
- <rdf:RDF>
18
- <cc:Work rdf:about="">
19
- <dc:format>image/svg+xml</dc:format>
20
- <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
21
- <dc:title></dc:title>
22
- </cc:Work>
23
- </rdf:RDF>
24
- </metadata>
25
- <g transform="translate(0,-942.36216)" id="xml_rectangle">
26
- <rect y="949.33234" x="6.9701514" height="96.0597" width="176.05969" id="rectangle001" style="opacity:0.98000004;fill:#ff7131;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:3.94030356;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" />
27
- </g>
28
- </svg>'
29
-
30
- # width, height : 1000x600, subid = '#test_rectangle', 980x550, offsetx = 5, offsety = 45
31
- FILE = "simpletest.svg"
32
-
33
- TESTS = {
34
- SvgTest0 => { desc: ["Basic Test : simple xml svg, no dimensions\n"],
35
- cont_args: {},
36
- widget_args: [XML]
37
- },
38
- SvgTest1 => { desc: ["Basic Test : file svg, no dimensions\n",
39
- "Relying on Shoes app size and svg size (svg is larger than app here)\n",
40
- "So keep 'resizable: false' for the app style !"],
41
- cont_args: {},
42
- widget_args: [FILE]
43
- },
44
- SvgTest2 => { desc: ["Simple xml svg, parent dimensions\n"],
45
- cont_args: {width: 30, height: 20},
46
- widget_args: [XML]
47
- },
48
- SvgTest3 => { desc: ["Simple xml svg, svg method dimensions\n"],
49
- cont_args: {},
50
- widget_args: [XML, width: 30, height: 20]
51
- },
52
- SvgTest4 => { desc: ["Simple xml svg, parent and svg method dimensions\n"],
53
- cont_args: {width: 30, height: 25},
54
- widget_args: [XML, width: 25, height: 20]
55
- },
56
- SvgTest5 => { desc: ["Xml svg, Landscape, aspect ratio = false\n"],
57
- cont_args: {},
58
- widget_args: [XML, width: 48, height: 32, aspect: false]
59
- },
60
- SvgTest5B => { desc: ["Xml svg, Landscape, aspect ratio = 0.5\n"],
61
- cont_args: {},
62
- widget_args: [XML, width: 48, height: 32, aspect: 0.5]
63
- },
64
- SvgTest5C => { desc: ["Xml svg, Landscape, aspect ratio = 1.5\n"],
65
- cont_args: {},
66
- widget_args: [XML, width: 48, height: 32, aspect: 1.5]
67
- },
68
- SvgTest6 => { desc: ["Xml svg, Square, aspect ratio = 0.5\n"],
69
- cont_args: {},
70
- widget_args: [XML, width: 48, height: 48, aspect: 0.5]
71
- },
72
- SvgTest7 => { desc: ["Xml svg, Square, aspect ratio = 1.5\n"],
73
- cont_args: {},
74
- widget_args: [XML, width: 48, height: 48, aspect: 1.5]
75
- },
76
- SvgTest8 => { desc: ["Xml, group id\n"],
77
- cont_args: {},
78
- widget_args: [XML, group: "#xml_rectangle"]
79
- },
80
- SvgTest9 => { desc: ["File, group id\n"],
81
- cont_args: {},
82
- widget_args: [FILE, group: "#test_rectangle"]
83
- },
84
- SvgTest10 => { desc: ["Xml svg, Portrait, aspect ratio = true\n"],
85
- cont_args: {},
86
- widget_args: [XML, width: 32, height: 48, aspect: true]
87
- },
88
- SvgTest11 => { desc: ["Xml svg, Portrait, aspect ratio = false\n"],
89
- cont_args: {},
90
- widget_args: [XML, width: 32, height: 48, aspect: false]
91
- },
92
- SvgTest12 => { desc: ["Xml svg, Portrait, aspect ratio = 0.5\n"],
93
- cont_args: {},
94
- widget_args: [XML, width: 32, height: 48, aspect: 0.5]
95
- },
96
- SvgTest13 => { desc: ["Xml svg, Portrait, aspect ratio = 1.5\n"],
97
- cont_args: {},
98
- widget_args: [XML, width: 32, height: 48, aspect: 1.5]
99
- },
100
- }
101
-
102
-
103
- style(Shoes::Para, size: 10)
104
-
105
- build_test_gui = -> (t, details, silent) do
106
- # if we try to draw tests widgets in a non visible area, drawing events are not triggered and
107
- # Test processing hangs (waits) - start event is not fired -
108
- # So we create a sand_box at top of Shoes app and scroll back there if necessary to
109
- # make drawing events happening
110
- app.slot.scroll_top = 0
111
-
112
- @sand_box.append do
113
- @cont = flow( **details[:cont_args] ) do
114
- @svg_obj = svg( *details[:widget_args] )
115
- end
116
- end
117
-
118
- # waiting for shoes asynchronous drawing events to occur.
119
- @cont.start {
120
- ## There could be only one console at a time (we can safely call it many times)
121
- Shoes.terminal unless silent
122
-
123
- out_level = silent ? TestRunner::SILENT : TestRunner::NORMAL
124
- @test_result = TestRunner.run(t.suite, {output_level: out_level,
125
- use_color: true})
126
-
127
- puts "#{'='*40}\n\n" unless silent
128
- @sand_box.clear
129
- @svg_obj = nil
130
- @sand_box.start { @test_complete = true }
131
- }
132
- end
133
-
134
- stack margin_left: 10, margin_right: 10 do
135
- para "Launches Shoes terminal to collect results of Tests", align: "center"
136
-
137
- flow do
138
- @sand_box = stack(height: 50, width: 279) {}
139
- flow width: 300 do
140
- stack do
141
- flow do
142
- para "Silent tests : "
143
- #@no_output = check checked: true
144
- @no_output = check checked: false
145
- end
146
- flow do
147
- para "stop tests on failure : "
148
- @stop_on_failure = check checked: false
149
- end
150
- end
151
- @visual = rect 200, 0, 30, 30, 5, fill: white
152
- end
153
- end
154
-
155
- flow margin: [0,0,0,5] do
156
-
157
- button "run ALL Tests" do
158
- @got_failure = false
159
- @visual.style(fill: white)
160
-
161
- # We have to wait for each test to complete (asynchronous drawing)
162
- @test_complete = true
163
- tenum = TESTS.each_with_index
164
- anm = animate(20) do
165
-
166
- if @test_complete
167
- if @test_result && @test_result.error_occurred?
168
- @test_result = nil
169
- @visual.style(fill: yellow)
170
- anm.stop; anm.remove; anm = nil
171
- elsif @test_result && @test_result.failure_occurred?
172
- @got_failure = true
173
-
174
- if @stop_on_failure.checked?
175
- @visual.style(fill: red)
176
- anm.stop; anm.remove; anm = nil
177
- end
178
- @test_result = nil
179
- else
180
- @test_result = nil
181
- begin
182
- h,i = tenum.next
183
-
184
- @test_complete = false
185
- build_test_gui.call(h[0], h[1], @no_output.checked?)
186
-
187
- rescue StopIteration
188
- @visual.style(fill: @got_failure ? red : green)
189
- anm.stop; anm.remove; anm = nil
190
- end
191
- end
192
- end
193
- end
194
- end
195
-
196
- para " in order of appearance, top to bottom, click below to show detailed tests"
197
- end
198
-
199
- flow height: 30, margin_bottom: 5 do
200
- bg = background "#fff".."#eed"
201
- hover { |s| bg.fill = "#ddd".."#ba9"; s.refresh_slot }
202
- leave { |s| bg.fill = "#fff".."#eed"; s.refresh_slot }
203
- click { |s| @tests_slot.toggle }
204
-
205
- para "click to see/hide detailed list of tests", margin_left: 50
206
- end
207
-
208
- @tests_slot = stack hidden: true do
209
- TESTS.each do |t, details|
210
- flow do
211
- button "run Test" do
212
- @visual.style(fill: white)
213
- # always show output (output_level == NORMAL)
214
- build_test_gui.call(t, details, false)
215
- end
216
-
217
- para *(["#{t.to_s} : \n"] << details[:desc])
218
- end
219
- end
220
- end
221
-
222
- end
223
-
224
- def cont; @cont end
225
- def svg_obj; @svg_obj end
226
- SvgTestBase.init self
227
-
228
- end
@@ -1,186 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- require 'test/unit'
4
- require 'test/unit/ui/console/testrunner'
5
- require 'video_vlc.rb'
6
-
7
- require 'shoes/videoffi'
8
-
9
- Shoes.app title: "Testing Shoes video" do
10
-
11
- TestRunner = Test::Unit::UI::Console::TestRunner
12
-
13
- TESTS = {
14
- VideoVlcTest0 => { desc: ["Most Basic unique Test : no path/url, no dimensions\n",
15
- span("Run this first to ensure that video widget works at its bare minimum",
16
- stroke: darkred)],
17
- cont_args: {},
18
- widget_args: ['']
19
- },
20
- VideoVlcTest1 => { desc: ["Iinitialisation of video widget without a given path to a media\n",
21
- "path= method \nvideo widget ", span("Container", weight: 'bold'), " dimensions given "],
22
- cont_args: {width: 30, height: 20},
23
- widget_args: ['', bg_color: yellow]
24
- },
25
- VideoVlcTest2 => { desc: ["Iinitialisation of video widget without a given path to a media\n",
26
- "path= method \nvideo ", span("Widget", weight: 'bold'), " dimensions given "],
27
- cont_args: {},
28
- widget_args: ['', width: 25, height: 20]
29
- },
30
- VideoVlcTest3 => { desc: ["Iinitialisation of video widget without a given path to a media\n",
31
- "path= method \nvideo ", span("Widget and Container", weight: 'bold'), " dimensions given "],
32
- cont_args: {width: 35, height: 20},
33
- widget_args: ['', width: 20, height: 20]
34
- },
35
- VideoVlcTest4 => { desc: "no Dimensions provided, relying on video track dimensions",
36
- cont_args: {},
37
- widget_args: ['AnemicCinema1926marcelDuchampCut.mp4']
38
- },
39
- VideoVlcTest5 => { desc: "Widget background color",
40
- cont_args: {width: 36, height: 21},
41
- widget_args: ['', bg_color: yellow ]
42
- },
43
- VideoVlcTest6 => { desc: "Passing vlc options to underlaying libvlc_new() C method",
44
- cont_args: {width: 36, height: 21},
45
- widget_args: ['AnemicCinema1926marcelDuchampCut.mp4',
46
- vlc_options: ["--no-xlib", "--no-video-title-show"] ]
47
- },
48
- VideoVlcTestAudio => { desc: "audio method + volume, volume= methods",
49
- cont_args: {width: 35, height: 20},
50
- widget_args: ['indian.m4a', width: 350, height: 20]
51
- },
52
-
53
- }
54
-
55
-
56
- style(Shoes::Para, size: 10)
57
-
58
- build_test_gui = -> (t, details, silent) do
59
- # if we try to draw tests widgets in a non visible area, drawing events are not triggered and
60
- # Test processing hangs (waits) - start event is not fired -
61
- # So we create a sand_box at top of Shoes app and scroll back there if necessary to
62
- # make drawing events happening
63
- app.slot.scroll_top = 0
64
-
65
- @sand_box.append do
66
- @cont = flow( **details[:cont_args] ) do
67
- @vid =
68
- if t == VideoVlcTestAudio
69
- audio( *details[:widget_args] )
70
- else
71
- video( *details[:widget_args] )
72
- end
73
- end
74
- end
75
-
76
- # waiting for shoes asynchronous drawing events to occur.
77
- @cont.start {
78
- ## There can be only one shoes terminal (we can safely call it many times)
79
- Shoes.terminal unless silent
80
-
81
- out_level = silent ? TestRunner::SILENT : TestRunner::NORMAL
82
- @test_result = TestRunner.run(t.suite, {output_level: out_level,
83
- use_color: true})
84
-
85
- puts "#{'='*40}\n\n" unless silent
86
- @sand_box.clear
87
- @vid = nil
88
- @sand_box.start { @test_complete = true }
89
- }
90
- end
91
-
92
- stack margin_left: 10, margin_right: 10 do
93
- para "Launches Shoes terminal to collect results of Tests", align: "center"
94
-
95
- flow do
96
- @sand_box = stack(height: 50, width: 279) {}
97
- flow width: 300 do
98
- stack do
99
- flow do
100
- para "Silent tests : "
101
- #@no_output = check checked: true
102
- @no_output = check checked: false
103
- end
104
- flow do
105
- para "stop tests on failure : "
106
- @stop_on_failure = check checked: false
107
- end
108
- end
109
- @visual = rect 200, 0, 30, 30, 5, fill: white
110
- end
111
- end
112
-
113
- flow margin: [0,0,0,5] do
114
-
115
- button "run ALL Tests" do
116
- @got_failure = false
117
- @visual.style(fill: white)
118
-
119
- # We have to wait for each test to complete (asynchronous drawing)
120
- @test_complete = true
121
- tenum = TESTS.each_with_index
122
- anm = animate(20) do
123
-
124
- if @test_complete
125
- if @test_result && @test_result.error_occurred?
126
- @test_result = nil
127
- @visual.style(fill: yellow)
128
- anm.stop; anm.remove; anm = nil
129
- elsif @test_result && @test_result.failure_occurred?
130
- @got_failure = true
131
-
132
- if @stop_on_failure.checked?
133
- @visual.style(fill: red)
134
- anm.stop; anm.remove; anm = nil
135
- end
136
- @test_result = nil
137
- else
138
- @test_result = nil
139
- begin
140
- h,i = tenum.next
141
-
142
- @test_complete = false
143
- build_test_gui.call(h[0], h[1], @no_output.checked?)
144
-
145
- rescue StopIteration
146
- @visual.style(fill: @got_failure ? red : green)
147
- anm.stop; anm.remove; anm = nil
148
- end
149
- end
150
- end
151
- end
152
- end
153
-
154
- para " in order of appearance, top to bottom, click below to show detailed tests"
155
- end
156
-
157
- flow height: 30, margin_bottom: 5 do
158
- bg = background "#fff".."#eed"
159
- hover { |s| bg.fill = "#ddd".."#ba9"; s.refresh_slot }
160
- leave { |s| bg.fill = "#fff".."#eed"; s.refresh_slot }
161
- click { |s| @tests_slot.toggle }
162
-
163
- para "click to see/hide detailed list of tests", margin_left: 50
164
- end
165
-
166
- @tests_slot = stack hidden: true do
167
- TESTS.each do |t, details|
168
- flow do
169
- button "run Test" do
170
- @visual.style(fill: white)
171
- # always show output (output_level == NORMAL)
172
- build_test_gui.call(t, details, false)
173
- end
174
-
175
- para *(["#{t.to_s} : \n"] << details[:desc])
176
- end
177
- end
178
- end
179
-
180
- end
181
-
182
- def cont; @cont end
183
- def vid; @vid end
184
- VideoVlcTestBase.init self
185
-
186
- end
@@ -1,20 +0,0 @@
1
- Shoes.app do
2
- para "Do we have a button tooltip?"
3
- @btn = button "Quit", tooltip: "kill Shoes" do
4
- Shoes.quit
5
- end
6
- flow do
7
- @chk = check tooltip: "check button will do something"
8
- para "watch"
9
- end
10
- @eb = edit_box tooltip: "enter something"
11
- @el = edit_line tooltip: "something you type into"
12
- @lb = list_box tooltip: "pull it"
13
- start do
14
- @btn.tooltip = "This will will exit shoes properly"
15
- @chk.tooltip = "This will alter reality"
16
- @eb.tooltip = "Something different"
17
- @el.tooltip = "you type here"
18
- @lb.tooltip = "Pick a card, any card"
19
- end
20
- end
@@ -1,242 +0,0 @@
1
- # encoding: UTF-8
2
-
3
- class VideoVlcTestBase < Test::Unit::TestCase
4
- class << self
5
- def init(app)
6
- @@app = app
7
- end
8
- def startup
9
- @@mediav = "AnemicCinema1926marcelDuchampCut.mp4"
10
- @@mediaa = "indian.m4a"
11
- # a fake stream : not relying on internet's mood swings for the test
12
- @@mediast = "file://#{File.expand_path('./AnemicCinema1926marcelDuchampCut.mp4')}"
13
- end
14
-
15
- def shutdown
16
- @@mediav = nil
17
- @@mediaa = nil
18
- @@mediast = nil
19
- end
20
- end
21
-
22
- def setup; end
23
- def teardown; end
24
- end
25
-
26
- class VideoVlcTest0 < VideoVlcTestBase
27
-
28
- description "no dimensions provided, no path/url, nothing to draw"
29
- def test_video_noPath_noDim
30
-
31
- assert_not_nil @@app.vid
32
- assert_instance_of Shoes::VideoVlc, @@app.vid
33
- vidc = @@app.vid.instance_variable_get(:@video)
34
- assert_true vidc.drawable_ready?
35
-
36
- vlci = @@app.vid.instance_variable_get(:@vlci)
37
- assert_not_nil vlci
38
- assert_instance_of Fiddle::Pointer, vlci
39
- assert_false vlci.null?
40
-
41
- assert_equal 0, @@app.vid.width
42
- end
43
- end
44
-
45
- class VideoVlcTest1 < VideoVlcTestBase
46
-
47
- def test_slotDim_noPath
48
- assert_not_nil @@app.vid
49
- assert_instance_of Shoes::VideoVlc, @@app.vid
50
- assert_equal 30, @@app.vid.width
51
- end
52
-
53
- def test_slotDim_movie
54
- @@app.vid.path = @@mediav
55
-
56
- assert_not_nil @@app.vid
57
- assert_instance_of Shoes::VideoVlc, @@app.vid
58
- assert_equal 30, @@app.vid.width
59
-
60
- assert_equal @@mediav, @@app.vid.path
61
- assert_true @@app.vid.loaded
62
- assert_true @@app.vid.have_video_track
63
- assert_equal 640, @@app.vid.video_track_width
64
- assert_equal 480, @@app.vid.video_track_height
65
- assert_true @@app.vid.have_audio_track
66
- end
67
-
68
- def test_slotDim_audio
69
- @@app.vid.path = @@mediaa
70
-
71
- assert_not_nil @@app.vid
72
- assert_instance_of Shoes::VideoVlc, @@app.vid
73
- assert_equal 30, @@app.vid.width
74
-
75
- assert_equal @@mediaa, @@app.vid.path
76
- assert_true @@app.vid.loaded
77
- assert_true @@app.vid.have_audio_track
78
- assert_nil @@app.vid.have_video_track
79
- assert_nil @@app.vid.video_track_width
80
- assert_nil @@app.vid.video_track_height
81
- end
82
-
83
- def test_slotDim_stream
84
- @@app.vid.path = @@mediast
85
-
86
- assert_not_nil @@app.vid
87
- assert_instance_of Shoes::VideoVlc, @@app.vid
88
- assert_equal 30, @@app.vid.width
89
-
90
- assert_equal @@mediast, @@app.vid.path
91
- assert_true @@app.vid.loaded
92
- end
93
- end
94
-
95
- class VideoVlcTest2 < VideoVlcTestBase
96
-
97
- def test_widgetDim_noPath
98
- assert_not_nil @@app.vid
99
- assert_instance_of Shoes::VideoVlc, @@app.vid
100
- assert_equal 25, @@app.vid.width
101
- end
102
-
103
- def test_widgetDim_movie
104
- @@app.vid.path = @@mediav
105
-
106
- assert_not_nil @@app.vid
107
- assert_instance_of Shoes::VideoVlc, @@app.vid
108
- assert_equal 25, @@app.vid.width
109
-
110
- assert_equal @@mediav, @@app.vid.path
111
- assert_true @@app.vid.loaded
112
- assert_true @@app.vid.have_video_track
113
- assert_equal 640, @@app.vid.video_track_width
114
- assert_equal 480, @@app.vid.video_track_height
115
- assert_true @@app.vid.have_audio_track
116
- end
117
-
118
- def test_widgetDim_audio
119
- @@app.vid.path = @@mediaa
120
-
121
- assert_not_nil @@app.vid
122
- assert_instance_of Shoes::VideoVlc, @@app.vid
123
- assert_equal 25, @@app.vid.width
124
-
125
- assert_equal @@mediaa, @@app.vid.path
126
- assert_true @@app.vid.loaded
127
- assert_true @@app.vid.have_audio_track
128
- assert_nil @@app.vid.have_video_track
129
- assert_nil @@app.vid.video_track_width
130
- assert_nil @@app.vid.video_track_height
131
- end
132
-
133
- def test_widgetDim_stream
134
- @@app.vid.path = @@mediast
135
-
136
- assert_not_nil @@app.vid
137
- assert_instance_of Shoes::VideoVlc, @@app.vid
138
- assert_equal 25, @@app.vid.width
139
-
140
- assert_equal @@mediast, @@app.vid.path
141
- assert_true @@app.vid.loaded
142
- end
143
- end
144
-
145
- class VideoVlcTest3 < VideoVlcTestBase
146
-
147
- def test_slotDim_widgetDim_noPath
148
- assert_not_nil @@app.vid
149
- assert_instance_of Shoes::VideoVlc, @@app.vid
150
- assert_equal 20, @@app.vid.width
151
- end
152
-
153
- def test_slotDim_widgetDim_movie
154
- @@app.vid.path = @@mediav
155
-
156
- assert_not_nil @@app.vid
157
- assert_instance_of Shoes::VideoVlc, @@app.vid
158
- assert_equal 20, @@app.vid.width
159
-
160
- assert_equal @@mediav, @@app.vid.path
161
- assert_true @@app.vid.loaded
162
- assert_true @@app.vid.have_video_track
163
- assert_equal 640, @@app.vid.video_track_width
164
- assert_equal 480, @@app.vid.video_track_height
165
- assert_true @@app.vid.have_audio_track
166
- end
167
-
168
- def test_slotDim_widgetDim_audio
169
- @@app.vid.path = @@mediaa
170
-
171
- assert_not_nil @@app.vid
172
- assert_instance_of Shoes::VideoVlc, @@app.vid
173
- assert_equal 20, @@app.vid.width
174
-
175
- assert_equal @@mediaa, @@app.vid.path
176
- assert_true @@app.vid.loaded
177
- assert_true @@app.vid.have_audio_track
178
- assert_nil @@app.vid.have_video_track
179
- assert_nil @@app.vid.video_track_width
180
- assert_nil @@app.vid.video_track_height
181
- end
182
-
183
- def test_slotDim_widgetDim_stream
184
- @@app.vid.path = @@mediast
185
-
186
- assert_not_nil @@app.vid
187
- assert_instance_of Shoes::VideoVlc, @@app.vid
188
- assert_equal 20, @@app.vid.width
189
-
190
- assert_equal @@mediast, @@app.vid.path
191
- assert_true @@app.vid.loaded
192
- end
193
- end
194
-
195
- class VideoVlcTest4 < VideoVlcTestBase
196
- def test_videoTrackDim
197
- assert_not_nil @@app.vid
198
- assert_instance_of Shoes::VideoVlc, @@app.vid
199
-
200
- assert_equal 640, @@app.vid.width
201
- assert_equal 480, @@app.vid.height
202
- end
203
- end
204
-
205
- class VideoVlcTest5 < VideoVlcTestBase
206
- def test_backgroundColor
207
- assert_not_nil @@app.vid
208
- assert_instance_of Shoes::VideoVlc, @@app.vid
209
- assert_equal 36, @@app.vid.width
210
-
211
- assert_equal 255, @@app.vid.style[:bg_color].red
212
- assert_equal 255, @@app.vid.style[:bg_color].green
213
- assert_equal 0, @@app.vid.style[:bg_color].blue
214
- end
215
- end
216
-
217
- class VideoVlcTest6 < VideoVlcTestBase
218
- def test_libvlcOptions
219
- assert_not_nil @@app.vid
220
- vlci = @@app.vid.instance_variable_get(:@vlci)
221
- assert_not_nil vlci
222
- assert_instance_of Fiddle::Pointer, vlci
223
- assert_false vlci.null?
224
- assert_false @@app.vid.style.include?(:vlc_options)
225
- end
226
- end
227
-
228
- class VideoVlcTestAudio < VideoVlcTestBase
229
- def test_audioMethod
230
- assert_not_nil @@app.vid
231
- assert_instance_of Shoes::VideoVlc, @@app.vid
232
-
233
- assert_equal 0, @@app.vid.width
234
- assert_true @@app.vid.style[:hidden]
235
-
236
- assert_equal 85, @@app.vid.volume
237
- @@app.vid.volume = 72
238
- assert_equal 72, @@app.vid.volume
239
- end
240
- end
241
-
242
-
@@ -1,21 +0,0 @@
1
- Shoes.app do
2
- stack height: 200 do
3
- click do |b,l,t|
4
- @p.replace "Stack clicked"
5
- end
6
- @p = para "None"
7
- flow width: 200 do
8
- para "Flow 1"
9
- wheel do |d,l,t|
10
- @p.replace "Flow 1 wheel #{d}"
11
- end
12
- end
13
- flow width: 200 do
14
- para "Flow 2"
15
- click do |b,l,t|
16
- @p.replace "Flow 2 clicked"
17
- end
18
- end
19
- end
20
- wheel {|d,l,t,mods | @p.replace "default slot wheel #{d} #{mods}"}
21
- end