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 from zope.interface import implements
26
27 from flumotion.admin.assistant.interfaces import IProducerPlugin
28 from flumotion.admin.assistant.models import AudioProducer
29 from flumotion.admin.gtk.basesteps import AudioProducerStep
30
31 __version__ = "$Rev$"
32 _ = gettext.gettext
33
34
42
43
45 name = 'TestAudioProducer'
46 title = _('Test Audio Producer')
47 icon = 'soundcard.png'
48 gladeFile = os.path.join(os.path.dirname(os.path.abspath(__file__)),
49 'wizard.glade')
50 docSection = 'help-configuration-assistant-producer-audio-test'
51 docAnchor = ''
52 docVersion = 'local'
53
54
55
57 self.samplerate.data_type = str
58 self.volume.data_type = float
59 self.wave.data_type = int
60
61 self.samplerate.prefill(['8000',
62 '16000',
63 '32000',
64 '44100'])
65
66 self.wave.prefill([(_('Sine'), 0),
67 (_('Square'), 1),
68 (_('Saw'), 2),
69 (_('Ticks'), 8)])
70
71 self.add_proxy(self.model.properties,
72 ['frequency', 'volume', 'samplerate', 'wave'])
73
74 self.samplerate.set_sensitive(True)
75
79
82
83
93