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

32 Commits

Author SHA1 Message Date
Tigran Aivazian
90971a7bf7 Fix from NuPogodi --- initialize scfont face properly.
This fixes the bug of non-persistency of user's setting of scfont.
2012-09-28 12:09:02 +01:00
Tigran Aivazian
ac46f7237f Fix a typo "Q to E" -> "Q to P" in Active Keys helppage. 2012-09-25 12:11:11 +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
3984355c1c Part of the previous commit, i.e. "expand all subitems" in TOC. 2012-09-14 14:25:15 +01:00
Tigran Aivazian
4242cc9686 Allow deleting bookmarks. 2012-09-09 19:46:24 +01:00
Tigran Aivazian
e2a3f1de64 Multi-level TOC support, see issue #235 on github. 2012-09-08 23:52:04 +01:00
NuPogodi
cfa4afe35a Improved the method to define font face to render menu items
1. Add parameter own_glyph that defines how to render menu items:
default own_glyph = 0,	-- render menu items with default "cfont"
own_glyph = 1 => own glyphs for items like "Droid/DroidSans.ttf"
own_glyph = 2 => own glyphs for Font.fontmap._index like "ffont", "tfont", etc.
Now own font face may be used to render both types of menu items called from Font:chooseFonts() 
2. Delete some outdated comments
2012-09-06 20:24:48 +03:00
HW
0d12ff70cd rename debug() to Debug() to stop clashing with the debug submodule from Lua 2012-06-04 00:49:23 +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
Qingping Hou
db02c7ca1d apply key repeat from menus 2012-04-28 09:28:50 +08:00
Qingping Hou
1c98aef6a1 fix bug in selectmenu
five way press is not working when menu
if full of items
2012-04-22 09:40:43 +08:00
Qingping Hou
3306346dba use debug to print debug info 2012-04-19 00:16:49 +08:00
HW
57d769e0ae added wrapper function for input.waitForEvent that retries on EINTR 2012-04-12 21:00:44 +02: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
7f0faa20bb mod: rewrite filesearcher with command module 2012-04-08 11:57:25 +08:00
Qingping Hou
c89e3efc19 fix: clear commands when no item in menu 2012-03-29 21:16:09 +08:00
Qingping Hou
e94fe052d3 mod: rewrite selectmenu with commands
also fixed bug in page counting
2012-03-29 21:10:52 +08:00
Qingping Hou
9dd3994dd8 fix: handle LPGBCK and LPGFWD in selectmenu 2012-03-14 17:20:48 +08:00
Dobrica Pavlinusic
09610d966e fix typo 2012-03-10 14:09:12 +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
Dobrica Pavlinusic
796b42cc36 track last shortcut assigned and ignore other keys
This change also takes advantage of fact that ev.code increases by 1
with each key in same row which removes a lot of duplication
2012-03-06 19:51:09 +01:00
Dobrica Pavlinusic
88d5f578f8 added last row of keyboard for DXG
DXG has bigger screen, so we have to make sure that we don't have more
than 30 options on screen (or we will run out of shortcuts)
2012-03-06 14:37:00 +01:00
Qingping Hou
89cfac17bd mod: change shortcuts for menu items
Uses Q-P and A-Del
2012-03-06 19:28:12 +08:00
Qingping Hou
25d014634b mod: add 5 pixel margin to the left 2012-03-06 15:50:00 +08:00
Qingping Hou
330d08de68 mod: change variable name in selectmenu.lua 2012-03-06 12:27:19 +08:00
Qingping Hou
6a1b71eaf3 mod: add fast menu item access shortcut 2012-03-06 12:25:04 +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
fa5b0c9874 mod: toc and jumpstack refactored 2012-02-26 09:47:54 +08:00
Qingping Hou
02713ae2ab add: demo for jumpstack 2012-02-26 08:28:03 +08:00