View Single Post
Old 01-23-2010, 05:11 PM   #38
Mackx
Guru
Mackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to beholdMackx is a splendid one to behold
 
Posts: 999
Karma: 19985
Join Date: Dec 2008
Location: Netherlands
Device: iRex DR1000S
Hi rfog,

You are looking for projects now that you got your development environment up and running
Quote:
Originally Posted by rfog View Post
One idea I was messing how to implement: a clock in the status bar that change when changing page... Or a clock in the menu...
Someone else asked for a clock before, see this message for a clock program. I made a very simple modifications of the helloworld program. Its more a gimmick then a serious program.

Quote:
Originally Posted by rfog View Post
BTW... Do we have CTB source code? PDF viewer?

Will be difficult to integrate Coolreader or any other FB2 viewer?
That are a lot of questions. iRex has published (almost) all code at their site in the Sources folder. The CTB or ContentBrowser is the program that is responsible for showing the SD content (folder view) and for starting viewers to display the documents. The complete code of the CTB is published by iRex. Like in MS windows, files can be associated with programs using their extension. This is normally done via the gconf-mechanism (some kind of linux variant of the windows registry if I understand it correctly), but a copy of the associations are also stored in the dr1000.ini file (see the System-folder on your SD-card).
When you look in your dr1000.ini file, you will see that most extensions are associated with a programs called uds (I think it is for Universal Document system, or something like it). This is a generic viewer with plug-ins for the different formats. The plug-ins are published (document-viewer-plugins), but the generic part not. This generic part handles, among others, annotations, pagebar, (uniform) key-handling, etc.
So, to come back to your questions, the pdf viewer is, kind-of, published. The current pdf plug-in for the DR1000 uses the poppler library to scale and render pdf pages to bitmaps. It should also be possible to add extra plug-ins for other formats, but I have not looked into how this should be done.
However, since it is just linux, with gtk, running on your DR, other viewer programs can also be ported to the DR, like already done with FBReader, xournal, midori, evince, etc. This could also be done for the programs you mention I guess. How difficult this will be, depends on the programs themselves, are they gtk based and written in C, then it will not be difficult for an experienced linux programmer. Otherwise expect to spend a lot of your 'spare-hours' on it.
Mackx is offline   Reply With Quote