1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import gettext
23 import os
24
25 import gtk
26 from zope.interface import implements
27
28 from flumotion.wizard.basesteps import VideoProducerStep
29 from flumotion.wizard.interfaces import IProducerPlugin
30 from flumotion.wizard.models import VideoProducer
31
32 __version__ = "$Rev: 6765 $"
33 _ = gettext.gettext
34
35
44
45
47 name = 'Test Video Producer'
48 title = _('Test Video Producer')
49 icon = 'testsource.png'
50 gladeFile = os.path.join(os.path.dirname(os.path.abspath(__file__)),
51 'wizard.glade')
52 componentType = 'videotestsrc'
53
54
55
57 self.pattern.data_type = int
58 self.format.data_type = str
59 self.framerate.data_type = float
60
61 self.pattern.prefill([
62 (_('SMPTE Color bars'), 0),
63 (_('Random (television snow)'), 1),
64 (_('Totally black'), 2)])
65 self.format.prefill([
66 (_('YUV'), 'video/x-raw-yuv'),
67 (_('RGB'), 'video/x-raw-rgb')])
68
69 self.add_proxy(self.model.properties,
70 ['pattern', 'width', 'height',
71 'framerate', 'format'])
72
73 sizegroup = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL)
74 sizegroup.add_widget(self.width)
75 sizegroup.add_widget(self.height)
76 sizegroup.add_widget(self.framerate)
77
81
82
91