1 |
|
// qsamplerDeviceForm.cpp |
2 |
|
// |
3 |
|
/**************************************************************************** |
4 |
|
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
|
Copyright (C) 2007, Christian Schoenebeck |
6 |
|
|
7 |
|
This program is free software; you can redistribute it and/or |
8 |
|
modify it under the terms of the GNU General Public License |
9 |
|
as published by the Free Software Foundation; either version 2 |
10 |
|
of the License, or (at your option) any later version. |
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 along |
18 |
|
with this program; if not, write to the Free Software Foundation, Inc., |
19 |
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
|
21 |
|
*****************************************************************************/ |
22 |
|
|
23 |
#include "qsamplerDeviceForm.h" |
#include "qsamplerDeviceForm.h" |
24 |
|
|
25 |
#include "qsamplerAbout.h" |
#include "qsamplerAbout.h" |
55 |
refreshDevices(); |
refreshDevices(); |
56 |
// Try to restore normal window positioning. |
// Try to restore normal window positioning. |
57 |
adjustSize(); |
adjustSize(); |
58 |
|
|
59 |
|
QObject::connect(ui.DeviceListView, |
60 |
|
SIGNAL(selectionChanged()), |
61 |
|
SLOT(selectDevice())); |
62 |
|
QObject::connect(ui.DeviceListView, |
63 |
|
SIGNAL(contextMenuRequested(QListViewItem*,const QPoint&,int)), |
64 |
|
SLOT(contextMenu(QListViewItem*,const QPoint&,int))); |
65 |
|
QObject::connect(ui.RefreshDevicesPushButton, |
66 |
|
SIGNAL(clicked()), |
67 |
|
SLOT(refreshDevices())); |
68 |
|
QObject::connect(ui.DriverNameComboBox, |
69 |
|
SIGNAL(activated(const QString&)), |
70 |
|
SLOT(selectDriver(const QString&))); |
71 |
|
QObject::connect(ui.DevicePortComboBox, |
72 |
|
SIGNAL(activated(int)), |
73 |
|
SLOT(selectDevicePort(int))); |
74 |
|
QObject::connect(ui.CreateDevicePushButton, |
75 |
|
SIGNAL(clicked()), |
76 |
|
SLOT(createDevice())); |
77 |
|
QObject::connect(ui.DeleteDevicePushButton, |
78 |
|
SIGNAL(clicked()), |
79 |
|
SLOT(deleteDevice())); |
80 |
|
QObject::connect(ui.ClosePushButton, |
81 |
|
SIGNAL(clicked()), |
82 |
|
SLOT(close())); |
83 |
} |
} |
84 |
|
|
85 |
DeviceForm::~DeviceForm() { |
DeviceForm::~DeviceForm() { |
603 |
} |
} |
604 |
|
|
605 |
} // namespace QSampler |
} // namespace QSampler |
606 |
|
|
607 |
|
|
608 |
|
// end of qsamplerDeviceForm.cpp |