Commit Graph

32 Commits (ef111b99c620a412d27544ba3c0aeb58f19183e6)

Author SHA1 Message Date
HW ef111b99c6 Refactored to use strictly locals 11 years ago
chrox cd2ee14b91 various fixes on Device:hasKeyboard check 11 years ago
chrox 32ffacdf77 adjust font sizes in credocument according to screen dpi
and font sizes list is moved to defaults.lua
11 years ago
Qingping Hou f36279ed53 wrap text with gettext in readercropping and readerfont 11 years ago
Qingping Hou 28e5907d51 use scaleByDPI in all widgets 11 years ago
Qingping Hou 1fcb5281a0 use touchmenu widget in readermenu 11 years ago
Qingping Hou 22c3043959 add calling item.callback() as default onMenuChoice action 11 years ago
Qingping Hou 69260aaac8 cosmetic changes to menu wording 11 years ago
Qingping Hou 874890aaec save and restore gamma_index for crengine 12 years ago
Qingping Hou 5abf3cb92d save header_font_face 12 years ago
Qingping Hou b7ced36957 read LineSpace from config 12 years ago
Qingping Hou 02ea5f1fbf read header font from config 12 years ago
Qingping Hou 687aabc173 adapt ui to loadDocument before setFont 12 years ago
Qingping Hou 8c973457a0 save and restore line_space_percent in ReaderFont 12 years ago
Qingping Hou e03963f4f2 replace InfoMessage with Notification in readerfont.lua 12 years ago
Qingping Hou 61613323fe add ReaderFont:onChangeFontGamma() 12 years ago
Qingping Hou 204cfb2b17 return true in event handlers
we should do that when we know a event handler is only used in
that widget
12 years ago
Qingping Hou e573fcf2de add ReaderFont:onToggleFontBolder 12 years ago
Qingping Hou fdc05b066c add readerconfig to document supported by crengine
* now font size can be changed by readerconfig
12 years ago
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 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 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 dbd27cd600 rename ReaderMenu:addToMainMenuCallback to registerToMainMenu
since we are actully inserting widgets, not callbacks
12 years ago
Qingping Hou 9a439f5dc4 register ReaderFont's font menu in ReaderMenu 12 years ago
Qingping Hou 476733dc87 register font menu to main reader menu for touch device 12 years ago
Qingping Hou 59592e862e read font settings on readsettings event 12 years ago
Qingping Hou 45e9198ab2 add document fontface and fontsize settings support 12 years ago
Qingping Hou 51ed793d14 add screen rotate support 12 years ago
Qingping Hou bad329811d add line space control feature for credocument 12 years ago
Qingping Hou b3cdbeee19 add font size control feature for credocument
also rename getFont to getFontFace
12 years ago
Qingping Hou 0ddc9f6e99 add back readerfont.lua 12 years ago