glimmer 1.0.6 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/LICENSE.txt +1 -1
- data/PROCESS.md +2 -2
- data/README.md +270 -166
- data/VERSION +1 -1
- data/glimmer.gemspec +9 -7
- data/lib/glimmer.rb +18 -6
- data/lib/glimmer/config.rb +6 -6
- data/lib/glimmer/data_binding/model_binding.rb +6 -6
- data/lib/glimmer/data_binding/observable.rb +4 -4
- data/lib/glimmer/data_binding/observable_array.rb +7 -6
- data/lib/glimmer/data_binding/observable_model.rb +8 -7
- data/lib/glimmer/data_binding/observer.rb +7 -3
- data/lib/glimmer/dsl/engine.rb +17 -14
- data/lib/glimmer/dsl/expression.rb +1 -1
- data/lib/glimmer/dsl/expression_handler.rb +4 -4
- data/lib/glimmer/dsl/parent_expression.rb +4 -4
- data/lib/glimmer/dsl/static_expression.rb +6 -6
- data/lib/glimmer/dsl/top_level_expression.rb +4 -4
- data/lib/glimmer/error.rb +4 -4
- data/lib/glimmer/ext/module.rb +11 -0
- data/lib/glimmer/invalid_keyword_error.rb +4 -4
- metadata +28 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3eeec678c8abf8158b8c5e2aae601ac5b948b8afb439f3ce38e9bacfe52b7e6
|
4
|
+
data.tar.gz: c1f3f723b52186e4fbdb887c7ac64a94b169438c0ad76ac2e17799477d69829f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7a486ae6ac0997c1bc766e98971c566073a2db945b53c9a44b6769d8b43c16d9f6d0bb701c771ad9c724b0eb327f9bd9161e7afe0b7127ebf76bb58a1444673
|
7
|
+
data.tar.gz: 4e95589b1c6f396828382274634e7b54650d709b8184e182273373cbc87478350fdec00f22071fd35f94d2695985c939932ee7e103a532c41afadcb554dacd4a
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,29 @@
|
|
3
3
|
Related Change Logs:
|
4
4
|
- [glimmer-dsl-swt/CHANGELOG.md](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/CHANGELOG.md)
|
5
5
|
|
6
|
+
## 1.0.11
|
7
|
+
|
8
|
+
- Alias unregister as deregister everywhere
|
9
|
+
- Optimize performance of `Glimmer::Config.excluded_keyword_checkers` in glimmer method_missing
|
10
|
+
|
11
|
+
## 1.0.10
|
12
|
+
|
13
|
+
- Avoid using concurrent-ruby in Opal
|
14
|
+
|
15
|
+
## 1.0.9
|
16
|
+
|
17
|
+
- Fixed issue with top-level static expressions sometimes not working (e.g. async_exec in DSL for SWT) with DSL detected as nil
|
18
|
+
|
19
|
+
## 1.0.8
|
20
|
+
|
21
|
+
- Concurrent Array/Hash/Set data structures to better support parallel multi-threading
|
22
|
+
- Fix issue with a certain nil static_expression case not handled properly in Glimmer::DSL::Engine
|
23
|
+
|
24
|
+
## 1.0.7
|
25
|
+
|
26
|
+
- Refactor generated `__original_{method_name}` methods in `ObservableModel` to have double-underscore after the word "original" as `__original__{method_name}` to improve clarity that the method is generated via meta-programming of a pre-existing method
|
27
|
+
- Fix issue regarding testing array object observer on a nil object
|
28
|
+
|
6
29
|
## 1.0.6
|
7
30
|
|
8
31
|
- Update ModelBinding to raise an error if called to make a change while configurd as binding_options[:read_only]=true
|
data/LICENSE.txt
CHANGED
data/PROCESS.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Glimmer Process (Beyond Agile)
|
2
2
|
|
3
|
-
**Glimmer Process** is the lightweight software development process used for building [Glimmer](https://github.com/AndyObtiva/glimmer) libraries and [Glimmer](https://github.com/AndyObtiva/glimmer) apps, which goes beyond Agile, rendering all Agile processes obsolete. **Glimmer Process** is simply made up of 7 guidelines to pick and choose as necessary until software development needs are satisfied. Not all guidelines need to be incorporated into every project, but it is still important to think through every one of them before ruling any out. Guidelines can be followed in any order.
|
3
|
+
**Glimmer Process** is the lightweight software development process used for building [Glimmer](https://github.com/AndyObtiva/glimmer) libraries and [Glimmer](https://github.com/AndyObtiva/glimmer) apps, which goes beyond Agile, rendering all Agile processes obsolete. **Glimmer Process** is simply made up of 7 guidelines to pick and choose as necessary until software development needs are satisfied. Not all guidelines need to be incorporated into every project, but it is still important to think through every one of them before ruling any out. Guidelines can be followed in any order.
|
4
4
|
|
5
5
|
## GPG (Glimmer Process Guidelines):
|
6
6
|
1. **Requirements Gathering**: Spend no more than a few hours writing the initial requirements you know from the business owner, gathering missing requirements, and planning to elicit more requirements from users, customers, and stakeholders. Requirements are not set in stone, but serve as a good starting point in understanding what a project is about. After initial release, only document small tasks going forward.
|
@@ -13,7 +13,7 @@
|
|
13
13
|
|
14
14
|
--
|
15
15
|
|
16
|
-
Copyright (c) 2020 Andy Maleh
|
16
|
+
Copyright (c) 2020-2021 Andy Maleh
|
17
17
|
|
18
18
|
Permission is hereby granted, free of charge, to any person obtaining
|
19
19
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 style="position: relative; top: 20px;" />](https://rubygems.org/gems/glimmer) Glimmer 1.0.
|
1
|
+
# [<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer/master/images/glimmer-logo-hi-res.png" height=85 style="position: relative; top: 20px;" />](https://rubygems.org/gems/glimmer) Glimmer 1.0.11 - DSL Framework
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/glimmer.svg)](http://badge.fury.io/rb/glimmer)
|
3
|
-
[![
|
3
|
+
[![rspec](https://github.com/AndyObtiva/glimmer/workflows/rspec/badge.svg)](https://github.com/AndyObtiva/glimmer/actions?query=workflow%3Arspec)
|
4
4
|
[![Coverage Status](https://coveralls.io/repos/github/AndyObtiva/glimmer/badge.svg?branch=master)](https://coveralls.io/github/AndyObtiva/glimmer?branch=master)
|
5
5
|
[![Maintainability](https://api.codeclimate.com/v1/badges/38fbc278022862794414/maintainability)](https://codeclimate.com/github/AndyObtiva/glimmer/maintainability)
|
6
6
|
[![Join the chat at https://gitter.im/AndyObtiva/glimmer](https://badges.gitter.im/AndyObtiva/glimmer.svg)](https://gitter.im/AndyObtiva/glimmer?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
@@ -9,44 +9,45 @@
|
|
9
9
|
|
10
10
|
**(The Original Glimmer Library Since 2007. Beware of Imitators!)**
|
11
11
|
|
12
|
-
[**Glimmer**](https://rubygems.org/gems/glimmer) started out as [GUI Library](https://github.com/AndyObtiva/glimmer-dsl-swt) and grew into a full-fledged [DSL Framework](#
|
12
|
+
[**Glimmer**](https://rubygems.org/gems/glimmer) started out as a [GUI Library](https://github.com/AndyObtiva/glimmer-dsl-swt) and grew into a full-fledged [DSL Framework](#dsl-engine) with support for multiple GUI DSLs. Glimmer's namesake is referring to the Glimmer of Ruby in Graphical User Interfaces (contrary to popular myth perpetrated by [Charles Nutter](http://blog.headius.com/2007/11/tab-sweep.html), Glimmer has nothing to do with the ill-fated Whitney Houston movie, which does not in fact share the same name)
|
13
13
|
|
14
14
|
[<img src="https://covers.oreillystatic.com/images/9780596519650/lrg.jpg" width=105 /><br />
|
15
|
-
Featured in
|
15
|
+
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)
|
16
16
|
|
17
|
-
[**Glimmer**](https://rubygems.org/gems/glimmer) is a DSL Framework that consists of two things:
|
18
|
-
- [DSL Engine](#dsl-engine): enables building DSLs
|
19
|
-
- [Data-Binding
|
17
|
+
[**Glimmer**](https://rubygems.org/gems/glimmer) is a DSL (Domain-Specific Language) Framework that consists of two things:
|
18
|
+
- [DSL Engine](#dsl-engine): enables building internal DSLs embedded in Ruby (e.g. for GUI, XML, or CSS).
|
19
|
+
- [Data-Binding Library](#data-binding-library): enables synchronizing GUI with Model Attributes bidirectionally.
|
20
20
|
|
21
21
|
[**Glimmer**](https://rubygems.org/gems/glimmer) is ***the cream of the crop*** when it comes to building DSLs in Ruby:
|
22
22
|
- Supports building the tersest most concise domain specific language syntax in Ruby.
|
23
|
-
-
|
24
|
-
-
|
23
|
+
- Maximum readability and maintainability.
|
24
|
+
- No extra unnecessary block variables when not needed.
|
25
25
|
- DSL Blocks are true Ruby closures that can conveniently leverage variables from the outside and utilize standard Ruby code in and around. Just code in Ruby as usual and be happy! No surprising restrictions or strange uses of `instance_exec`/`eval`.
|
26
26
|
- DSL syntax is limited to classes that mixin the `Glimmer` module, so the rest of the code is fully safe from namespace pollution.
|
27
|
-
- Multiple DSLs may be mixed together safely to achieve maximum expressability, composability, and productivity
|
28
|
-
- DSLs are fully configurable, so you may activate and deactivate DSLs as per your current needs only
|
27
|
+
- Multiple DSLs may be [mixed](#multi-dsl-support) together safely to achieve maximum expressability, composability, and productivity.
|
28
|
+
- DSLs are fully configurable, so you may activate and deactivate DSLs as per your current needs only.
|
29
29
|
|
30
30
|
[**Glimmer**](https://rubygems.org/gems/glimmer) supports the following DSLs:
|
31
31
|
- [glimmer-dsl-swt](https://github.com/AndyObtiva/glimmer-dsl-swt): Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)
|
32
|
-
- [glimmer-dsl-tk](https://github.com/AndyObtiva/glimmer-dsl-tk): Glimmer DSL for Tk (Ruby Desktop Development GUI Library)
|
33
32
|
- [glimmer-dsl-opal](https://github.com/AndyObtiva/glimmer-dsl-opal): Glimmer DSL for Opal (Pure Ruby Web GUI and Auto-Webifier of Desktop Apps)
|
34
33
|
- [glimmer-dsl-xml](https://github.com/AndyObtiva/glimmer-dsl-xml): Glimmer DSL for XML (& HTML)
|
35
34
|
- [glimmer-dsl-css](https://github.com/AndyObtiva/glimmer-dsl-css): Glimmer DSL for CSS
|
35
|
+
- [glimmer-dsl-tk](https://github.com/AndyObtiva/glimmer-dsl-tk): Glimmer DSL for Tk (MRI Ruby Desktop Development GUI Library)
|
36
36
|
|
37
37
|
[Glimmer and/or Glimmer DSLs receive two updates per month](https://rubygems.org/gems/glimmer-dsl-swt/versions). You can trust [Glimmer](https://rubygems.org/gems/glimmer) with your Ruby development needs.
|
38
38
|
|
39
|
-
## Table of
|
39
|
+
## Table of Contents
|
40
40
|
|
41
|
-
- [Glimmer 1.0.
|
42
|
-
- [
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
41
|
+
- [Glimmer 1.0.11](#-glimmer-1011---dsl-framework)
|
42
|
+
- [Official DSLs](#official-dsls)
|
43
|
+
- [Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)](#glimmer-dsl-for-swt-jruby-desktop-development-gui-framework)
|
44
|
+
- [Glimmer DSL for Opal (Pure Ruby Web GUI and Auto-Webifier of Desktop Apps)](#glimmer-dsl-for-opal-pure-ruby-web-gui-and-auto-webifier-of-desktop-apps)
|
45
|
+
- [Glimmer DSL for XML (& HTML)](#glimmer-dsl-for-xml--html)
|
46
|
+
- [Glimmer DSL for CSS](#glimmer-dsl-for-css)
|
47
|
+
- [Glimmer DSL for Tk (MRI Ruby Desktop Development GUI Library)](#glimmer-dsl-for-tk-mri-ruby-desktop-development-gui-library)
|
47
48
|
- [DSL Engine](#dsl-engine)
|
48
|
-
|
49
|
-
- [
|
49
|
+
- [Multi-DSL Support](#multi-dsl-support)
|
50
|
+
- [Data-Binding Library](#data-binding-library)
|
50
51
|
- [Glimmer Process](#glimmer-process)
|
51
52
|
- [Resources](#resources)
|
52
53
|
- [Help](#help)
|
@@ -58,16 +59,22 @@ Featured in<br />JRuby Cookbook](http://shop.oreilly.com/product/9780596519650.d
|
|
58
59
|
- [Contributors](#contributors)
|
59
60
|
- [Hire Me](#hire-me)
|
60
61
|
- [License](#license)
|
61
|
-
|
62
|
-
## Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)
|
63
62
|
|
64
|
-
|
63
|
+
## Official DSLs
|
64
|
+
|
65
|
+
Here, we showcase official Glimmer DSLs; that is [gems starting with the `glimmer-dsl-` prefix](https://rubygems.org/search?query=glimmer-dsl-).
|
66
|
+
|
67
|
+
(you can skip ahead if you prefer to learn more about the Glimmer [DSL Engine](#dsl-engine) or [Data-Binding Library](#data-binding-library) first)
|
68
|
+
|
69
|
+
### Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)
|
70
|
+
|
71
|
+
[Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) is a native-GUI cross-platform desktop development library written in [JRuby](https://www.jruby.org/), an OS-threaded faster version of [Ruby](https://www.ruby-lang.org/en/). [Glimmer](https://rubygems.org/gems/glimmer)'s main innovation is a declarative [Ruby DSL](https://github.com/AndyObtiva/glimmer-dsl-swt#glimmer-dsl-syntax) that enables productive and efficient authoring of desktop application user-interfaces while relying on the robust [Eclipse SWT library](https://www.eclipse.org/swt/). [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) additionally innovates by having built-in [data-binding](https://github.com/AndyObtiva/glimmer-dsl-swt#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. To get started quickly, [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) offers [scaffolding](https://github.com/AndyObtiva/glimmer-dsl-swt#scaffolding) options for [Apps](https://github.com/AndyObtiva/glimmer-dsl-swt#in-production), [Gems](https://github.com/AndyObtiva/glimmer-dsl-swt#custom-shell-gem), and [Custom Widgets](https://github.com/AndyObtiva/glimmer-dsl-swt#custom-widgets). [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) also includes native-executable [packaging](https://github.com/AndyObtiva/glimmer-dsl-swt#packaging--distribution) 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/) and MSI/EXE files on [Windows](https://www.microsoft.com/en-ca/windows).
|
65
72
|
|
66
73
|
To get started, visit the [Glimmer DSL for SWT project page](https://github.com/AndyObtiva/glimmer-dsl-swt#pre-requisites) for instructions on installing the [glimmer-dsl-swt gem](https://rubygems.org/gems/glimmer-dsl-swt).
|
67
74
|
|
68
|
-
|
75
|
+
#### Glimmer DSL for SWT Samples
|
69
76
|
|
70
|
-
|
77
|
+
##### Hello, World!
|
71
78
|
|
72
79
|
Glimmer GUI code (from [samples/hello/hello_world.rb](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/hello/hello_world.rb)):
|
73
80
|
```ruby
|
@@ -85,7 +92,7 @@ Glimmer app:
|
|
85
92
|
|
86
93
|
![Hello World](images/glimmer-hello-world.png)
|
87
94
|
|
88
|
-
|
95
|
+
##### Tic Tac Toe
|
89
96
|
|
90
97
|
Glimmer GUI code (from [samples/elaborate/tic_tac_toe.rb](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/elaborate/tic_tac_toe.rb)):
|
91
98
|
|
@@ -118,7 +125,7 @@ Glimmer app:
|
|
118
125
|
|
119
126
|
![Tic Tac Toe](images/glimmer-tic-tac-toe-in-progress.png)
|
120
127
|
|
121
|
-
|
128
|
+
##### Contact Manager
|
122
129
|
|
123
130
|
Glimmer GUI code (from [samples/elaborate/contact_manager.rb](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/elaborate/contact_manager.rb)):
|
124
131
|
|
@@ -237,134 +244,17 @@ Glimmer App:
|
|
237
244
|
|
238
245
|
![Contact Manager](images/glimmer-contact-manager.png)
|
239
246
|
|
240
|
-
|
247
|
+
#### Production Desktop Apps Built with Glimmer DSL for SWT
|
241
248
|
|
242
249
|
[<img alt="Are We There Yet Logo" src="https://raw.githubusercontent.com/AndyObtiva/are-we-there-yet/master/are-we-there-yet-logo.svg" width="40" />Are We There Yet?](https://github.com/AndyObtiva/are-we-there-yet) - Small Project Tracking App
|
243
250
|
|
244
|
-
![Are We There Yet? App Screenshot](https://raw.githubusercontent.com/AndyObtiva/are-we-there-yet/master/are-we-there-yet-screenshot-windows.png)
|
251
|
+
[![Are We There Yet? App Screenshot](https://raw.githubusercontent.com/AndyObtiva/are-we-there-yet/master/are-we-there-yet-screenshot-windows.png)](https://github.com/AndyObtiva/are-we-there-yet)
|
245
252
|
|
246
253
|
[<img alt="Math Bowling Logo" src="https://raw.githubusercontent.com/AndyObtiva/MathBowling/master/images/math-bowling-logo.png" width="40" />Math Bowling](https://github.com/AndyObtiva/MathBowling) - Elementary Level Math Game Featuring Bowling Rules
|
247
254
|
|
248
|
-
![Math Bowling App Screenshot](https://raw.githubusercontent.com/AndyObtiva/MathBowling/master/Math-Bowling-Screenshot.png)
|
249
|
-
|
250
|
-
## Glimmer DSL for Tk (Ruby Desktop Development GUI Library)
|
251
|
-
|
252
|
-
[Tcl/Tk](https://www.tcl.tk/) has evolved into a practical desktop GUI toolkit due to gaining truely native looking widgets on Mac, Windows, and Linux in [Tk version 8.5](https://www.tcl.tk/software/tcltk/8.5.html#:~:text=Highlights%20of%20Tk%208.5&text=Font%20rendering%3A%20Now%20uses%20anti,and%20window%20layout%2C%20and%20more.).
|
253
|
-
|
254
|
-
Additionally, [Ruby](https://www.ruby-lang.org/en/) 3.0 Ractor (formerly known as [Guilds](https://olivierlacan.com/posts/concurrency-in-ruby-3-with-guilds/)) supports truly parallel multi-threading, making both [MRI](https://github.com/ruby/ruby) and [Tk](https://www.tcl.tk/) finally viable for support in [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development GUI Library) as an alternative to [JRuby on SWT](https://github.com/AndyObtiva/glimmer-dsl-swt).
|
255
|
-
|
256
|
-
The trade-off is that while [SWT](https://www.eclipse.org/swt/) provides a plethora of high quality reusable widgets for the Enterprise (such as [Nebula](https://www.eclipse.org/nebula/)), [Tk](https://www.tcl.tk/) enables very fast app startup time via [MRI Ruby](https://www.ruby-lang.org/en/).
|
257
|
-
|
258
|
-
[Glimmer DSL for Tk](https://github.com/AndyObtiva/glimmer-dsl-tk) aims to provide a DSL similar to the [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) to enable more productive desktop development in Ruby with:
|
259
|
-
- Declarative DSL syntax that visually maps to the GUI widget hierarchy
|
260
|
-
- Convention over configuration via smart defaults and automation of low-level details
|
261
|
-
- Requiring the least amount of syntax possible to build GUI
|
262
|
-
- Bidirectional Data-Binding to declaratively wire and automatically synchronize GUI with Business Models
|
263
|
-
- Custom Widget support
|
264
|
-
- Scaffolding for new custom widgets, apps, and gems
|
265
|
-
- Native-Executable packaging on Mac, Windows, and Linux
|
266
|
-
|
267
|
-
To get started, visit the [Glimmer DSL for Tk project page](https://github.com/AndyObtiva/glimmer-dsl-tk#pre-requisites) for instructions on installing the [glimmer-dsl-tk gem](https://rubygems.org/gems/glimmer-dsl-tk).
|
268
|
-
|
269
|
-
### Glimmer DSL for Tk Samples
|
270
|
-
|
271
|
-
#### Hello, World!
|
272
|
-
|
273
|
-
Glimmer code (from [samples/hello/hello_world.rb](https://github.com/AndyObtiva/glimmer-dsl-tk/blob/master/samples/hello/hello_world.rb)):
|
274
|
-
|
275
|
-
```ruby
|
276
|
-
include Glimmer
|
277
|
-
|
278
|
-
root {
|
279
|
-
label {
|
280
|
-
text 'Hello, World!'
|
281
|
-
}
|
282
|
-
}.open
|
283
|
-
```
|
284
|
-
|
285
|
-
Run (with the [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed):
|
286
|
-
|
287
|
-
```
|
288
|
-
ruby -r glimmer-dsl-tk -e "require '../samples/hello/hello_world.rb'"
|
289
|
-
```
|
290
|
-
|
291
|
-
Glimmer app:
|
292
|
-
|
293
|
-
![glimmer dsl tk screenshot sample hello world](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-world.png)
|
294
|
-
|
295
|
-
#### Hello, Tab!
|
296
|
-
|
297
|
-
Glimmer code (from [samples/hello/hello_tab.rb](https://github.com/AndyObtiva/glimmer-dsl-tk/blob/master/samples/hello/hello_tab.rb)):
|
255
|
+
[![Math Bowling App Screenshot](https://raw.githubusercontent.com/AndyObtiva/MathBowling/master/Math-Bowling-Screenshot.png)](https://github.com/AndyObtiva/MathBowling)
|
298
256
|
|
299
|
-
|
300
|
-
include Glimmer
|
301
|
-
|
302
|
-
root {
|
303
|
-
title 'Hello, Tab!'
|
304
|
-
|
305
|
-
notebook {
|
306
|
-
frame(text: 'English') {
|
307
|
-
label {
|
308
|
-
text 'Hello, World!'
|
309
|
-
}
|
310
|
-
}
|
311
|
-
|
312
|
-
frame(text: 'French') {
|
313
|
-
label {
|
314
|
-
text 'Bonjour, Univers!'
|
315
|
-
}
|
316
|
-
}
|
317
|
-
}
|
318
|
-
}.open
|
319
|
-
```
|
320
|
-
|
321
|
-
Run (with the [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed):
|
322
|
-
|
323
|
-
```
|
324
|
-
ruby -r glimmer-dsl-tk -e "require '../samples/hello/hello_tab.rb'"
|
325
|
-
```
|
326
|
-
|
327
|
-
Glimmer app:
|
328
|
-
|
329
|
-
![glimmer dsl tk screenshot sample hello tab English](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-tab-english.png)
|
330
|
-
![glimmer dsl tk screenshot sample hello tab French](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-tab-french.png)
|
331
|
-
|
332
|
-
#### Hello, Combo!
|
333
|
-
|
334
|
-
Glimmer code (from [samples/hello/hello_combo.rb](https://github.com/AndyObtiva/glimmer-dsl-tk/blob/master/samples/hello/hello_combo.rb)):
|
335
|
-
|
336
|
-
```ruby
|
337
|
-
# ... more code precedes
|
338
|
-
root {
|
339
|
-
title 'Hello, Combo!'
|
340
|
-
|
341
|
-
combobox { |proxy|
|
342
|
-
state 'readonly'
|
343
|
-
text bind(person, :country)
|
344
|
-
}
|
345
|
-
|
346
|
-
button { |proxy|
|
347
|
-
text "Reset Selection"
|
348
|
-
command {
|
349
|
-
person.reset_country
|
350
|
-
}
|
351
|
-
}
|
352
|
-
}.open
|
353
|
-
# ... more code follows
|
354
|
-
```
|
355
|
-
|
356
|
-
Run (with the [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed):
|
357
|
-
|
358
|
-
```
|
359
|
-
ruby -r glimmer-dsl-tk -e "require '../samples/hello/hello_combo.rb'"
|
360
|
-
```
|
361
|
-
|
362
|
-
Glimmer app:
|
363
|
-
|
364
|
-
![glimmer dsl tk screenshot sample hello combo](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-combo.png)
|
365
|
-
![glimmer dsl tk screenshot sample hello combo dropdown](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-combo-dropdown.png)
|
366
|
-
|
367
|
-
## Glimmer DSL for Opal (Pure Ruby Web GUI and Auto-Webifier of Desktop Apps)
|
257
|
+
### Glimmer DSL for Opal (Pure Ruby Web GUI and Auto-Webifier of Desktop Apps)
|
368
258
|
|
369
259
|
[Glimmer DSL for Opal](https://github.com/AndyObtiva/glimmer-dsl-opal) is an experimental proof-of-concept web GUI adapter for [Glimmer](https://github.com/AndyObtiva/glimmer) desktop apps (i.e. apps built with [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt)). It webifies them via [Rails](https://rubyonrails.org/), allowing Ruby desktop apps to run on the web via [Opal Ruby](https://opalrb.com/) without changing a line of code. Apps may then be custom-styled for the web with standard CSS.
|
370
260
|
|
@@ -372,9 +262,9 @@ Glimmer DSL for Opal webifier successfully reuses the entire [Glimmer](https://g
|
|
372
262
|
|
373
263
|
To get started, visit the [Glimmer DSL for Opal project page](https://github.com/AndyObtiva/glimmer-dsl-opal) for instructions on installing the [glimmer-dsl-opal gem](https://rubygems.org/gems/glimmer-dsl-opal).
|
374
264
|
|
375
|
-
|
265
|
+
#### Glimmer DSL for Opal Samples
|
376
266
|
|
377
|
-
|
267
|
+
##### Hello, Computed!
|
378
268
|
|
379
269
|
Add the following require statement to `app/assets/javascripts/application.rb`
|
380
270
|
|
@@ -493,7 +383,7 @@ You should see "Hello, Computed!"
|
|
493
383
|
|
494
384
|
![Glimmer DSL for Opal Hello Computed](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-opal/master/images/glimmer-dsl-opal-hello-computed.png)
|
495
385
|
|
496
|
-
|
386
|
+
##### Glimmer Calculator
|
497
387
|
|
498
388
|
Add the [glimmer-cs-calculator](https://github.com/AndyObtiva/glimmer-cs-calculator) gem to `Gemfile` (without requiring):
|
499
389
|
|
@@ -573,13 +463,13 @@ You should see "Apple Calculator Theme"
|
|
573
463
|
|
574
464
|
[![Glimmer Calculator Opal Apple Calculator Theme](https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-calculator/master/glimmer-cs-calculator-screenshot-opal-apple.png)](http://glimmer-cs-calculator-server.herokuapp.com/welcomes/apple)
|
575
465
|
|
576
|
-
|
466
|
+
### Glimmer DSL for XML (& HTML)
|
577
467
|
|
578
468
|
[Glimmer DSL for XML](https://github.com/AndyObtiva/glimmer-dsl-xml) provides Ruby syntax for building XML (eXtensible Markup Language) documents.
|
579
469
|
|
580
470
|
Within the context of desktop development, Glimmer DSL for XML is useful in providing XML data for the [SWT Browser widget](https://github.com/AndyObtiva/glimmer/tree/master#browser-widget).
|
581
471
|
|
582
|
-
|
472
|
+
#### XML DSL
|
583
473
|
|
584
474
|
Simply start with `html` keyword and add HTML inside its block using Glimmer DSL syntax.
|
585
475
|
Once done, you may call `to_s`, `to_xml`, or `to_html` to get the formatted HTML output.
|
@@ -611,13 +501,13 @@ Output:
|
|
611
501
|
<html><head><meta name="viewport" content="width=device-width, initial-scale=2.0" /></head><body><h1>Hello, World!</h1></body></html>
|
612
502
|
```
|
613
503
|
|
614
|
-
|
504
|
+
### Glimmer DSL for CSS
|
615
505
|
|
616
506
|
[Glimmer DSL for CSS](https://github.com/AndyObtiva/glimmer-dsl-css) provides Ruby syntax for building CSS (Cascading Style Sheets).
|
617
507
|
|
618
508
|
Within the context of [Glimmer](https://github.com/AndyObtiva/glimmer) app development, Glimmer DSL for CSS is useful in providing CSS for the [SWT Browser widget](https://github.com/AndyObtiva/glimmer/tree/master#browser-widget).
|
619
509
|
|
620
|
-
|
510
|
+
#### CSS DSL
|
621
511
|
|
622
512
|
Simply start with `css` keyword and add stylesheet rule sets inside its block using Glimmer DSL syntax.
|
623
513
|
Once done, you may call `to_s` or `to_css` to get the formatted CSS output.
|
@@ -650,14 +540,131 @@ Output:
|
|
650
540
|
body{font-size:1.1em;background:white}body > h1{background-color:red;font-size:2em}
|
651
541
|
```
|
652
542
|
|
543
|
+
### Glimmer DSL for Tk (MRI Ruby Desktop Development GUI Library)
|
544
|
+
|
545
|
+
[Tcl/Tk](https://www.tcl.tk/) has evolved into a practical desktop GUI toolkit due to gaining truely native looking widgets on Mac, Windows, and Linux in [Tk version 8.5](https://www.tcl.tk/software/tcltk/8.5.html#:~:text=Highlights%20of%20Tk%208.5&text=Font%20rendering%3A%20Now%20uses%20anti,and%20window%20layout%2C%20and%20more.).
|
546
|
+
|
547
|
+
Additionally, [Ruby](https://www.ruby-lang.org/en/) 3.0 Ractor (formerly known as [Guilds](https://olivierlacan.com/posts/concurrency-in-ruby-3-with-guilds/)) supports truly parallel multi-threading, making both [MRI](https://github.com/ruby/ruby) and [Tk](https://www.tcl.tk/) finally viable for support in [Glimmer](https://github.com/AndyObtiva/glimmer) (Ruby Desktop Development GUI Library) as an alternative to [JRuby on SWT](https://github.com/AndyObtiva/glimmer-dsl-swt).
|
548
|
+
|
549
|
+
The trade-off is that while [SWT](https://www.eclipse.org/swt/) provides a plethora of high quality reusable widgets for the Enterprise (such as [Nebula](https://www.eclipse.org/nebula/)), [Tk](https://www.tcl.tk/) enables very fast app startup time and a small memory footprint via [MRI Ruby](https://www.ruby-lang.org/en/).
|
550
|
+
|
551
|
+
[Glimmer DSL for Tk](https://github.com/AndyObtiva/glimmer-dsl-tk) aims to provide a DSL similar to the [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) to enable more productive desktop development in Ruby with:
|
552
|
+
- Declarative DSL syntax that visually maps to the GUI widget hierarchy
|
553
|
+
- Convention over configuration via smart defaults and automation of low-level details
|
554
|
+
- Requiring the least amount of syntax possible to build GUI
|
555
|
+
- Bidirectional Data-Binding to declaratively wire and automatically synchronize GUI with Business Models
|
556
|
+
- Custom Widget support
|
557
|
+
- Scaffolding for new custom widgets, apps, and gems
|
558
|
+
- Native-Executable packaging on Mac, Windows, and Linux
|
559
|
+
|
560
|
+
To get started, visit the [Glimmer DSL for Tk project page](https://github.com/AndyObtiva/glimmer-dsl-tk#pre-requisites) for instructions on installing the [glimmer-dsl-tk gem](https://rubygems.org/gems/glimmer-dsl-tk).
|
561
|
+
|
562
|
+
#### Glimmer DSL for Tk Samples
|
563
|
+
|
564
|
+
##### Hello, World!
|
565
|
+
|
566
|
+
Glimmer code (from [samples/hello/hello_world.rb](https://github.com/AndyObtiva/glimmer-dsl-tk/blob/master/samples/hello/hello_world.rb)):
|
567
|
+
|
568
|
+
```ruby
|
569
|
+
include Glimmer
|
570
|
+
|
571
|
+
root {
|
572
|
+
label {
|
573
|
+
text 'Hello, World!'
|
574
|
+
}
|
575
|
+
}.open
|
576
|
+
```
|
577
|
+
|
578
|
+
Run (with the [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed):
|
579
|
+
|
580
|
+
```
|
581
|
+
ruby -r glimmer-dsl-tk -e "require '../samples/hello/hello_world.rb'"
|
582
|
+
```
|
583
|
+
|
584
|
+
Glimmer app:
|
585
|
+
|
586
|
+
![glimmer dsl tk screenshot sample hello world](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-world.png)
|
587
|
+
|
588
|
+
##### Hello, Tab!
|
589
|
+
|
590
|
+
Glimmer code (from [samples/hello/hello_tab.rb](https://github.com/AndyObtiva/glimmer-dsl-tk/blob/master/samples/hello/hello_tab.rb)):
|
591
|
+
|
592
|
+
```ruby
|
593
|
+
include Glimmer
|
594
|
+
|
595
|
+
root {
|
596
|
+
title 'Hello, Tab!'
|
597
|
+
|
598
|
+
notebook {
|
599
|
+
frame(text: 'English') {
|
600
|
+
label {
|
601
|
+
text 'Hello, World!'
|
602
|
+
}
|
603
|
+
}
|
604
|
+
|
605
|
+
frame(text: 'French') {
|
606
|
+
label {
|
607
|
+
text 'Bonjour, Univers!'
|
608
|
+
}
|
609
|
+
}
|
610
|
+
}
|
611
|
+
}.open
|
612
|
+
```
|
613
|
+
|
614
|
+
Run (with the [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed):
|
615
|
+
|
616
|
+
```
|
617
|
+
ruby -r glimmer-dsl-tk -e "require '../samples/hello/hello_tab.rb'"
|
618
|
+
```
|
619
|
+
|
620
|
+
Glimmer app:
|
621
|
+
|
622
|
+
![glimmer dsl tk screenshot sample hello tab English](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-tab-english.png)
|
623
|
+
![glimmer dsl tk screenshot sample hello tab French](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-tab-french.png)
|
624
|
+
|
625
|
+
##### Hello, Combo!
|
626
|
+
|
627
|
+
Glimmer code (from [samples/hello/hello_combo.rb](https://github.com/AndyObtiva/glimmer-dsl-tk/blob/master/samples/hello/hello_combo.rb)):
|
628
|
+
|
629
|
+
```ruby
|
630
|
+
# ... more code precedes
|
631
|
+
root {
|
632
|
+
title 'Hello, Combo!'
|
633
|
+
|
634
|
+
combobox { |proxy|
|
635
|
+
state 'readonly'
|
636
|
+
text bind(person, :country)
|
637
|
+
}
|
638
|
+
|
639
|
+
button { |proxy|
|
640
|
+
text "Reset Selection"
|
641
|
+
command {
|
642
|
+
person.reset_country
|
643
|
+
}
|
644
|
+
}
|
645
|
+
}.open
|
646
|
+
# ... more code follows
|
647
|
+
```
|
648
|
+
|
649
|
+
Run (with the [glimmer-dsl-tk](https://rubygems.org/gems/glimmer-dsl-tk) gem installed):
|
650
|
+
|
651
|
+
```
|
652
|
+
ruby -r glimmer-dsl-tk -e "require '../samples/hello/hello_combo.rb'"
|
653
|
+
```
|
654
|
+
|
655
|
+
Glimmer app:
|
656
|
+
|
657
|
+
![glimmer dsl tk screenshot sample hello combo](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-combo.png)
|
658
|
+
![glimmer dsl tk screenshot sample hello combo dropdown](https://raw.githubusercontent.com/AndyObtiva/glimmer-dsl-tk/master/images/glimmer-dsl-tk-screenshot-sample-hello-combo-dropdown.png)
|
659
|
+
|
653
660
|
## DSL Engine
|
654
661
|
|
655
662
|
Glimmer is fundamentally a DSL Engine that can support any number of DSLs like the official Glimmer DSLs (gems starting with the `glimmer-dsl-` prefix like `glimmer-dsl-swt`) or any DSLs for that matter.
|
656
663
|
|
657
664
|
Glimmer DSL syntax consists mainly of:
|
658
|
-
- keywords (e.g. `table` for a table widget)
|
659
|
-
- style/args (e.g. :multi as in `table(:multi)` for a multi-line selection table widget)
|
660
|
-
- content (e.g. `{ table_column { text 'Name'} }` as in `table(:multi) { table_column { text '
|
665
|
+
- **keywords** (e.g. `table` for a table widget)
|
666
|
+
- **style/args** (e.g. :multi as in `table(:multi)` for a multi-line selection table widget)
|
667
|
+
- **content** (e.g. `{ table_column { text 'Name'} }` as in `table(:multi) { table_column { text 'Name'} }` for a multi-line selection table widget with a table column having header text property `'Name'` as content)
|
661
668
|
|
662
669
|
The Glimmer DSL Engine's architecture is based on the following Design Patterns and Data Structures:
|
663
670
|
- **Interpreter Design Pattern**: to define interpretable expressions of DSL keywords
|
@@ -665,7 +672,7 @@ The Glimmer DSL Engine's architecture is based on the following Design Patterns
|
|
665
672
|
- **Adapter Design Pattern**: to adapt expressions into handlers in a chain of responsibility
|
666
673
|
- **Stack Data Structure**: to handle processing parent/child nesting of DSL keyword expressions in the correct order
|
667
674
|
|
668
|
-
Glimmer's use of the **Interpreter Design Pattern** in processing DSLs is also known as the **Virtual Machine Architectural Style**. After all, DSL expressions are virtual machine opcodes that process nested keywords stored in a stack. I built Glimmer's original DSL back in 2007 without knowing the **Virtual Machine Architectural Style
|
675
|
+
Glimmer's use of the **Interpreter Design Pattern** in processing DSLs is also known as the **Virtual Machine Architectural Style**. After all, DSL expressions are virtual machine opcodes that process nested keywords stored in a stack. I built Glimmer's original DSL back in 2007 without knowing the **Virtual Machine Architectural Style** (except perhaps as an esoteric technology powering Java), but stumbled upon it anyways through following the Gang of Four Design Patterns mentioned above, chiefly the **Interpreter Design Pattern**.
|
669
676
|
|
670
677
|
Every keyword in a Glimmer DSL is represented by a DSL expression that is processed by an `Expression` subclass selected from a chain of expressions (interpreters) pre-configured in a DSL chain of responsibility via `Glimmer::DSL::Engine.add_dynamic_expressions(DSLNameModule, expression_names_array)`.
|
671
678
|
|
@@ -690,6 +697,56 @@ Every `Expression` sublcass must specify two methods at least:
|
|
690
697
|
|
691
698
|
For example, some parent widgets use their block for other reasons or process their children at very specific times, so they may override that method and disable it, or otherwise call `super` and do additional work.
|
692
699
|
|
700
|
+
Example of a dynamic expression:
|
701
|
+
|
702
|
+
```ruby
|
703
|
+
module Glimmer
|
704
|
+
module DSL
|
705
|
+
module SWT
|
706
|
+
class WidgetExpression < Expression
|
707
|
+
include ParentExpression
|
708
|
+
|
709
|
+
EXCLUDED_KEYWORDS = %w[shell display tab_item]
|
710
|
+
|
711
|
+
def can_interpret?(parent, keyword, *args, &block)
|
712
|
+
!EXCLUDED_KEYWORDS.include?(keyword) and
|
713
|
+
parent.respond_to?(:swt_widget) and
|
714
|
+
Glimmer::SWT::WidgetProxy.widget_exists?(keyword)
|
715
|
+
end
|
716
|
+
|
717
|
+
def interpret(parent, keyword, *args, &block)
|
718
|
+
Glimmer::SWT::WidgetProxy.create(keyword, parent, args)
|
719
|
+
end
|
720
|
+
|
721
|
+
def add_content(parent, &block)
|
722
|
+
super
|
723
|
+
parent.post_add_content
|
724
|
+
end
|
725
|
+
|
726
|
+
end
|
727
|
+
end
|
728
|
+
end
|
729
|
+
end
|
730
|
+
```
|
731
|
+
|
732
|
+
Example of a static expression (does not need `can_interpret?`):
|
733
|
+
|
734
|
+
```ruby
|
735
|
+
module Glimmer
|
736
|
+
module DSL
|
737
|
+
module Opal
|
738
|
+
class ColorExpression < StaticExpression
|
739
|
+
include TopLevelExpression
|
740
|
+
|
741
|
+
def interpret(parent, keyword, *args, &block)
|
742
|
+
Glimmer::SWT::ColorProxy.new(*args)
|
743
|
+
end
|
744
|
+
end
|
745
|
+
end
|
746
|
+
end
|
747
|
+
end
|
748
|
+
```
|
749
|
+
|
693
750
|
DSL expressions go into the `glimmer/dsl/{dsl_name}` namespace directory.
|
694
751
|
|
695
752
|
Also, every DSL requires a `glimmer/dsl/{dsl_name}/dsl.rb` file, which configures the DSL into Glimmer via a call to:
|
@@ -742,11 +799,58 @@ In summary, these are the files needed to author a Glimmer DSL:
|
|
742
799
|
|
743
800
|
### Multi-DSL Support
|
744
801
|
|
745
|
-
The Glimmer [DSL Engine](#dsl-engine) allows mixing DSLs, which comes in handy when doing things like
|
802
|
+
The Glimmer [DSL Engine](#dsl-engine) allows mixing DSLs, which comes in handy when doing things like rendering a desktop GUI DSL `browser` widget additionally leveraging the HTML DSL and CSS DSL for its content.
|
803
|
+
|
804
|
+
DSLs are activated by top-level keywords (expressions denoted as `TopLevelExpression`). For example, the `html` keyword activates the [Glimmer DSL for XML](https://github.com/AndyObtiva/glimmer-dsl-xml) and the `css` keyword activates the [Glimmer DSL for CSS](https://github.com/AndyObtiva/glimmer-dsl-css). Glimmer automatically recognizes top-level keywords in each DSL and activates the DSL accordingly. Once done processing a nested DSL top-level keyword, Glimmer switches back to the prior DSL automatically.
|
805
|
+
|
806
|
+
By default, all loaded DSLs (required glimmer DSL gems) are enabled.
|
807
|
+
|
808
|
+
For example, this shows "Hello, World!" inside a [Glimmer DSL for SWT](https://github.com/AndyObtiva/glimmer-dsl-swt) desktop app `browser` widget using `html` and `css` from [Glimmer DSL for XML](https://github.com/AndyObtiva/glimmer-dsl-xml) and [Glimmer DSL for CSS](https://github.com/AndyObtiva/glimmer-dsl-css):
|
809
|
+
|
810
|
+
```ruby
|
811
|
+
require 'glimmer-dsl-swt'
|
812
|
+
require 'glimmer-dsl-xml'
|
813
|
+
require 'glimmer-dsl-css'
|
814
|
+
|
815
|
+
include Glimmer
|
816
|
+
|
817
|
+
shell {
|
818
|
+
minimum_size 130, 130
|
819
|
+
@browser = browser {
|
820
|
+
text html {
|
821
|
+
head {
|
822
|
+
meta(name: "viewport", content: "width=device-width, initial-scale=2.0")
|
823
|
+
style {
|
824
|
+
css {
|
825
|
+
h1 {
|
826
|
+
background 'yellow'
|
827
|
+
}
|
828
|
+
}
|
829
|
+
}
|
830
|
+
}
|
831
|
+
body {
|
832
|
+
h1 { "Hello, World!" }
|
833
|
+
}
|
834
|
+
}
|
835
|
+
}
|
836
|
+
}.open
|
837
|
+
```
|
838
|
+
|
839
|
+
**API methods to enable/disable DSLs:**
|
840
|
+
|
841
|
+
`Glimmer::DSL::Engine.disable_dsl(dsl)`: disables a particular DSL
|
842
|
+
|
843
|
+
Example: `Glimmer::DSL::Engine.disable_dsl(:swt)`
|
746
844
|
|
747
|
-
|
845
|
+
`Glimmer::DSL::Engine.enable_dsl(dsl)`: enables a particular DSL
|
748
846
|
|
749
|
-
|
847
|
+
Example: `Glimmer::DSL::Engine.disable_dsl(:swt)`
|
848
|
+
|
849
|
+
`Glimmer::DSL::Engine.enabled_dsls=(dsls)`: enables only the specified DSLs, disabling all other loaded DSLs
|
850
|
+
|
851
|
+
Example: `Glimmer::DSL::Engine.enabled_dsls = [:xml, :css]`
|
852
|
+
|
853
|
+
## Data-Binding Library
|
750
854
|
|
751
855
|
Data-Binding enables binding GUI properties (like text and color) to Model attributes (like name and age).
|
752
856
|
|
@@ -810,8 +914,8 @@ If you would like to contribute to Glimmer, please study up on Glimmer and [SWT]
|
|
810
914
|
|
811
915
|
You may apply for contributing to any of these Glimmer DSL gems whether you prefer to focus on the desktop or web:
|
812
916
|
- [glimmer-dsl-swt](https://github.com/AndyObtiva/glimmer-dsl-swt): Glimmer DSL for SWT (JRuby Desktop Development GUI Framework)
|
813
|
-
- [glimmer-dsl-tk](https://github.com/AndyObtiva/glimmer-dsl-tk): Glimmer DSL for Tk (Ruby Desktop Development GUI Library)
|
814
|
-
- [glimmer-dsl-opal](https://github.com/AndyObtiva/glimmer-dsl-opal): Glimmer DSL for Opal (Web GUI
|
917
|
+
- [glimmer-dsl-tk](https://github.com/AndyObtiva/glimmer-dsl-tk): Glimmer DSL for Tk (MRI Ruby Desktop Development GUI Library)
|
918
|
+
- [glimmer-dsl-opal](https://github.com/AndyObtiva/glimmer-dsl-opal): Glimmer DSL for Opal (Pure Ruby Web GUI and Auto-Webifier of Desktop Apps)
|
815
919
|
- [glimmer-dsl-xml](https://github.com/AndyObtiva/glimmer-dsl-xml): Glimmer DSL for XML (& HTML)
|
816
920
|
- [glimmer-dsl-css](https://github.com/AndyObtiva/glimmer-dsl-css): Glimmer DSL for CSS
|
817
921
|
|
@@ -832,7 +936,7 @@ If your company would like to invest fulltime in further development of the Glim
|
|
832
936
|
|
833
937
|
[MIT](LICENSE.txt)
|
834
938
|
|
835
|
-
Copyright (c) 2007-
|
939
|
+
Copyright (c) 2007-2021 - Andy Maleh.
|
836
940
|
|
837
941
|
--
|
838
942
|
|