glimmer-dsl-swt 4.20.13.8 → 4.20.13.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/README.md +5 -5
- data/VERSION +1 -1
- data/docs/reference/GLIMMER_SAMPLES.md +24 -0
- data/docs/reference/GLIMMER_STYLE_GUIDE.md +2 -1
- data/glimmer-dsl-swt.gemspec +0 -0
- data/lib/glimmer/rake_task/scaffold.rb +14 -14
- data/lib/glimmer/swt/custom/code_text.rb +4 -4
- data/lib/glimmer/swt/custom/shape.rb +1 -1
- data/samples/elaborate/calculator.rb +2 -2
- data/samples/elaborate/contact_manager.rb +2 -2
- data/samples/elaborate/game_of_life.rb +111 -0
- data/samples/elaborate/game_of_life/model/cell.rb +72 -0
- data/samples/elaborate/game_of_life/model/grid.rb +97 -0
- data/samples/elaborate/klondike_solitaire.rb +30 -23
- data/samples/elaborate/klondike_solitaire/model/playing_card.rb +36 -0
- data/samples/elaborate/klondike_solitaire/view/empty_playing_card.rb +12 -4
- data/samples/elaborate/klondike_solitaire/view/foundation_pile.rb +4 -4
- data/samples/elaborate/klondike_solitaire/view/hidden_playing_card.rb +8 -1
- data/samples/elaborate/klondike_solitaire/view/playing_card.rb +3 -3
- data/samples/elaborate/klondike_solitaire/view/tableau.rb +4 -4
- data/samples/elaborate/login.rb +2 -2
- data/samples/elaborate/mandelbrot_fractal.rb +12 -12
- data/samples/elaborate/meta_sample.rb +2 -2
- data/samples/elaborate/metronome.rb +2 -2
- data/samples/elaborate/stock_ticker.rb +8 -8
- data/samples/elaborate/tetris.rb +4 -4
- data/samples/elaborate/tetris/view/bevel.rb +2 -2
- data/samples/elaborate/tetris/view/score_lane.rb +2 -2
- data/samples/elaborate/tic_tac_toe.rb +6 -6
- data/samples/elaborate/timer.rb +4 -4
- data/samples/elaborate/weather.rb +4 -4
- data/samples/hello/hello_button.rb +2 -2
- data/samples/hello/hello_c_combo.rb +2 -2
- data/samples/hello/hello_canvas.rb +4 -4
- data/samples/hello/hello_canvas_animation.rb +2 -2
- data/samples/hello/hello_canvas_data_binding.rb +2 -2
- data/samples/hello/hello_checkbox.rb +2 -2
- data/samples/hello/hello_checkbox_group.rb +2 -2
- data/samples/hello/hello_code_text.rb +2 -2
- data/samples/hello/hello_color_dialog.rb +2 -2
- data/samples/hello/hello_combo.rb +2 -2
- data/samples/hello/hello_computed.rb +14 -22
- data/samples/hello/hello_cool_bar.rb +2 -2
- data/samples/hello/hello_cursor.rb +2 -2
- data/samples/hello/hello_custom_shape.rb +2 -2
- data/samples/hello/hello_custom_shell.rb +2 -2
- data/samples/hello/hello_custom_widget.rb +4 -4
- data/samples/hello/hello_date_time.rb +2 -2
- data/samples/hello/hello_directory_dialog.rb +2 -2
- data/samples/hello/hello_file_dialog.rb +2 -2
- data/samples/hello/hello_font_dialog.rb +2 -2
- data/samples/hello/hello_group.rb +2 -2
- data/samples/hello/hello_list_multi_selection.rb +2 -2
- data/samples/hello/hello_list_single_selection.rb +2 -2
- data/samples/hello/hello_progress_bar.rb +2 -2
- data/samples/hello/hello_radio.rb +2 -2
- data/samples/hello/hello_radio_group.rb +2 -2
- data/samples/hello/hello_scale.rb +2 -2
- data/samples/hello/hello_spinner.rb +2 -2
- data/samples/hello/hello_table.rb +2 -2
- data/samples/hello/hello_text.rb +2 -2
- data/samples/hello/hello_tool_bar.rb +2 -2
- data/samples/hello/hello_tray_item.rb +2 -2
- data/samples/hello/hello_tree.rb +4 -4
- metadata +5 -2
@@ -28,13 +28,13 @@ class HelloProgressBar
|
|
28
28
|
attr_accessor :minimum, :maximum, :selection, :delay
|
29
29
|
end
|
30
30
|
|
31
|
-
before_body
|
31
|
+
before_body do
|
32
32
|
@progress_model = ProgressModel.new
|
33
33
|
@progress_model.minimum = 0
|
34
34
|
@progress_model.maximum = 100
|
35
35
|
@progress_model.selection = 0
|
36
36
|
@progress_model.delay = 0.01
|
37
|
-
|
37
|
+
end
|
38
38
|
|
39
39
|
body {
|
40
40
|
shell {
|
data/samples/hello/hello_text.rb
CHANGED
@@ -5,7 +5,7 @@ class HelloText
|
|
5
5
|
|
6
6
|
attr_accessor :default, :center, :left, :right, :password, :telephone, :read_only, :wrap, :multi
|
7
7
|
|
8
|
-
before_body
|
8
|
+
before_body do
|
9
9
|
self.default = 'default is :border style'
|
10
10
|
self.center = 'centered'
|
11
11
|
self.left = 'left-aligned'
|
@@ -15,7 +15,7 @@ class HelloText
|
|
15
15
|
self.read_only = 'Telephone area code is 555'
|
16
16
|
self.wrap = 'wraps if text content is too long like this example'
|
17
17
|
self.multi = "multi-line enables hitting enter,\nbut does not wrap by default"
|
18
|
-
|
18
|
+
end
|
19
19
|
|
20
20
|
body {
|
21
21
|
shell {
|
@@ -27,7 +27,7 @@ class HelloTrayItem
|
|
27
27
|
# boolean that indicates if application is visible
|
28
28
|
attr_accessor :show_application
|
29
29
|
|
30
|
-
before_body
|
30
|
+
before_body do
|
31
31
|
# application starts visible
|
32
32
|
@show_application = true
|
33
33
|
# pre-render an icon image using the Canvas Shape DSL
|
@@ -48,7 +48,7 @@ class HelloTrayItem
|
|
48
48
|
foreground :white
|
49
49
|
}
|
50
50
|
}
|
51
|
-
|
51
|
+
end
|
52
52
|
|
53
53
|
body {
|
54
54
|
shell(:shell_trim, :on_top) { # make it always appear on top of everything
|
data/samples/hello/hello_tree.rb
CHANGED
@@ -288,13 +288,13 @@ class HelloTree
|
|
288
288
|
|
289
289
|
include Glimmer::UI::CustomShell
|
290
290
|
|
291
|
-
before_body
|
291
|
+
before_body do
|
292
292
|
Employee.selected_employee = Employee.ceo
|
293
|
-
|
293
|
+
end
|
294
294
|
|
295
|
-
after_body
|
295
|
+
after_body do
|
296
296
|
@tree.items.first.expanded = true
|
297
|
-
|
297
|
+
end
|
298
298
|
|
299
299
|
body {
|
300
300
|
shell {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: glimmer-dsl-swt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.20.13.
|
4
|
+
version: 4.20.13.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Maleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-08-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -545,6 +545,9 @@ files:
|
|
545
545
|
- samples/elaborate/contact_manager/contact.rb
|
546
546
|
- samples/elaborate/contact_manager/contact_manager_presenter.rb
|
547
547
|
- samples/elaborate/contact_manager/contact_repository.rb
|
548
|
+
- samples/elaborate/game_of_life.rb
|
549
|
+
- samples/elaborate/game_of_life/model/cell.rb
|
550
|
+
- samples/elaborate/game_of_life/model/grid.rb
|
548
551
|
- samples/elaborate/klondike_solitaire.rb
|
549
552
|
- samples/elaborate/klondike_solitaire/model/column_pile.rb
|
550
553
|
- samples/elaborate/klondike_solitaire/model/dealing_pile.rb
|