New InfoMessage Concept

Part I (still no unireader, crereader, filesearcher & fileinfo)
This commit is contained in:
NuPogodi
2012-10-03 00:45:45 +02:00
parent 3bd8c5c9f4
commit 00c1f2ec9c
19 changed files with 669 additions and 298 deletions

View File

@@ -38,7 +38,6 @@ Codes for rotation modes:
0
--]]
Screen = {
cur_rotation_mode = 0,
-- these two variabls are used to help switching from framework to reader
@@ -118,7 +117,8 @@ function Screen:screenshot()
local diff = nsecs - secs + (nusecs - usecs)/1000000
--self:fb2bmp("/dev/fb0", lfs.currentdir().."/screenshots/"..os.date("%Y%m%d%H%M%S")..".bmp", true, "bzip2 ")
--self:fb2pgm("/dev/fb0", lfs.currentdir().."/screenshots/"..os.date("%Y%m%d%H%M%S")..".pgm", "bzip2 ", 4)
showInfoMsgWithDelay(string.format("Screenshot is ready in %.2fs ", diff), 2000, 1)
local msg = "Screenshot is ready in "
InfoMessage:inform(msg..string.format("%.2fs ", diff), 2000, 1, MSG_WARN, msg..math.ceil(diff*1000).." milliseconds")
end
-- NuPogodi (02.07.2012): added the functions to save the fb-content in common graphic files - bmp & pgm.