glimmer-dsl-swt 4.20.15.1 → 4.20.15.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0b757f6efefa170ed1a47662e65405e94a93d24e1125e95849dfd21efc7c2cbe
4
- data.tar.gz: 7e952d88c913cc2b3add234da53b1a5d1cd8385fe501f3b109a48ad4ad56fc49
3
+ metadata.gz: dda4e5ffd1bd606b7a442ed334df93dfe00bcbd69c24bb9aa76ef367e1c23f0b
4
+ data.tar.gz: 94836b2214a7db325c43a5ddb456eb6769f5f1c004005a7d16a14af5840398c0
5
5
  SHA512:
6
- metadata.gz: ea8828e2082a4714a36375f82a71d0c9601c74c4e169c912ee1f0ba7715f6d5118f147b68f7d3ed6fc8282cb8e20fcd0b092a7272b153232154f1893670069b8
7
- data.tar.gz: 749cb706de665daff507e00215663aa8d0d6e2a78efadbffb1de909092c85d3f5b589e6ceafdb0a9f9247e3c22aebfbef6a47f164f1df91d267d8e4e915ddcdc
6
+ metadata.gz: 44fed7644c47f57da144bce6338af41e7af8752dbe3e3e44c403f81a6ef95dfad58db43b5b9fbcc1229ff9efe1dde6ccbb378fd03203758e6b0d660169ed6c0a
7
+ data.tar.gz: cb7a1a73c59fde48269685d858b8ec0a8e43a4b14ed87478bac5022da3d1a2cc91144c83670ebf95276d410a1d33b492bd8cee70e46137a6540405666f8e9adc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ ### 4.20.15.2
4
+
5
+ - Fixed `widget#print` support and Hello, Print Dialog! handling of cancellation of printing
6
+
3
7
  ### 4.20.15.1
4
8
 
5
9
  - Glimmer Clock elaborate sample
@@ -10,6 +14,10 @@
10
14
  - Hello, Print!
11
15
  - `widget#print` method that automates work in Hello, Print Dialog! and is used in Hello, Print!
12
16
 
17
+ ### 4.20.14.2
18
+
19
+ - Hello, Toggle!
20
+
13
21
  ### 4.20.14.1
14
22
 
15
23
  - Upgrade to Glimmer 2.1.1
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.15.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.20.15.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)
@@ -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.15.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 (please report any issues you may encounter).
18
+ [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.20.15.2 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 (please 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
 
@@ -321,7 +321,7 @@ jgem install glimmer-dsl-swt
321
321
 
322
322
  Or this command if you want a specific version:
323
323
  ```
324
- jgem install glimmer-dsl-swt -v 4.20.15.1
324
+ jgem install glimmer-dsl-swt -v 4.20.15.2
325
325
  ```
326
326
 
327
327
  `jgem` is JRuby's version of `gem` command.
@@ -349,7 +349,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
349
349
 
350
350
  Add the following to `Gemfile`:
351
351
  ```
352
- gem 'glimmer-dsl-swt', '~> 4.20.15.1'
352
+ gem 'glimmer-dsl-swt', '~> 4.20.15.2'
353
353
  ```
354
354
 
355
355
  And, then run:
@@ -370,7 +370,7 @@ glimmer
370
370
  ```
371
371
 
372
372
  ```
373
- Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.15.1
373
+ Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.20.15.2
374
374
 
375
375
  Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
376
376
 
@@ -546,7 +546,7 @@ Learn more at: [docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md](docs/refer
546
546
 
547
547
  ## App Updates
548
548
 
549
- Glimmer already supports automatic (and manual) app updates via the Mac App Store for Mac apps. Simply run the `glimmer package` command with the Mac App Store keys configured as per [Mac Application Distribution](mac-application-distribution) instructions and you get automatic (and manual) app update support courtesy of the Mac App Store.
549
+ Glimmer should have support for automatic (and manual) app updates via the Mac App Store for Mac apps. Simply run the `glimmer package` command with the Mac App Store keys configured as per [Mac Application Distribution](mac-application-distribution) instructions and you get automatic (and manual) app update support courtesy of the Mac App Store.
550
550
 
551
551
  ## Glimmer Supporting Libraries
552
552
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.20.15.1
1
+ 4.20.15.2
Binary file
@@ -620,24 +620,26 @@ module Glimmer
620
620
  success = print(gc)
621
621
  if success
622
622
  printer_data = DialogProxy.new('print_dialog', shell.get_data('proxy')).open
623
- printer = Printer.new(printer_data)
624
- job_name ||= 'Glimmer'
625
- if printer.start_job(job_name)
626
- printer_gc = org.eclipse.swt.graphics.GC.new(printer)
627
- if printer.start_page
628
- printer_gc.drawImage(image, 0, 0)
629
- printer.end_page
623
+ if printer_data
624
+ printer = Printer.new(printer_data)
625
+ job_name ||= 'Glimmer'
626
+ if printer.start_job(job_name)
627
+ printer_gc = org.eclipse.swt.graphics.GC.new(printer)
628
+ if printer.start_page
629
+ printer_gc.drawImage(image, 0, 0)
630
+ printer.end_page
631
+ else
632
+ success = false
633
+ end
634
+ printer_gc.dispose
635
+ printer.end_job
630
636
  else
631
637
  success = false
632
638
  end
633
- printer_gc.dispose
634
- printer.end_job
635
- else
636
- success = false
639
+ printer.dispose
640
+ gc.dispose
641
+ image.dispose
637
642
  end
638
- printer.dispose
639
- gc.dispose
640
- image.dispose
641
643
  end
642
644
  success
643
645
  end
@@ -40,9 +40,6 @@ class Clock
40
40
  oval(0, 0, 400, 400) {
41
41
  background :white
42
42
  }
43
- oval(0, 0, 400, 400) {
44
- foreground :black
45
- }
46
43
  polygon(-5, -5, 180, 0, -5, 5) {
47
44
  background :black
48
45
 
@@ -39,8 +39,8 @@ class Timer
39
39
  ## Use after_body block to setup observers for widgets in body
40
40
  #
41
41
  after_body do
42
- Thread.new {
43
- loop {
42
+ Thread.new do
43
+ loop do
44
44
  sleep(1)
45
45
  if @countdown
46
46
  sync_exec {
@@ -54,8 +54,8 @@ class Timer
54
54
  end
55
55
  }
56
56
  end
57
- }
58
- }
57
+ end
58
+ end
59
59
  end
60
60
 
61
61
  ## Add widget content inside custom shell body
@@ -87,7 +87,7 @@ class HelloLabel
87
87
 
88
88
  ['denmark', 'finland', 'norway'].each do |image_name|
89
89
  label {
90
- layout_data :fill, :center, true, false
90
+ layout_data :center, :center, true, false
91
91
  image File.expand_path("images/#{image_name}.png", __dir__)
92
92
  }
93
93
  text {
@@ -48,29 +48,31 @@ class HelloPrintDialog
48
48
  success = @composite.print(gc)
49
49
  if success
50
50
  printer_data = print_dialog.open
51
- printer = Printer.new(printer_data)
52
- if printer.start_job('Glimmer')
53
- printer_gc = org.eclipse.swt.graphics.GC.new(printer)
54
- if printer.start_page
55
- printer_gc.drawImage(image, 0, 0)
56
- printer.end_page
51
+ if printer_data
52
+ printer = Printer.new(printer_data)
53
+ if printer.start_job('Glimmer')
54
+ printer_gc = org.eclipse.swt.graphics.GC.new(printer)
55
+ if printer.start_page
56
+ printer_gc.drawImage(image, 0, 0)
57
+ printer.end_page
58
+ else
59
+ message_box {
60
+ text 'Unable To Print'
61
+ message 'Sorry! Cannot start printer page!'
62
+ }.open
63
+ end
64
+ printer_gc.dispose
65
+ printer.end_job
57
66
  else
58
67
  message_box {
59
68
  text 'Unable To Print'
60
- message 'Sorry! Cannot start printer page!'
69
+ message 'Sorry! Cannot start printer job!'
61
70
  }.open
62
71
  end
63
- printer_gc.dispose
64
- printer.end_job
65
- else
66
- message_box {
67
- text 'Unable To Print'
68
- message 'Sorry! Cannot start printer job!'
69
- }.open
72
+ printer.dispose
73
+ gc.dispose
74
+ image.dispose
70
75
  end
71
- printer.dispose
72
- gc.dispose
73
- image.dispose
74
76
  else
75
77
  message_box {
76
78
  text 'Unable To Print'
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.15.1
4
+ version: 4.20.15.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: 2021-08-10 00:00:00.000000000 Z
11
+ date: 2021-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement