/[svn]/qsampler/trunk/src/qsamplerMainForm.ui.h
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.ui.h

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

revision 176 by capela, Tue Jul 6 10:54:45 2004 UTC revision 255 by capela, Tue Sep 28 16:17:43 2004 UTC
# Line 602  bool qsamplerMainForm::saveSessionFile ( Line 602  bool qsamplerMainForm::saveSessionFile (
602          ts << "SET CHANNEL AUDIO_OUTPUT_TYPE " << iChannelID << " " << pChannel->audioDriver() << endl;          ts << "SET CHANNEL AUDIO_OUTPUT_TYPE " << iChannelID << " " << pChannel->audioDriver() << endl;
603          ts << "SET CHANNEL MIDI_INPUT_TYPE " << iChannelID << " " << pChannel->midiDriver() << endl;          ts << "SET CHANNEL MIDI_INPUT_TYPE " << iChannelID << " " << pChannel->midiDriver() << endl;
604          ts << "SET CHANNEL MIDI_INPUT_PORT " << iChannelID << " " << pChannel->midiPort() << endl;          ts << "SET CHANNEL MIDI_INPUT_PORT " << iChannelID << " " << pChannel->midiPort() << endl;
605          ts << "SET CHANNEL MIDI_INPUT_CHANNEL " << iChannelID << " " << pChannel->midiChannel() << endl;          ts << "SET CHANNEL MIDI_INPUT_CHANNEL " << iChannelID << " ";
606            if (pChannel->midiChannel() > 0)
607                ts << pChannel->midiChannel();
608             else
609                ts << "ALL";
610            ts << endl;
611          ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannelID << endl;          ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannelID << endl;
612          ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannelID << endl;          ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannelID << endl;
613          ts << "SET CHANNEL VOLUME " << iChannelID << " " << pChannel->volume() << endl;          ts << "SET CHANNEL VOLUME " << iChannelID << " " << pChannel->volume() << endl;
# Line 678  void qsamplerMainForm::fileSaveAs (void) Line 683  void qsamplerMainForm::fileSaveAs (void)
683  }  }
684    
685    
686    // Reset the sampler instance.
687    void qsamplerMainForm::fileReset (void)
688    {
689        if (m_pClient == NULL)
690            return;
691    
692        // Ask user whether he/she want's an internal sampler reset...
693        if (QMessageBox::warning(this, tr("Warning"),
694            tr("Resetting the sampler instance will close\n"
695               "all device and channel configurations.\n\n"
696               "Please note that this operation may cause\n"
697               "temporary MIDI and Audio disruption\n\n"
698               "Do you want to reset the sampler engine now?"),
699            tr("Reset"), tr("Cancel")) > 0)
700            return;
701    
702        // Just do the reset, after closing down current session...
703        if (closeSession(true) && ::lscp_reset_sampler(m_pClient) != LSCP_OK)
704            appendMessagesClient("lscp_reset_sampler");
705    }
706    
707    
708  // Restart the client/server instance.  // Restart the client/server instance.
709  void qsamplerMainForm::fileRestart (void)  void qsamplerMainForm::fileRestart (void)
710  {  {
# Line 1069  void qsamplerMainForm::stabilizeForm (vo Line 1096  void qsamplerMainForm::stabilizeForm (vo
1096      fileOpenAction->setEnabled(bHasClient);      fileOpenAction->setEnabled(bHasClient);
1097      fileSaveAction->setEnabled(bHasClient && m_iDirtyCount > 0);      fileSaveAction->setEnabled(bHasClient && m_iDirtyCount > 0);
1098      fileSaveAsAction->setEnabled(bHasClient);      fileSaveAsAction->setEnabled(bHasClient);
1099        fileResetAction->setEnabled(bHasClient);
1100      fileRestartAction->setEnabled(bHasClient || m_pServer == NULL);      fileRestartAction->setEnabled(bHasClient || m_pServer == NULL);
1101      editAddChannelAction->setEnabled(bHasClient);      editAddChannelAction->setEnabled(bHasClient);
1102      editRemoveChannelAction->setEnabled(bHasChannel);      editRemoveChannelAction->setEnabled(bHasChannel);

Legend:
Removed from v.176  
changed lines
  Added in v.255

  ViewVC Help
Powered by ViewVC