Package elisa :: Package core :: Package components :: Module controller

Source Code for Module elisa.core.components.controller

 1  # -*- coding: utf-8 -*- 
 2  # Moovida - Home multimedia server 
 3  # Copyright (C) 2006-2009 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 Moovida with Fluendo's plugins. 
11  # 
12  # The GPL part of Moovida is also available under a commercial licensing 
13  # agreement from Fluendo. 
14  # See "LICENSE.Moovida" in the root directory of this distribution package 
15  # for details on that license. 
16   
17  from elisa.core.component import Component 
18   
19 -class Controller(Component):
20 """ 21 Responsible for putting together a user interface and data. In a typical 22 scenario the user interface is made of widgets from a specific toolkit 23 and data is retrieved from L{elisa.core.resource_manager.ResourceManager} 24 in the form of L{elisa.core.components.model.Model}s. 25 L{Controller}s are created by L{elisa.core.components.frontend.Frontend}s. 26 Often, a notion of compatibility between controllers and frontends will 27 exist. 28 29 Example: 30 31 A GTK based frontend will create a window and GTK specific controllers 32 that in turn will create GTK widgets. The controllers will fill the 33 widgets with the data of their choice. 34 """ 35 pass
36