glimmer-dsl-swt 4.20.2.1 → 4.20.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +20 -0
  3. data/README.md +6 -6
  4. data/VERSION +1 -1
  5. data/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md +5 -2
  6. data/docs/reference/GLIMMER_SAMPLES.md +23 -0
  7. data/glimmer-dsl-swt.gemspec +0 -0
  8. data/lib/glimmer-dsl-swt.rb +1 -0
  9. data/lib/glimmer/data_binding/table_items_binding.rb +1 -0
  10. data/lib/glimmer/dsl/swt/bind_expression.rb +5 -25
  11. data/lib/glimmer/dsl/swt/custom_widget_expression.rb +1 -1
  12. data/lib/glimmer/dsl/swt/radio_group_selection_data_binding_expression.rb +1 -1
  13. data/lib/glimmer/dsl/swt/shine_data_binding_expression.rb +0 -2
  14. data/lib/glimmer/rake_task/scaffold.rb +2 -2
  15. data/lib/glimmer/swt/custom/checkbox_group.rb +1 -1
  16. data/lib/glimmer/swt/custom/radio_group.rb +2 -1
  17. data/lib/glimmer/swt/proxy_properties.rb +5 -5
  18. data/lib/glimmer/swt/widget_proxy.rb +3 -0
  19. data/lib/glimmer/ui/custom_shape.rb +1 -1
  20. data/lib/glimmer/ui/custom_widget.rb +1 -1
  21. data/samples/elaborate/calculator.rb +1 -1
  22. data/samples/elaborate/contact_manager.rb +1 -1
  23. data/samples/elaborate/meta_sample.rb +5 -5
  24. data/samples/elaborate/tetris/view/bevel.rb +11 -11
  25. data/samples/elaborate/tetris/view/block.rb +1 -1
  26. data/samples/elaborate/tetris/view/high_score_dialog.rb +3 -3
  27. data/samples/elaborate/tetris/view/score_lane.rb +3 -3
  28. data/samples/elaborate/tetris/view/tetris_menu_bar.rb +9 -9
  29. data/samples/elaborate/timer.rb +9 -9
  30. data/samples/elaborate/weather.rb +8 -4
  31. data/samples/hello/hello_c_tab.rb +9 -9
  32. data/samples/hello/hello_checkbox_group.rb +1 -1
  33. data/samples/hello/hello_code_text.rb +3 -3
  34. data/samples/hello/hello_computed.rb +20 -2
  35. data/samples/hello/hello_cool_bar.rb +1 -1
  36. data/samples/hello/hello_cursor.rb +1 -1
  37. data/samples/hello/hello_custom_shell.rb +17 -11
  38. data/samples/hello/hello_directory_dialog.rb +1 -1
  39. data/samples/hello/hello_label.rb +194 -0
  40. data/samples/hello/hello_radio_group.rb +2 -2
  41. data/samples/hello/hello_table.rb +1 -1
  42. data/samples/hello/hello_tool_bar.rb +1 -1
  43. data/samples/hello/{hello_c_tab → images}/denmark.png +0 -0
  44. data/samples/hello/{hello_c_tab → images}/finland.png +0 -0
  45. data/samples/hello/{hello_c_tab → images}/france.png +0 -0
  46. data/samples/hello/{hello_c_tab → images}/germany.png +0 -0
  47. data/samples/hello/{hello_c_tab → images}/italy.png +0 -0
  48. data/samples/hello/{hello_c_tab → images}/mexico.png +0 -0
  49. data/samples/hello/{hello_c_tab → images}/netherlands.png +0 -0
  50. data/samples/hello/{hello_c_tab → images}/norway.png +0 -0
  51. data/samples/hello/{hello_c_tab → images}/usa.png +0 -0
  52. metadata +54 -36
  53. data/lib/glimmer/data_binding/shine.rb +0 -63
  54. data/samples/elaborate/timer/alarm1.wav +0 -0
  55. data/samples/hello/hello_computed/contact.rb +0 -42
Binary file
@@ -1,42 +0,0 @@
1
- # Copyright (c) 2007-2021 Andy Maleh
2
- #
3
- # Permission is hereby granted, free of charge, to any person obtaining
4
- # a copy of this software and associated documentation files (the
5
- # "Software"), to deal in the Software without restriction, including
6
- # without limitation the rights to use, copy, modify, merge, publish,
7
- # distribute, sublicense, and/or sell copies of the Software, and to
8
- # permit persons to whom the Software is furnished to do so, subject to
9
- # the following conditions:
10
- #
11
- # The above copyright notice and this permission notice shall be
12
- # included in all copies or substantial portions of the Software.
13
- #
14
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
-
22
- class HelloComputed
23
- class Contact
24
- attr_accessor :first_name, :last_name, :year_of_birth
25
-
26
- def initialize(attribute_map)
27
- @first_name = attribute_map[:first_name]
28
- @last_name = attribute_map[:last_name]
29
- @year_of_birth = attribute_map[:year_of_birth]
30
- end
31
-
32
- def name
33
- "#{last_name}, #{first_name}"
34
- end
35
-
36
- def age
37
- Time.now.year - year_of_birth.to_i
38
- rescue
39
- 0
40
- end
41
- end
42
- end