/[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 1372 by capela, Wed Oct 3 11:34:30 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    
681            qsamplerMainForm *pMainForm = qsamplerMainForm::getInstance();
682            if (pMainForm == NULL)
683                    return false;
684            if (pMainForm->client() == NULL || m_iChannelID < 0)
685                    return false;
686    
687            if (::lscp_edit_instrument(pMainForm->client(), m_iChannelID) != LSCP_OK) {
688                    appendMessagesClient("lscp_edit_instrument");
689                    appendMessagesError(QObject::tr(
690                            "Could not launch an appropriate instrument editor "
691                            "for the given instrument!\n"
692                            "Make sure you have an appropriate "
693                            "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;
698            }
699    
700            appendMessages(QObject::tr("edit instrument."));
701    
702            return true;
703    
704    #else
705    
706            appendMessagesError(QObject::tr(
707                    "Sorry, QSampler was compiled for a version of liblscp "
708                    "which lacks this feature.\n"
709                    "You may want to update liblscp and recompile QSampler afterwards.")
710            );
711    
712            return false;
713    
714    #endif
715    }
716    
717    
718  // Channel setup dialog form.  // Channel setup dialog form.
719  bool qsamplerChannel::channelSetup ( QWidget *pParent )  bool qsamplerChannel::channelSetup ( QWidget *pParent )
720  {  {

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

  ViewVC Help
Powered by ViewVC