Commit Graph

174 Commits (2a2a0828c8be75c51ad12f2f070704d9902fc879)

Author SHA1 Message Date
Dobrica Pavlinusic 761cd68964 highlight mode also benefits from key repeat 12 years ago
Dobrica Pavlinusic 9bdf4bf4c7 prevent full screen refresh if key is repeating #142 12 years ago
Dobrica Pavlinusic 6a479aee80 support pressed or repeating keys 12 years ago
Dobrica Pavlinusic 44be823115 use getRectInScreen 12 years ago
Dobrica Pavlinusic 37289fb18d invert page bbox on X #35 12 years ago
Dobrica Pavlinusic 5492025a38 pan_margin is really in screen pixels
I don't know what I was thinking when implementing this code. If I
modify it with global zoom, it keeps moving, as we zoom in on multiple
key presses
12 years ago
Qingping Hou a99a0a9489 fix bug in highlight engine
only goto next view when the word is in next view.
same for previous view
12 years ago
Qingping Hou 1a2be0453d fix bug in highlight engine
handle left end of line in highlight delete.
12 years ago
Qingping Hou 8d74649642 adjust wording 12 years ago
Qingping Hou c350f5af87 add: hint message for inputbox
use hint message to indicate current page
in goto page feature.
12 years ago
Qingping Hou eaafcafb9e add fix KEY_LPG{BCK,FWD} listening for unireader 12 years ago
Qingping Hou b03d589ae9 add preLoadSettings methods for cache_document_size setting
cache_document_size should be configurable for
every docuemnt and it must be loaded before
document open, so I added the preLoadSettings method
12 years ago
Qingping Hou 9144cabc76 fix bug in partial refresh count 12 years ago
Qingping Hou ca55b39756 fix turn to previous page with KEY_LPGBCK 12 years ago
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
12 years ago
Qingping Hou 3306346dba use debug to print debug info 12 years ago
Qingping Hou 35e4ceaf57 fix page comparing in addJump 12 years ago
Qingping Hou b1e49446a0 fix typo in unireader 12 years ago
Qingping Hou fa414af1eb handle obselete jumpstack settings
* remove jumpstack settings if found
* add DocSettings:delSetting method
* rename DocSettings:savesetting to
  DocSettings:savesetting.
12 years ago
Qingping Hou 84fe9f49a4 rewrite jump stack and add bookmark feature
* jump stack is rewritten as jump history
* add bookmark feature
12 years ago
Dobrica Pavlinusic eeffcc4f21 unireader now users debug #121 12 years ago
Dobrica Pavlinusic f8f8a58bd9 fixed my first use of showInfoMsgWithDelay 12 years ago
Dobrica Pavlinusic 38bbe0f227 showInfoMsgWithDelay for highlight 12 years ago
Qingping Hou dc36e61422 put cursor on the left of first word 12 years ago
Qingping Hou 1bc250591e add left page turn key back to unireader commands 12 years ago
Qingping Hou 0075580b09 more notifications for manual crop shortcuts 12 years ago
Qingping Hou 14bc4ece53 add notification for manual crop settings 12 years ago
Dobrica Pavlinusic 53fcb2490b exit with just home (no modifier) 12 years ago
Dobrica Pavlinusic b06927dcfe fix modifier for zoom in 12 years ago
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
12 years ago
traycold 6c9ec8c896 refactoring for display help page 12 years ago
Qingping Hou f24f2a01f6 use InfoMessage for empty TOC, jump history and highlights 12 years ago
Dobrica Pavlinusic eeae5982dd added reading of pan_margin settings 12 years ago
Qingping Hou cde796f6b5 fix full screen refresh command, close #99 12 years ago
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
12 years ago
Dobrica Pavlinusic 81c6dc5997 commands.map is very large, impacts startup performance on device 12 years ago
Dobrica Pavlinusic 96958c62ca added UniReader:screenOffset and use it 12 years ago
Dobrica Pavlinusic 4d49e9f28b correct two-column margin calculation respecting globalzoom 12 years ago
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.
12 years ago
Qingping Hou 3828a6c440 fix: clear show_overlap in two column mode on KEY_FW_{LEFT, RIGHT} 12 years ago
Qingping Hou 75f244eb60 fix: typo in unireader 12 years ago
HW 57d769e0ae added wrapper function for input.waitForEvent that retries on EINTR 12 years ago
Qingping Hou 1407579ea8 mod: remove debug code 12 years ago
Qingping Hou dcd485c84c fix: bug in highlighting words
Properly highlight words that partially fit
into screen range.
12 years ago
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.
12 years ago
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
12 years ago
Qingping Hou 66ab3a2f56 fix: typo in unireader's comment 12 years ago
Qingping Hou 56d4700001 mod: changes APIs in highlighting code 12 years ago
HW face8b44c0 fixed cursor positioning 12 years ago
HW 46d197954b put highlight implementation into unireader 12 years ago