glimmer-dsl-swt 4.23.1.3 → 4.23.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +6 -6
- data/VERSION +1 -1
- data/glimmer-dsl-swt.gemspec +0 -0
- data/lib/glimmer/swt/widget_proxy.rb +8 -0
- data/samples/hello/hello_sash_form.rb +22 -14
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ee026868e1804b6f2869a86e9a5065e71da62719404a48b0dcd84543ff4456c
|
4
|
+
data.tar.gz: 5a0873cbeeaf9b79d4c6f1e9f21457b27c7f84a36a7ea7494e7f7000f528f200
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d160e6cca46cd9c9a64b9b6f218ad758862deedc101e2a6ff3f9a3700094cac5e2860b495d013138e741841331c88f29155658398afb48e50fc2fb3a83d9f3e
|
7
|
+
data.tar.gz: 19d84761f50d5ec8b9a160def8fdfb2dcd67ec11f3625b2162224deedea84d528f409d4f42cf5c1092795108f2f4a07f1cab3fc8bb58f01edaff3ee445a2aae8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 4.23.1.4
|
4
|
+
|
5
|
+
- Improve convenience by making `sash_form` accept `orientation` with SWT style symbols directly (`:horizontal` directly instead of `swt(:horizontal)`)
|
6
|
+
- Improve convenience by making `sash_form` accept `maximized_control` as Glimmer DSL for SWT widget proxy instead of low-level SWT widget (`@label` instead of `@label.swt_widget`)
|
7
|
+
- Update Hello, Sash Form! to add Sash Color and simplify with new `sash_form` improvements
|
8
|
+
|
3
9
|
## 4.23.1.3
|
4
10
|
|
5
11
|
- Update initial tab folder width in Weather sample
|
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.23.1.
|
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.23.1.4
|
2
2
|
## JRuby Desktop Development GUI Framework
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/glimmer-dsl-swt.svg)](http://badge.fury.io/rb/glimmer-dsl-swt)
|
4
4
|
[![Travis CI](https://travis-ci.com/AndyObtiva/glimmer-dsl-swt.svg?branch=master)](https://travis-ci.com/github/AndyObtiva/glimmer-dsl-swt)
|
@@ -19,9 +19,9 @@ Featured in JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.do) an
|
|
19
19
|
|
20
20
|
![Eclipse SWT RCP NASA Mars Rover](/images/glimmer-eclipse-swt-rcp-nasa-mars-rover.png)
|
21
21
|
|
22
|
-
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.23.1.
|
22
|
+
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.23.1.4 includes [SWT 4.23](https://download.eclipse.org/eclipse/downloads/drops4/R-4.23-202203080310/), which was released on March 8, 2022. Gem version numbers are in sync with the SWT library versions. The first two digits represent the SWT version number. The last two digits represent the minor and patch versions of Glimmer DSL for SWT.
|
23
23
|
|
24
|
-
**Starting in version 4.20.0.0, [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) comes with the new [***Shine***](/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#shine) syntax** for highly intuitive and visually expressive View/Model Attribute Mapping, relying on `<=>` for bidirectional (two-way) data-binding and `<=` for unidirectional (one-way) data-binding, providing an alternative to the `bind` keyword.
|
24
|
+
**Starting in version 4.20.0.0, [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) comes with the new [***Shine***](/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#shine) syntax** for highly intuitive and visually expressive View/Model Attribute Mapping, relying on `<=>` for bidirectional (two-way) data-binding and `<=` for unidirectional (one-way) data-binding, providing an alternative to the `bind` keyword. That was [originally conceived back in 2007](https://andymaleh.blogspot.com/2007/12/data-shining-in-glimmer.html).
|
25
25
|
|
26
26
|
Please help make [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) better by providing feedback and [contributing](#contributing) whenever possible. Any feature suggestions that are accepted could be implemented within weeks if not days.
|
27
27
|
|
@@ -333,7 +333,7 @@ jgem install glimmer-dsl-swt
|
|
333
333
|
|
334
334
|
Or this command if you want a specific version:
|
335
335
|
```
|
336
|
-
jgem install glimmer-dsl-swt -v 4.23.1.
|
336
|
+
jgem install glimmer-dsl-swt -v 4.23.1.4
|
337
337
|
```
|
338
338
|
|
339
339
|
`jgem` is JRuby's version of `gem` command.
|
@@ -361,7 +361,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
|
|
361
361
|
|
362
362
|
Add the following to `Gemfile`:
|
363
363
|
```
|
364
|
-
gem 'glimmer-dsl-swt', '~> 4.23.1.
|
364
|
+
gem 'glimmer-dsl-swt', '~> 4.23.1.4'
|
365
365
|
```
|
366
366
|
|
367
367
|
And, then run:
|
@@ -384,7 +384,7 @@ glimmer
|
|
384
384
|
```
|
385
385
|
|
386
386
|
```
|
387
|
-
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.23.1.
|
387
|
+
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.23.1.4
|
388
388
|
|
389
389
|
Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
|
390
390
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.23.1.
|
1
|
+
4.23.1.4
|
data/glimmer-dsl-swt.gemspec
CHANGED
Binary file
|
@@ -1141,6 +1141,14 @@ module Glimmer
|
|
1141
1141
|
items: lambda do |value|
|
1142
1142
|
value.to_java :string
|
1143
1143
|
end,
|
1144
|
+
maximized_control: lambda do |value|
|
1145
|
+
value = (value.respond_to?(:swt_widget) ? value.swt_widget : value) if swt_widget.is_a?(SashForm)
|
1146
|
+
value
|
1147
|
+
end,
|
1148
|
+
orientation: lambda do |value|
|
1149
|
+
value = SWTProxy[value] if swt_widget.is_a?(SashForm)
|
1150
|
+
value
|
1151
|
+
end,
|
1144
1152
|
selection: lambda do |value|
|
1145
1153
|
value = value.to_f if swt_widget.is_a?(Spinner)
|
1146
1154
|
value
|
@@ -22,22 +22,15 @@
|
|
22
22
|
require 'glimmer-dsl-swt'
|
23
23
|
|
24
24
|
class SashFormPresenter
|
25
|
-
|
26
|
-
|
27
|
-
attr_accessor :sash_width, :orientation, :orientation_style
|
25
|
+
attr_accessor :sash_width, :sash_color, :orientation
|
28
26
|
|
29
27
|
def initialize
|
30
|
-
|
31
|
-
self.orientation =
|
28
|
+
self.sash_width = 10
|
29
|
+
self.orientation = :horizontal
|
32
30
|
end
|
33
31
|
|
34
32
|
def orientation_options
|
35
|
-
[
|
36
|
-
end
|
37
|
-
|
38
|
-
def orientation=(value)
|
39
|
-
@orientation = value
|
40
|
-
self.orientation_style = swt(@orientation)
|
33
|
+
[:horizontal, :vertical]
|
41
34
|
end
|
42
35
|
end
|
43
36
|
|
@@ -55,7 +48,8 @@ shell {
|
|
55
48
|
height_hint 200
|
56
49
|
}
|
57
50
|
sash_width <=> [@presenter, :sash_width]
|
58
|
-
|
51
|
+
background <=> [@presenter, :sash_color]
|
52
|
+
orientation <=> [@presenter, :orientation]
|
59
53
|
weights 1, 2
|
60
54
|
|
61
55
|
@green_label = label {
|
@@ -90,6 +84,20 @@ shell {
|
|
90
84
|
font height: 16
|
91
85
|
}
|
92
86
|
|
87
|
+
label {
|
88
|
+
layout_data(:right, :center, true, false)
|
89
|
+
text 'Sash Color:'
|
90
|
+
font height: 16
|
91
|
+
}
|
92
|
+
button {
|
93
|
+
layout_data :fill, :center, true, false
|
94
|
+
text "Choose Color..."
|
95
|
+
|
96
|
+
on_widget_selected do
|
97
|
+
@presenter.sash_color = color_dialog.open
|
98
|
+
end
|
99
|
+
}
|
100
|
+
|
93
101
|
label {
|
94
102
|
layout_data(:right, :center, true, false)
|
95
103
|
text 'Orientation:'
|
@@ -110,7 +118,7 @@ shell {
|
|
110
118
|
font height: 16
|
111
119
|
|
112
120
|
on_widget_selected do
|
113
|
-
@sash_form.maximized_control = @green_label
|
121
|
+
@sash_form.maximized_control = @green_label
|
114
122
|
end
|
115
123
|
}
|
116
124
|
button {
|
@@ -120,7 +128,7 @@ shell {
|
|
120
128
|
font height: 16
|
121
129
|
|
122
130
|
on_widget_selected do
|
123
|
-
@sash_form.maximized_control = @red_label
|
131
|
+
@sash_form.maximized_control = @red_label
|
124
132
|
end
|
125
133
|
}
|
126
134
|
|
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.23.1.
|
4
|
+
version: 4.23.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Maleh
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-06-
|
11
|
+
date: 2022-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|