/[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 1367 by capela, Mon Oct 1 22:03:35 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(QObject::tr(
689                            "Could not launch an appropriate instrument editor "
690                            "for the given instrument!\n"
691                            "Make sure you have an appropriate instrument editor like"
692                            "'gigedit' installed and that it placed its mandatory "
693                            "DLL file into the sampler's plugin directory.")
694                    );
695                    return false;
696            }
697    
698            appendMessages(QObject::tr("edit instrument."));
699    
700            return true;
701    #else
702            appendMessagesError(QObject::tr(
703                    "Sorry, QSampler was compiled for a version of liblscp "
704                    "which lacks this feature.\n"
705                    "You may want to update liblscp and recompile QSampler afterwards.")
706            );
707            return false;
708    #endif
709    }
710    
711    
712  // Channel setup dialog form.  // Channel setup dialog form.
713  bool qsamplerChannel::channelSetup ( QWidget *pParent )  bool qsamplerChannel::channelSetup ( QWidget *pParent )
714  {  {

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

  ViewVC Help
Powered by ViewVC