Skip to content

Commit

Permalink
Added screenshots for new Hello samples
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyObtiva committed Oct 28, 2020
1 parent e73f908 commit 1fac84b
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 9 deletions.
36 changes: 36 additions & 0 deletions README.md
Expand Up @@ -3645,6 +3645,42 @@ Hello, Expand Bar! Reading Expanded

![Hello Expand Bar Reading Expanded](images/glimmer-hello-expand-bar-reading-expanded.png)

#### Hello, Radio!

This sample demonstrates the use of a `radio` (aka `button(:radio)`) in Glimmer.

Code:

[samples/hello/hello_radio.rb](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/hello/hello_radio.rb)

Hello, Radio!

![Hello Radio](images/glimmer-hello-radio.png)

#### Hello, Radio Group!

This sample demonstrates the use of a `radio_group` in Glimmer, which is a terser way of representing multiple radio buttons by relying on data-binding to automatically spawn the `radio` widgets basic on available options on the model.

Code:

[samples/hello/hello_radio_group.rb](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/hello/hello_radio_group.rb)

Hello, Radio Group!

![Hello Radio Group](images/glimmer-hello-radio-group.png)

#### Hello, Checkbox!

This sample demonstrates the use of a `checkbox` (aka `check` or `button(:check)`) in Glimmer.

Code:

[samples/hello/hello_checkbox.rb](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/hello/hello_checkbox.rb)

Hello, Checkbox!

![Hello Checkbox](images/glimmer-hello-checkbox.png)

### Elaborate Samples

For more elaborate samples, check the following:
Expand Down
7 changes: 3 additions & 4 deletions TODO.md
Expand Up @@ -4,10 +4,9 @@ Here is a list of tasks to do (moved to [CHANGELOG.md](CHANGELOG.md) once done).

## Next

- `radio` `text` property data-binding that spawns multiple radio widgets if the model property had a matching property_options (just like combo and list selection data-binding)
- `checkbox` `text` property data-binding that spawns multiple checkbox widgets if the model property had a matching property_options (just like list multi selection data-binding)
- Document Hello, Radio! Sample and radio data-binding
- Document Hello, Checkbox! Sample and checkbox data-binding
- Fix minor visual issues with Glimmer Meta-Sample on Linux
- `checkbox_group` built-in custom widget
- Hello, Checkbox Group! Sample

## Soon

Expand Down
15 changes: 10 additions & 5 deletions glimmer-dsl-swt.gemspec
Expand Up @@ -2,16 +2,16 @@
# DO NOT EDIT THIS FILE DIRECTLY
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
# -*- encoding: utf-8 -*-
# stub: glimmer-dsl-swt 4.17.5.0 ruby lib
# stub: glimmer-dsl-swt 4.17.6.0 ruby lib

Gem::Specification.new do |s|
s.name = "glimmer-dsl-swt".freeze
s.version = "4.17.5.0"
s.version = "4.17.6.0"

s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
s.require_paths = ["lib".freeze]
s.authors = ["AndyMaleh".freeze]
s.date = "2020-10-24"
s.date = "2020-10-28"
s.description = "Glimmer DSL for SWT (JRuby Desktop Development GUI Library)".freeze
s.email = "andy.am@gmail.com".freeze
s.executables = ["glimmer".freeze, "girb".freeze]
Expand Down Expand Up @@ -67,6 +67,7 @@ Gem::Specification.new do |s|
"lib/glimmer/dsl/swt/message_box_expression.rb",
"lib/glimmer/dsl/swt/observe_expression.rb",
"lib/glimmer/dsl/swt/property_expression.rb",
"lib/glimmer/dsl/swt/radio_group_selection_data_binding_expression.rb",
"lib/glimmer/dsl/swt/rgb_expression.rb",
"lib/glimmer/dsl/swt/rgba_expression.rb",
"lib/glimmer/dsl/swt/shell_expression.rb",
Expand All @@ -86,6 +87,7 @@ Gem::Specification.new do |s|
"lib/glimmer/swt/color_proxy.rb",
"lib/glimmer/swt/cursor_proxy.rb",
"lib/glimmer/swt/custom/code_text.rb",
"lib/glimmer/swt/custom/radio_group.rb",
"lib/glimmer/swt/display_proxy.rb",
"lib/glimmer/swt/dnd_proxy.rb",
"lib/glimmer/swt/expand_item_proxy.rb",
Expand Down Expand Up @@ -122,6 +124,7 @@ Gem::Specification.new do |s|
"samples/elaborate/tic_tac_toe/cell.rb",
"samples/elaborate/user_profile.rb",
"samples/hello/hello_browser.rb",
"samples/hello/hello_checkbox.rb",
"samples/hello/hello_combo.rb",
"samples/hello/hello_computed.rb",
"samples/hello/hello_computed/contact.rb",
Expand All @@ -134,6 +137,8 @@ Gem::Specification.new do |s|
"samples/hello/hello_menu_bar.rb",
"samples/hello/hello_message_box.rb",
"samples/hello/hello_pop_up_context_menu.rb",
"samples/hello/hello_radio.rb",
"samples/hello/hello_radio_group.rb",
"samples/hello/hello_sash_form.rb",
"samples/hello/hello_styled_text.rb",
"samples/hello/hello_tab.rb",
Expand All @@ -153,7 +158,7 @@ Gem::Specification.new do |s|
end

if s.respond_to? :add_runtime_dependency then
s.add_runtime_dependency(%q<glimmer>.freeze, ["~> 1.0.1"])
s.add_runtime_dependency(%q<glimmer>.freeze, ["~> 1.0.2"])
s.add_runtime_dependency(%q<super_module>.freeze, ["~> 1.4.1"])
s.add_runtime_dependency(%q<nested_inherited_jruby_include_package>.freeze, ["~> 0.3.0"])
s.add_runtime_dependency(%q<puts_debuggerer>.freeze, ["~> 0.10.2"])
Expand All @@ -172,7 +177,7 @@ Gem::Specification.new do |s|
s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.16.1"])
s.add_development_dependency(%q<simplecov-lcov>.freeze, ["~> 0.7.0"])
else
s.add_dependency(%q<glimmer>.freeze, ["~> 1.0.1"])
s.add_dependency(%q<glimmer>.freeze, ["~> 1.0.2"])
s.add_dependency(%q<super_module>.freeze, ["~> 1.4.1"])
s.add_dependency(%q<nested_inherited_jruby_include_package>.freeze, ["~> 0.3.0"])
s.add_dependency(%q<puts_debuggerer>.freeze, ["~> 0.10.2"])
Expand Down
Binary file added images/glimmer-hello-checkbox.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/glimmer-hello-radio-group.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/glimmer-hello-radio.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 1fac84b

Please sign in to comment.