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
Qingping Hou
686a823629
rename README.TXT to README.md
...
for better rendering in Github
2012-09-17 01:56:58 +08:00
Qingping Hou
1b3e1db0d2
update readme
2012-09-17 00:27:54 +08:00
Qingping Hou
ea325146d3
move -l argument to the end of GCC call
2012-09-16 12:17:47 -04:00
{Qingping,Dave} Hou
a34696d96c
Merge pull request #283 from tigran123/master
...
Fix for calculating TOC position.
2012-09-15 17:09:37 -07:00
Tigran Aivazian
51ccc20845
Save a few table indexing operations since we already have the page number.
2012-09-15 23:32:56 +01:00
Tigran Aivazian
56f4ac42bd
Better fix for the external links in TOC problem: instead of returning
...
to the current page display a message "External links unsupported" and
remain in the TOC menu. The reason for this decision is that if the
user chose invalid TOC entry she is more likely to wish to stay in the
TOC menu and choose another entry rather than return to reading immediately.
2012-09-15 23:26:30 +01:00
Tigran Aivazian
680866d4ad
Merge remote branch 'upstream/master'
2012-09-15 22:59:52 +01:00
Tigran Aivazian
cc5abd3b87
Use the value of self.doc:getPages() stored in a local variable instead of calling it for each TOC entry.
2012-09-15 22:22:07 +01:00
Tigran Aivazian
853f34b488
Fix for calculating the current position in the case of TOC containing links to external files:
...
when walking the TOC we should check if the destination page is within the range of the current document.
2012-09-15 22:19:12 +01:00
Tigran Aivazian
dac88587bf
Fix for the case when TOC contains a link to external file: we should redraw the current page and not just quietly return from UniReader:goto().
2012-09-15 22:00:59 +01:00
Tigran Aivazian
42d9583319
In the Search Results show the actual pattern entered, not the uppercased version thereof.
2012-09-15 21:32:00 +01:00
Tigran Aivazian
527421eb86
Make file search function completely case-insensitive.
2012-09-15 21:31:00 +01:00
Tigran Aivazian
3048311dd5
Show the number of hits in Search Results.
2012-09-15 21:28:47 +01:00
{Qingping,Dave} Hou
31fd466425
Merge pull request #281 from tigran123/master
...
Minor changes to djvu and filesearcher.
2012-09-15 13:07:01 -07:00
Tigran Aivazian
284ab49db4
Shorten the message to make it visible.
2012-09-15 21:01:29 +01:00
Tigran Aivazian
28ba1c7e37
1. It is customary to call DjVu context by the name of the program.
...
2. When changing DjVu page rendering mode there is no need to clear DjVu cache, only our own tile cache.
2012-09-14 23:22:19 +01:00
Dobrica Pavlinušić
a99f429afc
Merge pull request #280 from tigran123/master
...
Cleanup of cleanUpTocTitle()
2012-09-14 13:26:05 -07:00
Tigran Aivazian
29b1ef5dde
Cleanup of expandAllTOCSubItems().
2012-09-14 21:43:23 +01:00
Tigran Aivazian
922b53ac60
Cleanup of cleanUpTocTitle() function: (f(x)) is a more elegant way of forcing
...
the return of a single value than the use of a dummy variable.
2012-09-14 21:27:06 +01:00
Dobrica Pavlinušić
657bcee7d0
Merge pull request #276 from houqp/master
...
roll back to use DroidSansFallback as default cfont font face
2012-09-14 13:25:01 -07:00
{Qingping,Dave} Hou
b96edf3693
Merge pull request #279 from tigran123/master
...
Calculator: make it more robust.
2012-09-14 10:23:10 -07:00
Tigran Aivazian
4f2be7a7e8
Calculator: make it more robust. Previously it was very easy to crash
...
the application by entering invalid input into calculator, for example
things like these: ")(", "inf/0", "f()", etc.
By using Lua pcall() function to execute not only the construction of
the expression, but also the calculation of the final result, the calculator
is made more robust and safe-guarded from such crashes.
2012-09-14 18:36:55 +01:00
Tigran Aivazian
da296e2e95
Slight cleanup of the previous commit: save one arithmetical operation.
2012-09-14 18:10:21 +01:00
Tigran Aivazian
b6a429a1d4
Calculator: calculate the cursor position correctly when the output contains more characters than input.
2012-09-14 18:03:43 +01:00
Tigran Aivazian
dc473e85a9
Calculator: on exit from help page refresh the screen properly (i.e. fully)
2012-09-14 17:38:02 +01:00
Tigran Aivazian
b0febe2d9b
Calculator: don't crash when pressing Enter or FW-select buttons.
2012-09-14 17:24:38 +01:00