Demo version of koptreader config dialog.

This commit is contained in:
chrox
2012-12-14 18:20:04 +08:00
parent 946679aa2f
commit 138def10c3
31 changed files with 587 additions and 13 deletions

View File

@@ -8,6 +8,7 @@ require "ui/reader/readerrolling"
require "ui/reader/readertoc"
require "ui/reader/readerfont"
require "ui/reader/readermenu"
require "ui/reader/readerconfig"
--[[
This is an abstraction for a reader interface
@@ -113,6 +114,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))