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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/README.md +6 -6
- data/VERSION +1 -1
- data/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md +5 -2
- data/docs/reference/GLIMMER_SAMPLES.md +23 -0
- data/glimmer-dsl-swt.gemspec +0 -0
- data/lib/glimmer-dsl-swt.rb +1 -0
- data/lib/glimmer/data_binding/table_items_binding.rb +1 -0
- data/lib/glimmer/dsl/swt/bind_expression.rb +5 -25
- data/lib/glimmer/dsl/swt/custom_widget_expression.rb +1 -1
- data/lib/glimmer/dsl/swt/radio_group_selection_data_binding_expression.rb +1 -1
- data/lib/glimmer/dsl/swt/shine_data_binding_expression.rb +0 -2
- data/lib/glimmer/rake_task/scaffold.rb +2 -2
- data/lib/glimmer/swt/custom/checkbox_group.rb +1 -1
- data/lib/glimmer/swt/custom/radio_group.rb +2 -1
- data/lib/glimmer/swt/proxy_properties.rb +5 -5
- data/lib/glimmer/swt/widget_proxy.rb +3 -0
- data/lib/glimmer/ui/custom_shape.rb +1 -1
- data/lib/glimmer/ui/custom_widget.rb +1 -1
- data/samples/elaborate/calculator.rb +1 -1
- data/samples/elaborate/contact_manager.rb +1 -1
- data/samples/elaborate/meta_sample.rb +5 -5
- data/samples/elaborate/tetris/view/bevel.rb +11 -11
- data/samples/elaborate/tetris/view/block.rb +1 -1
- data/samples/elaborate/tetris/view/high_score_dialog.rb +3 -3
- data/samples/elaborate/tetris/view/score_lane.rb +3 -3
- data/samples/elaborate/tetris/view/tetris_menu_bar.rb +9 -9
- data/samples/elaborate/timer.rb +9 -9
- data/samples/elaborate/weather.rb +8 -4
- data/samples/hello/hello_c_tab.rb +9 -9
- data/samples/hello/hello_checkbox_group.rb +1 -1
- data/samples/hello/hello_code_text.rb +3 -3
- data/samples/hello/hello_computed.rb +20 -2
- data/samples/hello/hello_cool_bar.rb +1 -1
- data/samples/hello/hello_cursor.rb +1 -1
- data/samples/hello/hello_custom_shell.rb +17 -11
- data/samples/hello/hello_directory_dialog.rb +1 -1
- data/samples/hello/hello_label.rb +194 -0
- data/samples/hello/hello_radio_group.rb +2 -2
- data/samples/hello/hello_table.rb +1 -1
- data/samples/hello/hello_tool_bar.rb +1 -1
- data/samples/hello/{hello_c_tab → images}/denmark.png +0 -0
- data/samples/hello/{hello_c_tab → images}/finland.png +0 -0
- data/samples/hello/{hello_c_tab → images}/france.png +0 -0
- data/samples/hello/{hello_c_tab → images}/germany.png +0 -0
- data/samples/hello/{hello_c_tab → images}/italy.png +0 -0
- data/samples/hello/{hello_c_tab → images}/mexico.png +0 -0
- data/samples/hello/{hello_c_tab → images}/netherlands.png +0 -0
- data/samples/hello/{hello_c_tab → images}/norway.png +0 -0
- data/samples/hello/{hello_c_tab → images}/usa.png +0 -0
- metadata +54 -36
- data/lib/glimmer/data_binding/shine.rb +0 -63
- data/samples/elaborate/timer/alarm1.wav +0 -0
- 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
|