File
locana.rb
Home
Path: locana.rb
Modified: Fri Oct 31 18:18:34 GMT-7:00 2003

locana.rb - a graphical user interface (GUI) for Ruby that runs on Windows 95/NT/2000/Me/XP and Tk

Locana is Sanskrit for enlightening or eye.

Locana is a collection of classes and methods allowing you to easily add a graphical user interfaces (GUI) to your applets that run on any supported platform as mswin32, or Tk. Locana is easy to extend.

Locana is a GUI interface for Ruby. It actually draws widgets using a few basic methods from a native GUI via a GUI Binding. The ultimate goal is to write applets using Locana that run on any platform.

Currently Locana runs on the following platforms:

Planned platforms:

Author: Michael Davis, mdavis@locana.org

Copyright: (C) 2000, 2001, 2002 Seva Inc. and Seva Software - www.sevasoftware.com

Home page: www.locana.org

License: Same as Ruby

Download: www.locana.org/locana_download.html

Installation on unix based systems:

 % tar -zxvf locana_0_83.tar.gz
 % cd locana_0_83
 % ruby install.rb       # you will likely need root access for this

Installation on MS Windows based systems:

 % run locana_0_83.exe   # follow the prompts, Ruby must be installed before this will work

Testing:

 % ruby tst/tst_locana.rb

Documentation - The documentation is located in locana_0_83/doc. Just open locana_0_83/doc/index.html in your favorite browser. The documentation can be recreated using the following command:

    ruby create_docs.rb
    FYI, rdoc is required.  See http://rdoc.sourceforge.net/index.html.

Planned Releases: www.locana.org/locana.html#PlannedReleases

Support - how to ask questions, submit bug reports, and submit enhancement requests

Versions - an overview of prior releases

History - a detailed list of changes

FAQ - Frequently Asked Questions

Samples:

Screen shots:

Status:

Testing:

Locana creates and uses two config files:

Here is a brief overview of Locana classes:

See initialize() in the Lobject class in l_object.rb for a description of supported attributes. See bind() in the Lobject class in l_event.rb for a description of all supported events.

Locana has a GUI builder that allows you to build applets interactively. The GUI builder is written in 100% Ruby using only Locana. It allows you to create, edit, save, and delete Locana objects. See locana_builder.rb for details.

Locana and the Locana GUI builder have been designed to allow the following choices for creating applets:

I tend to prefer writing code rather than designing with the GUI Builder. That is why most of the applets supplied with Locana were created as Ruby applets using Locana (the first option above). If you are familiar with Ruby and are willing to learn how to use Locana then option 1 is a good choice. Beginners to Ruby or Locana or individuals that don’t enjoy writing code will likely prefer using the GUI Builder. The GUI Builder is is easier in many respects for creating and managing GUI’s but is more challenging when trying when trying to add complex code to your applet. In other words, the GUI Builder is great for GUI but not so great for writing code.

Debug - this describes how debug() statements are used in Locana. Debug is information that printed when running your ruby program with the -d option. Locana’s implementation of debug allows you to set a debug_level and see messages pertaining to that level. The higher the debug level, the more debug messages you will see. See debug.rb for more details. Here are the debug_levels supported:

    10 - show high level stuff like creating, opening, closing, and deleting locana objects
    11 - show details such as method_missing, attribute reference and assignment, finding objects, etc.
    13 - used in the GUI Binding, shows high level stuff like creating and deleting native widget objects
    14 - reports every event passed to Locana by the GUI Binding
    15 - used in the GUI Binding, reports events at the widget level, this could be a lot of debug

Debug Examples:

Required files

locana/debug.rb locana/hstore.rb locana/l_timer.rb locana/locana_bindings.rb locana/locana_colors.rb locana/l_others.rb locana/l_border.rb locana/l_object.rb locana/l_object_themes.rb locana/l_object_prepare.rb locana/l_event.rb locana/l_container.rb locana/l_bitmap.rb locana/l_button.rb locana/l_scrollbar.rb locana/l_frame.rb locana/l_window.rb locana/l_checkbox.rb locana/l_image.rb locana/l_label.rb locana/l_listbox.rb locana/l_menu.rb locana/l_radiobox.rb locana/l_textbox.rb locana/l_editbox.rb locana/l_balloon.rb locana/l_combobox.rb locana/l_spinner.rb locana/l_tabgroup.rb locana/l_calendar.rb locana/l_datebox.rb
Classes and Modules

Module Locana
Class CancelEvent
Class Lobject
Class LocanaDigitRequired
Class LocanaError
Class LocanaFileNotFound
Class LocanaInternalError
Class LocanaInvalidObjectOrAttribute
Class LocanaTextExceededMaxSize


Seva Software


Thank you for taking the time to visit this web page. I trust you found the information contained in this page useful.
Please email any questions, concerns, or issues with this web site to webmaster@sevasoftware.com.
Please remember Seva Software when your company would benefit from an experienced database architect and software engineer.

http://www.arunadb.org http://www.locana.org http://www.ruby-lang.org http://www.coolwell.org http://www.sevasoftware.com