Thread: DR1000 Patch for DR1000 firmware
View Single Post
Old 08-05-2010, 05:13 PM   #24
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
Patch 2

While you are all discussing which CM-system to use, I continued hacking the code

NOTE: THE BINARIES ARE ONLY FOR DR1000 !!!

This is a big hack, so this patch is less mature then the previous one, so my advise is to use it on the QEMU first. (Only the dare-devils should install it on their DR1000.)
(I just installed it on my DR and it is still functioning...: )

The patch adds the following:
- Allow user configurable views (tag or recent based) (schema)
- Allows build-in views to be hidden (dr.ini)
- Allow multiple tags per document (seperated by space) (in libermetadb!)
- Allow manual change of tags, via new menu-item
- Order of user views is configurable (schema + dr.ini)

* I) The installation script adds 5 user configurable views:
1) Application: all documents of which tag contains 'application'
2) Installers: all documents of which tag contains 'install'
3) Recently Read: like the one from the old patch, but now installed via schema-file
4) Favourites: all documents of which tag contains 'fav1'
5) Xournal: all documents of which tag contains 'xournal' (you will see that I made a mistake by adding this tag to ALL files stored by xournal and not only the xoj-files, will be fixed in future release of xournal)

Since all these tags are not default added (except xournal), you need to add them yourself. So browse to SD Card/Programs/ select an icon of an application (not tap on it, but select it, e.g. via 'cursor'-keys). Now goto the menu and select the new item 'Properties'. It will show a dialog to change the tag, so type: "application" (without qoutes) and press OK. Do this for all applications Same can be done for Installers SD Card/Programs/Install (use "install") or with any of your favourite documents (use "fav1").
Note that normal documents will already have the tag "book", leave this part and add "fav1", so the tag will be "book tag1". If you remove "book" the documents will not show-up anymore in the Books-view.

If you want to add new views in Home, take a look at the provided schema files. I.e. if you want to group some documents for a project or class.

* II) The installer script (_apply.sh) also hides the Recently Added view from Home.
Code:
# Disable build-in views
gconftool-2 --type string --set /apps/er/patch/ctb/views/recent/mode "disabled"
Other views can also be hidden/disabled using the correct name (see standard.schemas: books, news, images, personal, notes, recent, shortcuts, dir, search and help).

Note that this patch is not yet finished, the following is still on my todo/wish-list:
- Order of all views configurable
- Settings-item to configure hidding (and order) of views
- Documentation on how to create user views
- Allow more 'base-types' for user views
- Allow tags on folders (without interfering current views/queries)
- Make more properties modifyable on the DR (unfortunately title, subsitle
and author are overwritten by UDS when opening a document)
- Modify more documents at once (like delete)
- Tool to change tag from installation script (or other script)
- Add configurable items to mdbindex (tool that does automatic tagging during start-up/card re-insertion)
- Create east way to add 'standard' tags, or clear tag
- and the list will grow ...

Note that I make all these patches for my personal use, but others are free to use them as-is or in their own patches.

Please give any feedback on changes/improvements/etc.
Attached Files
File Type: zip MackxPatch-dr1000-p2.zip (81.6 KB, 618 views)
File Type: zip MackxPatch-dr1000-p2-src.zip (55.0 KB, 639 views)

Last edited by Mackx; 08-05-2010 at 06:22 PM. Reason: Updated source files
Mackx is offline   Reply With Quote