Show
Ignore:
Timestamp:
05/18/08 12:09:44 (14 years ago)
Author:
ppalmers
Message:

add some extra saffire pro control elements

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer/mixer_saffirepro.py

    r1107 r1184  
    7171                    textbox.text().ascii()) 
    7272        self.hw.setText(self.TextControls[textbox][0], textbox.text().ascii()) 
     73 
     74    def selectStandaloneMode(self, mode): 
     75        self.hw.enumSelect('/Control/StandaloneConfig', mode) 
     76        self.comboStandalone.setCurrentItem( self.hw.enumSelected('/Control/StandaloneConfig') ) 
    7377 
    7478    def init(self): 
     
    171175                self.chkMidiThru: ['/Control/MidiTru'],  
    172176                self.chkHighVoltage: ['/Control/UseHighVoltageRail'],  
    173                 self.chkEnableADAT1: ['/Control/EnableAdat1'],  
    174                 self.chkEnableADAT2: ['/Control/EnableAdat2'], 
    175                 self.chkEnableSPDIF1: ['/Control/EnableSPDIF1'], 
     177                #self.chkEnableADAT1: ['/Control/EnableAdat1'],  
     178                #self.chkEnableADAT2: ['/Control/EnableAdat2'], 
     179                #self.chkEnableSPDIF1: ['/Control/EnableSPDIF1'], 
     180                self.chkMidiEnable: ['/Control/MIDIEnable'], 
     181                self.chkAdatDisable: ['/Control/ADATDisable'], 
    176182                # Mixer switches 
    177183                self.chkMute12: ['/Mixer/Out12Mute'], 
     
    251257            ctrl.setText(text) 
    252258 
     259        self.comboStandalone.clear() 
     260        for i in range( self.hw.enumCount('/Control/StandaloneConfig') ): 
     261            self.comboStandalone.insertItem( self.hw.enumGetLabel('/Control/StandaloneConfig', i) ) 
     262        self.comboStandalone.setCurrentItem( self.hw.enumSelected('/Control/StandaloneConfig') ) 
     263 
    253264    def initValues(self): 
    254265        self.updateValues() 
     
    272283            # connect the UI element 
    273284            QObject.connect(ctrl,SIGNAL('clicked()'), self.saveText) 
     285 
     286        QObject.connect(self.comboStandalone, SIGNAL('activated(int)'), self.selectStandaloneMode)