Dobrica Pavlinusic
f2eeca73aa
overlay keyboard shortcuts on top of links
...
This is example of user interface discussed in #309
2012-09-24 20:27:13 +02:00
Dobrica Pavlinusic
2774350ec6
transform coordinates to on-screen values
2012-09-24 17:49:03 +02:00
Dobrica Pavlinusic
0828468b12
try to draw inverted rectangles over links
...
This commit nicely shows that we need to translate link coordinates
2012-09-24 17:49:03 +02:00
Dobrica Pavlinusic
46afa82b52
add LF to end of debug message
2012-09-24 17:49:03 +02:00
Dobrica Pavlinusic
71ff602cd5
getPageLinks implementation for mupdf #72
...
This is rough first draft, and provides just dump of all links
available on pdf page. Binding to Shift+L is temporary and just for
debugging!
2012-09-24 17:49:03 +02:00
Dobrica Pavlinusic
e1fc748faf
fix indenting to tabs
2012-09-24 17:49:03 +02:00
Dobrica Pavlinušić
6f0ea100ce
Merge pull request #306 from tigran123/master
...
Don't write to temporary file on the flash device.
2012-09-24 04:49:59 -07:00
Tigran Aivazian
d338eff00d
Don't write to temporary file on the flash device.
...
Instead of writing to (and reading from) the temporary file
"history/.history.txt" create a pipe to the appropriate process
and read from it.
2012-09-24 09:04:57 +01:00
{Qingping,Dave} Hou
52d4b09d6b
Merge pull request #304 from tigran123/master
...
TOC and crash when pressing C in Menu in crereader + Active Hotkeys in SelectMenu
2012-09-22 10:49:29 -07:00
Tigran Aivazian
2c021d9d4e
Corrected the showMenu() function to belong to the right object!
...
UniReader -> CREReader in crereader.lua.
2012-09-22 18:33:09 +01:00
Tigran Aivazian
8b2143561e
Avoid printing long messages in the SelectMenu footer.
...
Bind Alt-H to show the help page with all the active hotkeys.
Thanks to NuPogodi for the suggestion.
2012-09-22 12:41:19 +01:00
Tigran Aivazian
de5cf52255
Merge remote-tracking branch 'upstream/master'
2012-09-22 11:46:04 +01:00
NuPogodi
f7779d7c2a
Merge pull request #305 from NuPogodi/master
...
avoid rendering infomessages with monospaced font
2012-09-22 03:31:33 -07:00
NuPogodi
e621e006b9
Avoid rendering infomessages with the 'infont' used in user-inputbox (i.e. monospaced font hardly suitable for messages)
...
BTW, I've fixed it already the 3rd time and, let me hope, the last one.
2012-09-22 13:28:01 +03:00
Tigran Aivazian
a9f4dd3b1f
The second part of the TOC/crereader fix.
...
Redraw the current page when selecting a TOC entry.
Otherwise the correct page is shown only after the next Menu press
or anything else that does current page redraw, e.g. Shift-R.
2012-09-22 10:51:00 +01:00
Tigran Aivazian
de96f30eff
Prove CREReader:showMenu() method because the generic
...
UniReader:showMenu() method invokes :cleanCache() method which is
non-existent for CREReader object and causes a crash if you press C
after pressing Menu while viewing any of crereader-handled files (fb2,
epub, etc.)
2012-09-22 09:40:13 +01:00
Tigran Aivazian
3056bf440c
Fix for TOC breakage for crengine-related files.
...
In UniReader:showToc() function we cannot use goto() by page number
but have to use self:gotoTocEntry() because crereader defines its own
CREReader:gotoTocEntry() method which uses "xpointer" field of the TOC
entry for this purpose.
With this fix the TOC navigation in crengine-related files works
correctly, BUT after each jump you have to press Menu to refresh the
page for some reason (adding explicit self:redrawCurrentPage() in the
code before gotoTocEntry() doesn't help). This seems to be an unrelated
problem to do with cr3 caching or something else. I will try to
investigate it as well, but for now I am committing the fix for the TOC side
of the problem.
2012-09-21 23:05:19 +01:00
Dobrica Pavlinušić
940408fc51
Merge pull request #300 from tigran123/master
...
Bugfix for deleting an empty directory.
2012-09-21 02:37:18 -07:00
Tigran Aivazian
6cd66a3e79
No need to set self.items after deleting a directory as it is
...
recalculated in self:setPath() anyway.
2012-09-21 08:26:13 +01:00
Tigran Aivazian
b2f4d358ae
Bugfix for deleting a directory:
...
After a directory is deleted it is still shown in the filemanager
list, so you can accidentally delete another directory as all the
pointers after the previously deleted entry are wrong (shifted by one).
2012-09-21 08:17:53 +01:00
{Qingping,Dave} Hou
d77801d9a0
Merge pull request #299 from tigran123/master
...
Fix for the crash mentioned in issue #295
2012-09-20 05:42:14 -07:00
Tigran Aivazian
b3f8ddf67d
Be consistent with the case: "Last Read" -> "Last read".
2012-09-20 00:08:59 +01:00
Tigran Aivazian
b8e29b77bc
File Info tidy up:
...
1. Fix the "Created" field in file info to say "Status changed" as the ctime has nothing to do with creation of a file but with the time of the last modification to its inode (e.g. owner, group, link count, mode, etc.)
2. Added the field "Accessed" which shows the atime.
2012-09-20 00:06:08 +01:00
Tigran Aivazian
e5c859059d
Fix for the crash when deleting highlights, see issue #295 .
2012-09-19 23:34:16 +01:00
{Qingping,Dave} Hou
f7c0166fb2
Merge pull request #298 from tigran123/master
...
Report the amount of free disk space in file info.
2012-09-19 13:39:05 -07:00
Tigran Aivazian
8496ccb073
Disk free space reporting:
...
1. Enhance FileInfo:FileSize() to handle gigabytes and rename it to FileInfo:FormatSize() as it is not just for file sizes.
2. Add "Free space" field to file info because it is useful to see it when deciding whether to remove this file or not.
2012-09-19 21:46:31 +01:00
Tigran Aivazian
69ac04500a
Indicate in the help page that "Home" is the key to be used for exiting the application.
2012-09-19 21:45:39 +01:00
{Qingping,Dave} Hou
720687648e
Merge pull request #296 from tigran123/master
...
Simple cleanups...
2012-09-19 10:13:40 -07:00
Tigran Aivazian
f11a006775
1. Fix deleting highlights when there is more than one (previously it would delete not only the current highlight but some or all of the later ones)
...
2. Support deleting highlights from within "show all highlights" function (Shift-N). It is much easier to delete multiple highlights than having to position the cursor on them and press Del.
3. Fix the bug whereby the first press of Menu would overlay the info on top of the book's text.
4. Show the number of bookmarks and highlights in their respective lists.
5. Fix the incorrect section title shown in Menu when the file contains TOC with external links.
6. Rename "start highlight mode" -> "enter highlight mode".
7. Rename "display all highlights" -> "show all highlights".
2012-09-19 18:25:26 +01:00
Tigran Aivazian
eb002540a2
Don't crash on user pressing ENTER in empty history --- just display an appropriate message.
2012-09-19 17:49:20 +01:00
Tigran Aivazian
f5f5040f20
Change "Updating HighLight data..." message to Debug() as this operation
...
cannot possibly hang and it conveys no useful info to the end user.
2012-09-19 12:29:45 +01:00
Tigran Aivazian
d2b2d8b18f
Make the info messages about highlight short enough to be visible.
...
Also, shorten the delay from 2s to 1s.
2012-09-19 12:26:32 +01:00
Tigran Aivazian
c57c319656
When user presses BACK in the filemanager it should NOT exit the program, only HOME should do so.
...
Otherwise too many times one accidentally exits from KPV.
2012-09-19 12:25:15 +01:00
{Qingping,Dave} Hou
35695e2fe0
Merge pull request #293 from tigran123/master
...
Cleanup: use util.isEmulated() == 1 instead of looking at KEY_FW_DOWN value.
2012-09-18 20:02:52 -07:00
Tigran Aivazian
4b9cf4eaf5
Use os.remove() instead of os.execute("rm...") because it is less expensive
...
as it uses remove(3) C library function rather than fork/exec-ing a new process.
2012-09-18 23:52:11 +01:00
Tigran Aivazian
456136ef71
Fix the calculation of the total unpacked size of the content of a zip file when it contains multiple entries.
...
Also, don't write to temporary files in the physical filesystem --- use pipes instead.
2012-09-18 23:40:18 +01:00
Tigran Aivazian
c43fb549d3
Avoid writing to files when obtaining the battery level --- use pipes instead.
2012-09-18 23:36:01 +01:00
Tigran Aivazian
a2cb1745d6
Merge remote branch 'upstream/master'
2012-09-18 10:10:08 +01:00
Tigran Aivazian
c9c89ef56d
Use the proper way to detect emulation.
2012-09-18 10:07:30 +01:00
Dobrica Pavlinušić
781bab1e40
Merge pull request #291 from houqp/master
...
fix typo in makefile
2012-09-18 00:25:10 -07:00
Qingping Hou
5e6a0c82c9
fix typo in Makefile
2012-09-17 20:38:24 -04:00
Dobrica Pavlinušić
55bd3f1bd3
Merge pull request #290 from dpavlin/master
...
use README.md in distribution zip
2012-09-17 13:39:16 -07:00
Dobrica Pavlinusic
263ab789c8
use README.md in distribution zip
2012-09-17 22:38:05 +02:00
Dobrica Pavlinušić
3a8707a645
Merge pull request #288 from tigran123/master
...
TOC cleanup.
2012-09-17 13:35:36 -07:00
Tigran Aivazian
75bd54657b
Cleanup of the TOC support code: remove unnecessary initializations.
2012-09-17 19:56:19 +01:00
Qingping Hou
1d703f9fb6
delete README.TXT
2012-09-17 06:04:40 +08:00
{Qingping,Dave} Hou
16a8b2099b
Merge pull request #286 from tigran123/master
...
Stop writing battery info messages to crash.log every few seconds.
2012-09-16 14:55:10 -07:00
Tigran Aivazian
1694fc5b0a
Stop filling up crash.log with INFO messages about battery charge every couple of seconds.
...
Every write to a flash device shortens its life.
2012-09-16 23:04:03 +01:00
Dobrica Pavlinušić
a4260c6fc0
Merge pull request #285 from houqp/master
...
Update readme
2012-09-16 12:06:02 -07:00
Qingping Hou
8c994ee0bc
remove leading tab in command in README
2012-09-17 01:59:19 +08:00