[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

rubynet-announce Digest, Vol 8, Issue 1

rubynet-announce-request

10/18/2003 7:00:00 PM

Send rubynet-announce mailing list submissions to
rubynet-announce@lists.rubynet.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.rubynet.org/lists/listinfo/rubyne...
or, via email, send a message with subject or body 'help' to
rubynet-announce-request@lists.rubynet.org

You can reach the person managing the list at
rubynet-announce-owner@lists.rubynet.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rubynet-announce digest..."


Today's Topics:

1. ANN: HStore version 0.91 (Michael Davis)
2. ANN: Locana version 0.83 (Michael Davis)


----------------------------------------------------------------------

Message: 1
Date: Fri, 17 Oct 2003 17:27:14 -0600
From: Michael Davis <mdavis@sevasoftware.com>
Subject: [ruby-announce] ANN: HStore version 0.91
To: rubynet-announce@lists.rubynet.org
Message-ID: <3F907AD2.1060001@sevasoftware.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

A new version of the HStore class is now available.

An HStore stores and retrieves key/value pairs to and from disk similar to a Pstore. An HStore uses two files, an index file containing a Hash of keys and the file position for each object and a data file containing the values in the HStore. The index file is cached in a Hash in memory for fast look-ups. The values are stored in a separate data file and are individually retrieved from disk with [] or fetch() and written back to disk with []= or update()/insert().

This release contains performance enhancements and reduces the disk space used by HStores.

More information can be found at http://www.sevasoftware....


Thanks,

Michael Davis


------------------------------

Message: 2
Date: Sat, 18 Oct 2003 11:41:55 -0600
From: Michael Davis <mdavis@sevasoftware.com>
Subject: [ruby-announce] ANN: Locana version 0.83
To: rubynet-announce@lists.rubynet.org
Message-ID: <3F917B63.4030607@sevasoftware.com>
Content-Type: text/plain; charset=us-ascii; format=flowed

I am please to announce the latest release of Locana version 0.83.

What it Locana?

Locana is a GUI for Ruby. It runs on Windows 95/NT/2000/XP and Tk. It draws all the widgets using a few basic methods from a GUI binding (mswin32, tk, etc.). It is mostly written in Ruby. There is a small DLL for Windows written in C for accessing Window functions and a small module written in C for Tk for connecting to a Tk/TCL interpreter.


More information can be found at http://www....
Download at http://www..../locana_download.html


This release contains a lot of very nice enhancements, here are a few of them:

* Tested with Ruby 1.8.
* Locana has been redesigned to create all widgets using a very basic set of commands from the native GUI.
* Here are the pros this design:
* greatly simplified the GUI interface
* simplified testing
* streamlined the relationship between Locana and the GUI by reducing the amount of data stored for each object and basically eliminated most prior native GUI overhead
* more consistent look and feel with a lot less issues to test and work around
* you can more easily change and control the look and feel of any object and more easily create new objects
* allowed me to easily track mouse activity over the border of an object so you can resize objects
* everything runs much faster
* The cons:
* objects may not have the look and feel of the native GUI
* Added support for a File Browser (see notepad.rb for an example) and a Color Browser (see the locana_builder.rb, double click on one of the color attributes).
* Added the Lborder class with several borders. You should be able to easily add your own borders.
* Added the Lscrollbar class. The Lframe class automatically detects if scrollbars are needed, creates them, and manages them for you. You can easily override the default action by trapping the :on_scroll event.
* Added the Lcontainer class. This can contain other Locana objects and is the base class for the Lframe class.
* Added the ability to change/set the mouse cursor.
* The Lframe class is now based on the Lcontainer class and support scrollbars and other objects in one or more of it's four borders.
* The Llistbox and Leditbox classes are now based on the Lframe class so they can support scrollbars.
* The Leditbox and Ltextbox class can now cut, copy, and paste to/from the clipboard.
* Menus can support font and color attributes. Menubars can be added to any Lframe object and popup style menus can be added to any Lcontainer object.
* The mswin32 GUI Binding now works with windows 95, 2000 and XP. All known issues with Windows 95 and XP have been fixed.
* The mswin32 GUI Binding now reports a list of all available fonts.
* The mswin32 GUI Binding uses a small DLL that is provided with the GUI Binding eliminating the need to compile any code. It works well using the Windows version of Ruby.
* Added the following GUI methods that you can call to customize your objects:
* Locana_gui::draw_point(frame_id, color, x, y) - not supported in Tk
* Locana_gui::draw_line(frame_id, color, x1, y1, x2, y2, thickness=1, style=:solid)
* Locana_gui::draw_rectangle(frame_id, color, x1, y1, x2, y2, thickness=1, style=:solid)
* Locana_gui::draw_ellipse(frame_id, color, x1, y1, x2, y2, thickness=1, fill=nil)
* Locana_gui::draw_circle(frame_id, color, x, y, r, thickness=1, fill=nil)
* Locana_gui::draw_text(frame_id, fg, bg, string, x, y, font_id=nil, accelerator=nil) #, justify=:left, align=:top)
* Added a separate download for Windows users that includes a Windows style installer and a pre-build DLL (no more code to compile) that works much better on all Windows platforms. Also adds the GUI Builder, documentation, and applets to the Start Button in Programs/SeveSoftware/Locana and Programs/SevaSoftware/Applets.
* Added the following attributes:
* :mouse_cursor - allows you to set the cursor for an object
* :allow_sizing - when true, the user can click on the border of this object and re-size it. Locana will track mouse movements over the border of the object, automatically change the mouse cursor, and allow you to resize while clicking and dragging in the border.
* :allow_dragging - when true, the user can click on this object and drag it around in the window/group.
* :allow_dragging_parent - When true, the user can click on this object and drag it's parent around in it's parent window/group.
* :min_width - the minimum width in pixels of the object. This is only used when resizing the object to keep it from getting too small.
* :min_height - the minimum height in pixels of the object. This is only used when resizing the object to keep it from getting too small.
* :tab_order - this used be :tab, the :tab attribute is no longer supported
* :max_size - this used to be :maxsize, the :maxsize attribute is no longer supported
* :fg_disabled - text or foreground color when the object is disabled.
* :bg_disabled - background color when the object is disabled. The default is the object background color.
* :fg_highlight - text or foreground color when the object is highlighted.
* :bg_highlight - background color when the object is highlighted.
* Added the following events:
* :on_timer - when a timer is started without a block, the timer will trigger this event when the timer matures.
* :on_scroll - when a frame has a scrollbar, the :on_scroll event is raised every time the scroller is moved.
* :on_paint_border - the objects border area needs to be painted.
* :on_paint_client - the objects client area needs to be painted.
* :on_open_listbox - this opens the listbox associated with the combobox.
* :on_close_listbox - this closes the listbox associated with the combobox.
* Added the following events that automatically created during the on_key_release event:
* :on_escape_key - called when the escape key is released, it allows you to easily redefine the escape key.
* :on_enter_key - called when the enter key is released, it allows you to easily redefine the enter key.
* :on_tab_key - called when the tab key is released, it allows you to easily redefine the tab key. The default is to move the keyboard focus to the next object, if the CTRL key is pressed, the moves the keyboard focus to the previous object.
* :on_f1_key - called during on the on_key_release of the F1 key.
* :on_f2_key - called during on the on_key_release of the F2 key.
* :on_f3_key - called during on the on_key_release of the F3 key.
* :on_f4_key - called during on the on_key_release of the F4 key.
* :on_f5_key - called during on the on_key_release of the F5 key.
* :on_f6_key - called during on the on_key_release of the F6 key.
* :on_f7_key - called during on the on_key_release of the F7 key.
* :on_f8_key - called during on the on_key_release of the F8 key.
* :on_f9_key - called during on the on_key_release of the F9 key.
* :on_f10_key - called during on the on_key_release of the F10 key.
* :on_f11_key - called during on the on_key_release of the F11 key.
* :on_f12_key - called during on the on_key_release of the F12 key.
* Added the following events that automatically created during the on_key_press event:
* :on_alt_key - called when the alt key is pressed, the default action is to activate/deactivate the menubar.
* :on_left_key - called when the left arrow key is pressed.
* :on_right_key - called when the right arrow key is pressed.
* :on_down_key - called when the down arrow key is pressed.
* :on_up_key - called when the up arrow key is pressed.
* :on_pagedown_key - called when the page down key is pressed.
* :on_pageup_key - called when the page up key is pressed.
* :on_home_key - called when the home key is pressed.
* :on_end_key - called when the end key is pressed.
* :on_insert_key - called when the insert key is pressed.
* :on_delete_key - called when the delete key is pressed.
* :on_backspace_key - called when the backspace key is pressed.
* :on_cut - called during on the on_key_press of ctrl-delete_key, shift-delete_key, or ctrl-x.
* :on_copy - called during on the on_key_press of ctrl-insert_key or ctrl-c.
* :on_paste - called during on the on_key_press of shift-insert_key or ctrl-v.
* Changes to the Applets:
* changed the name of unify.rb to kaya.rb
* added a notepad.rb applet
* enhanced all the applets work a little better and have a more consistent look and feel
* added better theme support for some objects
* enhanced the timer applet to support multiple timers
* Changes that could impact any current code:
* opening a pop-up menu has changed from popup_menu.show(x,y) to popup_menu.show_menu(x,y).
* changed :on_mlb_down to :on_mouse_ldn
* changed :on_mlb_up to :on_mouse_lup
* changed :on_mlb_dblclk to :on_mouse_ldbl
* changed :on_mrb_down to :on_mouse_rdn
* changed :on_mrb_up to :on_mouse_rup
* changed :on_mrb_dblclk to :on_mouse_rdbl
* changed :tab to :tab_order
* changed :maxsize to :max_size
* changed :type to :otype
* changed object[:attribute] = new_value, before this release, this would assign new_value to the attribute and get applied to the object. With this release, this just records the attribute in the object but does not apply it nor will this change get saved. Use object.attribute = new_value instead.
* These changes will be automatically applied to any objects saved in *.ls (Lstore) files.
* The HStore class changed with the release. If you have objects in a LStore (or HStore) you will see an error when opening the file with the GUI Builder. You will need to run hstore/hstore_compact.rb to update the HStore.




------------------------------

_______________________________________________
rubynet-announce mailing list
announce@rubynet.org
http://lists.rubynet.org/lists/listinfo/rubyne...

End of rubynet-announce Digest, Vol 8, Issue 1
**********************************************