2 |
// |
// |
3 |
/**************************************************************************** |
/**************************************************************************** |
4 |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
Copyright (C) 2004-2007, rncbc aka Rui Nuno Capela. All rights reserved. |
5 |
Copyright (C) 2007, Christian Schoenebeck |
Copyright (C) 2007, 2008 Christian Schoenebeck |
6 |
|
|
7 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
8 |
modify it under the terms of the GNU General Public License |
modify it under the terms of the GNU General Public License |
25 |
|
|
26 |
#include "qsamplerMainForm.h" |
#include "qsamplerMainForm.h" |
27 |
|
|
28 |
|
#include "qsamplerChannelFxForm.h" |
29 |
|
|
30 |
|
#include <QMessageBox> |
31 |
#include <QDragEnterEvent> |
#include <QDragEnterEvent> |
32 |
#include <QUrl> |
#include <QUrl> |
33 |
|
|
88 |
QObject::connect(m_ui.ChannelEditPushButton, |
QObject::connect(m_ui.ChannelEditPushButton, |
89 |
SIGNAL(clicked()), |
SIGNAL(clicked()), |
90 |
SLOT(channelEdit())); |
SLOT(channelEdit())); |
91 |
|
QObject::connect(m_ui.FxPushButton, |
92 |
|
SIGNAL(clicked()), |
93 |
|
SLOT(channelFxEdit())); |
94 |
|
|
95 |
setSelected(false); |
setSelected(false); |
96 |
} |
} |
291 |
m_pChannel->editChannel(); |
m_pChannel->editChannel(); |
292 |
} |
} |
293 |
|
|
294 |
|
bool ChannelStrip::channelFxEdit (void) |
295 |
|
{ |
296 |
|
MainForm *pMainForm = MainForm::getInstance(); |
297 |
|
if (!pMainForm || !channel()) |
298 |
|
return false; |
299 |
|
|
300 |
|
pMainForm->appendMessages(QObject::tr("channel fx sends...")); |
301 |
|
|
302 |
|
bool bResult = false; |
303 |
|
|
304 |
|
#if CONFIG_FXSEND |
305 |
|
ChannelFxForm *pChannelFxForm = |
306 |
|
new ChannelFxForm(channel()->channelID(), parentWidget()); |
307 |
|
if (pChannelFxForm) { |
308 |
|
//pChannelForm->setup(this); |
309 |
|
bResult = pChannelFxForm->exec(); |
310 |
|
delete pChannelFxForm; |
311 |
|
} |
312 |
|
#else // CONFIG_FXSEND |
313 |
|
QMessageBox::critical(this, |
314 |
|
QSAMPLER_TITLE ": " + tr("Unavailable"), |
315 |
|
tr("Sorry, QSampler was built without FX send support!\n\n" |
316 |
|
"(Make sure you have a recent liblscp when recompiling QSampler)")); |
317 |
|
#endif // CONFIG_FXSEND |
318 |
|
|
319 |
|
return bResult; |
320 |
|
} |
321 |
|
|
322 |
// Channel reset slot. |
// Channel reset slot. |
323 |
bool ChannelStrip::channelReset (void) |
bool ChannelStrip::channelReset (void) |