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

58 Commits

Author SHA1 Message Date
Tigran Aivazian
609089629c Cleanup InfoMessage:inform() API and its usage
This patch changes the second argument of InfoMessage:inform() function
to be either DINFO_DELAY or DINFO_NODELAY with the following
semantics:

DINFO_DELAY - display the message and delay DINFO_DELAY ms before
returning. Save and restore the screen content.

DINFO_NODELAY - display the message and return immediately without
saving/restoring the screen content.

Also, tidy up the call to modBBox() from Shift-X command handler, it
should be unireader:modBBox() and not self:modBBox(unireader) --- there
is no need to pass the reader object to the :modBBox() method.
2012-11-15 13:35:41 +00:00
kai771
9c6ad7387a info_timeout2 - fixes issues reported by tigran123 in #560 2012-11-11 23:33:26 +01:00
Tigran Aivazian
27817d66d8 Cleanup: ReturnKey and InQuotes are not methods
The functions ReturnKey() and InQuotes() are generic utility functions
and there is no reason whatsoever for them to be object methods of
FileChooser object (and in fact they are used elsewhere). We should
clearly delineate the common utility functions from object's methods
so that eventually the former could be moved to other source modules
while the latter stay close to their object's definitions.
2012-11-05 20:10:52 +00:00
chrox
2fd933abc9 remove extension.lua and implement getReaderByType in readerchooser.lua 2012-10-22 22:04:09 +08:00
NuPogodi
5a493c141f Improvements to filesearcher from NuPogodi
1. Initialize self.commands only once
2. Corrections to hotkeys: added fast jumps to item at position 0%,
10%, ... 100% by Alt+Q, W, ... P
3. Added fast jump to page entered via inputbox (by G)
4. Cleanup of function descriptions and to hotkeys.
5. Added a function deleteFoundFile(full_filename) used by KEY_DEL
handler.
2012-10-05 11:17:18 +01:00
Tigran Aivazian
d1d955f3a4 Make only Back (not Home) return from Search Results.
It is best to restrict Home to only exit from the application (or
perhaps also for closing the document, though even this is doubtful) and
not use it in any other context, because otherwise pressing Home too
many times may inadvertently exit the application and annoy the user.
It is a bad practice to let user try various keys in different contexts
and hope that one of them may work.
2012-10-03 20:29:34 +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
Tigran Aivazian
284ab49db4 Shorten the message to make it visible. 2012-09-15 21:01:29 +01:00
Qingping Hou
4199ac8e3c add missing ")" 2012-09-07 12:31:55 +08:00
NuPogodi
dc2fcc8654 Replace old 'Font menu'-function by new, improved version
1. Replace old function to change 'cfont' by new, improved version capable to change all font faces.
2. Remove 'make screenshot'; already added in commands.lua
2. Moved exit hotkeys (Back & Home) to the end of the hotkey list
3. Remove some outdated comments and clean a bit the code (just cosmetics to make it more readable)
2012-09-06 20:50:50 +03:00
Kefu Chai
8665a7567f stay at current page after deletion
* prefer os.remove() to 'os.execute("rm "...)'
2012-06-09 14:46:45 +08:00
HW
0d12ff70cd rename debug() to Debug() to stop clashing with the debug submodule from Lua 2012-06-04 00:49:23 +02:00
Dobrica Pavlinusic
a08c35a52c added Screen:screenshot() 2012-05-19 23:04:40 +02:00
NuPogodi
3a76ec91fd integrate rest of @NuPogodi changes #166
- long lines (filenames in 'Document Info') are now splitted in more
  human-readable way (by spaces, dots, slashes or some other characters
- see screenshot)
- the selection of fonts in filemanager (key 'F' or 'Aa') looks now more
  user-friendly
- fixed too long strings in most menues (TOC, Bookmarks, Fonts...) and
  in the popup with the reading progress (called by key 'Menu')
- the position inside the cr-documents (epub, mobi...) now remain nearly
  the same after rescaling the document (i.e. changing the font face,
  size, boldface and interline distance)
- when you open TOC-menu or Fonts Menu, it highlights the current item
  (i.e. current chapter and current fontface).
- i've a bit changed the way to read the battery level values, it might
  now work even without Amazon Kindle framework.
2012-05-19 13:04:49 +02:00
Dobrica Pavlinusic
ba19ab7029 added .prc as alternative extension for mobi
This was reported by @valex in post at forum:
http://www.mobileread.com/forums/showpost.php?p=2064360&postcount=340
2012-05-01 19:24:52 +02:00
Dobrica Pavlinusic
c688e6e20c few more places in which repeat key is useful 2012-04-27 23:35:33 +02:00
Qingping Hou
a89c88f40f add zip format support 2012-04-24 20:44:59 +08:00
Qingping Hou
dbb49505f1 add doc format support
Though I don't like doc at all.
2012-04-24 20:37:16 +08:00
Dobrica Pavlinusic
18f0cf8043 added mobi to CREReader #131 2012-04-21 14:18:23 +02:00
Qingping Hou
8d74649642 adjust wording 2012-04-20 18:29:08 +08:00
Qingping Hou
95a1f30843 add fix KEY_LPG{BCK,FWD} listening for filesearcher 2012-04-20 10:02:32 +08:00
Qingping Hou
3306346dba use debug to print debug info 2012-04-19 00:16:49 +08:00
Qingping Hou
8cdcca148b fix: page number calculation in file{chooser,searcher} 2012-04-18 18:37:00 +08:00
Dobrica Pavlinusic
0f487650b5 use new refresh_mode arg 2012-04-16 21:31:53 +02:00
Dobrica Pavlinusic
76c58d601f added InfoMessage "Reading filenames..." 2012-04-16 21:18:17 +02:00
HW
57d769e0ae added wrapper function for input.waitForEvent that retries on EINTR 2012-04-12 21:00:44 +02:00
Qingping Hou
6041603468 fix: use new width and height drawing after screen rotate 2012-04-10 21:40:29 +08:00
Qingping Hou
28b1f5330a Merge branch 'master' of github.com:hwhw/kindlepdfviewer 2012-04-10 01:32:59 +08: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
Qingping Hou
81c9ff1cf5 fix: typo in selectmenu.lua 2012-04-09 17:38:50 +08:00
Qingping Hou
ecd56a3745 mod: prefix global variables width and height with G_ 2012-04-09 15:42:19 +08:00
Qingping Hou
d62e3423a2 fix: save keywords in filesearcher 2012-04-09 14:06:22 +08:00
Qingping Hou
7fdec8a980 fix: handle screen resolution correctly in filesearcher 2012-04-08 14:31:23 +08:00
Qingping Hou
7f0faa20bb mod: rewrite filesearcher with command module 2012-04-08 11:57:25 +08:00
Qingping Hou
1593c56803 mod: add html support in crereader 2012-04-05 10:31:31 +08:00
Qingping Hou
4821f10dda half done demo for crengine 2012-03-29 00:09:26 +08:00
traycold
bfcad367bb using font module for getting fonts (commit f95231d789)
renamed function names using camelCase (issue #62)
2012-03-20 20:15:24 +01:00
Qingping Hou
f95231d789 add: status bar in reading menu & font.lua
* Since fontchooser is replaced by selectmenu, it
is no longer needed. So I rewrite it into font.lua
module which can cache faces that shared among all
UIs.

* add progressBar method in graphics.lua to draw
reading progress.

* add reading progress information in reading menu.
It is just a demo. Should be clean up in next release
when the real reading menu is out. :)
2012-03-10 16:41:23 +08:00
Qingping Hou
3dbf9877bc add: 90 degree rotation support
demo for issue #51
2012-03-08 23:28:16 +08:00
Qingping Hou
e0f1564c7a fix: exit filesearcher with home key 2012-03-08 14:24:30 +08:00
Qingping Hou
b318ca08e3 mod: merge djvu branch with master 2012-03-05 09:46:16 +08:00
Qingping Hou
1b1fc2b3ae integrate djvu support 2012-03-04 23:30:08 +01:00
Qingping Hou
8a03358139 fix: fail to set search path correctly in readdir() 2012-03-02 20:27:53 +08:00
Qingping Hou
6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 2012-03-02 18:38:34 +08:00
Qingping Hou
53d4016c64 fix: move shiftmode and altmode to global
now shiftmode and altmode is recoreded in Keys module.  So all the UIs
are sharing these two mode instead of remembering their own. These fix
the bug in UI switchings.

For instance, you use combo 'Alt'+'b' to fire up some menu in pdfreader,
the altmode is set, but the alt key was released after the menu show
up. Then the key release event will only be captured by the menu. So
after you exit from the menu, the altmode is still set in pdfreader,
which is not what we want.
2012-03-02 13:46:15 +08:00
Qingping Hou
ec33e51d87 fix: bug in font menu 2012-02-28 23:05:26 +08:00
Qingping Hou
fd1ccee911 mod: add font menu in filesearcher 2012-02-28 22:51:37 +08:00
Qingping Hou
cb982f5da6 mod: error message for not found 2012-02-24 00:39:39 +08:00