Commit Graph

1207 Commits (93abd2fee73107adbee9fc09c27b1945ae422887)
 

Author SHA1 Message Date
Qingping Hou 93abd2fee7 add page status to readerrolling for better page view_mode support
* now when rendering in page view mode, we only keep track of page
number instead of pos inside document. Because using pos inside
document for page view mode is really a bad idea and will lead to
many unsovlabe bugs...
12 years ago
Qingping Hou 5ab98420bd use predefined variable instead of magic number for view_mode 12 years ago
Qingping Hou d24d8f2ff4 3 new cre methods from @kai771
renamed from kai's commit:

* setViewMode
* setHeaderInfo
* setHeaderFont
12 years ago
Qingping Hou efa37c97ab bug fix in readerfont
After set font in ReaderFont:onReadSettings, we have to send UpdatePos
event in order to set m_is_rendered(member of LVDocView) to true.

Otherwise position inside document will be reset to 0 on first view
render, this makes the first page of document is always displayed on
document open.

So far, I don't know why this call will alter the value of m_is_rendered.
It just works...
12 years ago
{Qingping,Dave} Hou 946679aa2f Merge pull request #659 from houqp/new_ui_houqp
multiple fixes & cre view mode support & update from master
12 years ago
Tigran Aivazian 1237453a75 Enable hyphenation and set status font
Conflicts:
	crereader.lua
12 years ago
Qingping Hou 41c32a6630 minor tweak for kpvcrlib/CMakeLists.txt 12 years ago
Qingping Hou 3838d8f890 build crengine as shared library
* upstream project removed CMakeLists.txt in crengine dir now, so I
added our own in kpvcrlib/CMakeLists.txt

* fix segfault bug in lvimg.cpp by removing JCONFIG_INCLUDED definition
12 years ago
Qingping Hou 4d010f10e2 disable overlap dimming for page view mode in crereader 12 years ago
Qingping Hou ceae2e2d04 bump crengine to version cr3-3.1.2-27 12 years ago
Qingping Hou 5a57ef84d3 remove default_font in readerfont because it is defined in credocument. 12 years ago
Qingping Hou e27b99f770 read font_face and font_size from document settings
This is done in readerfont.lua
12 years ago
Qingping Hou 5d1c98e90a add setFontSize to credocument.lua 12 years ago
Tigran Aivazian cb1f28d598 Enable chapter marks in crengine header. 12 years ago
Qingping Hou 590bf149be count FrameContainer padding into menu title bar size 12 years ago
Qingping Hou 2050696de6 bug fix in FrameContainer
content_size should be obtained by calling self[1]:getSize()
12 years ago
Qingping Hou 6beebe4423 remove menu item underline for touch device 12 years ago
Qingping Hou f568ee4139 remove unnecessary framecontainer in reader.lua 12 years ago
Qingping Hou dbd27cd600 rename ReaderMenu:addToMainMenuCallback to registerToMainMenu
since we are actully inserting widgets, not callbacks
12 years ago
Qingping Hou 5b6558383d register ReaderZooming's zoommode menu in ReaderMenu 12 years ago
Qingping Hou 9a439f5dc4 register ReaderFont's font menu in ReaderMenu 12 years ago
Qingping Hou f7c65ebef7 add register_widget in ReaderMenu & minor fixes in menu.lua
* now readerwidgets can add menu items in ReaderMenu by
calling ReaderMenu:addToMainMenuCallback and define its own
addToMainMenu method, which takes ReaderMenu's item_table as argument.
12 years ago
Qingping Hou 93f7813d1a do deep copy on InputContainer widget _init 12 years ago
Qingping Hou 476733dc87 register font menu to main reader menu for touch device 12 years ago
Qingping Hou 1675d8667b add cre view mode support in frontend 12 years ago
Qingping Hou 454ffc0479 add change view mode feature for crereader
Conflicts:
	crereader.lua
	defaults.lua
12 years ago
Qingping Hou 756cce6174 use DroidSansFallback.ttf in font.lua 12 years ago
Tigran Aivazian 667d6b654f Don't use DroidSansFallbackFull.ttf fonts
Use DroidSansFallback.ttf rather than DroidSansFallbackFull.ttf because
that is what is used for rendering cjk glyphs by mupdf (see mupdf.patch).

Conflicts:
	font.lua
12 years ago
Qingping Hou 93b642a0d7 fix Device:isKindle4() method 12 years ago
Qingping Hou 27ec17b405 only echo to /proc/keypad for K3 and DXG 12 years ago
{Qingping,Dave} Hou 7557958155 Merge pull request #656 from houqp/new_ui_houqp
dimming on overlap and Kindle Touch support
12 years ago
Qingping Hou 309af296db read document configuration files from history dir
this feature was introduced by @NuPogodi in old KPV
12 years ago
Qingping Hou 97041638a6 Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into new_ui_houqp 12 years ago
{Qingping,Dave} Hou a38befdf8f Merge pull request #657 from houqp/new_ui_menu_close
bug fixes and new feature for menu widget
12 years ago
eureka 424776b564 fix bug in eventhook for KT
* no return
* it is value that should be changed
12 years ago
Qingping Hou b253a774f6 added TODO in Input:init in case I forget it in the future 12 years ago
Qingping Hou c8d43cd33c add Input:eventAdjustHook(ev)
so we can adjust input event for KT on the fly.
the touch input event coordinates in KT ranges from 0-4095
instead of the screen size.
12 years ago
Qingping Hou e80987c430 rename mxcfb_update_data51 to mxcfb_update_data
as suggested by eureka@mobileread:
http://www.mobileread.com/forums/showthread.php?p=2337061#post2337061
12 years ago
eureka 15e0af2857 update mxcfb_alt_buffer_data struct, added MXCFB_SEND_UPDATE51
* mxcfb_alt_buffer_data is modified according to amazon's source
* use MXCFB_SEND_UPDATE51 instead of magic raw number for update
12 years ago
Qingping Hou 334f680598 use proper eink update function for KT 12 years ago
Qingping Hou 1b7357fc0f add Device:hasKeyboard to help initialize UI components
So that kindle4 won't have all the gesture event registered.
12 years ago
eureka bf86cf7a93 KT input device patch from eureka
* add KT detection
* remove unnacessary input device for KT
12 years ago
Qingping Hou c0616b4173 make sure menu height not exceed screen height. 12 years ago
Qingping Hou 5fc4adafc4 fill menu with dummy blank widget to extend its height 12 years ago
Qingping Hou 418bfd9fc2 remove update_area since I cannot come up with a good implementation yet 12 years ago
Qingping Hou c8de4f3f6c adapt filechooser and readermenu to new menu widget
* now if you want to center a menu, you have to wrap it
in CenterContainer. Refer to readermenu for details.
12 years ago
Qingping Hou 92bce18537 bug fix in InputContainer and menu widget
* add _init callback for all widgets, which is used for base widget
initialization. see comment in Widget:new(o) for more information.

* new ges_events and key_events are created for each InputContainer
widget, previously, they shared the same tables.

* remove hardcoded menu widget dimen

* recalculate menu dimen on table item changes

* add CloseAllMenus for menu widget
12 years ago
Qingping Hou cc38d9e6fc add KT support 12 years ago
Qingping Hou e98a89f8d5 demo for dimming on page overlap 12 years ago
Qingping Hou 683c7eee2c handle corrupted usedbbox in Document:getUsedBBoxDimensions() 12 years ago