glimmer-dsl-opal 0.9.2 → 0.10.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +211 -102
  4. data/VERSION +1 -1
  5. data/lib/display.rb +1 -1
  6. data/lib/glimmer-dsl-opal.rb +4 -3
  7. data/lib/glimmer-dsl-opal/ext/file.rb +1 -1
  8. data/lib/glimmer-dsl-opal/ext/glimmer/dsl/engine.rb +7 -3
  9. data/lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact_repository.rb +4 -4
  10. data/lib/glimmer-dsl-opal/samples/elaborate/tic_tac_toe.rb +1 -1
  11. data/lib/glimmer-dsl-opal/samples/hello/hello_browser.rb +1 -1
  12. data/lib/glimmer-dsl-opal/samples/hello/hello_button.rb +1 -1
  13. data/lib/glimmer-dsl-opal/samples/hello/hello_checkbox.rb +1 -1
  14. data/lib/glimmer-dsl-opal/samples/hello/hello_checkbox_group.rb +1 -1
  15. data/lib/glimmer-dsl-opal/samples/hello/hello_combo.rb +1 -1
  16. data/lib/glimmer-dsl-opal/samples/hello/hello_computed.rb +1 -1
  17. data/lib/glimmer-dsl-opal/samples/hello/hello_computed/contact.rb +1 -1
  18. data/lib/glimmer-dsl-opal/samples/hello/hello_custom_shell.rb +1 -1
  19. data/lib/glimmer-dsl-opal/samples/hello/hello_custom_widget.rb +1 -1
  20. data/lib/glimmer-dsl-opal/samples/hello/hello_date_time.rb +1 -1
  21. data/lib/glimmer-dsl-opal/samples/hello/hello_dialog.rb +78 -0
  22. data/lib/glimmer-dsl-opal/samples/hello/hello_group.rb +1 -1
  23. data/lib/glimmer-dsl-opal/samples/hello/hello_list_multi_selection.rb +1 -1
  24. data/lib/glimmer-dsl-opal/samples/hello/hello_list_single_selection.rb +1 -1
  25. data/lib/glimmer-dsl-opal/samples/hello/hello_menu_bar.rb +1 -1
  26. data/lib/glimmer-dsl-opal/samples/hello/hello_message_box.rb +1 -1
  27. data/lib/glimmer-dsl-opal/samples/hello/hello_pop_up_context_menu.rb +1 -1
  28. data/lib/glimmer-dsl-opal/samples/hello/hello_radio.rb +1 -1
  29. data/lib/glimmer-dsl-opal/samples/hello/hello_radio_group.rb +1 -1
  30. data/lib/glimmer-dsl-opal/samples/hello/hello_tab.rb +1 -1
  31. data/lib/glimmer-dsl-opal/samples/hello/hello_table.rb +1 -1
  32. data/lib/glimmer-dsl-opal/samples/hello/hello_world.rb +1 -1
  33. data/lib/glimmer-dsl-swt.rb +1 -1
  34. data/lib/glimmer/dsl/opal/async_exec_expression.rb +1 -1
  35. data/lib/glimmer/dsl/opal/block_property_expression.rb +1 -1
  36. data/lib/glimmer/dsl/opal/checkbox_group_selection_data_binding_expression.rb +1 -1
  37. data/lib/glimmer/dsl/opal/color_expression.rb +1 -1
  38. data/lib/glimmer/dsl/opal/custom_widget_expression.rb +2 -2
  39. data/lib/glimmer/dsl/opal/dialog_expression.rb +20 -0
  40. data/lib/glimmer/dsl/opal/display_expression.rb +1 -1
  41. data/lib/glimmer/dsl/opal/dsl.rb +3 -1
  42. data/lib/glimmer/dsl/opal/exec_expression.rb +1 -1
  43. data/lib/glimmer/dsl/opal/font_expression.rb +1 -1
  44. data/lib/glimmer/dsl/opal/menu_bar_expression.rb +1 -1
  45. data/lib/glimmer/dsl/opal/menu_expression.rb +1 -1
  46. data/lib/glimmer/dsl/opal/message_box_expression.rb +1 -1
  47. data/lib/glimmer/dsl/opal/radio_group_selection_data_binding_expression.rb +1 -1
  48. data/lib/glimmer/dsl/opal/rgb_expression.rb +1 -1
  49. data/lib/glimmer/dsl/opal/rgba_expression.rb +1 -1
  50. data/lib/glimmer/dsl/opal/shape_expression.rb +26 -0
  51. data/lib/glimmer/dsl/opal/swt_expression.rb +4 -4
  52. data/lib/glimmer/dsl/opal/sync_exec_expression.rb +1 -1
  53. data/lib/glimmer/swt.rb +1 -1
  54. data/lib/glimmer/swt/color_proxy.rb +1 -1
  55. data/lib/glimmer/swt/composite_proxy.rb +18 -2
  56. data/lib/glimmer/swt/control_editor.rb +1 -1
  57. data/lib/glimmer/swt/custom/checkbox_group.rb +1 -1
  58. data/lib/glimmer/swt/custom/radio_group.rb +1 -1
  59. data/lib/glimmer/swt/dialog_proxy.rb +188 -0
  60. data/lib/glimmer/swt/display_proxy.rb +131 -9
  61. data/lib/glimmer/swt/font_proxy.rb +1 -1
  62. data/lib/glimmer/swt/grid_layout_proxy.rb +28 -33
  63. data/lib/glimmer/swt/label_proxy.rb +1 -1
  64. data/lib/{glimmer-dsl-opal/ext/struct.rb → glimmer/swt/latest_dialog_proxy.rb} +19 -12
  65. data/lib/glimmer/swt/latest_message_box_proxy.rb +4 -2
  66. data/lib/glimmer/swt/latest_shell_proxy.rb +23 -6
  67. data/lib/glimmer/swt/layout_data_proxy.rb +4 -0
  68. data/lib/glimmer/swt/layout_proxy.rb +9 -6
  69. data/lib/glimmer/swt/make_shift_shell_proxy.rb +1 -1
  70. data/lib/glimmer/swt/menu_item_proxy.rb +1 -1
  71. data/lib/glimmer/swt/menu_proxy.rb +3 -3
  72. data/lib/glimmer/swt/message_box_proxy.rb +22 -16
  73. data/lib/glimmer/swt/row_layout_proxy.rb +34 -7
  74. data/lib/glimmer/swt/shell_proxy.rb +43 -9
  75. data/lib/glimmer/swt/style_constantizable.rb +1 -1
  76. data/lib/glimmer/swt/swt_proxy.rb +1 -1
  77. data/lib/glimmer/swt/tab_folder_proxy.rb +1 -1
  78. data/lib/glimmer/swt/table_editor.rb +1 -1
  79. data/lib/glimmer/swt/table_item_proxy.rb +1 -1
  80. data/lib/glimmer/swt/table_proxy.rb +1 -1
  81. data/lib/glimmer/swt/widget_proxy.rb +50 -17
  82. data/lib/glimmer/ui/custom_shell.rb +16 -2
  83. data/lib/glimmer/ui/custom_widget.rb +1 -1
  84. data/lib/glimmer/util/proc_tracker.rb +17 -6
  85. data/lib/net/http.rb +10 -3
  86. data/lib/os.rb +1 -1
  87. metadata +31 -9
  88. data/CHANGELOG.md +0 -199
@@ -1,199 +0,0 @@
1
- # Change Log
2
-
3
- ## 0.9.2
4
-
5
- - Fixed issue with opening message_box after internalizing the Document.ready? block
6
- - Fixed issue with replacing newlines with HTML newlines in `label` and `message_box` text
7
-
8
- ## 0.9.1
9
-
10
- - Log errors to error stream ($stderr) instead of standard out (STDOUT)
11
- - Fixed issue with opening shell caused by internalizing the Document.ready? block
12
-
13
- ## 0.9.0
14
-
15
- - Support `menu_bar`
16
- - Hello, Menu Bar! Sample
17
- - Remove the need to call Document.ready? before opening a Glimmer shell
18
- - Support opening a message_box before creating a shell
19
-
20
- ## 0.8.0
21
-
22
- - Hello, Pop Up Context Menu! Sample
23
- - Hello Message Box!
24
- - Update hello list samples
25
- - Support context menus `menu`/`menu_item` directly under a widget (using jQuery UI)
26
- - Support generating new lines when entering `label` `text` with \n (auto-converting to <br />)
27
- - Support generating new lines when entering `message_box` `message` with \n (auto-converting to <br />)
28
- - Support having any widget contribute static CSS to ShellProxy
29
- - Add Kernel#include_package shim to allow running JRuby include_package from Glimmer DSL for SWT without failing
30
- - Add WidgetProxy#swt_widget to allow running include_package from Glimmer DSL for SWT without failing
31
-
32
- ## 0.7.5
33
-
34
- - Update login sample from Glimmer DSL for SWT's latest changes
35
- - Update contact_manager sample from Glimmer DSL for SWT's latest changes
36
- - Fixed issue regarding unavailable localStorage data when accessed by custom_widget_expression in hello_checkbox_group, hello_radio_group, and hello_custom_widget
37
-
38
- ## 0.7.4
39
-
40
- - Hello, Button! Sample
41
- - Fix issue with aligning label as :left, :center, or :right via style style when fill_layout is used
42
- - Fix Hello, Browser sample by accessing https ssl website
43
- - Fix issue with filling space horizontally when using grid layout
44
- - Fix broken embedded `calendar` widget data-binding for hello_date_time.rb sample
45
- - Fix broken message_box after opening multiple shells
46
- - Fix issue with opening custom shells in new tabs/windows when CustomShell subclass is required conditionally
47
-
48
- ## 0.7.3
49
-
50
- - Refactor to use to_collection gem
51
- - Fix issue with breaking `date`/`date_drop_down` data-binding as table editor on focus lost
52
- - Fix issue with requiring OS, File, and Display class after they've been extracted out
53
-
54
- ## 0.7.2
55
-
56
- - `date_drop_down` `table_column` `editor`
57
- - `date` `table_column` `editor`
58
- - `time` `table_column` `editor`
59
- - Implement `on_focus_gained`, `on_focus_lost` universally on all widgets
60
- - Add support for Struct keyword_init to Opal
61
- - Fix issue with hello_table button/combo not being centered (yet stretched)
62
- - Fix issue with table item selection for booking not working after editing has been added
63
- - Fix escape keyboard event handling for combo table editor
64
-
65
- ## 0.7.1
66
-
67
- - Combo table editor (enabled in Hello, Table! sample)
68
- - Fix issue with table cell selection for editing not working
69
- - Remove widget from parent upon dispose
70
- - Remove listeners upon widget dispose
71
-
72
- ## 0.7.0
73
-
74
- - Hello, Table! Sample
75
- - `table` :editable style to enable auto-editing
76
- - `table` `header_visible` property to hide header when false
77
- - `table` `item_count` property to set minimum item count (fill empty rows when below in table items)
78
- - `table` selection data-binding
79
- - `table` built-in sorting support
80
- - `table_column` left text alignment and padding of 5px by default
81
- - `table` sort property and direction in GUI
82
- - `table_column` sort_property
83
- - `table_column` sort_by block
84
- - `table_column` sort block
85
- - `table` default sort via property, compare block, and property block
86
- - `table` additional sort properties
87
- - Prevent `table` unnecessary updates by comparing data to previous data and not updating when it's the same
88
- - Contact Manager sample support for on_key_pressed in text widgets upon hitting ENTER
89
- - Fix issue with edit table item error on sorting table
90
-
91
- ## 0.6.1
92
-
93
- - Fix issue with rendering date_time without a block
94
- - Made listener event handling async to improve performance when triggering multiple events
95
- - Brought Tic Tac Toe sample up-to-date with changes in Glimmer DSL for SWT
96
- - Fixed silent error encountered in rendering custom widgets
97
-
98
- ## 0.6.0
99
-
100
- - Hello, Date Time! Sample
101
- - Support `date_time`, `date`, `date_drop_down`, `time`, `calendar` keywords
102
- - Format Date/Time correctly as per SWT implementation by default
103
- - Make glimmer-dsl-opal gem into a Rails engine to support importing default static assets like CSS styles and images
104
- - Show drop down icon next to `date_drop_down` and `time`
105
-
106
- ## 0.5.1
107
-
108
- - Fixed issue with Hello, Combo!, Hello, List...! samples
109
-
110
- ## 0.5.0
111
-
112
- - Add `margin_top`, `margin_right`, `margin_bottom`, and `margin_left` to RowLayoutProxy
113
- - `radio`
114
- - Hello, Radio! Sample
115
- - `radio_group`
116
- - Hello, Radio Group! Sample
117
- - `checkbox`
118
- - Hello, Checkbox! Sample
119
- - `checkbox_group`
120
- - Fix issue with `label` `alignment` property
121
- - Fix issues with default `composite` `grid_layout` not getting its styles removed when setting `row_layout`
122
- - `button(:radio)` alias for `radio`
123
- - `check` alias for `checkbox`
124
- - `button(:check)` alias for `checkbox`
125
- - Hello, Group! Sample
126
- - Group widget
127
-
128
- ## 0.4.0
129
-
130
- - Support `display` keyword representing an SWT Display
131
- - Support display `on_swt_keydown` event listener (display-wide widget observer)
132
- - Support `DisplayProxy#shells` method keeping track of open shell
133
- - Make a custom shell open in the same window if there is no shell open already
134
- - Support `sync_exec` keyword as just an alias to `async_exec`
135
- - Provide a makeshift require for 'glimmer-dsl-swt' that requires 'glimmer-dsl-opal' instead
136
- - Fake APIs on the web for OS.os?, File.read, Display.setAppName, Display.setAppVersion
137
- - Provide a minimal URI class that supports URI::encode_www_form_component and URI::decode_www_form_component from Ruby
138
-
139
- ## 0.3.0
140
-
141
- - Support opening a custom shell in a browser tab/window by passing in query parameters to URL (e.g. ?custom_shell=keyword+option1=value1 etc...)
142
- - Make custom shells automatically open in a new tab/window (while standard shells continue to open in the same window by replacing its content)
143
- - Hello, Custom Shell! Sample
144
-
145
- ## 0.2.0
146
-
147
- - Color support
148
- - Font support
149
- - Custom Widget Support
150
- - Hello, Custom Widget! sample
151
- - Updated Hello, Combo! sample to match the latest changes in Glimmer DSL for SWT
152
- - `SWT` full re-implementation in Opal as `Glimmer::SWT` with all the `SWT` style constants
153
-
154
- ## 0.1.0
155
-
156
- - Code redesign to better match the glimmer-dsl-swt APIs
157
- - opal-jquery refactoring
158
- - opal-rspec test coverage
159
-
160
- ## 0.0.9
161
-
162
- - Upgraded to glimmer gem v0.9.3
163
- - Fixed issue with missing Glimmer::Opal::ElementProxy#id=(value) method breaking Contact Manager sample Find feature
164
-
165
- ## 0.0.8
166
-
167
- - Contact Manager sample support
168
-
169
- ## 0.0.7
170
-
171
- - Tic Tac Toe sample support
172
- - Login sample support
173
-
174
- ## 0.0.6
175
-
176
- - Hello, Tab! sample support
177
-
178
- ## 0.0.5
179
-
180
- - Hello, Browser! sample support
181
-
182
- ## 0.0.4
183
-
184
- - Hello, List Single Selection! sample support
185
- - Hello, List Multi Selection! sample support
186
-
187
- ## 0.0.3
188
-
189
- - Hello, Computed! sample support
190
-
191
- ## 0.0.2
192
-
193
- - Hello, Combo! sample support
194
-
195
- ## 0.0.1
196
-
197
- - Initial support for webifying Glimmer SWT apps
198
- - Support for Shell and Label widgets (text property only).
199
- - Hello, World! sample support