glimmer-dsl-swt 4.17.10.6 → 4.17.10.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +4 -4
- data/VERSION +1 -1
- data/glimmer-dsl-swt.gemspec +11 -11
- data/lib/glimmer/swt/menu_proxy.rb +0 -1
- data/lib/glimmer/swt/widget_proxy.rb +7 -6
- data/samples/hello/hello_link.rb +3 -5
- metadata +30 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 00b44b39eadc5263ddccde3ac95a754a9b4ad32c9412c268e9cf481ce89b7b05
|
4
|
+
data.tar.gz: 7a72f47c3a36921160c3217652cc98a1b377f8c5202c2c24ade6288106d87b7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c630340b8dad5f0fe4f12481aec9dd039e21cd5be5fec8350c8624b23d3a76aa4cd84ce3e5b85fd1506c1037ab5094e2872548061029cf02c906a13b56df5f5b
|
7
|
+
data.tar.gz: 1bd3f35d763bb34095e3b600abaf013d38ad7c4545bbcff6e1f1739a9702d760e79b533bc29b863587307bac567e34604fe212980cac3552eb96b05595bbd5c9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.17.10.
|
1
|
+
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 />](https://github.com/AndyObtiva/glimmer) Glimmer DSL for SWT 4.17.10.7
|
2
2
|
|
3
3
|
## JRuby Desktop Development GUI Framework
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
|
@@ -449,7 +449,7 @@ jgem install glimmer-dsl-swt
|
|
449
449
|
|
450
450
|
Or this command if you want a specific version:
|
451
451
|
```
|
452
|
-
jgem install glimmer-dsl-swt -v 4.17.10.
|
452
|
+
jgem install glimmer-dsl-swt -v 4.17.10.7
|
453
453
|
|
454
454
|
```
|
455
455
|
|
@@ -526,7 +526,7 @@ bin/glimmer samples
|
|
526
526
|
Below are the full usage instructions that come up when running `glimmer` without args.
|
527
527
|
|
528
528
|
```
|
529
|
-
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.17.10.
|
529
|
+
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.17.10.7
|
530
530
|
|
531
531
|
|
532
532
|
Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
|
@@ -1004,7 +1004,7 @@ Output:
|
|
1004
1004
|
|
1005
1005
|
Css glimmer-dsl-css 1.1.0 AndyMaleh Glimmer DSL for CSS
|
1006
1006
|
Opal glimmer-dsl-opal 0.4.0 AndyMaleh Glimmer DSL for Opal
|
1007
|
-
Swt glimmer-dsl-swt 4.17.10.
|
1007
|
+
Swt glimmer-dsl-swt 4.17.10.7
|
1008
1008
|
AndyMaleh Glimmer DSL for SWT
|
1009
1009
|
Tk glimmer-dsl-tk 0.0.6 AndyMaleh Glimmer DSL for Tk
|
1010
1010
|
Xml glimmer-dsl-xml 1.1.0 AndyMaleh Glimmer DSL for XML
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.17.10.
|
1
|
+
4.17.10.7
|
data/glimmer-dsl-swt.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: glimmer-dsl-swt 4.17.10.
|
5
|
+
# stub: glimmer-dsl-swt 4.17.10.7 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "glimmer-dsl-swt".freeze
|
9
|
-
s.version = "4.17.10.
|
9
|
+
s.version = "4.17.10.7"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|
13
13
|
s.authors = ["AndyMaleh".freeze]
|
14
|
-
s.date = "2020-12-
|
14
|
+
s.date = "2020-12-15"
|
15
15
|
s.description = "Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)".freeze
|
16
16
|
s.email = "andy.am@gmail.com".freeze
|
17
17
|
s.executables = ["glimmer".freeze, "girb".freeze]
|
@@ -175,16 +175,16 @@ Gem::Specification.new do |s|
|
|
175
175
|
|
176
176
|
if s.respond_to? :add_runtime_dependency then
|
177
177
|
s.add_runtime_dependency(%q<glimmer>.freeze, ["~> 1.0.5"])
|
178
|
-
s.add_runtime_dependency(%q<super_module>.freeze, ["
|
179
|
-
s.add_runtime_dependency(%q<nested_inherited_jruby_include_package>.freeze, ["
|
180
|
-
s.add_runtime_dependency(%q<puts_debuggerer>.freeze, ["
|
178
|
+
s.add_runtime_dependency(%q<super_module>.freeze, [">= 1.4.1", "< 2.0.0"])
|
179
|
+
s.add_runtime_dependency(%q<nested_inherited_jruby_include_package>.freeze, [">= 0.3.0", "< 2.0.0"])
|
180
|
+
s.add_runtime_dependency(%q<puts_debuggerer>.freeze, [">= 0.11.0", "< 2.0.0"])
|
181
181
|
s.add_runtime_dependency(%q<rake-tui>.freeze, [">= 0.2.3", "< 2.0.0"])
|
182
182
|
s.add_runtime_dependency(%q<git-glimmer>.freeze, ["= 1.7.0"])
|
183
183
|
s.add_runtime_dependency(%q<logging>.freeze, [">= 2.3.0", "< 3.0.0"])
|
184
184
|
s.add_runtime_dependency(%q<os>.freeze, [">= 1.0.0", "< 2.0.0"])
|
185
185
|
s.add_runtime_dependency(%q<rake>.freeze, [">= 10.1.0", "< 14.0.0"])
|
186
186
|
s.add_runtime_dependency(%q<text-table>.freeze, [">= 1.2.4", "< 2.0.0"])
|
187
|
-
s.add_runtime_dependency(%q<rouge>.freeze, [">= 3.
|
187
|
+
s.add_runtime_dependency(%q<rouge>.freeze, [">= 3.26.0", "< 4.0.0"])
|
188
188
|
s.add_development_dependency(%q<juwelier>.freeze, [">= 2.4.9", "< 3.0.0"])
|
189
189
|
s.add_development_dependency(%q<warbler>.freeze, [">= 2.0.5", "< 3.0.0"])
|
190
190
|
s.add_development_dependency(%q<rspec-mocks>.freeze, ["~> 3.5.0"])
|
@@ -194,16 +194,16 @@ Gem::Specification.new do |s|
|
|
194
194
|
s.add_development_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
|
195
195
|
else
|
196
196
|
s.add_dependency(%q<glimmer>.freeze, ["~> 1.0.5"])
|
197
|
-
s.add_dependency(%q<super_module>.freeze, ["
|
198
|
-
s.add_dependency(%q<nested_inherited_jruby_include_package>.freeze, ["
|
199
|
-
s.add_dependency(%q<puts_debuggerer>.freeze, ["
|
197
|
+
s.add_dependency(%q<super_module>.freeze, [">= 1.4.1", "< 2.0.0"])
|
198
|
+
s.add_dependency(%q<nested_inherited_jruby_include_package>.freeze, [">= 0.3.0", "< 2.0.0"])
|
199
|
+
s.add_dependency(%q<puts_debuggerer>.freeze, [">= 0.11.0", "< 2.0.0"])
|
200
200
|
s.add_dependency(%q<rake-tui>.freeze, [">= 0.2.3", "< 2.0.0"])
|
201
201
|
s.add_dependency(%q<git-glimmer>.freeze, ["= 1.7.0"])
|
202
202
|
s.add_dependency(%q<logging>.freeze, [">= 2.3.0", "< 3.0.0"])
|
203
203
|
s.add_dependency(%q<os>.freeze, [">= 1.0.0", "< 2.0.0"])
|
204
204
|
s.add_dependency(%q<rake>.freeze, [">= 10.1.0", "< 14.0.0"])
|
205
205
|
s.add_dependency(%q<text-table>.freeze, [">= 1.2.4", "< 2.0.0"])
|
206
|
-
s.add_dependency(%q<rouge>.freeze, [">= 3.
|
206
|
+
s.add_dependency(%q<rouge>.freeze, [">= 3.26.0", "< 4.0.0"])
|
207
207
|
s.add_dependency(%q<juwelier>.freeze, [">= 2.4.9", "< 3.0.0"])
|
208
208
|
s.add_dependency(%q<warbler>.freeze, [">= 2.0.5", "< 3.0.0"])
|
209
209
|
s.add_dependency(%q<rspec-mocks>.freeze, ["~> 3.5.0"])
|
@@ -69,7 +69,7 @@ module Glimmer
|
|
69
69
|
}
|
70
70
|
|
71
71
|
DEFAULT_INITIALIZERS = {
|
72
|
-
|
72
|
+
composite: lambda do |composite|
|
73
73
|
if composite.get_layout.nil?
|
74
74
|
layout = GridLayout.new
|
75
75
|
layout.marginWidth = 15
|
@@ -77,18 +77,18 @@ module Glimmer
|
|
77
77
|
composite.layout = layout
|
78
78
|
end
|
79
79
|
end,
|
80
|
-
|
80
|
+
scrolled_composite: lambda do |scrolled_composite|
|
81
81
|
scrolled_composite.expand_horizontal = true
|
82
82
|
scrolled_composite.expand_vertical = true
|
83
83
|
end,
|
84
|
-
|
84
|
+
table: lambda do |table|
|
85
85
|
table.setHeaderVisible(true)
|
86
86
|
table.setLinesVisible(true)
|
87
87
|
end,
|
88
|
-
|
88
|
+
table_column: lambda do |table_column|
|
89
89
|
table_column.setWidth(80)
|
90
90
|
end,
|
91
|
-
|
91
|
+
group: lambda do |group|
|
92
92
|
group.layout = GridLayout.new if group.get_layout.nil?
|
93
93
|
end,
|
94
94
|
}
|
@@ -160,7 +160,7 @@ module Glimmer
|
|
160
160
|
end
|
161
161
|
if @swt_widget&.get_data('proxy').nil?
|
162
162
|
@swt_widget.set_data('proxy', self)
|
163
|
-
DEFAULT_INITIALIZERS[underscored_widget_name]&.call(@swt_widget)
|
163
|
+
DEFAULT_INITIALIZERS[underscored_widget_name.to_s.to_sym]&.call(@swt_widget)
|
164
164
|
@parent_proxy.post_initialize_child(self)
|
165
165
|
end
|
166
166
|
end
|
@@ -212,6 +212,7 @@ module Glimmer
|
|
212
212
|
end
|
213
213
|
|
214
214
|
def set_attribute(attribute_name, *args)
|
215
|
+
# TODO Think about widget subclasses overriding set_attribute to add more attributes vs adding as Ruby attributes directly
|
215
216
|
widget_custom_attribute = widget_custom_attribute_mapping[attribute_name.to_s]
|
216
217
|
if widget_custom_attribute
|
217
218
|
widget_custom_attribute[:setter][:invoker].call(@swt_widget, args)
|
data/samples/hello/hello_link.rb
CHANGED
@@ -38,9 +38,9 @@ shell { |main_shell|
|
|
38
38
|
|
39
39
|
You may click on any <a>link</a> to get help.
|
40
40
|
|
41
|
-
How do you know <a href="href">which link</a> you clicked?
|
41
|
+
How do you know <a href="which-link-href-value">which link</a> you clicked?
|
42
42
|
|
43
|
-
Just keep clicking <a href="all
|
43
|
+
Just keep clicking <a href="all links">links</a> to find out!
|
44
44
|
MULTI_LINE_STRING
|
45
45
|
|
46
46
|
on_widget_selected { |selection_event|
|
@@ -69,10 +69,8 @@ shell { |main_shell|
|
|
69
69
|
@help_shell.location = Point.new(x, y)
|
70
70
|
}
|
71
71
|
on_focus_lost {
|
72
|
-
@help_shell.close
|
73
|
-
}
|
74
|
-
on_shell_closed {
|
75
72
|
@selected_link = nil
|
73
|
+
@help_shell.close
|
76
74
|
}
|
77
75
|
}
|
78
76
|
@help_shell.open
|
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.17.10.
|
4
|
+
version: 4.17.10.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- AndyMaleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-12-
|
11
|
+
date: 2020-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -27,45 +27,63 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
29
29
|
requirements:
|
30
|
-
- - "
|
30
|
+
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.4.1
|
33
|
+
- - "<"
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: 2.0.0
|
33
36
|
name: super_module
|
34
37
|
prerelease: false
|
35
38
|
type: :runtime
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: 1.4.1
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 2.0.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
requirement: !ruby/object:Gem::Requirement
|
43
49
|
requirements:
|
44
|
-
- - "
|
50
|
+
- - ">="
|
45
51
|
- !ruby/object:Gem::Version
|
46
52
|
version: 0.3.0
|
53
|
+
- - "<"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 2.0.0
|
47
56
|
name: nested_inherited_jruby_include_package
|
48
57
|
prerelease: false
|
49
58
|
type: :runtime
|
50
59
|
version_requirements: !ruby/object:Gem::Requirement
|
51
60
|
requirements:
|
52
|
-
- - "
|
61
|
+
- - ">="
|
53
62
|
- !ruby/object:Gem::Version
|
54
63
|
version: 0.3.0
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.0.0
|
55
67
|
- !ruby/object:Gem::Dependency
|
56
68
|
requirement: !ruby/object:Gem::Requirement
|
57
69
|
requirements:
|
58
|
-
- - "
|
70
|
+
- - ">="
|
59
71
|
- !ruby/object:Gem::Version
|
60
|
-
version: 0.
|
72
|
+
version: 0.11.0
|
73
|
+
- - "<"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 2.0.0
|
61
76
|
name: puts_debuggerer
|
62
77
|
prerelease: false
|
63
78
|
type: :runtime
|
64
79
|
version_requirements: !ruby/object:Gem::Requirement
|
65
80
|
requirements:
|
66
|
-
- - "
|
81
|
+
- - ">="
|
67
82
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
83
|
+
version: 0.11.0
|
84
|
+
- - "<"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: 2.0.0
|
69
87
|
- !ruby/object:Gem::Dependency
|
70
88
|
requirement: !ruby/object:Gem::Requirement
|
71
89
|
requirements:
|
@@ -185,7 +203,7 @@ dependencies:
|
|
185
203
|
requirements:
|
186
204
|
- - ">="
|
187
205
|
- !ruby/object:Gem::Version
|
188
|
-
version: 3.
|
206
|
+
version: 3.26.0
|
189
207
|
- - "<"
|
190
208
|
- !ruby/object:Gem::Version
|
191
209
|
version: 4.0.0
|
@@ -196,7 +214,7 @@ dependencies:
|
|
196
214
|
requirements:
|
197
215
|
- - ">="
|
198
216
|
- !ruby/object:Gem::Version
|
199
|
-
version: 3.
|
217
|
+
version: 3.26.0
|
200
218
|
- - "<"
|
201
219
|
- !ruby/object:Gem::Version
|
202
220
|
version: 4.0.0
|