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

24 Commits

Author SHA1 Message Date
Qingping Hou
22c3043959 add calling item.callback() as default onMenuChoice action 2013-02-03 03:35:25 +08:00
Qingping Hou
9468b504c1 add close button toggle for menu widget 2013-02-03 01:43:47 +08:00
{Qingping,Dave} Hou
350d3aa55e Merge pull request #682 from houqp/swipe
Swipe gesture support
2013-01-06 00:31:21 -08:00
Qingping Hou
414f8bec34 use left swipe for next page turn 2012-12-31 00:09:33 -05:00
Qingping Hou
468178c37c bug fix in menu widget, call close_callback on after select 2012-12-30 18:51:14 -05:00
Qingping Hou
f19b6e7667 use swipe gestures in menu widget to signal page turn 2012-12-30 00:56:21 -05:00
Qingping Hou
590bf149be count FrameContainer padding into menu title bar size 2012-12-16 03:43:33 -05:00
Qingping Hou
6beebe4423 remove menu item underline for touch device 2012-12-16 02:16:21 -05:00
Qingping Hou
f7c65ebef7 add register_widget in ReaderMenu & minor fixes in menu.lua
* now readerwidgets can add menu items in ReaderMenu by
calling ReaderMenu:addToMainMenuCallback and define its own
addToMainMenu method, which takes ReaderMenu's item_table as argument.
2012-12-15 09:20:12 +08:00
Qingping Hou
c0616b4173 make sure menu height not exceed screen height. 2012-12-11 02:30:50 +08:00
Qingping Hou
5fc4adafc4 fill menu with dummy blank widget to extend its height 2012-12-11 01:59:24 +08:00
Qingping Hou
92bce18537 bug fix in InputContainer and menu widget
* add _init callback for all widgets, which is used for base widget
initialization. see comment in Widget:new(o) for more information.

* new ges_events and key_events are created for each InputContainer
widget, previously, they shared the same tables.

* remove hardcoded menu widget dimen

* recalculate menu dimen on table item changes

* add CloseAllMenus for menu widget
2012-12-09 01:21:30 +08:00
Qingping Hou
3af979b84d add close button for menu 2012-12-07 23:30:15 +08:00
Qingping Hou
65e8e2292f revert wrong cleanup for commit cf3cc65c03
self.layout must be updated for any widget that inherits
from focusmanager. Previous commit removed related code on
menu item update.
2012-11-29 10:48:57 -05:00
{Qingping,Dave} Hou
267ed42be6 Merge pull request #638 from houqp/new_ui_code_fix
zoom mode support in reader menu & menu module bug fix
2012-11-29 07:33:54 -08:00
Qingping Hou
cf3cc65c03 fix bug in multi-level menu support
The size of framecontainer is not reset after content changed.
2012-11-26 15:25:28 +08:00
Qingping Hou
5e2537210f remove comments in menu.lua 2012-11-11 14:30:35 +08:00
Qingping Hou
3486ae7e09 first demo of gesture parsing 2012-11-11 14:30:35 +08:00
Qingping Hou
cee51b8db2 change menu item underline color to make refresh more responsive 2012-06-23 22:23:43 +08:00
Qingping Hou
f8f188ff89 jump to first menu item if pagebck is pressed in first page 2012-06-12 16:02:08 +08:00
Qingping Hou
7d008bf622 fix end_position calculation in Menu:onNextPage 2012-06-12 15:59:35 +08:00
Qingping Hou
793a431c43 add sub menu support for menu widget 2012-06-11 13:46:19 +08:00
HW
4d3e6af106 small changes to menu and addition of a reader menu
the reader menu is still very bare-bone, I plan to enhance it now.
2012-06-10 20:14:29 +02:00
HW
5025be971d separated dialog.lua into source files for each individual function 2012-06-10 17:52:09 +02:00