Package flumotion :: Package component :: Package encoders :: Package smoke :: Module wizard_gtk
[hide private]

Source Code for Module flumotion.component.encoders.smoke.wizard_gtk

 1  # -*- Mode: Python -*- 
 2  # vi:si:et:sw=4:sts=4:ts=4 
 3  # 
 4  # Flumotion - a streaming media server 
 5  # Copyright (C) 2004,2005,2006,2007,2008 Fluendo, S.L. (www.fluendo.com). 
 6  # All rights reserved. 
 7   
 8  # This file may be distributed and/or modified under the terms of 
 9  # the GNU General Public License version 2 as published by 
10  # the Free Software Foundation. 
11  # This file is distributed without any warranty; without even the implied 
12  # warranty of merchantability or fitness for a particular purpose. 
13  # See "LICENSE.GPL" in the source distribution for more information. 
14   
15  # Licensees having purchased or holding a valid Flumotion Advanced 
16  # Streaming Server license may use this file in accordance with the 
17  # Flumotion Advanced Streaming Server Commercial License Agreement. 
18  # See "LICENSE.Flumotion" in the source distribution for more information. 
19   
20  # Headers in this file shall remain intact. 
21   
22  import gettext 
23  import os 
24   
25  from zope.interface import implements 
26   
27  from flumotion.wizard.basesteps import VideoEncoderStep 
28  from flumotion.wizard.interfaces import IEncoderPlugin 
29  from flumotion.wizard.models import VideoEncoder 
30   
31  __version__ = "$Rev: 6765 $" 
32  _ = gettext.gettext 
33   
34   
35 -class SmokeVideoEncoder(VideoEncoder):
36 componentType = 'smoke-encoder'
37 38
39 -class SmokeStep(VideoEncoderStep):
40 name = 'SmokeEncoder' 41 title = _('Smoke encoder') 42 sidebarName = _('Smoke') 43 section = _('Conversion') 44 gladeFile = os.path.join(os.path.dirname(os.path.abspath(__file__)), 45 'wizard.glade') 46 componentType = 'smoke' 47 48 # WizardStep 49
50 - def workerChanged(self, worker):
51 self.model.worker = worker 52 self.wizard.requireElements(worker, 'smokeenc')
53 54
55 -class SmokeWizardPlugin(object):
56 implements(IEncoderPlugin)
57 - def __init__(self, wizard):
58 self.wizard = wizard 59 self.model = SmokeVideoEncoder()
60
61 - def getConversionStep(self):
62 return SmokeStep(self.wizard, self.model)
63