2
0
mirror of https://github.com/koreader/koreader synced 2024-10-31 21:20:20 +00:00
Commit Graph

162 Commits

Author SHA1 Message Date
Qingping Hou
9144cabc76 fix bug in partial refresh count 2012-04-19 14:10:37 +08:00
Qingping Hou
ca55b39756 fix turn to previous page with KEY_LPGBCK 2012-04-19 13:57:30 +08:00
Qingping Hou
e282179793 fix bug in addJump and addBookmark
Pointed out by kljohann, thanks.
Now addJump and addBookmark get notes
from specified pageno/xpointer instead
of current page.

* also fixed bug in page number counting
  in cre.cpp
2012-04-19 09:58:34 +08:00
Qingping Hou
3306346dba use debug to print debug info 2012-04-19 00:16:49 +08:00
Qingping Hou
35e4ceaf57 fix page comparing in addJump 2012-04-19 00:04:41 +08:00
Qingping Hou
b1e49446a0 fix typo in unireader 2012-04-18 20:05:12 +08:00
Qingping Hou
fa414af1eb handle obselete jumpstack settings
* remove jumpstack settings if found
* add DocSettings:delSetting method
* rename DocSettings:savesetting to
  DocSettings:savesetting.
2012-04-18 17:29:27 +08:00
Qingping Hou
84fe9f49a4 rewrite jump stack and add bookmark feature
* jump stack is rewritten as jump history
* add bookmark feature
2012-04-18 17:01:22 +08:00
Dobrica Pavlinusic
eeffcc4f21 unireader now users debug #121 2012-04-17 19:05:22 +02:00
Dobrica Pavlinusic
f8f8a58bd9 fixed my first use of showInfoMsgWithDelay 2012-04-17 18:58:49 +02:00
Dobrica Pavlinusic
38bbe0f227 showInfoMsgWithDelay for highlight 2012-04-17 18:10:03 +02:00
Qingping Hou
dc36e61422 put cursor on the left of first word 2012-04-17 18:05:12 +08:00
Qingping Hou
1bc250591e add left page turn key back to unireader commands 2012-04-17 17:47:19 +08:00
Qingping Hou
0075580b09 more notifications for manual crop shortcuts 2012-04-17 14:36:37 +08:00
Qingping Hou
14bc4ece53 add notification for manual crop settings 2012-04-17 14:29:38 +08:00
Dobrica Pavlinusic
53fcb2490b exit with just home (no modifier) 2012-04-16 14:28:46 +02:00
Dobrica Pavlinusic
b06927dcfe fix modifier for zoom in 2012-04-16 14:24:03 +02:00
traycold
02dd9b023f Merge remote branch 'hwhw/master'
* hwhw/master: (183 commits)
  show infomessage on document open
  use InfoMessage for empty TOC, jump history and highlights
  copy resources dir on customupdate
  add resource: info icon
  display document open error message
  added infomessage dialog implementation
  bugfix, removed old test constant
  Added widget abstraction framework
  added interface to get blitbuffers from JPEG/PNG files
  fix typo
  added reading of pan_margin settings
  fix full screen refresh command, close #99
  add: sleep and usleep in util module
  fix: add back KEY_FW{LEFT,RIGHT} commands to NumInputBox
  reverted removal of last-doc shortcut, introduced framework restart
  kill our own child process. not quite finished.
  added line spacing setting for crereader
  remove page:getPageText debug dump to improve performance on device
  remove page:getPageText debug dump to improve performance on device
  display crash.log on error
  ...

Conflicts:
	ft.c
	helppage.lua
	inputbox.lua
	rendertext.lua
	rendertext_example.lua
	unireader.lua
2012-04-16 00:08:19 +02:00
traycold
6c9ec8c896 refactoring for display help page 2012-04-15 16:07:39 +02:00
Qingping Hou
f24f2a01f6 use InfoMessage for empty TOC, jump history and highlights 2012-04-15 11:02:42 +08:00
Dobrica Pavlinusic
eeae5982dd added reading of pan_margin settings 2012-04-14 16:23:41 +02:00
Qingping Hou
cde796f6b5 fix full screen refresh command, close #99 2012-04-14 14:27:17 +08:00
Dobrica Pavlinusic
b6d167f8ca remove page:getPageText debug dump to improve performance on device
And leave it in unireader if we can't find text on page
2012-04-14 00:03:16 +02:00
Dobrica Pavlinusic
81c6dc5997 commands.map is very large, impacts startup performance on device 2012-04-13 20:46:10 +02:00
Dobrica Pavlinusic
96958c62ca added UniReader:screenOffset and use it 2012-04-13 18:10:11 +02:00
Dobrica Pavlinusic
4d49e9f28b correct two-column margin calculation respecting globalzoom 2012-04-13 17:57:49 +02:00
Dobrica Pavlinusic
0a8ca94218 make highlight working in all zoom modes #103
This change introduce object's dest_x and dest_y coordinates which
are needed in zoomedRectCoordTransform to make highlight scale and
move according to current pan position.
2012-04-13 16:51:17 +02:00
Qingping Hou
3828a6c440 fix: clear show_overlap in two column mode on KEY_FW_{LEFT, RIGHT} 2012-04-13 17:09:15 +08:00
Qingping Hou
75f244eb60 fix: typo in unireader 2012-04-13 10:37:50 +08:00
HW
57d769e0ae added wrapper function for input.waitForEvent that retries on EINTR 2012-04-12 21:00:44 +02:00
Qingping Hou
1407579ea8 mod: remove debug code 2012-04-12 17:49:38 +08:00
Qingping Hou
dcd485c84c fix: bug in highlighting words
Properly highlight words that partially fit
into screen range.
2012-04-12 17:31:01 +08:00
Qingping Hou
3438d6749d mod: rewrite part of highlight code
* add _isEntireLineInScreenHeightRange() method
  For better page view navigation when highlighting
  or moving cursor.

* bug fix in _isWordInScreenRange() method

* add _nextGap(), _prevGap(), _gapInNextLine()
  and _gapInPrevLine() methods, so now key event
  handling code in cursor moving mode only focuses
  on drawing, calculation task is passed to these
  four methods.
2012-04-12 15:50:19 +08:00
Qingping Hou
75d5b5f984 fix: three bugs in highlight mode
* handle left end of first line in cursor move
* properly highlight first word if cursor starts
  from left end of first line
* handle right end of last line in cursor move
2012-04-12 13:43:20 +08:00
Qingping Hou
66ab3a2f56 fix: typo in unireader's comment 2012-04-12 11:34:24 +08:00
Qingping Hou
56d4700001 mod: changes APIs in highlighting code 2012-04-12 11:23:22 +08:00
HW
face8b44c0 fixed cursor positioning 2012-04-11 23:33:47 +02:00
HW
46d197954b put highlight implementation into unireader 2012-04-11 22:52:48 +02:00
Dobrica Pavlinusic
b555596f42 correctly dim part of page when hitting margins 2012-04-10 23:15:09 +02:00
Qingping Hou
7093e7377e fix: reset dc after screen rotate
handle ZOOM_FIT_TO_CONTENT_WIDTH_PAN mode
seperately.
2012-04-10 21:34:38 +08:00
Qingping Hou
c85b768c0e switched shortcut between 10 degree and 90 degree rotation
* also deleted 10 degree rotation shortcut in
djvureader, becuase it is not supported by the
library.
2012-04-10 20:45:22 +08:00
Qingping Hou
95998a7397 add: NumInputBox class for goto page feature 2012-04-10 15:52:51 +08:00
HW
040a4e88b9 Merge pull request #95 from dpavlin/master
show overlap when moving with pan_by_page
2012-04-09 11:42:40 -07:00
HW
1c50a5676a free blitbuffers when cleaning complete cache 2012-04-09 19:58:34 +02:00
HW
ec2eda0c05 switched font handling to only work with external fonts
now you can use a environment variable, FONTDIR, to point
to a font dir. Otherwise, "./fonts" is used by default.
Subdirectories are indexed.
2012-04-09 19:04:26 +02:00
Dobrica Pavlinusic
752da5ca3f use pan_overlap_vertical only in pan_by_page mode 2012-04-09 16:36:23 +02:00
Dobrica Pavlinusic
9dd9df0356 added dimRect and use it
dimRect might be useful if we want to display status messages over
content (as opposed to erasing background)
2012-04-09 16:36:22 +02:00
Dobrica Pavlinusic
5d9176907f show_overlap inverts part of page visible in previous view
This is nice feature of Sony e-book readers which is very useful when
reading since it shows previous part of visible page and provides
hint where to continue reading after page refresh
2012-04-09 16:36:22 +02:00
Qingping Hou
ecd56a3745 mod: prefix global variables width and height with G_ 2012-04-09 15:42:19 +08:00
Qingping Hou
5f7f9a2a83 fix: remove slider event handling in unireader
Slider event handling has been moved to commands
module, refer to previous commit.
2012-04-08 12:49:23 +08:00