bhaak/HackedUpReader — pull request #1 by varnie (2012-03-18 08:32:04+00:00)
Title: Several updates for Kindle Touch support

Changelog:
+ warning fix in CMakeLists.txt
+ the open ebooks feature from the main menu (added the books dialog).
+ passing the ebook file path to the application is removed for Kindle Touch. Now it is possible to open ebooks from the main menu option.
+ writing the debug logs into a log file added by default.
+ close book menu option renamed
+ fixed null pointer bugs in CRBookmarkMenu::getSelectedItemIndex() in case there're no bookmarks.
+ added an attempt to open the recent book at start.
+ added an ability to return to the main menu from the bookmarks dialog and the recent books dialog.
+ use macros for generating CR_ENGINE_BUILD_DATE build date.
+ support for opening CHM books in Open Books dialogue. (may be incomplete, i.e. it CR3 doesn't handle CHM files good AFAIK)

Note: some KINDLE_TOUCH specific code snippets are hard-coded. They are enclosed in #ifdef KINDLE_TOUCH and #endif macros. They may be refactored to improve readability and design. My CMake knowledge is limited so I'd be glad if you can elaborate the issue.

Write back,
/varnie