View Single Post
Old 10-31-2009, 04:46 PM   #92
Iņigo
Guru
Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.Iņigo did not drink the Kool Aid.
 
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
File browser PoC: 2 options

Hi,

here there is a proof of concept of the File Browser I'm working on to be included in Iliad Toolbox.

There is a lot of work yet, but I'm asking for some feedback now because I'm considering two opposite ways.

- one uses a flat treeview
. To enter into a directory, click in the filename or type columns for the proper row.


- the other uses a treeview.
. Clicking on a directory, you select it and expand or collapse it, depending on its previous state.
. To enter into a directory (and it will also be the new root for the treeview), select it and click on the "jump to" button on the top-right.
. For performance reasons, there are only 3 levels of children shown by default. It's an option configured inside the code. If we don't limit it think what would happen when navigating to the '/' of the device, the treeview would contain all the files on the system... too slow.


In both cases, you can go a directory up (or more) clicking on the "path" label (left to "jump to" button").
F.e., if it contains "/media/card/books/computers/ai", you could click on "/media/card/" to go there or on "/media/card/books/computers/", etc.
It's a pretty effect, you can see it completely running the program on your computer to see the hover effect (edit the initial PATH before executing) that can't be fully appreciated on the Iliad.

One of the current problems is that is quiet difficult to press '/' on that path to go the root of your Iliad.


Please note that the selection toggle in last column is not handled correctly by now.


To test both, move the files to the Iliad and run from a terminal with proper DISPLAY setting:
Code:
$ lua treeview.lua | path/to/xx -p

Well, too much talk by now... which one do you prefer? which one is more usable?

Iņigo
Attached Thumbnails
Click image for larger version

Name:	fb-tv-ss.png
Views:	438
Size:	121.3 KB
ID:	38359   Click image for larger version

Name:	fb-ss.png
Views:	409
Size:	43.2 KB
ID:	38360  
Attached Files
File Type: gz fs.tar.gz (4.7 KB, 380 views)
Iņigo is offline   Reply With Quote