Home | Trees | Indices | Help |
---|
|
1 # -*- coding: utf-8 -*- 2 # Elisa - Home multimedia server 3 # Copyright (C) 2006-2008 Fluendo Embedded S.L. (www.fluendo.com). 4 # All rights reserved. 5 # 6 # This file is available under one of two license agreements. 7 # 8 # This file is licensed under the GPL version 3. 9 # See "LICENSE.GPL" in the root of this distribution including a special 10 # exception to use Elisa with Fluendo's plugins. 11 # 12 # The GPL part of Elisa is also available under a commercial licensing 13 # agreement from Fluendo. 14 # See "LICENSE.Elisa" in the root directory of this distribution package 15 # for details on that license. 16 17 18 __maintainer__ = 'Benjamin Kampmann <benjamin@fluendo.com>' 19 20 from elisa.core import common 21 22 from menu_entry_builder import MenuEntryBuilder 23 24 from twisted.internet import defer 2527 """ 28 Build MenuEntries for the type 'menu_node'. this is meant to be temporaly 29 """ 308432 registry = common.application.plugin_registry 33 self._clear_model = registry.create_component('base:menu_node_model') 34 self._clear_model.text = "Clear Playlist" 35 self._clear_model.theme_icon = "clear_playlist_icon" 36 37 clear_action = registry.create_component('xmlmenu:clearplaylist_action') 38 39 # FIXME: cross-referencing is bad! 40 clear_action.clearing_model = self._clear_model 41 42 # FIXME: cross-referencing is bad! 43 self._clear_model.activate_action = clear_action44 45 46 49 7577 if not self._clear_model in model.children: 78 model.children.insert(0, self._clear_model) 79 return defer.succeed(model.children)80
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Wed Jan 16 19:10:41 2008 | http://epydoc.sourceforge.net |