1
from .. import WidgetHandlerManager
2
from .. import AbstractItem
3
from . import Plasma__Dialog
5
class Lancelot__PopupListHandler(Plasma__Dialog.Plasma__DialogHandler):
7
return "Lancelot::PopupList"
10
includes = "".split(" ")
12
for include in includes:
14
includesCode += "#include<" + include + ">\n"
19
setup = Plasma__Dialog.Plasma__DialogHandler.setup(self)
22
if self.hasAttribute('closeTimeout'):
23
setup += self.attribute('name') \
24
+ '->setCloseTimeout(' + self.attribute('closeTimeout') + ');'
26
if self.hasAttribute('sublevelOpenAction'):
27
setup += self.attribute('name') \
28
+ '->setSublevelOpenAction(' + self.attribute('sublevelOpenAction') + ');'
33
WidgetHandlerManager.addHandler(Lancelot__PopupListHandler())