From d4bc583aa7eb765d38a5bbf2aec0709fddb3a725 Mon Sep 17 00:00:00 2001 From: Qingping Hou Date: Wed, 13 Mar 2013 10:50:16 +0800 Subject: [PATCH] add dbg in wtest.lua --- wtest.lua | 32 +++++++++++++++++++++++++++++--- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/wtest.lua b/wtest.lua index 29018e8cc..c16cf05ae 100644 --- a/wtest.lua +++ b/wtest.lua @@ -4,8 +4,10 @@ require "ui/uimanager" require "ui/widget/menu" require "ui/widget/infomessage" require "ui/widget/confirmbox" +require "ui/widget/touchmenu" require "document/document" require "ui/readerui" +require "dbg" ----------------------------------------------------- @@ -174,15 +176,39 @@ reader = ReaderUI:new{ readerwindow[1][1] = reader +main_menu = TouchMenu:new{ + title = "Document menu", + item_table = { + { + text = "item1", + callback = function() + end, + }, + { + text = "item2", + callback = function() + end, + }, + { + text = "item3", + callback = function() + end, + }, + }, +} + + + ----------------------------------------------------------------------- -- you may want to uncomment following show calls to see the changes ----------------------------------------------------------------------- UIManager:show(Background:new()) UIManager:show(TestGrid) UIManager:show(Clock:new()) -UIManager:show(M) -UIManager:show(Quiz) -UIManager:show(readerwindow) +--UIManager:show(M) +--UIManager:show(Quiz) +--UIManager:show(readerwindow) +UIManager:show(TouchMenu:new()) UIManager:run()