Show
Ignore:
Timestamp:
09/18/09 14:08:49 (15 years ago)
Author:
arnonym
Message:

Maybe thats an incentive to implement names for the mixer-channels.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py

    r1668 r1670  
    143143 
    144144class MixerChannel(QtGui.QWidget): 
    145     def __init__(self, number, parent=None): 
     145    def __init__(self, number, parent=None, name=""): 
    146146        QtGui.QWidget.__init__(self, parent) 
    147147        layout = QtGui.QGridLayout(self) 
    148148        self.number = number 
    149         self.lbl = QtGui.QLabel("Ch. %i" % self.number, self) 
     149        if name is not "": 
     150            name = " (%s)" % name 
     151        self.lbl = QtGui.QLabel("Ch. %i%s" % (self.number, name), self) 
    150152        layout.addWidget(self.lbl, 0, 0, 1, 2) 
    151153 
     
    197199        # Add row/column headers 
    198200        for i in range(cols): 
    199             ch = MixerChannel(i, self
     201            ch = MixerChannel(i, self, self.interface.getColName(i)
    200202            self.connect(ch, QtCore.SIGNAL("couple"), self.coupleColumn) 
    201203            self.connect(ch, QtCore.SIGNAL("hide"), self.hideColumn) 
     
    204206            self.columnHeaders.append( ch ) 
    205207        for i in range(rows): 
    206             ch = MixerChannel(i, self
     208            ch = MixerChannel(i, self, self.interface.getRowName(i)
    207209            self.connect(ch, QtCore.SIGNAL("couple"), self.coupleRow) 
    208210            self.connect(ch, QtCore.SIGNAL("hide"), self.hideRow)