Changeset 1670
- Timestamp:
- 09/18/09 14:08:49 (14 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/libffado/support/mixer-qt4/ffado/widgets/matrixmixer.py
r1668 r1670 143 143 144 144 class MixerChannel(QtGui.QWidget): 145 def __init__(self, number, parent=None ):145 def __init__(self, number, parent=None, name=""): 146 146 QtGui.QWidget.__init__(self, parent) 147 147 layout = QtGui.QGridLayout(self) 148 148 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) 150 152 layout.addWidget(self.lbl, 0, 0, 1, 2) 151 153 … … 197 199 # Add row/column headers 198 200 for i in range(cols): 199 ch = MixerChannel(i, self )201 ch = MixerChannel(i, self, self.interface.getColName(i)) 200 202 self.connect(ch, QtCore.SIGNAL("couple"), self.coupleColumn) 201 203 self.connect(ch, QtCore.SIGNAL("hide"), self.hideColumn) … … 204 206 self.columnHeaders.append( ch ) 205 207 for i in range(rows): 206 ch = MixerChannel(i, self )208 ch = MixerChannel(i, self, self.interface.getRowName(i)) 207 209 self.connect(ch, QtCore.SIGNAL("couple"), self.coupleRow) 208 210 self.connect(ch, QtCore.SIGNAL("hide"), self.hideRow)