glimmer-dsl-swt 4.24.0.1 → 4.24.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +49 -10
- data/VERSION +1 -1
- data/docs/reference/GLIMMER_GUI_DSL_SYNTAX.md +697 -40
- data/docs/reference/GLIMMER_SAMPLES.md +2 -22
- data/glimmer-dsl-swt.gemspec +0 -0
- data/lib/glimmer/swt/custom/shape/path_segment.rb +1 -0
- data/samples/hello/hello_canvas_data_binding.rb +695 -38
- metadata +2 -2
@@ -82,7 +82,6 @@
|
|
82
82
|
- [Snake](#snake)
|
83
83
|
- [External Samples](#external-samples)
|
84
84
|
- [Glimmer Calculator](#glimmer-calculator)
|
85
|
-
- [Gladiator](#gladiator)
|
86
85
|
- [Timer](#timer)
|
87
86
|
- [Contact Manager App](#contact-manager-app)
|
88
87
|
- [License](#license)
|
@@ -863,7 +862,7 @@ Hello, Canvas! Colors Changed
|
|
863
862
|
|
864
863
|
Hello, Canvas! Data-Binding (changing a `text` shape `string` via data-binding changes from another thread)
|
865
864
|
|
866
|
-

|
865
|
+

|
867
866
|
|
868
867
|
#### Hello, Canvas Animation!
|
869
868
|
|
@@ -923,9 +922,7 @@ Code:
|
|
923
922
|
|
924
923
|
Hello, Canvas Data Binding!
|
925
924
|
|
926
|
-

|
925
|
+

|
929
926
|
|
930
927
|
#### Hello, Canvas Shape Listeners!
|
931
928
|
|
@@ -1407,23 +1404,6 @@ Snake
|
|
1407
1404
|
|
1408
1405
|
[<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-calculator/master/glimmer-cs-calculator-screenshot.png" />](https://github.com/AndyObtiva/glimmer-cs-calculator)
|
1409
1406
|
|
1410
|
-
#### Gladiator
|
1411
|
-
|
1412
|
-
[<img src='https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-cs-gladiator-logo.png' height=40 /> Gladiator](https://github.com/AndyObtiva/glimmer-cs-gladiator) (short for Glimmer Editor) is a Glimmer sample project under on-going development.
|
1413
|
-
You may check it out to learn how to build a Glimmer Custom Shell gem.
|
1414
|
-
|
1415
|
-
[<img src="https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-gladiator/master/images/glimmer-gladiator.png" />](https://github.com/AndyObtiva/glimmer-cs-gladiator)
|
1416
|
-
|
1417
|
-
Gladiator is a good demonstration of:
|
1418
|
-
- MVP Pattern
|
1419
|
-
- Tree data-binding
|
1420
|
-
- List data-binding
|
1421
|
-
- Text selection data-binding
|
1422
|
-
- Tabs
|
1423
|
-
- Context menus
|
1424
|
-
- Custom Shell
|
1425
|
-
- Custom widget
|
1426
|
-
|
1427
1407
|
#### Timer
|
1428
1408
|
|
1429
1409
|
[<img alt="Glimmer Timer Icon" src="https://raw.githubusercontent.com/AndyObtiva/glimmer-cs-timer/master/images/glimmer-timer-logo.png" height=40 /> Timer](https://github.com/AndyObtiva/glimmer-cs-timer) is a sample app demonstrating data-binding, multi-threading, and JSound (Java Sound) library integration in a desktop application.
|
data/glimmer-dsl-swt.gemspec
CHANGED
Binary file
|
@@ -98,6 +98,7 @@ module Glimmer
|
|
98
98
|
|
99
99
|
def add_to_swt_path(swt_path)
|
100
100
|
the_path_segment_args = path_segment_args.dup
|
101
|
+
the_path_segment_args = the_path_segment_args.first if the_path_segment_args.size == 1 && the_path_segment_args.first.is_a?(Array)
|
101
102
|
if !is_a?(Point) && self.class != Path
|
102
103
|
if !previous_point_connected?
|
103
104
|
if the_path_segment_args.count == default_path_segment_arg_count
|