|
|
@ -1,7 +1,5 @@
|
|
|
|
ReaderToc = InputContainer:new{
|
|
|
|
ReaderToc = InputContainer:new{
|
|
|
|
toc_menu_title = "Table of contents",
|
|
|
|
toc_menu_title = "Table of contents",
|
|
|
|
current_page = 0,
|
|
|
|
|
|
|
|
current_pos = 0,
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function ReaderToc:init()
|
|
|
|
function ReaderToc:init()
|
|
|
@ -87,14 +85,6 @@ function ReaderToc:onShowToc()
|
|
|
|
UIManager:show(menu_container)
|
|
|
|
UIManager:show(menu_container)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function ReaderToc:onPageUpdate(new_page_no)
|
|
|
|
|
|
|
|
self.current_page = new_page_no
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ReaderToc:onPosUpdate(new_pos)
|
|
|
|
|
|
|
|
self.current_pos = new_pos
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function ReaderToc:addToMainMenu(item_table)
|
|
|
|
function ReaderToc:addToMainMenu(item_table)
|
|
|
|
-- insert table to main reader menu
|
|
|
|
-- insert table to main reader menu
|
|
|
|
table.insert(item_table, {
|
|
|
|
table.insert(item_table, {
|
|
|
|