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

73 Commits

Author SHA1 Message Date
Tigran Aivazian
253a0829ff No need to initialize oldname = self:FullFileName() twice when renaming a file --- one initialization is enough.
(and, while at it, replaced references to a non-existent word "extention" with the proper English "extension")
2012-09-10 18:17:50 +01:00
Tigran Aivazian
2c6dfae807 Shorten various messages --- otherwise they are NOT SHOWN at all.
Also, mark pagedirty in all cases when deleting the file, to cause the screen refresh --
otherwise the message "Press 'Y' to confirm" stays there indefinitely.
2012-09-09 15:08:46 +01:00
NuPogodi
d1ae0f3999 Enter filemanager modes for beginners & advanced users
1. Added parameter that tells filemanager the way how to manage files. Those who prefer 'safe' method (default) should not select any other mode except for BEGINNERS_MODE in new menu called by Alt+M. Actually, 'safe mode' is our old version (the files are filtered on the extention-basis; one may rename the filenames, but not their extentions). The tigran's corrections de0f40ce9c
are easy to switch on by selecting mode for advanced users who understand potential danger (mostly, crashes of crereader 'cause of improper input files) and accept it.
2. New menu Font:chooseFonts() to change font faces
3. Removed duplicated code of 'make screenshot'
4. The hotkeys (Back & Home) to exit FileChooser are moved down
5. Removed outdated comments
2012-09-06 22:21:36 +03:00
Tigran Aivazian
b96f4f509f Remove the Debug() call I added when debugging the previous issue. 2012-09-02 15:45:29 +01:00
Tigran Aivazian
2d4189fc84 Bugfix: moving files to/from clipboard works now. 2012-09-02 15:38:25 +01:00
Tigran Aivazian
7000f349c0 Allow renaming the whole file, including "extension". 2012-08-29 10:33:42 +01:00
NuPogodi
bfe8a5d84f added calculator to filechooser
closes #232
2012-08-28 23:09:28 +02:00
NuPogodi
282d8e693e improvements to rename if file browser
closes #219
2012-08-28 23:00:18 +02:00
Tigran Aivazian
8a583311c8 Trivial grammatical changes. 2012-08-27 15:11:07 +01:00
Tigran Aivazian
b605536567 Fix the "rename" function to include the file extension. 2012-08-27 14:53:26 +01:00
Tigran Aivazian
601b7b9d69 Memory leak in DrawFileItem(), found by NuPogodi. 2012-08-27 14:50:09 +01:00
Qingping Hou
7a3de8b6b7 move battery info file to /tmp 2012-08-26 00:21:48 +08:00
Qingping Hou
ad7a8d044c update self.items and self.current after file deletion 2012-06-09 18:10:05 +08: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
HW
e35339a398 fixed wrong escape sequences in strings
again, LuaJIT will choke on these, Lua-5.1.n did just ignore them
2012-06-03 01:52:16 +02:00
Dobrica Pavlinusic
ae9be768ab use lfs.currentdir to specify clipboard directory
This will make clipboard usable on emulator
2012-05-28 19:35:59 +02:00
NuPogodi
944a3b5b05 NuPogodi code drop from 2012-05-27
- zip files don't require double extensions any more
- filechooser has 'H' shortcut to display keys
- new function for files and folders (^ == shift)
	^N - new folder
	Del - delete document/folder
	^C - copy file into clipboard
	^X - cut (move) file to clipboard
	^V - paste files from clipboard
	^R - rename file
- configurable keyboard for input box
2012-05-28 19:19:21 +02:00
NuPogodi
cccdf42892 use new input handling to enable help page 2012-05-23 11:46:22 +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
b8da531d8d add "searching file" message
missed in previous commit
2012-04-20 20:48:17 +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
8cdcca148b fix: page number calculation in file{chooser,searcher} 2012-04-18 18:37:00 +08:00
HW
57d769e0ae added wrapper function for input.waitForEvent that retries on EINTR 2012-04-12 21:00:44 +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
Qingping Hou
7fdec8a980 fix: handle screen resolution correctly in filesearcher 2012-04-08 14:31:23 +08:00
Qingping Hou
1593c56803 mod: add html support in crereader 2012-04-05 10:31:31 +08:00
Qingping Hou
b09110a38d Merge branch 'djvu-highlight' into epub 2012-03-29 17:54:48 +08:00
Qingping Hou
4821f10dda half done demo for crengine 2012-03-29 00:09:26 +08:00
Qingping Hou
eac9893958 fix: add KEY_LPGFWD and KEY_LPGBCK to filechooser 2012-03-26 20:19:48 +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
HW
48463d4739 add XPS and CBZ support (muPDF provides this) 2012-03-19 22:35:16 +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
Dobrica Pavlinusic
3a38e81d58 exit from filechooser on BACK and HOME
This makes it easy to exit completly from document with HOME+HOME
which is much easier and intuitive than HOME+BACK
2012-03-06 20:07:08 +01:00
traycold
eba1c2d5ef Merge remote-tracking branch 'hwhw/master' into djvu 2012-03-05 23:36:58 +01:00
Qingping Hou
1b1fc2b3ae integrate djvu support 2012-03-04 23:30:08 +01:00
traycold
04184a5950 improved filechooser; enable "single file" mode of kindlepdfviewer
with this mode it's possible to start kindlepdfviewer opening last
viewed file, bypassing filechooser
2012-03-04 23:03:04 +01:00
Qingping Hou
516e32bc46 mod: call different reader in reader.lua
call PDFReader or DJVUReader according to filetype
2012-03-03 19:51:49 +08:00
Qingping Hou
e258371134 mod: add closePage and demo for filechooser 2012-03-03 17:17:35 +08:00
Qingping Hou
6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 2012-03-02 18:38:34 +08:00
Qingping Hou
aa5806accd Merge branch 'master' of https://github.com/hwhw/kindlepdfviewer
Conflicts:
	pdfreader.lua
2012-03-02 13:58:39 +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