/[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 1022 by capela, Thu Jan 11 16:14:31 2007 UTC revision 1366 by schoenebeck, Mon Oct 1 18:26:06 2007 UTC
# Line 673  bool qsamplerChannel::channelReset (void Line 673  bool qsamplerChannel::channelReset (void
673  }  }
674    
675    
676    // Spawn instrument editor method.
677    bool qsamplerChannel::editChannel (void)
678    {
679    #ifdef CONFIG_EDIT_INSTRUMENT
680            qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance();
681            if (pMainForm == NULL)
682                    return false;
683            if (pMainForm->client() == NULL || m_iChannelID < 0)
684                    return false;
685    
686            if (::lscp_edit_instrument(pMainForm->client(), m_iChannelID) != LSCP_OK) {
687                    appendMessagesClient("lscp_edit_instrument");
688                    appendMessagesError(
689                            "Could not launch an appropriate instrument editor for the\n"
690                            "given instrument! Make sure you have an appropriate\n"
691                            "instrument editor like 'gigedit' installed and that it placed\n"
692                            "its mandatory DLL file into the sampler's plugin directory."
693                    );
694                    return false;
695            }
696    
697            appendMessages(QObject::tr("edit instrument."));
698    
699            return true;
700    #else
701            appendMessagesError(
702                    "Sorry, QSampler was compiled for a version of liblscp which lacks\n"
703                    "this feature. You may want to update liblscp and recompile\n"
704                    "QSampler afterwards."
705            );
706            return false;
707    #endif
708    }
709    
710    
711  // Channel setup dialog form.  // Channel setup dialog form.
712  bool qsamplerChannel::channelSetup ( QWidget *pParent )  bool qsamplerChannel::channelSetup ( QWidget *pParent )
713  {  {

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

  ViewVC Help
Powered by ViewVC