From: ulis (maurice.ulis_at_wanadoo.fr)
Date: 13 Nov 2003 13:23:51 -0800
Version: v 0.9 beta
a(Rich)List is a powerful and easy to use Tcl package which manages
enriched items lists.
As widgets, these items have options taking values and, as widgets,
can execute actions.
Following the need a Richlist can be viewed as a poor man class of
objects, as a database table (each item being a row and each option
name being a column) or as a structure description (each item being an
occurence of the structure and each option being an element of the
The items can be grouped inside sublists. Each sublist could be viewed
as a view on the table.
The first sublist is created with the Richlist and the other sublists
can be built from a simple list of items, from an index on a sublist
or from set operations on the sublists (union, intersection,
An index on a sublist is as a table index and allows to access the
items from the values of an option (search by pattern).
So it is easy to create sublists that split the items set of the
Richlist following the values taken by an option.
Powerful operations allow to retrieve, modify and format the values of
all or part ot the items of a sublist.
The access to a sublist or an item is thru a reference.
A sublist reference is a Tcl command allowing the access to the
An item reference is a Tcl command allowing the access to the item
options and actions.
Callbacks associated to the Richlist allow to define actions on
The init and dispose actions are called on init and destruction of the
The unknown action is called when items try to call unknown actions.