glimmer-dsl-swt 4.20.10.0 → 4.20.10.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +5 -5
- data/VERSION +1 -1
- data/docs/reference/GLIMMER_SAMPLES.md +13 -0
- data/glimmer-dsl-swt.gemspec +0 -0
- data/samples/hello/hello_scale.rb +57 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 13187ec0b73c8a5952858310e3c42e511f2e48f4e278b58e075476781b7c5c3d
|
4
|
+
data.tar.gz: 5122305d5bac89596a966afca60fc6fd7085f0ceb6fdc4e8ac8317cdc3399667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ded05c6457281d9b11ae751a6c28561fe9789a25c21abde7d30ba79c2232780deb919ab6a700d9c719a103de95fdd7e7a0941cb8b4716b6c8586baac0490aa2f
|
7
|
+
data.tar.gz: edb3e68ff37552894bf004b916351772cac70520153b97fb7683258667bb3b384659eaea1ab57f7319a7325f7adda1e6a1438c9a49cf436f16d8d965353be496
|
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.20.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.20.10.1
|
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)
|
@@ -15,7 +15,7 @@
|
|
15
15
|
[<img src="https://covers.oreillystatic.com/images/9780596519650/lrg.jpg" width=105 /><br />
|
16
16
|
Featured in JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.do) and [Chalmers/Gothenburg University Software Engineering Master's Lecture Material](http://www.cse.chalmers.se/~bergert/slides/guest_lecture_DSLs.pdf)
|
17
17
|
|
18
|
-
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.10.
|
18
|
+
[Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.10.1 includes [SWT 4.20](https://download.eclipse.org/eclipse/downloads/drops4/R-4.20-202106111600/), which was released on June 11, 2021. 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. Note that SWT now supports AARCH64 on Mac and Linux, but it is not fully tested in Glimmer DSL for SWT yet, so deem its support experimental for the time being without guarantees for functionality until declared otherwise (report any issues you may encounter).
|
19
19
|
|
20
20
|
**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 (keep in mind that it is still a beta, so default back to `bind` whenever needed).
|
21
21
|
|
@@ -347,7 +347,7 @@ jgem install glimmer-dsl-swt
|
|
347
347
|
|
348
348
|
Or this command if you want a specific version:
|
349
349
|
```
|
350
|
-
jgem install glimmer-dsl-swt -v 4.20.10.
|
350
|
+
jgem install glimmer-dsl-swt -v 4.20.10.1
|
351
351
|
```
|
352
352
|
|
353
353
|
`jgem` is JRuby's version of `gem` command.
|
@@ -375,7 +375,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
|
|
375
375
|
|
376
376
|
Add the following to `Gemfile`:
|
377
377
|
```
|
378
|
-
gem 'glimmer-dsl-swt', '~> 4.20.10.
|
378
|
+
gem 'glimmer-dsl-swt', '~> 4.20.10.1'
|
379
379
|
```
|
380
380
|
|
381
381
|
And, then run:
|
@@ -396,7 +396,7 @@ glimmer
|
|
396
396
|
```
|
397
397
|
|
398
398
|
```
|
399
|
-
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.10.
|
399
|
+
Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.10.1
|
400
400
|
|
401
401
|
Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
|
402
402
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.20.10.
|
1
|
+
4.20.10.1
|
@@ -32,6 +32,7 @@
|
|
32
32
|
- [Hello, Directory Dialog!](#hello-directory-dialog)
|
33
33
|
- [Hello, File Dialog!](#hello-file-dialog)
|
34
34
|
- [Hello, Date Time!](#hello-date-time)
|
35
|
+
- [Hello, Scale!](#hello-scale)
|
35
36
|
- [Hello, Spinner!](#hello-spinner)
|
36
37
|
- [Hello, Table!](#hello-table)
|
37
38
|
- [Hello, Link!](#hello-link)
|
@@ -593,6 +594,18 @@ Hello, Date Time!
|
|
593
594
|
|
594
595
|
![Hello Date Time](/images/glimmer-hello-date-time.png)
|
595
596
|
|
597
|
+
#### Hello, Scale!
|
598
|
+
|
599
|
+
This sample demonstrates the use of `scale` widget in Glimmer
|
600
|
+
|
601
|
+
Code:
|
602
|
+
|
603
|
+
[samples/hello/hello_scale.rb](/samples/hello/hello_scale.rb)
|
604
|
+
|
605
|
+
Hello, Scale!
|
606
|
+
|
607
|
+
![Hello Scale](/images/glimmer-hello-scale.png)
|
608
|
+
|
596
609
|
#### Hello, Spinner!
|
597
610
|
|
598
611
|
This sample demonstrates the use of `spinner` widget in Glimmer
|
data/glimmer-dsl-swt.gemspec
CHANGED
Binary file
|
@@ -0,0 +1,57 @@
|
|
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
|
+
require 'glimmer-dsl-swt'
|
23
|
+
|
24
|
+
class HelloScale
|
25
|
+
include Glimmer::UI::CustomShell
|
26
|
+
|
27
|
+
attr_accessor :value
|
28
|
+
|
29
|
+
before_body {
|
30
|
+
@value = 50
|
31
|
+
}
|
32
|
+
|
33
|
+
body {
|
34
|
+
shell {
|
35
|
+
row_layout(:vertical) {
|
36
|
+
fill true
|
37
|
+
center true
|
38
|
+
}
|
39
|
+
|
40
|
+
text 'Hello, Scale!'
|
41
|
+
|
42
|
+
label(:center) {
|
43
|
+
text <= [self, :value]
|
44
|
+
}
|
45
|
+
|
46
|
+
scale { # optionally takes :vertical or :horizontal (default) SWT style
|
47
|
+
minimum 0
|
48
|
+
maximum 100
|
49
|
+
selection <=> [self, :value]
|
50
|
+
}
|
51
|
+
|
52
|
+
}
|
53
|
+
|
54
|
+
}
|
55
|
+
end
|
56
|
+
|
57
|
+
HelloScale.launch
|
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.10.
|
4
|
+
version: 4.20.10.1
|
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-07-
|
11
|
+
date: 2021-07-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -610,6 +610,7 @@ files:
|
|
610
610
|
- samples/hello/hello_radio.rb
|
611
611
|
- samples/hello/hello_radio_group.rb
|
612
612
|
- samples/hello/hello_sash_form.rb
|
613
|
+
- samples/hello/hello_scale.rb
|
613
614
|
- samples/hello/hello_shape.rb
|
614
615
|
- samples/hello/hello_shell.rb
|
615
616
|
- samples/hello/hello_spinner.rb
|