glimmer-dsl-swt 4.19.0.0 → 4.19.0.1

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: 2a6d3f8e7bb2a7212ba94580c1293d23205f7eba98da2dacc2be280546f8a048
4
- data.tar.gz: 56e3d8a75782146d32d3c59eecbb1528d53879c41ac5754dd3afe95809f9a566
3
+ metadata.gz: 7c9a43a064f1ca59a1ee97eb7dbb5706a5ef9009543747fef74c94ae1473314b
4
+ data.tar.gz: 77004bca9e6bca959218ed4e3d8a4e38a123d2621e8668c53ab2c17016a15232
5
5
  SHA512:
6
- metadata.gz: e3ec40fd6f34affc274aab6de90f9ae7798de2292a687adca7655298b46c87130b72aabe222c7aac1b585ec3ed5675638a11fc12084900891914077aec593f74
7
- data.tar.gz: 4d312fd5501bac1cebeeeaa04c61113be221a28cc3a812c3d9adc20b650f2c5dd3ef4c0a95d617f903bd1cdc64193b754bbde8facee2367acf7f592f0e6f8803
6
+ metadata.gz: 35b7ad013b30bc797bc4b56735980da4ba809455ca1cde4623e6cf552cacb8af16d5d7885b906a0f95431f9120ec6f5a01b54d9ed5a0e0152f234c6a59e5aa8d
7
+ data.tar.gz: d5076070c8335873b0a8a282d1815136816d163d362d3cccd472d296e9ae80117b7ed55caacdf1788fce4e329848bb3213951dc04a6d73dae60bed435503a004
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ### 4.19.0.1
4
+
5
+ - Upgrade to JRuby 9.2.17.0
6
+ - Fix Hello, C Tab! sample not showing flags on Windows
7
+ - Fix Stock Ticker elaborate sample non-scrolling and clipped stock names on Windows
8
+
3
9
  ### 4.19.0.0
4
10
 
5
11
  - Upgrade to SWT 4.19
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.19.0.0
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.19.0.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)
@@ -10,12 +10,12 @@
10
10
 
11
11
  **(The Original Glimmer Library Handling the World’s Ruby GUI Needs Since 2007. Beware of Imitators!)**
12
12
 
13
- [Glimmer](https://github.com/AndyObtiva/glimmer) DSL for SWT is a native-GUI cross-platform desktop development library written in [JRuby](https://www.jruby.org/), an OS-threaded faster JVM version of [Ruby](https://www.ruby-lang.org/en/). [Glimmer](https://github.com/AndyObtiva/glimmer) was the [first Ruby gem](https://rubygems.org/gems/glimmer) to bring [SWT](https://www.eclipse.org/swt/) (Standard Widget Toolkit) to [Ruby](https://www.ruby-lang.org/en/), thanks to its creator [Andy Maleh](https://andymaleh.blogspot.com/), an EclipseCon/EclipseWorld/RubyConf speaker and expert. [Glimmer](https://github.com/AndyObtiva/glimmer)'s main innovation is a declarative [Ruby DSL](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#glimmer-dsl-syntax) that enables productive and efficient authoring of desktop application user-interfaces by relying on the robust [Eclipse SWT library](https://www.eclipse.org/swt/). [Glimmer](https://rubygems.org/gems/glimmer) additionally innovates by having built-in [data-binding](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#data-binding) support, which greatly facilitates synchronizing the GUI with domain models, thus achieving true decoupling of object oriented components and enabling developers to solve business problems (test-first) without worrying about GUI concerns, or alternatively drive development GUI-first, and then write clean business models (test-first) afterwards. Not only does Glimmer provide a large set of GUI [widgets](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#widgets), but it also supports drawing Canvas Graphics like [Shapes](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#canvas-shape-dsl) and [Animations](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#canvas-animation-dsl). To get started quickly, [Glimmer](https://rubygems.org/gems/glimmer) offers [scaffolding](docs/reference/GLIMMER_COMMAND.md#scaffolding) options for [Apps](#in-production), [Gems](docs/reference/GLIMMER_COMMAND.md#custom-shell-gem), and [Custom Widgets](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#custom-widgets). [Glimmer](https://rubygems.org/gems/glimmer) also includes native-executable [packaging](docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md) support, sorely lacking in other libraries, thus enabling the delivery of desktop apps written in [Ruby](https://www.ruby-lang.org/en/) as truly native DMG/PKG/APP files on the [Mac](https://www.apple.com/ca/macos) + [App Store](https://developer.apple.com/macos/distribution/), MSI/EXE files on [Windows](https://www.microsoft.com/en-ca/windows), and [Gem Packaged Shell Scripts](docs/reference/GLIMMER_COMMAND.md#packaging) on [Linux](https://www.linux.org/).
13
+ [Glimmer](https://github.com/AndyObtiva/glimmer) DSL for SWT is a native-GUI cross-platform desktop development library written in [JRuby](https://www.jruby.org/), an OS-threaded faster JVM version of [Ruby](https://www.ruby-lang.org/en/). [Glimmer](https://github.com/AndyObtiva/glimmer)'s main innovation is a declarative [Ruby DSL](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#glimmer-dsl-syntax) that enables productive and efficient authoring of desktop application user-interfaces by relying on the robust [Eclipse SWT library](https://www.eclipse.org/swt/). [Glimmer](https://rubygems.org/gems/glimmer) additionally innovates by having built-in [data-binding](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#data-binding) support, which greatly facilitates synchronizing the GUI with domain models, thus achieving true decoupling of object oriented components and enabling developers to solve business problems (test-first) without worrying about GUI concerns, or alternatively drive development GUI-first, and then write clean business models (test-first) afterwards. Not only does Glimmer provide a large set of GUI [widgets](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#widgets), but it also supports drawing Canvas Graphics like [Shapes](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#canvas-shape-dsl) and [Animations](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#canvas-animation-dsl). To get started quickly, [Glimmer](https://rubygems.org/gems/glimmer) offers [scaffolding](docs/reference/GLIMMER_COMMAND.md#scaffolding) options for [Apps](#in-production), [Gems](docs/reference/GLIMMER_COMMAND.md#custom-shell-gem), and [Custom Widgets](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md#custom-widgets). [Glimmer](https://rubygems.org/gems/glimmer) also includes native-executable [packaging](docs/reference/GLIMMER_PACKAGING_AND_DISTRIBUTION.md) support, sorely lacking in other libraries, thus enabling the delivery of desktop apps written in [Ruby](https://www.ruby-lang.org/en/) as truly native DMG/PKG/APP files on the [Mac](https://www.apple.com/ca/macos) + [App Store](https://developer.apple.com/macos/distribution/), MSI/EXE files on [Windows](https://www.microsoft.com/en-ca/windows), and [Gem Packaged Shell Scripts](docs/reference/GLIMMER_COMMAND.md#packaging) on [Linux](https://www.linux.org/). [Glimmer](https://github.com/AndyObtiva/glimmer) was the [first Ruby gem](https://rubygems.org/gems/glimmer) to bring [SWT](https://www.eclipse.org/swt/) (Standard Widget Toolkit) to [Ruby](https://www.ruby-lang.org/en/), thanks to its creator [Andy Maleh](https://andymaleh.blogspot.com/), an EclipseCon/EclipseWorld/RubyConf speaker and expert (even Shoes recently copied Glimmer and switched to using SWT, fully confirming [Glimmer](https://github.com/AndyObtiva/glimmer)'s superiority).
14
14
 
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.19.0.0 includes [SWT 4.19](https://download.eclipse.org/eclipse/downloads/drops4/R-4.19-202103031800/), which was released on March 3, 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.
18
+ [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) 4.19.0.1 includes [SWT 4.19](https://download.eclipse.org/eclipse/downloads/drops4/R-4.19-202103031800/), which was released on March 3, 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.
19
19
 
20
20
  [Glimmer DSL for SWT receives two updates per month](https://rubygems.org/gems/glimmer-dsl-swt/versions). You can trust [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) with your Ruby desktop GUI development needs! [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) brings great ideas to the table, such as declarative programming via domain specific languages, currently under-utilized in the GUI domain. That said, it may not be feature complete enough for everybody's needs, so please help make [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) even better by providing feedback and [contributing](#contributing) when possible. The project is very active, so any feature suggestions that are accepted could be implemented within weeks if not days. Also, you are welcome to [hire me](#hire-me) full-time if you want long-term development of [Glimmer DSL for SWT](https://rubygems.org/gems/glimmer-dsl-swt) for your project needs.
21
21
 
@@ -308,14 +308,14 @@ https://www.eclipse.org/swt/faq.php
308
308
  ## Pre-requisites
309
309
 
310
310
  - JDK 8u241 (1.8.0_241) (find at https://www.oracle.com/java/technologies/javase/javase8u211-later-archive-downloads.html / On Windows, ensure PATH includes Java bin directory like C:\Program Files\Java\jdk1.8.0_241\bin for javapackager to work during packaging Glimmer applications)
311
- - JRuby 9.2.16.0 (supporting Ruby 2.5.x syntax) (get via [RVM](http://rvm.io) on Mac and Linux or find at [https://www.jruby.org/download](https://www.jruby.org/download) for Windows)
311
+ - JRuby 9.2.17.0 (supporting Ruby 2.5.x syntax) (get via [RVM](http://rvm.io) on Mac and Linux or find at [https://www.jruby.org/download](https://www.jruby.org/download) for Windows)
312
312
  - SWT 4.19 (already included in the [glimmer-dsl-swt](https://rubygems.org/gems/glimmer-dsl-swt) gem)
313
313
  - Git (comes with Mac and Linux. Install on Windows: https://git-scm.com/download/win )
314
314
 
315
315
  To obtain JRuby through [RVM](http://rvm.io), you may run:
316
316
 
317
317
  ```bash
318
- rvm install jruby-9.2.16.0
318
+ rvm install jruby-9.2.17.0
319
319
  ```
320
320
 
321
321
  Glimmer might still work on other versions of Java, JRuby and SWT, but there are no guarantees, so it is best to stick to the pre-requisites outlined above.
@@ -342,7 +342,7 @@ jgem install glimmer-dsl-swt
342
342
 
343
343
  Or this command if you want a specific version:
344
344
  ```
345
- jgem install glimmer-dsl-swt -v 4.19.0.0
345
+ jgem install glimmer-dsl-swt -v 4.19.0.1
346
346
  ```
347
347
 
348
348
  `jgem` is JRuby's version of `gem` command.
@@ -370,7 +370,7 @@ Note: if you're using activerecord or activesupport, keep in mind that Glimmer u
370
370
 
371
371
  Add the following to `Gemfile`:
372
372
  ```
373
- gem 'glimmer-dsl-swt', '~> 4.19.0.0'
373
+ gem 'glimmer-dsl-swt', '~> 4.19.0.1'
374
374
  ```
375
375
 
376
376
  And, then run:
@@ -391,7 +391,7 @@ glimmer
391
391
  ```
392
392
 
393
393
  ```
394
- Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.19.0.0
394
+ Glimmer (JRuby Desktop Development GUI Framework) - JRuby Gem: glimmer-dsl-swt v4.19.0.1
395
395
 
396
396
  Usage: glimmer [--bundler] [--pd] [--quiet] [--debug] [--log-level=VALUE] [[ENV_VAR=VALUE]...] [[-jruby-option]...] (application.rb or task[task_args]) [[application2.rb]...]
397
397
 
@@ -488,6 +488,8 @@ table(:multi) {
488
488
  }
489
489
  ```
490
490
 
491
+ If you need more widgets, you can check out the [Nebula Project](https://github.com/AndyObtiva/glimmer-cw-nebula) (50+ enterprise-grade custom widgets)
492
+
491
493
  Learn more at: [docs/reference/GLIMMER_GUI_DSL_SYNTAX.md](docs/reference/GLIMMER_GUI_DSL_SYNTAX.md)
492
494
 
493
495
  ## Glimmer Configuration
@@ -502,7 +504,7 @@ Learn more at: [docs/reference/GLIMMER_CONFIGURATION.md](docs/reference/GLIMMER_
502
504
 
503
505
  ## Samples
504
506
 
505
- Check the [samples](samples) directory in [glimmer-dsl-swt](https://github.com/AndyObtiva/glimmer-dsl-swt) for examples on how to write Glimmer applications. To run a sample, make sure to install the `glimmer-dsl-swt` gem first and then run:
507
+ Check the [samples](/docs/reference/GLIMMER_SAMPLES.md) directory in [glimmer-dsl-swt](https://github.com/AndyObtiva/glimmer-dsl-swt) for examples on how to write Glimmer applications. To run a sample, make sure to install the `glimmer-dsl-swt` gem first and then run:
506
508
  ```
507
509
  glimmer samples
508
510
  ```
@@ -511,7 +513,7 @@ glimmer samples
511
513
 
512
514
  ![Glimmer Meta-Sample](/images/glimmer-meta-sample.png)
513
515
 
514
- See a listing of samples including screenshots and explanations at: [docs/reference/GLIMMER_SAMPLES.md](docs/reference/GLIMMER_SAMPLES.md)
516
+ See a listing of samples including screenshots and explanations at: [docs/reference/GLIMMER_SAMPLES.md](/docs/reference/GLIMMER_SAMPLES.md)
515
517
 
516
518
  ## In Production
517
519
 
@@ -693,3 +695,5 @@ Copyright (c) 2007-2021 - Andy Maleh.
693
695
  --
694
696
 
695
697
  [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=40 />](https://github.com/AndyObtiva/glimmer) Built for [Glimmer](https://github.com/AndyObtiva/glimmer) (DSL Framework).
698
+
699
+ Glimmer logo was made by [Freepik](https://www.flaticon.com/authors/freepik) from [www.flaticon.com](http://www.flaticon.com)
data/RUBY_VERSION CHANGED
@@ -1 +1 @@
1
- jruby-9.2.16.0
1
+ jruby-9.2.17.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 4.19.0.0
1
+ 4.19.0.1
@@ -105,7 +105,7 @@ Code:
105
105
 
106
106
  #### Hello, C Tab!
107
107
 
108
- This sample demonstrates custom tab widget usage (`c_tab_folder` and `c_tab_item`), which supports more customizations to tab fonts/background/foreground colors and display of extra additional tabs via a drop down.
108
+ This sample demonstrates custom tab widget usage via the `c_tab_folder` and `c_tab_item` variations of `tab_folder` and `tab_item`, which can customize fonts/background/foreground colors for tabs and display additional tabs that do not fit in the window via a drop down.
109
109
 
110
110
  Code:
111
111
 
@@ -115,6 +115,8 @@ Code:
115
115
  ![Hello C Tab Extra Tabs](/images/glimmer-hello-c-tab-extra-tabs.png)
116
116
  ![Hello C Tab Other Tab](/images/glimmer-hello-c-tab-other-tab.png)
117
117
 
118
+ Country flag images were made by [Freepik](https://www.flaticon.com/authors/freepik) from [www.flaticon.com](http://www.flaticon.com)
119
+
118
120
  #### Hello, Combo!
119
121
 
120
122
  This sample demonstrates combo data-binding.
Binary file
@@ -110,13 +110,13 @@ class StockTicker
110
110
  tab[:canvas].set_size(new_x_location, @tabs.first[:canvas].bounds.height)
111
111
  tab[:canvas].cursor = :hand
112
112
  tab[:scrolled_composite].set_min_size(new_x_location, @tabs.first[:canvas].bounds.height)
113
- tab[:scrolled_composite].set_origin(tab[:scrolled_composite].origin.x + 1, tab[:scrolled_composite].origin.y) if (tab[:scrolled_composite].origin.x + tab[:scrolled_composite].client_area.width) == canvas_width
113
+ tab[:scrolled_composite].set_origin(tab[:scrolled_composite].origin.x + 1, tab[:scrolled_composite].origin.y) if (tab[:scrolled_composite].origin.x + tab[:scrolled_composite].client_area.width + (OS.mac? ? 0 : 20)) == canvas_width
114
114
  end
115
115
  else
116
116
  tab[:canvas_header].content {
117
117
  text(stock.name, 15, new_y - 10) {
118
118
  foreground @stock_colors[stock_index]
119
- font height: 14
119
+ font height: 13
120
120
  }
121
121
  }
122
122
  end
@@ -47,7 +47,7 @@ class HelloCCombo
47
47
  fill true
48
48
  }
49
49
 
50
- text 'Hello, CCombo!'
50
+ text 'Hello, C Combo!'
51
51
 
52
52
  c_combo(:read_only) {
53
53
  selection bind(@person, :country) # also binds to country_options by convention
@@ -19,6 +19,8 @@
19
19
  # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
20
  # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
21
 
22
+ # Country flag images were made by [Freepik](https://www.flaticon.com/authors/freepik) from [www.flaticon.com](http://www.flaticon.com)
23
+
22
24
  require 'glimmer-dsl-swt'
23
25
 
24
26
  class HelloCTab
@@ -41,12 +43,7 @@ class HelloCTab
41
43
  foreground :blue
42
44
  selection_foreground :dark_blue
43
45
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
44
- image image(30, 30) {
45
- ### building image on the fly with Canvas Shape DSL text shape flag emoji
46
- text('🇺🇸', 0, 0) {
47
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
48
- }
49
- }
46
+ image File.expand_path('hello_c_tab/usa.png', __dir__)
50
47
 
51
48
  label {
52
49
  text 'Hello, World!'
@@ -60,12 +57,7 @@ class HelloCTab
60
57
  foreground :blue
61
58
  selection_foreground :dark_blue
62
59
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
63
- image image(30, 30) {
64
- ### building image on the fly with Canvas Shape DSL text shape flag emoji
65
- text('🇫🇷', 0, 0) {
66
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
67
- }
68
- }
60
+ image File.expand_path('hello_c_tab/france.png', __dir__)
69
61
 
70
62
  label {
71
63
  text 'Bonjour, Univers!'
@@ -79,12 +71,7 @@ class HelloCTab
79
71
  foreground :blue
80
72
  selection_foreground :dark_blue
81
73
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
82
- image image(30, 30) {
83
- ### building image on the fly with Canvas Shape DSL text shape flag emoji
84
- text('🇪🇸', 0, 0) {
85
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
86
- }
87
- }
74
+ image File.expand_path('hello_c_tab/mexico.png', __dir__)
88
75
 
89
76
  label {
90
77
  text 'Hola, Mundo!'
@@ -98,12 +85,7 @@ class HelloCTab
98
85
  foreground :blue
99
86
  selection_foreground :dark_blue
100
87
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
101
- image image(30, 30) {
102
- # building image on the fly with Canvas Shape DSL text shape flag emoji
103
- text('🇩🇪', 0, 0) {
104
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
105
- }
106
- }
88
+ image File.expand_path('hello_c_tab/germany.png', __dir__)
107
89
 
108
90
  label {
109
91
  text 'Hallo, Welt!'
@@ -117,12 +99,7 @@ class HelloCTab
117
99
  foreground :blue
118
100
  selection_foreground :dark_blue
119
101
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
120
- image image(30, 30) {
121
- # building image on the fly with Canvas Shape DSL text shape flag emoji
122
- text('🇮🇹', 0, 0) {
123
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
124
- }
125
- }
102
+ image File.expand_path('hello_c_tab/italy.png', __dir__)
126
103
 
127
104
  label {
128
105
  text 'Ciao, Mondo!'
@@ -136,12 +113,7 @@ class HelloCTab
136
113
  foreground :blue
137
114
  selection_foreground :dark_blue
138
115
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
139
- image image(30, 30) {
140
- # building image on the fly with Canvas Shape DSL text shape flag emoji
141
- text('🇳🇱', 0, 0) {
142
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
143
- }
144
- }
116
+ image File.expand_path('hello_c_tab/netherlands.png', __dir__)
145
117
 
146
118
  label {
147
119
  text 'Hallo, Wereld!'
@@ -149,37 +121,13 @@ class HelloCTab
149
121
  }
150
122
  }
151
123
 
152
- c_tab_item(:close) {
153
- text 'Portuguese'
154
- tool_tip_text 'Portuguese Greeting'
155
- foreground :blue
156
- selection_foreground :dark_blue
157
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
158
- image image(30, 30) {
159
- # building image on the fly with Canvas Shape DSL text shape flag emoji
160
- text('🇧🇷', 0, 0) {
161
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
162
- }
163
- }
164
-
165
- label {
166
- text 'Olá, Mundo!'
167
- font name: 'Times New Roman', height: 90, style: [:bold, :italic]
168
- }
169
- }
170
-
171
124
  c_tab_item(:close) {
172
125
  text 'Danish'
173
126
  tool_tip_text 'Danish Greeting'
174
127
  foreground :blue
175
128
  selection_foreground :dark_blue
176
129
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
177
- image image(30, 30) {
178
- # building image on the fly with Canvas Shape DSL text shape flag emoji
179
- text('🇩🇰', 0, 0) {
180
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
181
- }
182
- }
130
+ image File.expand_path('hello_c_tab/denmark.png', __dir__)
183
131
 
184
132
  label {
185
133
  text 'Hej, Verden!'
@@ -193,12 +141,7 @@ class HelloCTab
193
141
  foreground :blue
194
142
  selection_foreground :dark_blue
195
143
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
196
- image image(30, 30) {
197
- # building image on the fly with Canvas Shape DSL text shape flag emoji
198
- text('🇫🇮', 0, 0) {
199
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
200
- }
201
- }
144
+ image File.expand_path('hello_c_tab/finland.png', __dir__)
202
145
 
203
146
  label {
204
147
  text 'Hei, Maailma!'
@@ -206,37 +149,13 @@ class HelloCTab
206
149
  }
207
150
  }
208
151
 
209
- c_tab_item(:close) {
210
- text 'Swedish'
211
- tool_tip_text 'Swedish Greeting'
212
- foreground :blue
213
- selection_foreground :dark_blue
214
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
215
- image image(30, 30) {
216
- # building image on the fly with Canvas Shape DSL text shape flag emoji
217
- text('🇸🇪', 0, 0) {
218
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
219
- }
220
- }
221
-
222
- label {
223
- text 'Hej, Världen!'
224
- font name: 'Times New Roman', height: 90, style: [:bold, :italic]
225
- }
226
- }
227
-
228
152
  c_tab_item(:close) {
229
153
  text 'Norwegian'
230
154
  tool_tip_text 'Norwegian Greeting'
231
155
  foreground :blue
232
156
  selection_foreground :dark_blue
233
157
  font name: 'Times New Roman', height: 30, style: [:bold, :italic]
234
- image image(30, 30) {
235
- # building image on the fly with Canvas Shape DSL text shape flag emoji
236
- text('🇳🇴', 0, 0) {
237
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
238
- }
239
- }
158
+ image File.expand_path('hello_c_tab/norway.png', __dir__)
240
159
 
241
160
  label {
242
161
  text 'Hei, Verden!'
@@ -244,27 +163,10 @@ class HelloCTab
244
163
  }
245
164
  }
246
165
 
247
- c_tab_item(:close) {
248
- text 'Russian'
249
- tool_tip_text 'Russian Greeting'
250
- foreground :blue
251
- selection_foreground :dark_blue
252
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
253
- image image(30, 30) {
254
- # building image on the fly with Canvas Shape DSL text shape flag emoji
255
- text('🇷🇺', 0, 0) {
256
- font name: 'Times New Roman', height: 30, style: [:bold, :italic]
257
- }
258
- }
259
-
260
- label {
261
- text 'Привет, мир!'
262
- font name: 'Times New Roman', height: 90, style: [:bold, :italic]
263
- }
264
- }
265
-
266
166
  }
167
+
267
168
  }
169
+
268
170
  }
269
171
  end
270
172
 
Binary file
Binary file
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.19.0.0
4
+ version: 4.19.0.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-03-28 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -17,8 +17,8 @@ dependencies:
17
17
  - !ruby/object:Gem::Version
18
18
  version: 1.3.1
19
19
  name: glimmer
20
- type: :runtime
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
@@ -34,8 +34,8 @@ dependencies:
34
34
  - !ruby/object:Gem::Version
35
35
  version: 2.0.0
36
36
  name: super_module
37
- type: :runtime
38
37
  prerelease: false
38
+ type: :runtime
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - ">="
@@ -54,8 +54,8 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: 2.0.0
56
56
  name: nested_inherited_jruby_include_package
57
- type: :runtime
58
57
  prerelease: false
58
+ type: :runtime
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
61
  - - ">="
@@ -74,8 +74,8 @@ dependencies:
74
74
  - !ruby/object:Gem::Version
75
75
  version: 2.0.0
76
76
  name: puts_debuggerer
77
- type: :runtime
78
77
  prerelease: false
78
+ type: :runtime
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
81
  - - ">="
@@ -94,8 +94,8 @@ dependencies:
94
94
  - !ruby/object:Gem::Version
95
95
  version: 2.0.0
96
96
  name: rake-tui
97
- type: :runtime
98
97
  prerelease: false
98
+ type: :runtime
99
99
  version_requirements: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
@@ -114,8 +114,8 @@ dependencies:
114
114
  - !ruby/object:Gem::Version
115
115
  version: 3.0.0
116
116
  name: logging
117
- type: :runtime
118
117
  prerelease: false
118
+ type: :runtime
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - ">="
@@ -134,8 +134,8 @@ dependencies:
134
134
  - !ruby/object:Gem::Version
135
135
  version: 2.0.0
136
136
  name: os
137
- type: :runtime
138
137
  prerelease: false
138
+ type: :runtime
139
139
  version_requirements: !ruby/object:Gem::Requirement
140
140
  requirements:
141
141
  - - ">="
@@ -151,8 +151,8 @@ dependencies:
151
151
  - !ruby/object:Gem::Version
152
152
  version: 13.0.0
153
153
  name: rake
154
- type: :runtime
155
154
  prerelease: false
155
+ type: :runtime
156
156
  version_requirements: !ruby/object:Gem::Requirement
157
157
  requirements:
158
158
  - - ">="
@@ -168,8 +168,8 @@ dependencies:
168
168
  - !ruby/object:Gem::Version
169
169
  version: 2.0.0
170
170
  name: text-table
171
- type: :runtime
172
171
  prerelease: false
172
+ type: :runtime
173
173
  version_requirements: !ruby/object:Gem::Requirement
174
174
  requirements:
175
175
  - - ">="
@@ -188,8 +188,8 @@ dependencies:
188
188
  - !ruby/object:Gem::Version
189
189
  version: 4.0.0
190
190
  name: rouge
191
- type: :runtime
192
191
  prerelease: false
192
+ type: :runtime
193
193
  version_requirements: !ruby/object:Gem::Requirement
194
194
  requirements:
195
195
  - - ">="
@@ -208,8 +208,8 @@ dependencies:
208
208
  - !ruby/object:Gem::Version
209
209
  version: 2.0.0
210
210
  name: jruby-win32ole
211
- type: :runtime
212
211
  prerelease: false
212
+ type: :runtime
213
213
  version_requirements: !ruby/object:Gem::Requirement
214
214
  requirements:
215
215
  - - ">="
@@ -228,8 +228,8 @@ dependencies:
228
228
  - !ruby/object:Gem::Version
229
229
  version: 3.0.0
230
230
  name: juwelier
231
- type: :development
232
231
  prerelease: false
232
+ type: :development
233
233
  version_requirements: !ruby/object:Gem::Requirement
234
234
  requirements:
235
235
  - - ">="
@@ -248,8 +248,8 @@ dependencies:
248
248
  - !ruby/object:Gem::Version
249
249
  version: 3.0.0
250
250
  name: warbler
251
- type: :development
252
251
  prerelease: false
252
+ type: :development
253
253
  version_requirements: !ruby/object:Gem::Requirement
254
254
  requirements:
255
255
  - - ">="
@@ -265,8 +265,8 @@ dependencies:
265
265
  - !ruby/object:Gem::Version
266
266
  version: '3.0'
267
267
  name: rspec-mocks
268
- type: :development
269
268
  prerelease: false
269
+ type: :development
270
270
  version_requirements: !ruby/object:Gem::Requirement
271
271
  requirements:
272
272
  - - "~>"
@@ -279,8 +279,8 @@ dependencies:
279
279
  - !ruby/object:Gem::Version
280
280
  version: '3.0'
281
281
  name: rspec
282
- type: :development
283
282
  prerelease: false
283
+ type: :development
284
284
  version_requirements: !ruby/object:Gem::Requirement
285
285
  requirements:
286
286
  - - "~>"
@@ -293,8 +293,8 @@ dependencies:
293
293
  - !ruby/object:Gem::Version
294
294
  version: 0.8.23
295
295
  name: coveralls
296
- type: :development
297
296
  prerelease: false
297
+ type: :development
298
298
  version_requirements: !ruby/object:Gem::Requirement
299
299
  requirements:
300
300
  - - '='
@@ -307,8 +307,8 @@ dependencies:
307
307
  - !ruby/object:Gem::Version
308
308
  version: 0.16.1
309
309
  name: simplecov
310
- type: :development
311
310
  prerelease: false
311
+ type: :development
312
312
  version_requirements: !ruby/object:Gem::Requirement
313
313
  requirements:
314
314
  - - "~>"
@@ -321,8 +321,8 @@ dependencies:
321
321
  - !ruby/object:Gem::Version
322
322
  version: 0.7.0
323
323
  name: simplecov-lcov
324
- type: :development
325
324
  prerelease: false
325
+ type: :development
326
326
  version_requirements: !ruby/object:Gem::Requirement
327
327
  requirements:
328
328
  - - "~>"
@@ -528,6 +528,15 @@ files:
528
528
  - samples/hello/hello_button.rb
529
529
  - samples/hello/hello_c_combo.rb
530
530
  - samples/hello/hello_c_tab.rb
531
+ - samples/hello/hello_c_tab/denmark.png
532
+ - samples/hello/hello_c_tab/finland.png
533
+ - samples/hello/hello_c_tab/france.png
534
+ - samples/hello/hello_c_tab/germany.png
535
+ - samples/hello/hello_c_tab/italy.png
536
+ - samples/hello/hello_c_tab/mexico.png
537
+ - samples/hello/hello_c_tab/netherlands.png
538
+ - samples/hello/hello_c_tab/norway.png
539
+ - samples/hello/hello_c_tab/usa.png
531
540
  - samples/hello/hello_canvas.rb
532
541
  - samples/hello/hello_canvas_animation.rb
533
542
  - samples/hello/hello_canvas_animation_data_binding.rb
@@ -604,7 +613,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
604
613
  - !ruby/object:Gem::Version
605
614
  version: '0'
606
615
  requirements: []
607
- rubygems_version: 3.0.6
616
+ rubygems_version: 3.1.6
608
617
  signing_key:
609
618
  specification_version: 4
610
619
  summary: Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)