/[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 757 by capela, Fri Aug 26 23:04:32 2005 UTC revision 871 by capela, Thu Jun 1 09:32:01 2006 UTC
# Line 600  bool qsamplerMainForm::loadSessionFile ( Line 600  bool qsamplerMainForm::loadSessionFile (
600      QTextStream ts(&file);      QTextStream ts(&file);
601      while (!ts.atEnd()) {      while (!ts.atEnd()) {
602          // Read the line.          // Read the line.
603          QString sCommand = ts.readLine().simplifyWhiteSpace();          QString sCommand = ts.readLine().stripWhiteSpace();
604          // If not empty, nor a comment, call the server...          // If not empty, nor a comment, call the server...
605          if (!sCommand.isEmpty() && sCommand[0] != '#') {          if (!sCommand.isEmpty() && sCommand[0] != '#') {
606              appendMessagesColor(sCommand, "#996633");              appendMessagesColor(sCommand, "#996633");
# Line 787  bool qsamplerMainForm::saveSessionFile ( Line 787  bool qsamplerMainForm::saveSessionFile (
787                  ts << endl;                  ts << endl;
788                  ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannel << endl;                  ts << "LOAD ENGINE " << pChannel->engineName() << " " << iChannel << endl;
789                  ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannel << endl;                  ts << "LOAD INSTRUMENT NON_MODAL '" << pChannel->instrumentFile() << "' " << pChannel->instrumentNr() << " " << iChannel << endl;
790                                    qsamplerChannelRoutingMap::ConstIterator audioRoute;
791                                    for (audioRoute = pChannel->audioRouting().begin();
792                                                    audioRoute != pChannel->audioRouting().end();
793                                                            ++audioRoute) {
794                                            ts << "SET CHANNEL AUDIO_OUTPUT_CHANNEL " << iChannel
795                                                    << " " << audioRoute.key()
796                                                    << " " << audioRoute.data() << endl;
797                                    }
798                  ts << "SET CHANNEL VOLUME " << iChannel << " " << pChannel->volume() << endl;                  ts << "SET CHANNEL VOLUME " << iChannel << " " << pChannel->volume() << endl;
799                  if (pChannel->channelMute())                                  if (pChannel->channelMute())
800                          ts << "SET CHANNEL MUTE " << iChannel << " 1" << endl;                                          ts << "SET CHANNEL MUTE " << iChannel << " 1" << endl;
801                  if (pChannel->channelSolo())                                  if (pChannel->channelSolo())
802                          ts << "SET CHANNEL SOLO " << iChannel << " 1" << endl;                                          ts << "SET CHANNEL SOLO " << iChannel << " 1" << endl;
803                  ts << endl;                  ts << endl;
804              }              }
805          }          }
# Line 1349  void qsamplerMainForm::stabilizeForm (vo Line 1357  void qsamplerMainForm::stabilizeForm (vo
1357      // Update the main application caption...      // Update the main application caption...
1358      QString sSessionName = sessionName(m_sFilename);      QString sSessionName = sessionName(m_sFilename);
1359      if (m_iDirtyCount > 0)      if (m_iDirtyCount > 0)
1360          sSessionName += '*';          sSessionName += " *";
1361      setCaption(tr(QSAMPLER_TITLE " - [%1]").arg(sSessionName));      setCaption(tr(QSAMPLER_TITLE " - [%1]").arg(sSessionName));
1362    
1363      // Update the main menu state...      // Update the main menu state...

Legend:
Removed from v.757  
changed lines
  Added in v.871

  ViewVC Help
Powered by ViewVC