Author: richard
Date: Tue Jan 27 02:37:00 2009
New Revision: 3952
URL: http://svn.slimdevices.com?rev=3952&root=Jive&view=rev
Log:
Bug: 10792
Description:
Fix keypad factory test. Added bonus, the help screen disappears when you start
using it.
Modified:
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/TestKeypad/TestKeypadApplet.lua
Modified:
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/TestKeypad/TestKeypadApplet.lua
URL:
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/TestKeypad/TestKeypadApplet.lua?rev=3952&root=Jive&r1=3951&r2=3952&view=diff
==============================================================================
---
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/TestKeypad/TestKeypadApplet.lua
(original)
+++
7.3/trunk/squeezeplay/src/squeezeplay_jive/share/applets/TestKeypad/TestKeypadApplet.lua
Tue Jan 27 02:37:00 2009
@@ -79,13 +79,20 @@
self.background:blit(srf, 0, 0)
self.icon:setValue(srf)
+ local started = false
+
for i,k in ipairs(keymap) do
local state = keyState[k.key]
if state ~= nil then
+ started = true
srf:filledCircle(k.x, k.y, 10, stateToColor[state])
else
srf:circle(k.x, k.y, 10, 0x00FF00FF)
end
+ end
+
+ if started then
+ self.window:removeWidget(self.help)
end
return EVENT_CONSUME
@@ -131,10 +138,13 @@
self.icon = Icon("icon")
window:addWidget(self.icon)
- window:addWidget(Textarea("help", self:string("TEST_KEYPAD_HELP")))
+
+ self.help = Textarea("help", self:string("TEST_KEYPAD_HELP"))
+ window:addWidget(self.help)
self:drawKeypad()
+ self.window:focusWidget(nil)
window:addListener(EVENT_KEY_ALL | EVENT_SCROLL,
function(event)
local eventtype = event:getType()
_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins