Package elisa :: Package plugins :: Package bad :: Package raval_frontend :: Module main_menu_view
[hide private]
[frames] | no frames]

Source Code for Module elisa.plugins.bad.raval_frontend.main_menu_view

 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  from elisa.core import common 
18  from raval_widgets.finite_circular_list import FiniteCircularList 
19   
20  import pgm 
21  from pgm.graph.group import Group 
22  from pgm.graph.image import Image 
23  from pgm.utils.image import cairo_gradient 
24   
25 -class ListItem(Group):
26
27 - def __init__(self):
28 Group.__init__(self) 29 30 # preview drawable 31 self.image = Image() 32 self.add(self.image, True) 33 self.image.bg_a = 0 34 self.image.layout = pgm.IMAGE_SCALED 35 self.image.alignment = pgm.IMAGE_BOTTOM 36 self.image.visible = True 37 38 # reflection drawable 39 self.reflection = Image() 40 self.add(self.reflection) 41 flip_matrix = pgm.mat4x4_new_predefined(pgm.MAT4X4_FLIP_VERTICAL) 42 self.reflection.mapping_matrix = flip_matrix 43 self.reflection.bg_a = 0 44 self.reflection.layout = pgm.IMAGE_SCALED 45 self.reflection.opacity = 150 46 self.reflection.y += self.image.height*0.9 47 self.reflection.alignment = pgm.IMAGE_TOP 48 self.reflection.visible = True
49 50 51 plugin_registry = common.application.plugin_registry 52 BaseListView = plugin_registry.get_component_class('raval:list_view') 53 86