2
0
mirror of https://github.com/koreader/koreader synced 2024-11-11 19:11:14 +00:00
Commit Graph

279 Commits

Author SHA1 Message Date
chrox
7af80f63f6 check screen mode in koptinterface 2013-02-11 00:51:55 +08:00
chrox
1f511757c5 bugfix: calculate current config value or arg at runtime 2013-02-10 20:52:44 +08:00
{Qingping,Dave} Hou
85b4d60efc Merge pull request #735 from chrox/ui-tweaks
set menu font size according to screen dpi
2013-02-05 19:40:54 -08:00
chrox
21c972a786 hide DPI dependency in Font module 2013-02-05 18:15:45 +08:00
Qingping Hou
ae6c4bd03a Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate
Conflicts:
	frontend/ui/reader/readerconfig.lua
2013-02-04 15:00:17 +08:00
chrox
0ed5d05bc0 hash current bbox explicitly 2013-02-03 22:58:30 +08:00
chrox
4675a220d8 add current bbox in page rendering hash
So that changing bbox could take effect on current page.
2013-02-03 21:36:11 +08:00
Qingping Hou
f91c913530 set default_arg for screen_mode option on runtime 2013-02-03 13:17:02 +08:00
Qingping Hou
0dba667937 rename setScreenViewMode to setScreenMode 2013-02-03 13:13:46 +08:00
Qingping Hou
03b73712bc Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into rotate
Conflicts:
	frontend/document/koptinterface.lua
2013-02-03 12:34:55 +08:00
chrox
1be80d15ae code cleanup 2013-02-03 11:28:50 +08:00
chrox
1c40d127cd add icon option items in config dialog 2013-02-03 11:26:14 +08:00
chrox
25bcbfa53a set menu font size according to screen dpi 2013-02-03 05:16:19 +08:00
chrox
a1aa41136c add manual page crop for pdf/djvu documents 2013-02-03 04:42:59 +08:00
Qingping Hou
2d9534e092 add screen rotate to readerconfig 2013-02-02 17:02:36 +08:00
chrox
563fd50dc3 add toggle switch widget in config option 2013-01-25 23:53:00 +08:00
Qingping Hou
6d8ebb4126 adapt credocument to new changes in cre.cpp 2013-01-22 06:27:22 +08:00
Qingping Hou
65910b2017 add default_css to credocument 2013-01-17 17:12:20 -05:00
Qingping Hou
6c4da43dbf add setStyleSheet method to credocument 2013-01-17 16:59:40 -05:00
{Qingping,Dave} Hou
55b2d4f993 Merge pull request #714 from chrox/config_ui
some config UI changes
2013-01-15 13:39:26 -08:00
chrox
494585ce41 rename 'screen rotation' option in koptinterface to 'vertical text' 2013-01-15 19:53:57 +08:00
chrox
6ed1a9012b show more options 2013-01-15 19:11:16 +08:00
Qingping Hou
93d3aea905 pass filename properly for zipped fb2 in CreDocument:init() 2013-01-13 12:17:43 +08:00
Qingping Hou
874890aaec save and restore gamma_index for crengine 2013-01-13 12:07:20 +08:00
Qingping Hou
02ea5f1fbf read header font from config 2013-01-13 11:23:30 +08:00
Qingping Hou
687aabc173 adapt ui to loadDocument before setFont 2013-01-13 10:22:33 +08:00
Qingping Hou
789b5d57e2 read page information for crerengine 2013-01-09 16:41:42 +08:00
Qingping Hou
79839021ed Merge branch 'new_ui_code' into hint_page_fix
Conflicts:
	frontend/ui/reader/readerview.lua
2013-01-09 12:19:46 +08:00
{Qingping,Dave} Hou
b04b1e8b58 Merge pull request #690 from houqp/new_ui_houqp
font size, line space, font weight, font gamma and viewmode support for crengine
2013-01-08 20:16:11 -08:00
Qingping Hou
c8dce5f351 Merge branch 'new_ui_code' of github.com:hwhw/kindlepdfviewer into hint_page_fix
Conflicts:
	frontend/document/document.lua
2013-01-09 11:38:49 +08:00
Qingping Hou
93cad1428c add render_mode into render hash 2013-01-09 06:06:53 +08:00
Qingping Hou
1fa0d886bd add render mode to hint page 2013-01-09 05:51:53 +08:00
chrox
c8b699c068 bugfix: check renderpg hash before hinting page 2013-01-08 17:00:18 +08:00
Qingping Hou
59a424203b add font gamma to readerconfig 2013-01-07 16:42:50 -05:00
Qingping Hou
5ce4f24c37 move CreOptions to credocument.lua 2013-01-07 12:32:33 -05:00
Qingping Hou
2fa919e1b6 add CreDocument:toggleFontBolder 2013-01-07 12:16:17 -05:00
Qingping Hou
ac1cf212d1 add setViewMode to CreDocument 2013-01-07 06:53:35 -05:00
Qingping Hou
fdc05b066c add readerconfig to document supported by crengine
* now font size can be changed by readerconfig
2013-01-06 23:21:11 -05:00
chrox
aa152a8a51 make readerconfig independent of koptoptions
So that other readers could reuse readerconfig
2013-01-06 14:01:34 +08:00
{Qingping,Dave} Hou
3ec818a3cd Merge pull request #684 from chrox/koptreader-new-ui
add reflow mode in pdf/djvu readers
2013-01-04 00:28:57 -08:00
chrox
349bcb996e use koptinterface to reflow text in pdf/djvu readers 2013-01-03 22:33:49 +08:00
chrox
e525264b01 save/restore koptconfig to setting files 2012-12-24 17:36:52 +08:00
chrox
a649301e69 make pdfreader and djvureader the defaults 2012-12-24 08:19:34 +08:00
chrox
074522a36b first usable koptreader for new UI 2012-12-24 08:16:41 +08:00
chrox
138def10c3 Demo version of koptreader config dialog. 2012-12-24 08:16:17 +08:00
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...
2012-12-22 13:27:46 +08:00
Qingping Hou
5ab98420bd use predefined variable instead of magic number for view_mode 2012-12-21 09:10:16 +08:00
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...
2012-12-21 06:00:51 +08:00
Qingping Hou
5d1c98e90a add setFontSize to credocument.lua 2012-12-17 14:50:50 +08:00
Qingping Hou
1675d8667b add cre view mode support in frontend 2012-12-13 12:41:48 +08:00
Qingping Hou
683c7eee2c handle corrupted usedbbox in Document:getUsedBBoxDimensions() 2012-12-07 16:42:27 -05:00
{Qingping,Dave} Hou
5cbbfaceff Merge pull request #649 from chrox/koptreader-new-ui
move page reflowing code to getPageDimensions method
2012-12-04 01:08:12 -08:00
chrox
fd461e4f3e move page reflowing code to getPageDimensions method 2012-12-04 10:36:36 +08:00
Qingping Hou
7b707ab367 add usedbbox support 2012-12-02 17:09:32 +08:00
Qingping Hou
7e04c97b70 bug fix for PdfDocument:getUsedBBox
when cache found, we should return cache.ubbox
not cache.data
2012-12-02 15:14:02 +08:00
chrox
aa9fe4b01c cache page size after page is reflowed
So that when page dimension is recalculated right page size
other than screen size is returned.
2012-11-29 21:58:12 +08:00
chrox
c462090600 add koptreader demo 2012-11-27 20:43:49 +08:00
Qingping Hou
e3617676a1 fix deprecated debug call in credocument.lua 2012-11-23 01:10:34 -05:00
Qingping Hou
36a4ead630 update document.lua according to API change in cre.cpp 2012-11-11 14:29:56 +08:00
Qingping Hou
ea022b651f add rendermode support for djvu documents 2012-10-09 18:26:01 -04:00
Qingping Hou
8ccbfba6cc Djvu Validate patch from tigran123
refer to commit in master(kpv) tree:
64b6ef4afd
2012-10-09 16:15:13 -04:00
Tigran Aivazian
d551e7fb63 Cleanup crereader fonts initialization.
Don't try to register the two fonts Dingbats.cff and StandardSymL.cff
with crengine because it will reject them anyway. But we cannot simply
remove these two fonts because they are used internally by mupdf to
emulate "builtin" fonts which are mandated by Adobe PDF specification to
be present in every valid implementation.
2012-10-03 13:08:27 -04:00
Qingping Hou
eb79e1c95c handle file with no extension in filechooser 2012-09-17 20:36:39 -04:00
Qingping Hou
25af917170 call cre.initCache() in CreDocument:engineInit() 2012-09-17 20:12:33 -04:00
Qingping Hou
c1ccff70ad minor adjustment for Makefile and document.lua 2012-08-25 22:52:12 +08:00
Qingping Hou
bad329811d add line space control feature for credocument 2012-06-12 21:12:04 +08:00
Qingping Hou
b3cdbeee19 add font size control feature for credocument
also rename getFont to getFontFace
2012-06-12 20:59:56 +08:00
Qingping Hou
acaf8d660e font menu for readerui 2012-06-12 17:42:28 +08:00
Qingping Hou
77761554d9 add CreDocument:engineInit() method 2012-06-12 14:52:35 +08:00
Qingping Hou
d89cbc43f9 replace getProvider with openDocument
now getProvider only returns the provider
2012-06-12 14:38:00 +08:00
Qingping Hou
2b39ba8b83 register all the supported formats for crengine 2012-06-11 23:50:11 +08:00
HW
ce5614ef6f cleanup, also removal of G_* constants
a bit of cleanup, switched width/height combo over to use
Geom() objects, moved framebuffer handling to Screen object,
callback syntax sanitizing, lots of small changes
2012-06-10 17:36:19 +02:00
Qingping Hou
e7d16de4e2 first demo for credocument 2012-06-05 15:23:36 +08:00
Qingping Hou
b40a748a78 move duplicate codes to document.lua 2012-06-03 22:26:16 +08:00
Qingping Hou
7f6773dc6f demo for djvu support
wait for code clean up
2012-06-03 11:11:15 +08:00
HW
60ccd7441e fixed menu info displaying, replaced debug() by DEBUG()
the replacement of debug() was necessary to be able to access the lua library "debug" (for backtraces etc.)
2012-05-28 18:59:16 +02:00
Qingping Hou
cf048e286d add toc menu support for readerui 2012-05-27 19:47:22 +08:00
HW
d5c7e6ccb5 factored out pdfdocument implementation 2012-05-19 01:13:53 +02:00
HW
9e531fc2db file reorganisation
all lua frontend files are now in the frontend/ directory.
all old code is cleaned up.
2012-05-19 01:10:57 +02:00