1 |
# |
---|
2 |
# Copyright (C) 2009 by Arnold Krille |
---|
3 |
# |
---|
4 |
# This file is part of FFADO |
---|
5 |
# FFADO = Free Firewire (pro-)audio drivers for linux |
---|
6 |
# |
---|
7 |
# This program is free software: you can redistribute it and/or modify |
---|
8 |
# it under the terms of the GNU General Public License as published by |
---|
9 |
# the Free Software Foundation, either version 2 of the License, or |
---|
10 |
# (at your option) version 3 of the License. |
---|
11 |
# |
---|
12 |
# This program is distributed in the hope that it will be useful, |
---|
13 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 |
# GNU General Public License for more details. |
---|
16 |
# |
---|
17 |
# You should have received a copy of the GNU General Public License |
---|
18 |
# along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
19 |
# |
---|
20 |
|
---|
21 |
from PyQt4 import QtGui, QtCore |
---|
22 |
import dbus |
---|
23 |
|
---|
24 |
from ffado.widgets.matrixmixer import MatrixMixer |
---|
25 |
from ffado.widgets.crossbarrouter import * |
---|
26 |
|
---|
27 |
class Saffire_Dice(QtGui.QWidget): |
---|
28 |
def __init__(self, parent=None): |
---|
29 |
QtGui.QWidget.__init__(self, parent) |
---|
30 |
self.layout = QtGui.QGridLayout(self) |
---|
31 |
self.setLayout(self.layout) |
---|
32 |
self.tabs = QtGui.QTabWidget(self) |
---|
33 |
self.layout.addWidget(self.tabs) |
---|
34 |
|
---|
35 |
def buildMixer(self): |
---|
36 |
#print self.hw |
---|
37 |
#print self.hw.getText("/Generic/Nickname") |
---|
38 |
self.matrix = MatrixMixer(self.hw.servername, self.hw.basepath+"/EAP/MatrixMixer", self) |
---|
39 |
scrollarea = QtGui.QScrollArea(self.tabs) |
---|
40 |
scrollarea.setWidgetResizable(True) |
---|
41 |
scrollarea.setWidget(self.matrix) |
---|
42 |
self.tabs.addTab(scrollarea, "Matrix") |
---|
43 |
|
---|
44 |
self.router = CrossbarRouter(self.hw.servername, self.hw.basepath+"/EAP/Router", self) |
---|
45 |
scrollarea = QtGui.QScrollArea(self.tabs) |
---|
46 |
scrollarea.setWidgetResizable(True) |
---|
47 |
scrollarea.setWidget(self.router) |
---|
48 |
self.tabs.addTab(scrollarea, "Routing") |
---|
49 |
|
---|
50 |
#def getDisplayTitle(self): |
---|
51 |
# return "Experimental EAP Mixer" |
---|
52 |
|
---|
53 |
|
---|
54 |
# |
---|
55 |
# vim: et ts=4 sw=4 |
---|