bool ChannelStrip::channelFxEdit (void) { MainForm *pMainForm = MainForm::getInstance(); if (!pMainForm || !channel()) return false; pMainForm->appendMessages(QObject::tr("channel fx sends...")); bool bResult = false; #if CONFIG_FXSEND ChannelFxForm *pChannelFxForm = new ChannelFxForm(channel(), parentWidget()); if (pChannelFxForm) { //pChannelForm->setup(this); bResult = pChannelFxForm->exec(); delete pChannelFxForm; } #else // CONFIG_FXSEND QMessageBox::critical(this, QSAMPLER_TITLE ": " + tr("Unavailable"), tr("Sorry, QSampler was built without FX send support!\n\n" "(Make sure you have a recent liblscp when recompiling QSampler)")); #endif // CONFIG_FXSEND return bResult; }
void Options::sendFineTuningSettings() { setMaxVoices(iMaxVoices); setMaxStreams(iMaxStreams); MainForm *pMainForm = MainForm::getInstance(); if (!pMainForm || !pMainForm->client()) return; pMainForm->appendMessages(QObject::tr("Sent fine tuning settings.")); }
// Redirected messages output methods. void Channel::appendMessages( const QString& s ) const { MainForm *pMainForm = MainForm::getInstance(); if (pMainForm) pMainForm->appendMessages(channelName() + ' ' + s); }