07-08-2010, 06:28 AM | #1 |
Zealot
Posts: 120
Karma: 1326
Join Date: Feb 2009
Device: none
|
Pageflow/fullscreen with UI
Let me begin with a big fat disclaimer: I'm in no way a developer, and to call my C rusty would be a compliment. In the attachment you can find both source code and binary build of a small daemon, that once running, will try to add 'page flow' and 'fullscreen' options to popupmenu, for eligible files. There are still quirks to be fixed (see TODO), but it roughly works.
I'd be grateful for any comments, about both functionality and the code itself. I'm not that confident that I don't sport memory leaks, but I couldn't use valgrind to test that, as valgrind doesn't support ARM architecture. I'll put the source on github later on, and once I'm happy with the daemon - publish it for public consumption in iRex forum :) How to use: either grab the binary build and put it in proper place, or grab the source and build your binary from the scratch. There are two .desktop files included, one of them will launch trickd, other - kill it. Once it's launched, two new options should appear in the popup menu, for PDF files. This program uses the same method as my earlier script, so toggling either of those options would end up closing all opened files, possibly dropping back to main menu, flipping the option in db, then reopening the file. At the moment I don't have any other good way of asking uds to sync its data to disk. Last edited by yacoob; 07-08-2010 at 08:16 AM. Reason: typo |
07-08-2010, 06:40 PM | #2 |
Zealot
Posts: 120
Karma: 1326
Join Date: Feb 2009
Device: none
|
Looks like noone is interested :) This way or another, I've put the sources in a git repo here:
http://github.com/yacoob/irex/ Branch next survives USB connection now. |
Advert | |
|
07-09-2010, 07:24 PM | #3 |
Zealot
Posts: 120
Karma: 1326
Join Date: Feb 2009
Device: none
|
Made whole thing a wee bit better (fullscreen in epubs) and pushed it out to people here:
https://www.mobileread.com/forums/showthread.php?t=90085 In worst case, I'll have some new bug reports 8) There's one thing that I got stuck at: flipping an option consists of closing all files opened by uds, changing the db, then reopening last file. I reopen that file by sending startTask to sysd, asking it to start 'uds /media/mmcblk0p1/thatlastfile'. Problem is, if I do it this way, I lose 'Back to Books' option in the popupmenu. I saw that reader itself seems to be toggling that option on and off with setItemLabel message to popupmenu - but even if I explicitly enable it, it returns me to main reader screen upon activation. Does anyone know whether I can set this menu entry to behave properly? Or is it some bit of logic located in uds that I have to convince? :) |
07-10-2010, 03:51 AM | #4 |
ex-IRX developer
Posts: 158
Karma: 224
Join Date: Oct 2008
Device: Irex DR800S, DR1000S, iLiad
|
The content browser (ctb) keeps track of the last used category and sets the label in the popupmenu. When you start a task through startTask (sysd) directly, this specific feature is bypassed.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
FullScreen on Kindle Browser | SunLight | Amazon Kindle | 7 | 10-11-2010 04:30 PM |
DR800 trickd - fullscreen & pageflow with proper UI | yacoob | iRex | 24 | 10-03-2010 04:04 PM |
Output Iliad Fullscreen | Arnau | Calibre | 4 | 04-17-2010 06:27 AM |
Reset after Fullscreen with locked Buttons? | Floeee | iRex | 2 | 09-16-2009 09:36 AM |
Column view and fullscreen iPDF | boolda | iRex | 1 | 05-16-2008 05:47 PM |