mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Merge pull request #684 from chrox/koptreader-new-ui
add reflow mode in pdf/djvu readers
This commit is contained in:
@@ -9,6 +9,7 @@ require "ui/reader/readertoc"
|
||||
require "ui/reader/readerbookmark"
|
||||
require "ui/reader/readerfont"
|
||||
require "ui/reader/readermenu"
|
||||
require "ui/reader/readerconfig"
|
||||
|
||||
--[[
|
||||
This is an abstraction for a reader interface
|
||||
@@ -127,6 +128,17 @@ function ReaderUI:init()
|
||||
}
|
||||
table.insert(self, font_menu)
|
||||
end
|
||||
if self.document.info.configurable then
|
||||
-- configurable controller
|
||||
local config_dialog = ReaderConfig:new{
|
||||
configurable = self.document.configurable,
|
||||
options = self.document.options,
|
||||
dialog = self.dialog,
|
||||
view = self[1],
|
||||
ui = self
|
||||
}
|
||||
table.insert(self, config_dialog)
|
||||
end
|
||||
--DEBUG(self.doc_settings)
|
||||
-- we only read settings after all the widgets are initialized
|
||||
self:handleEvent(Event:new("ReadSettings", self.doc_settings))
|
||||
|
||||
Reference in New Issue
Block a user