CSC/ECE 517 Spring 2013/ch1a c ct: Difference between revisions
Line 37: | Line 37: | ||
== Visual Ruby == | == Visual Ruby == | ||
Visual Ruby is designed to simplify the process of adding a GTK+ windows to Ruby applications. It is also designed to completely integrate with the Glade user interface designer. | Visual Ruby is designed to simplify the process of adding a GTK+ windows to Ruby applications. It is also designed to completely integrate with the Glade user interface designer. | ||
=== Installation === | === Installation === |
Revision as of 23:41, 8 February 2013
Overview
Ruby as a programming language has gained popularity in recent years (mainly due to the Rails web framework). There exists quite a few graphical user interface toolkits/frameworks for Ruby so that desktop GUI applications can be created. Most are simply bindings to existing GUI framework API's like Qt and GTK+. Shoes, on the other hand, is written for Ruby specifically. Two previous articles have made detailed comparisons between different toolkits by looking at various factors such as ease of installation, documentation, look and feel, and difficulty of usage. This article will give updates on GUI toolkits that has developed since the previous articles were written, as well as discuss any toolkits (worth mentioning) that were not present in the previous articles.
Current State of GUI Toolkits for Ruby
There is a number of Ruby GUI toolkits to choose from to create a desktop application. In one of the previous articles, an official 2008 Ruby GUI Survey was referenced to discuss the popularity of available GUI toolkits. For a quick recap, here is the result for the question "Which of the GUI toolkits do you currently use, and which do you think it's likely you'll use in the future?"
- Shoes
- Ruby-GNOME2/GTK
- wxRuby
- Ruby-Tk
- Ruby Cocoa/MacRuby
- QtRuby
- JRuby + Swing
- FxRuby
- JRuby + SWT
The Ruby Toolbox, a website that tracks the popularity of Ruby related tools by usage in open source projects, has a list of several toolkits under its "GUI Frameworks" category. The ranking in current popularity (Feb 2013) of GUI toolkits is as follows:
- Shoes
- FxRuby
- wxRuby
- QtBindings
- Ruby/GTK
- monkeybars
- FFI::Tk
Although this list is not as scientific as the official survey result, it does reflect current project usage quite well, and it shows the general acceptance of a particular toolkit. We can see by comparing the two lists that the most popular toolkits (Shoes, FxRuby, wxRuby, Ruby/GTK) are still relevant today. Shoes has proven to be popular since its creation in 2007. Most of the other toolkits remain active projects, judging by the dates of code commits of their respective repository. One main exception is wxRuby. wxRuby has not seen a release since September of 2009 even though wxWidgets, the C++ GUI library which wxRuby is based, is still in active development.
Visual Ruby
Visual Ruby is designed to simplify the process of adding a GTK+ windows to Ruby applications. It is also designed to completely integrate with the Glade user interface designer.
Installation
- Install Ruby 1.9.3
- Install Glade and GTK
- Install and run Visual Ruby
>> gem install visualruby >> vr
Monkeybars
FFI-Tk
FFI-Tk is a pure Ruby FFI (foreign funciton interface) wrapper for the Tk GUI toolkit.
Installation
gem install ffi-tk