diff options
Diffstat (limited to 'TamTamSynthLab.activity/SynthLab/SynthLabToolbars.py')
-rw-r--r-- | TamTamSynthLab.activity/SynthLab/SynthLabToolbars.py | 86 |
1 files changed, 44 insertions, 42 deletions
diff --git a/TamTamSynthLab.activity/SynthLab/SynthLabToolbars.py b/TamTamSynthLab.activity/SynthLab/SynthLabToolbars.py index c55fc34..14e4e90 100644 --- a/TamTamSynthLab.activity/SynthLab/SynthLabToolbars.py +++ b/TamTamSynthLab.activity/SynthLab/SynthLabToolbars.py @@ -51,48 +51,50 @@ class mainToolbar(gtk.Toolbar): _insertSeparator(1) - self.synthRec1Button = ToggleToolButton('rec1') - self.synthRec1Button.connect('clicked',self.synthLab.recordSound,1) - self.insert(self.synthRec1Button, -1) - self.synthRec1Button.show() - self.synthRec1Button.set_tooltip(_('Record Synth sound into slot "lab1"')) - - self.synthRec2Button = ToggleToolButton('rec2') - self.synthRec2Button.connect('clicked',self.synthLab.recordSound,2) - self.insert(self.synthRec2Button, -1) - self.synthRec2Button.show() - self.synthRec2Button.set_tooltip(_('Record Synth sound into slot "lab2"')) - - self.synthRec3Button = ToggleToolButton('rec3') - self.synthRec3Button.connect('clicked',self.synthLab.recordSound,3) - self.insert(self.synthRec3Button, -1) - self.synthRec3Button.show() - self.synthRec3Button.set_tooltip(_('Record Synth sound into slot "lab3"')) - - self.synthRec4Button = ToggleToolButton('rec4') - self.synthRec4Button.connect('clicked',self.synthLab.recordSound,4) - self.insert(self.synthRec4Button, -1) - self.synthRec4Button.show() - self.synthRec4Button.set_tooltip(_('Record Synth sound into slot "lab4"')) - - self.synthRec5Button = ToggleToolButton('rec5') - self.synthRec5Button.connect('clicked',self.synthLab.recordSound,5) - self.insert(self.synthRec5Button, -1) - self.synthRec5Button.show() - self.synthRec5Button.set_tooltip(_('Record Synth sound into slot "lab5"')) - - self.synthRec6Button = ToggleToolButton('rec6') - self.synthRec6Button.connect('clicked',self.synthLab.recordSound,6) - self.insert(self.synthRec6Button, -1) - self.synthRec6Button.show() - self.synthRec6Button.set_tooltip(_('Record Synth sound into slot "lab6"')) - - #RecordOgg button - self.recordOggButton = ToggleToolButton('recordO') - self.recordOggButton.connect('clicked', self.synthLab.recordOgg) - self.insert(self.recordOggButton, -1) - self.recordOggButton.show() - self.recordOggButton.set_tooltip(_('Record to ogg')) + if Config.FEATURES_LAB: + self.synthRec1Button = ToggleToolButton('rec1') + self.synthRec1Button.connect('clicked',self.synthLab.recordSound,1) + self.insert(self.synthRec1Button, -1) + self.synthRec1Button.show() + self.synthRec1Button.set_tooltip(_('Record Synth sound into slot "lab1"')) + + self.synthRec2Button = ToggleToolButton('rec2') + self.synthRec2Button.connect('clicked',self.synthLab.recordSound,2) + self.insert(self.synthRec2Button, -1) + self.synthRec2Button.show() + self.synthRec2Button.set_tooltip(_('Record Synth sound into slot "lab2"')) + + self.synthRec3Button = ToggleToolButton('rec3') + self.synthRec3Button.connect('clicked',self.synthLab.recordSound,3) + self.insert(self.synthRec3Button, -1) + self.synthRec3Button.show() + self.synthRec3Button.set_tooltip(_('Record Synth sound into slot "lab3"')) + + self.synthRec4Button = ToggleToolButton('rec4') + self.synthRec4Button.connect('clicked',self.synthLab.recordSound,4) + self.insert(self.synthRec4Button, -1) + self.synthRec4Button.show() + self.synthRec4Button.set_tooltip(_('Record Synth sound into slot "lab4"')) + + self.synthRec5Button = ToggleToolButton('rec5') + self.synthRec5Button.connect('clicked',self.synthLab.recordSound,5) + self.insert(self.synthRec5Button, -1) + self.synthRec5Button.show() + self.synthRec5Button.set_tooltip(_('Record Synth sound into slot "lab5"')) + + self.synthRec6Button = ToggleToolButton('rec6') + self.synthRec6Button.connect('clicked',self.synthLab.recordSound,6) + self.insert(self.synthRec6Button, -1) + self.synthRec6Button.show() + self.synthRec6Button.set_tooltip(_('Record Synth sound into slot "lab6"')) + + if Config.FEATURES_OGG: + #RecordOgg button + self.recordOggButton = ToggleToolButton('recordO') + self.recordOggButton.connect('clicked', self.synthLab.recordOgg) + self.insert(self.recordOggButton, -1) + self.recordOggButton.show() + self.recordOggButton.set_tooltip(_('Record to ogg')) _insertSeparator(1) |