2013-10-18 20:38:07 +00:00
|
|
|
local RightContainer = require("ui/widget/container/rightcontainer")
|
|
|
|
local ImageWidget = require("ui/widget/imagewidget")
|
|
|
|
local Geom = require("ui/geometry")
|
|
|
|
local Screen = require("ui/screen")
|
2013-02-24 11:49:23 +00:00
|
|
|
|
2013-10-18 20:38:07 +00:00
|
|
|
local ReaderDogear = RightContainer:new{}
|
2013-02-24 11:49:23 +00:00
|
|
|
|
|
|
|
function ReaderDogear:init()
|
|
|
|
local widget = ImageWidget:new{
|
|
|
|
file = "resources/icons/dogear.png",
|
|
|
|
}
|
|
|
|
local icon_size = widget:getSize()
|
|
|
|
self.dimen = Geom:new{w = Screen:getWidth(), h = icon_size.h}
|
|
|
|
self[1] = widget
|
|
|
|
end
|
|
|
|
|
|
|
|
function ReaderDogear:onSetDogearVisibility(visible)
|
|
|
|
self.view.dogear_visible = visible
|
|
|
|
return true
|
2013-03-12 17:18:53 +00:00
|
|
|
end
|
2013-10-18 20:38:07 +00:00
|
|
|
|
|
|
|
return ReaderDogear
|