From acddbe5c465234adeca7f4a398d0643960f75cf6 Mon Sep 17 00:00:00 2001 From: Andy Maleh Date: Wed, 21 Oct 2020 04:09:01 -0400 Subject: [PATCH] Updated TOC --- README.md | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 07993fce..e4be75f7 100644 --- a/README.md +++ b/README.md @@ -249,12 +249,10 @@ Glimmer App: - [Glimmer Command](#glimmer-command) - [Basic Usage](#basic-usage) - [Advanced Usage](#advanced-usage) - - [Sample List/Run/Code](#sample-listruncode) - - [Sample List](#sample-list) - - [Sample Run](#sample-run) - - [Sample Code](#sample-code) + - [Samples](#samples) - [Scaffolding](#scaffolding) - [App](#app) + - [Desktopify](#desktopify) - [Custom Shell](#custom-shell) - [Custom Widget](#custom-widget) - [Custom Shell Gem](#custom-shell-gem) @@ -310,7 +308,9 @@ Glimmer App: - [Multi-DSL Support](#multi-dsl-support) - [Application Menu Items (About/Preferences)](#application-menu-items-aboutpreferences) - [App Name and Version](#app-name-and-version) + - [Code Text Widget](#code-text-widget) - [Video Widget](#video-widget) + - [Sash Form Widget](#sash-form-widget) - [Browser Widget](#browser-widget) - [Glimmer Configuration](#glimmer-configuration) - [logger](#logger) @@ -339,6 +339,7 @@ Glimmer App: - [Hello, Pop Up Context Menu!](#hello-pop-up-context-menu) - [Hello, Custom Widget!](#hello-custom-widget) - [Hello, Custom Shell!](#hello-custom-shell) + - [Hello, Sash Form!](#hello-sash-form) - [Elaborate Samples](#elaborate-samples) - [User Profile](#user-profile) - [Login](#login) @@ -374,7 +375,7 @@ Glimmer App: - [Contributors](#contributors) - [Hire Me](#hire-me) - [License](#license) - + ## Background Ruby is a dynamically-typed object-oriented language, which provides great productivity gains due to its powerful expressive syntax and dynamic nature. While it is proven by the Ruby on Rails framework for web development, it currently lacks a robust platform-independent framework for building desktop applications. Given that Java libraries can now be utilized in Ruby code through JRuby, Eclipse technologies, such as SWT, JFace, and RCP can help fill the gap of desktop application development with Ruby. @@ -491,7 +492,7 @@ glimmer application.rb Runs a Glimmer application using JRuby, automatically preloading the glimmer ruby gem and SWT jar dependency. -Example: +Run Glimmer samples: ``` glimmer samples ``` @@ -3087,10 +3088,6 @@ You may obtain via `glimmer-cw-video` gem. It can be customized with the `weights` attribute by setting initial weights to size the panes at first display. -It is used in the [Glimmer Meta-Sample (The Sample of Samples)](samples/elaborate/meta_sample.rb): - -![Glimmer Meta-Sample](images/glimmer-meta-sample.png) - Example (you may copy/paste in [`girb`](#girb-glimmer-irb-command)): ```ruby @@ -3116,6 +3113,8 @@ shell { You may check out a more full-fledged example in [Hello, Sash Form!](#hello-sash-form) +![Hello Sash Form](images/glimmer-hello-sash-form.png) + #### Browser Widget ![Hello Browser](images/glimmer-hello-browser.png) @@ -3561,16 +3560,28 @@ Code: [samples/hello/hello_sash_form.rb](https://github.com/AndyObtiva/glimmer-dsl-swt/blob/master/samples/hello/hello_sash_form.rb) +Hello, Sash Form! Horizontal Orientation + ![Hello Sash Form](images/glimmer-hello-sash-form.png) +Hello, Sash Form! Resized + ![Hello Sash Form Resized](images/glimmer-hello-sash-form-resized.png) +Hello, Sash Form! Sash Width Changed + ![Hello Sash Form Sash Width Changed](images/glimmer-hello-sash-form-sash-width-changed.png) +Hello, Sash Form! Vertical Orientation + ![Hello Sash Form Vertical](images/glimmer-hello-sash-form-vertical.png) +Hello, Sash Form! Green Label Maximized + ![Hello Sash Form Green Maximized](images/glimmer-hello-sash-form-green-maximized.png) +Hello, Sash Form! Red Label Maximized + ![Hello Sash Form Red Maximized](images/glimmer-hello-sash-form-red-maximized.png) ### Elaborate Samples