glimmer-dsl-swt 4.23.1.1 → 4.23.1.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 +7 -0
- data/README.md +5 -5
- data/VERSION +1 -1
- data/glimmer-dsl-swt.gemspec +0 -0
- data/samples/elaborate/meta_sample/tutorials.yml +2 -0
- data/samples/hello/hello_menu_bar.rb +75 -0
- data/samples/hello/hello_tree.rb +1 -1
- 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: 7c9f704c72e3667bd413ba1209b17a6edfb110daaacba4b6ed17106afc3b9712
|
4
|
+
data.tar.gz: c9c68f2a0dce76782ea222753a9a18fb29dc5c7c8fd3fe0b31f65f1fd8ddd71e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fccd43c31d1afa0dfb783ead575b62b36f47d5431d078c018393995315290ee63092ad348fe710a2b04aca8112e25d3d26324cd44126702747eb875009dcc052
|
7
|
+
data.tar.gz: 2cebe2ef5735e9d55c9c49909e3ce02ea914b56a8dd49df134863b4feea5fec2f069a4997133e85f6bc77a89428ae178357bae9a95a9cb864a46183d5eac0103
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 4.23.1.2
|
4
|
+
|
5
|
+
- Add Hello, Pop Up Context Menu! video tutorial to Glimmer Meta-Sample
|
6
|
+
- Add Hello, Menu Bar! video tutorial to Glimmer Meta-Sample
|
7
|
+
- Add Language & Country menus to Hello, Menu Bar!
|
8
|
+
- Fix "Last Name" label in Hello, Tree! (was a duplicate "First Name" by mistake)
|
9
|
+
|
3
10
|
## 4.23.1.1
|
4
11
|
|
5
12
|
- Switch order of buttons in Glimmer Meta-Sample to put Tutorial first
|
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.2
|
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,7 +19,7 @@ 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.2 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
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.
|
25
25
|
|
@@ -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.2
|
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.2'
|
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.2
|
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.2
|
data/glimmer-dsl-swt.gemspec
CHANGED
Binary file
|
@@ -41,6 +41,7 @@ shell {
|
|
41
41
|
menu_bar {
|
42
42
|
menu {
|
43
43
|
text '&File'
|
44
|
+
|
44
45
|
menu_item {
|
45
46
|
text '&New'
|
46
47
|
accelerator :command, :N
|
@@ -52,6 +53,7 @@ shell {
|
|
52
53
|
}.open
|
53
54
|
end
|
54
55
|
}
|
56
|
+
|
55
57
|
menu_item {
|
56
58
|
text '&Open...'
|
57
59
|
accelerator :command, :O
|
@@ -63,10 +65,13 @@ shell {
|
|
63
65
|
}.open
|
64
66
|
end
|
65
67
|
}
|
68
|
+
|
66
69
|
menu {
|
67
70
|
text 'Open &Recent'
|
71
|
+
|
68
72
|
menu_item {
|
69
73
|
text 'File 1'
|
74
|
+
|
70
75
|
on_widget_selected do
|
71
76
|
message_box {
|
72
77
|
text 'File 1'
|
@@ -74,8 +79,10 @@ shell {
|
|
74
79
|
}.open
|
75
80
|
end
|
76
81
|
}
|
82
|
+
|
77
83
|
menu_item {
|
78
84
|
text 'File 2'
|
85
|
+
|
79
86
|
on_widget_selected do
|
80
87
|
message_box {
|
81
88
|
text 'File 2'
|
@@ -84,7 +91,9 @@ shell {
|
|
84
91
|
end
|
85
92
|
}
|
86
93
|
}
|
94
|
+
|
87
95
|
menu_item(:separator)
|
96
|
+
|
88
97
|
menu_item {
|
89
98
|
text 'E&xit'
|
90
99
|
|
@@ -93,21 +102,26 @@ shell {
|
|
93
102
|
end
|
94
103
|
}
|
95
104
|
}
|
105
|
+
|
96
106
|
menu {
|
97
107
|
text '&Edit'
|
108
|
+
|
98
109
|
menu_item {
|
99
110
|
text 'Cut'
|
100
111
|
accelerator :command, :X
|
101
112
|
}
|
113
|
+
|
102
114
|
menu_item {
|
103
115
|
text 'Copy'
|
104
116
|
accelerator :command, :C
|
105
117
|
}
|
118
|
+
|
106
119
|
menu_item {
|
107
120
|
text 'Paste'
|
108
121
|
accelerator :command, :V
|
109
122
|
}
|
110
123
|
}
|
124
|
+
|
111
125
|
menu {
|
112
126
|
text '&Options'
|
113
127
|
|
@@ -119,6 +133,7 @@ shell {
|
|
119
133
|
@select_multiple_menu.enabled = true
|
120
134
|
end
|
121
135
|
}
|
136
|
+
|
122
137
|
@select_one_menu = menu {
|
123
138
|
text '&Select One'
|
124
139
|
enabled false
|
@@ -126,13 +141,16 @@ shell {
|
|
126
141
|
menu_item(:radio) {
|
127
142
|
text 'Option 1'
|
128
143
|
}
|
144
|
+
|
129
145
|
menu_item(:radio) {
|
130
146
|
text 'Option 2'
|
131
147
|
}
|
148
|
+
|
132
149
|
menu_item(:radio) {
|
133
150
|
text 'Option 3'
|
134
151
|
}
|
135
152
|
}
|
153
|
+
|
136
154
|
@select_multiple_menu = menu {
|
137
155
|
text '&Select Multiple'
|
138
156
|
enabled false
|
@@ -140,18 +158,64 @@ shell {
|
|
140
158
|
menu_item(:check) {
|
141
159
|
text 'Option 4'
|
142
160
|
}
|
161
|
+
|
143
162
|
menu_item(:check) {
|
144
163
|
text 'Option 5'
|
145
164
|
}
|
165
|
+
|
146
166
|
menu_item(:check) {
|
147
167
|
text 'Option 6'
|
148
168
|
}
|
149
169
|
}
|
150
170
|
}
|
171
|
+
|
172
|
+
menu {
|
173
|
+
text '&Language'
|
174
|
+
|
175
|
+
['denmark', 'finland', 'france', 'germany', 'italy', 'mexico', 'netherlands', 'norway', 'usa'].each do |image_name|
|
176
|
+
menu_item(:radio) { |a_menu_item|
|
177
|
+
image File.expand_path("images/#{image_name}.png", __dir__)
|
178
|
+
selection image_name == 'usa'
|
179
|
+
|
180
|
+
on_widget_selected do
|
181
|
+
if a_menu_item.selection
|
182
|
+
message_box {
|
183
|
+
text 'Language Selection'
|
184
|
+
message "You selected the language of #{image_name.capitalize}!"
|
185
|
+
}.open
|
186
|
+
end
|
187
|
+
end
|
188
|
+
}
|
189
|
+
end
|
190
|
+
}
|
191
|
+
|
192
|
+
menu {
|
193
|
+
text '&Country'
|
194
|
+
|
195
|
+
['denmark', 'finland', 'france', 'germany', 'italy', 'mexico', 'netherlands', 'norway', 'usa'].each do |image_name|
|
196
|
+
menu_item(:radio) { |a_menu_item|
|
197
|
+
text image_name.capitalize
|
198
|
+
image File.expand_path("images/#{image_name}.png", __dir__)
|
199
|
+
selection image_name == 'usa'
|
200
|
+
|
201
|
+
on_widget_selected do
|
202
|
+
if a_menu_item.selection
|
203
|
+
message_box {
|
204
|
+
text 'Country Selection'
|
205
|
+
message "You selected the country of #{image_name.capitalize}!"
|
206
|
+
}.open
|
207
|
+
end
|
208
|
+
end
|
209
|
+
}
|
210
|
+
end
|
211
|
+
}
|
212
|
+
|
151
213
|
menu {
|
152
214
|
text '&Format'
|
215
|
+
|
153
216
|
menu {
|
154
217
|
text '&Background Color'
|
218
|
+
|
155
219
|
COLORS.each { |color_style|
|
156
220
|
menu_item(:radio) {
|
157
221
|
text color_style.to_s.split('_').map(&:capitalize).join(' ')
|
@@ -162,8 +226,10 @@ shell {
|
|
162
226
|
}
|
163
227
|
}
|
164
228
|
}
|
229
|
+
|
165
230
|
menu {
|
166
231
|
text 'Foreground &Color'
|
232
|
+
|
167
233
|
COLORS.each { |color_style|
|
168
234
|
menu_item(:radio) {
|
169
235
|
text color_style.to_s.split('_').map(&:capitalize).join(' ')
|
@@ -175,8 +241,10 @@ shell {
|
|
175
241
|
}
|
176
242
|
}
|
177
243
|
}
|
244
|
+
|
178
245
|
menu {
|
179
246
|
text '&View'
|
247
|
+
|
180
248
|
menu_item(:radio) {
|
181
249
|
text 'Small'
|
182
250
|
|
@@ -185,6 +253,7 @@ shell {
|
|
185
253
|
@label.parent.pack
|
186
254
|
end
|
187
255
|
}
|
256
|
+
|
188
257
|
menu_item(:radio) {
|
189
258
|
text 'Medium'
|
190
259
|
selection true
|
@@ -194,6 +263,7 @@ shell {
|
|
194
263
|
@label.parent.pack
|
195
264
|
end
|
196
265
|
}
|
266
|
+
|
197
267
|
menu_item(:radio) {
|
198
268
|
text 'Large'
|
199
269
|
|
@@ -203,8 +273,10 @@ shell {
|
|
203
273
|
end
|
204
274
|
}
|
205
275
|
}
|
276
|
+
|
206
277
|
menu {
|
207
278
|
text '&Help'
|
279
|
+
|
208
280
|
menu_item {
|
209
281
|
text '&Manual'
|
210
282
|
accelerator :command, :shift, :M
|
@@ -216,6 +288,7 @@ shell {
|
|
216
288
|
}.open
|
217
289
|
end
|
218
290
|
}
|
291
|
+
|
219
292
|
menu_item {
|
220
293
|
text '&Tutorial'
|
221
294
|
accelerator :command, :shift, :T
|
@@ -227,7 +300,9 @@ shell {
|
|
227
300
|
}.open
|
228
301
|
end
|
229
302
|
}
|
303
|
+
|
230
304
|
menu_item(:separator)
|
305
|
+
|
231
306
|
menu_item {
|
232
307
|
text '&Report an Issue...'
|
233
308
|
|
data/samples/hello/hello_tree.rb
CHANGED
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.2
|
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-05-
|
11
|
+
date: 2022-05-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|