Commit Graph

15 Commits (9add90a169389c819b25fe7bdd4275da9d61542a)

Author SHA1 Message Date
Qingping Hou c89e3efc19 fix: clear commands when no item in menu 12 years ago
Qingping Hou e94fe052d3 mod: rewrite selectmenu with commands
also fixed bug in page counting
12 years ago
Qingping Hou 9dd3994dd8 fix: handle LPGBCK and LPGFWD in selectmenu 12 years ago
Dobrica Pavlinusic 09610d966e fix typo 12 years ago
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. :)
12 years ago
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
12 years ago
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)
12 years ago
Qingping Hou 89cfac17bd mod: change shortcuts for menu items
Uses Q-P and A-Del
12 years ago
Qingping Hou 25d014634b mod: add 5 pixel margin to the left 12 years ago
Qingping Hou 330d08de68 mod: change variable name in selectmenu.lua 12 years ago
Qingping Hou 6a1b71eaf3 mod: add fast menu item access shortcut 12 years ago
Qingping Hou 6614bbe33d mod: handle shift and alt key events in adjustKeyEvents() 12 years ago
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.
12 years ago
Qingping Hou fa5b0c9874 mod: toc and jumpstack refactored 12 years ago
Qingping Hou 02713ae2ab add: demo for jumpstack 12 years ago