/[svn]/qsampler/trunk/src/qsamplerChannel.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerChannel.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1366 by schoenebeck, Mon Oct 1 18:26:06 2007 UTC revision 1372 by capela, Wed Oct 3 11:34:30 2007 UTC
# Line 677  bool qsamplerChannel::channelReset (void Line 677  bool qsamplerChannel::channelReset (void
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;
# Line 685  bool qsamplerChannel::editChannel (void) Line 686  bool qsamplerChannel::editChannel (void)
686    
687          if (::lscp_edit_instrument(pMainForm->client(), m_iChannelID) != LSCP_OK) {          if (::lscp_edit_instrument(pMainForm->client(), m_iChannelID) != LSCP_OK) {
688                  appendMessagesClient("lscp_edit_instrument");                  appendMessagesClient("lscp_edit_instrument");
689                  appendMessagesError(                  appendMessagesError(QObject::tr(
690                          "Could not launch an appropriate instrument editor for the\n"                          "Could not launch an appropriate instrument editor "
691                          "given instrument! Make sure you have an appropriate\n"                          "for the given instrument!\n"
692                          "instrument editor like 'gigedit' installed and that it placed\n"                          "Make sure you have an appropriate "
693                          "its mandatory DLL file into the sampler's plugin directory."                          "instrument editor like 'gigedit' installed\n"
694                            "and that it placed its mandatory DLL file "
695                            "into the sampler's plugin directory.")
696                  );                  );
697                  return false;                  return false;
698          }          }
# Line 697  bool qsamplerChannel::editChannel (void) Line 700  bool qsamplerChannel::editChannel (void)
700          appendMessages(QObject::tr("edit instrument."));          appendMessages(QObject::tr("edit instrument."));
701    
702          return true;          return true;
703    
704  #else  #else
705          appendMessagesError(  
706                  "Sorry, QSampler was compiled for a version of liblscp which lacks\n"          appendMessagesError(QObject::tr(
707                  "this feature. You may want to update liblscp and recompile\n"                  "Sorry, QSampler was compiled for a version of liblscp "
708                  "QSampler afterwards."                  "which lacks this feature.\n"
709                    "You may want to update liblscp and recompile QSampler afterwards.")
710          );          );
711    
712          return false;          return false;
713    
714  #endif  #endif
715  }  }
716    

Legend:
Removed from v.1366  
changed lines
  Added in v.1372

  ViewVC Help
Powered by ViewVC