677 |
bool qsamplerChannel::editChannel (void) |
bool qsamplerChannel::editChannel (void) |
678 |
{ |
{ |
679 |
#ifdef CONFIG_EDIT_INSTRUMENT |
#ifdef CONFIG_EDIT_INSTRUMENT |
680 |
|
|
681 |
qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance(); |
qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance(); |
682 |
if (pMainForm == NULL) |
if (pMainForm == NULL) |
683 |
return false; |
return false; |
689 |
appendMessagesError(QObject::tr( |
appendMessagesError(QObject::tr( |
690 |
"Could not launch an appropriate instrument editor " |
"Could not launch an appropriate instrument editor " |
691 |
"for the given instrument!\n" |
"for the given instrument!\n" |
692 |
"Make sure you have an appropriate instrument editor like" |
"Make sure you have an appropriate " |
693 |
"'gigedit' installed and that it placed its mandatory " |
"instrument editor like 'gigedit' installed\n" |
694 |
"DLL file into the sampler's plugin directory.") |
"and that it placed its mandatory DLL file " |
695 |
|
"into the sampler's plugin directory.") |
696 |
); |
); |
697 |
return false; |
return false; |
698 |
} |
} |
700 |
appendMessages(QObject::tr("edit instrument.")); |
appendMessages(QObject::tr("edit instrument.")); |
701 |
|
|
702 |
return true; |
return true; |
703 |
|
|
704 |
#else |
#else |
705 |
|
|
706 |
appendMessagesError(QObject::tr( |
appendMessagesError(QObject::tr( |
707 |
"Sorry, QSampler was compiled for a version of liblscp " |
"Sorry, QSampler was compiled for a version of liblscp " |
708 |
"which lacks this feature.\n" |
"which lacks this feature.\n" |
709 |
"You may want to update liblscp and recompile QSampler afterwards.") |
"You may want to update liblscp and recompile QSampler afterwards.") |
710 |
); |
); |
711 |
|
|
712 |
return false; |
return false; |
713 |
|
|
714 |
#endif |
#endif |
715 |
} |
} |
716 |
|
|