10-31-2009, 02:21 PM | #91 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Well, it seems that "PANGO_MATRIX_INIT" is a special case that lgob does not recognize. It's neither one of the members or one of the Constants.
|
10-31-2009, 05:46 PM | #92 |
Guru
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 |
Advert | |
|
11-01-2009, 01:51 AM | #93 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
|
11-02-2009, 01:21 AM | #94 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
SPAM
Quote:
Keep up the chatter; I'd love to jump in when I'm up-to-speed! |
|
11-02-2009, 04:59 AM | #95 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Installer for Lua/Lgob/xx
Iņigo,
I can make an installer for Lua/Lgob/xx if you want, but I think I will include Lua/Lgob/xx in apps I make: its small enough (750K), It's easier for users (they don't have to install 2 packages), and you are sure that they use a recent version. It's no problem if a user already has it installed. And ipkg will not downgrade it if sombody tries to install an older version. Do you still want a dedicated installer? |
Advert | |
|
11-02-2009, 05:00 AM | #96 | |
Guru
Posts: 730
Karma: 72743
Join Date: Feb 2008
Location: Here or there
Device: iRex iLiad, iRex DR800S. K4NT. Kobo Aura, Aura One, Libra 2.
|
Quote:
|
|
11-02-2009, 05:02 AM | #97 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
|
11-02-2009, 05:13 AM | #98 | |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
tolua++
Quote:
http://www.codenix.com/~tolua/ A copy of the version I use, and as small script to build it on linux without scons (an overkill if you ask me) can be found at https://dev.mobileread.com/svn/luail...tools/tolua++/ |
|
11-03-2009, 05:00 AM | #99 | |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Quote:
What is the use case of of tolua (or tolua++)? I don't understand. Suppose I have some lib written in C, then can I use tolua to generate lua binding for the lib? I want to use libxml2 with lua, and currently I only found lua binding for the part of xmlreader of libxml2 (http://asbradbury.org/projects/lua-xmlreader/). I need xmltree part. Can I use tolua to generate lua binding automatically? Last edited by ericshliao; 11-03-2009 at 05:03 AM. |
|
11-03-2009, 06:33 AM | #100 | ||
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Quote:
If I have some spare time (and no projects that are more fun ) I wil use tolua++ to do a Lua binding for some Iliad libraries... Quote:
Have fun! Last edited by hansel; 11-03-2009 at 06:48 AM. |
||
11-03-2009, 06:50 AM | #101 | |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Quote:
I am trying and learning to expand lua-xmlreader. As to expat, I never understand the way it works. At least, I can understand the xmltree part of libxml2, so I choose libxml2. What I want to do is to parse some xml file using docbook DTD, draw the contents (using different styles for different tags), and traverse the xmltree. Currently, I only find libxml2 provides me such functions. |
|
11-03-2009, 07:36 AM | #102 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Expat is easy to use: you define callbacks for the things you are interested in (tags, attributes), and expat calls those while traversing the file. Typically you remember some state in the calbacks (to know where you are in the document). You might even render the document while reading it (which is much more effective if you process large docs: no need to store everything in memory).
Lua Expat also has a simple DOM called LOM (Lua Object Model). This may very well be what you are looking for. See http://www.keplerproject.org/luaexpat/lom.html for an example. Besides that, Expat is very fast, quite small, and already avalable on the Iliad... Edit: I just checked that libxml2 (the so file, not a Lua binding) is also available on a standard Iliad: /usr/lib/libxml2.so.2.6.26. See http://www.hpelbers.org/iliad/list_of_libraries Last edited by hansel; 11-03-2009 at 07:41 AM. |
11-03-2009, 12:37 PM | #103 | |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Quote:
|
|
11-07-2009, 03:23 AM | #104 |
JSR FFD2
Posts: 305
Karma: 1045
Join Date: Aug 2008
Location: Rotterdam, Netherlands, Europe, Sol 3
Device: iliad
|
Update: lgob-iliad-0.1.9.ipk
Hi,
I just upgraded the package for Lgob: the Lua binding for GTK+, Glib, GDK and Pango. This version has (probably) less bugs and more features Thanks again to Lucas Hermann Negri for this great Lua binding! The new version can be downloaded here: https://dev.mobileread.com/dist/hans...liad-0.1.9.ipk. This version is based on the sources at http://downloads.tuxfamily.org/oproj...9.11.1.tar.bz2 Tip: I just discovered that I could browse all gtk, gdk, glib, etc docs with devhelp. It is all nicely indexed and cross-referenced. Much easier and quicker than the on-line docs. On Ubuntu devhelp can be installed with synaptic. I don't know how I got the docs themselves... probably came with the dev packages I installed? Last edited by hansel; 11-07-2009 at 03:26 AM. |
11-07-2009, 05:52 AM | #105 |
Guru
Posts: 976
Karma: 687
Join Date: Nov 2007
Device: Dell X51v; iLiad v2
|
Thanx. Just tried the 0.1.9 package. Working fine on my iLiad.
I also installed devhelp. I didn't know it until you mentioned. Quite convenient. |
Tags |
gtk+, iliad, lgob, lua, networking, xml |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Pandigital announce the black Novel | Nate the great | News | 0 | 08-18-2010 06:21 PM |
iLiad China iLiad users can get developer package. | ericshliao | iRex Developer's Corner | 35 | 03-20-2010 06:21 AM |
iLiad Announce: Glade4Lua, develop graphical apps for the Iliad | hansel | iRex Developer's Corner | 1 | 10-27-2009 06:00 PM |
Sony to announce colour e-book ? | markiehill | News | 11 | 08-22-2009 01:45 PM |
Proud to announce our new moderator! | Alexander Turcic | Announcements | 5 | 12-09-2003 12:18 AM |