add: status bar in reading menu & font.lua

* Since fontchooser is replaced by selectmenu, it
is no longer needed. So I rewrite it into font.lua
module which can cache faces that shared among all
UIs.

* add progressBar method in graphics.lua to draw
reading progress.

* add reading progress information in reading menu.
It is just a demo. Should be clean up in next release
when the real reading menu is out. :)
This commit is contained in:
Qingping Hou
2012-03-10 16:41:23 +08:00
parent d3c9062c7c
commit f95231d789
8 changed files with 148 additions and 116 deletions

View File

@@ -103,7 +103,6 @@ else
input.open("/dev/input/event2")
set_k3_keycodes()
end
end
if optarg["G"] ~= nil then
@@ -120,7 +119,7 @@ origin_rotation_mode = Screen.cur_rotation_mode
reader_settings = DocSettings:open(".reader")
r_cfont = reader_settings:readsetting("cfont")
if r_cfont ~=nil then
FontChooser.cfont = r_cfont
Font.cfont = r_cfont
end
-- initialize global settings shared among all readers
@@ -156,7 +155,7 @@ end
-- save reader settings
reader_settings:savesetting("cfont", FontChooser.cfont)
reader_settings:savesetting("cfont", Font.cfont)
reader_settings:close()
-- @TODO dirty workaround, find a way to force native system poll