[Sugar-devel] Multi selection in the Journal feature

Gonzalo Odiard gonzalo at laptop.org
Wed Jul 17 17:42:22 EDT 2013


A initial version to review of the feature is available to test and review.

The pull requests are:

sugar-datastore: https://github.com/sugarlabs/sugar-datastore/pull/2
sugar-artwork: https://github.com/sugarlabs/sugar-artwork/pull/7
sugar: https://github.com/sugarlabs/sugar/pull/62

This work is based on previous implementations, but is different in many
ways.

In particular, the previous implementation had a performance problem,
when the user wanted to select all the ellements in the journal.
As the datastore is designed to return the data paginated,
the journal needed to do several queries to get all the uids needed
to create the list of selected items.
This problem is solved adding a method to the datastore to get the uids
belonging to a query. As the datastore get that information from the index,
the query is really fast.

Other visible change is the use of real checkboxes in the listview, instead
of icons
with a checkbox drawn. In a desktop, the checkbox is not displayed right,
but in the xo is ok.
Surely something we need solve in the theme.

Another difference in behavior is now the user can interrupt a operation
while is running.
If you realize you started to delete all the objects in a pen drive, you
can stop it,
and at least part will be saved.

Gonzalo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130717/3b32e660/attachment.html>


More information about the Sugar-devel mailing list