/[svn]/qsampler/trunk/src/qsamplerMainForm.cpp
ViewVC logotype

Diff of /qsampler/trunk/src/qsamplerMainForm.cpp

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

revision 3555 by capela, Tue Aug 13 10:19:32 2019 UTC revision 3613 by capela, Tue Oct 1 08:35:49 2019 UTC
# Line 869  bool MainForm::openSession (void) Line 869  bool MainForm::openSession (void)
869    
870          // Ask for the filename to open...          // Ask for the filename to open...
871          QString sFilename = QFileDialog::getOpenFileName(this,          QString sFilename = QFileDialog::getOpenFileName(this,
872                  QSAMPLER_TITLE ": " + tr("Open Session"), // Caption.                  tr("Open Session"),                       // Caption.
873                  m_pOptions->sSessionDir,                  // Start here.                  m_pOptions->sSessionDir,                  // Start here.
874                  tr("LSCP Session files") + " (*.lscp)"    // Filter (LSCP files)                  tr("LSCP Session files") + " (*.lscp)"    // Filter (LSCP files)
875          );          );
# Line 902  bool MainForm::saveSession ( bool bPromp Line 902  bool MainForm::saveSession ( bool bPromp
902                          sFilename = m_pOptions->sSessionDir;                          sFilename = m_pOptions->sSessionDir;
903                  // Prompt the guy...                  // Prompt the guy...
904                  sFilename = QFileDialog::getSaveFileName(this,                  sFilename = QFileDialog::getSaveFileName(this,
905                          QSAMPLER_TITLE ": " + tr("Save Session"), // Caption.                          tr("Save Session"),                       // Caption.
906                          sFilename,                                // Start here.                          sFilename,                                // Start here.
907                          tr("LSCP Session files") + " (*.lscp)"    // Filter (LSCP files)                          tr("LSCP Session files") + " (*.lscp)"    // Filter (LSCP files)
908                  );                  );
# Line 916  bool MainForm::saveSession ( bool bPromp Line 916  bool MainForm::saveSession ( bool bPromp
916                  // Check if already exists...                  // Check if already exists...
917                  if (sFilename != m_sFilename && QFileInfo(sFilename).exists()) {                  if (sFilename != m_sFilename && QFileInfo(sFilename).exists()) {
918                          if (QMessageBox::warning(this,                          if (QMessageBox::warning(this,
919                                  QSAMPLER_TITLE ": " + tr("Warning"),                                  tr("Warning"),
920                                  tr("The file already exists:\n\n"                                  tr("The file already exists:\n\n"
921                                  "\"%1\"\n\n"                                  "\"%1\"\n\n"
922                                  "Do you want to replace it?")                                  "Do you want to replace it?")
# Line 941  bool MainForm::closeSession ( bool bForc Line 941  bool MainForm::closeSession ( bool bForc
941          // Are we dirty enough to prompt it?          // Are we dirty enough to prompt it?
942          if (m_iDirtyCount > 0) {          if (m_iDirtyCount > 0) {
943                  switch (QMessageBox::warning(this,                  switch (QMessageBox::warning(this,
944                          QSAMPLER_TITLE ": " + tr("Warning"),                          tr("Warning"),
945                          tr("The current session has been changed:\n\n"                          tr("The current session has been changed:\n\n"
946                          "\"%1\"\n\n"                          "\"%1\"\n\n"
947                          "Do you want to save the changes?")                          "Do you want to save the changes?")
# Line 966  bool MainForm::closeSession ( bool bForc Line 966  bool MainForm::closeSession ( bool bForc
966                  m_pWorkspace->setUpdatesEnabled(false);                  m_pWorkspace->setUpdatesEnabled(false);
967                  const QList<QMdiSubWindow *>& wlist                  const QList<QMdiSubWindow *>& wlist
968                          = m_pWorkspace->subWindowList();                          = m_pWorkspace->subWindowList();
969                  const int iStripCount = wlist.count();                  foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
970                  for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                          ChannelStrip *pChannelStrip
971                          ChannelStrip *pChannelStrip = nullptr;                                  = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                         QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                         if (pMdiSubWindow)  
                                 pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
972                          if (pChannelStrip) {                          if (pChannelStrip) {
973                                  Channel *pChannel = pChannelStrip->channel();                                  Channel *pChannel = pChannelStrip->channel();
974                                  if (bForce && pChannel)                                  if (bForce && pChannel)
975                                          pChannel->removeChannel();                                          pChannel->removeChannel();
976                                  delete pChannelStrip;                                  delete pChannelStrip;
977                          }                          }
978                          if (pMdiSubWindow)                          delete pMdiSubWindow;
                                 delete pMdiSubWindow;  
979                  }                  }
980                  m_pWorkspace->setUpdatesEnabled(true);                  m_pWorkspace->setUpdatesEnabled(true);
981                  // We're now clean, for sure.                  // We're now clean, for sure.
# Line 1277  bool MainForm::saveSessionFile ( const Q Line 1273  bool MainForm::saveSessionFile ( const Q
1273          int iChannelID = 0;          int iChannelID = 0;
1274          const QList<QMdiSubWindow *>& wlist          const QList<QMdiSubWindow *>& wlist
1275                  = m_pWorkspace->subWindowList();                  = m_pWorkspace->subWindowList();
1276          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
1277          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  ChannelStrip *pChannelStrip
1278                  ChannelStrip *pChannelStrip = nullptr;                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                 if (pMdiSubWindow)  
                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
1279                  if (pChannelStrip) {                  if (pChannelStrip) {
1280                          Channel *pChannel = pChannelStrip->channel();                          Channel *pChannel = pChannelStrip->channel();
1281                          if (pChannel) {                          if (pChannel) {
# Line 1493  void MainForm::fileReset (void) Line 1486  void MainForm::fileReset (void)
1486    
1487          // Ask user whether he/she want's an internal sampler reset...          // Ask user whether he/she want's an internal sampler reset...
1488          if (m_pOptions && m_pOptions->bConfirmReset) {          if (m_pOptions && m_pOptions->bConfirmReset) {
1489                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Warning");                  const QString& sTitle = tr("Warning");
1490                  const QString& sText = tr(                  const QString& sText = tr(
1491                          "Resetting the sampler instance will close\n"                          "Resetting the sampler instance will close\n"
1492                          "all device and channel configurations.\n\n"                          "all device and channel configurations.\n\n"
# Line 1552  void MainForm::fileRestart (void) Line 1545  void MainForm::fileRestart (void)
1545          // Ask user whether he/she want's a complete restart...          // Ask user whether he/she want's a complete restart...
1546          // (if we're currently up and running)          // (if we're currently up and running)
1547          if (m_pOptions && m_pOptions->bConfirmRestart) {          if (m_pOptions && m_pOptions->bConfirmRestart) {
1548                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Warning");                  const QString& sTitle = tr("Warning");
1549                  const QString& sText = tr(                  const QString& sText = tr(
1550                          "New settings will be effective after\n"                          "New settings will be effective after\n"
1551                          "restarting the client/server connection.\n\n"                          "restarting the client/server connection.\n\n"
# Line 1666  void MainForm::removeChannelStrip (void) Line 1659  void MainForm::removeChannelStrip (void)
1659    
1660          // Prompt user if he/she's sure about this...          // Prompt user if he/she's sure about this...
1661          if (m_pOptions && m_pOptions->bConfirmRemove) {          if (m_pOptions && m_pOptions->bConfirmRemove) {
1662                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Warning");                  const QString& sTitle = tr("Warning");
1663                  const QString& sText = tr(                  const QString& sText = tr(
1664                          "About to remove channel:\n\n"                          "About to remove channel:\n\n"
1665                          "%1\n\n"                          "%1\n\n"
# Line 1762  void MainForm::editResetAllChannels (voi Line 1755  void MainForm::editResetAllChannels (voi
1755          m_pWorkspace->setUpdatesEnabled(false);          m_pWorkspace->setUpdatesEnabled(false);
1756          const QList<QMdiSubWindow *>& wlist          const QList<QMdiSubWindow *>& wlist
1757                  = m_pWorkspace->subWindowList();                  = m_pWorkspace->subWindowList();
1758          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
1759          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  ChannelStrip *pChannelStrip
1760                  ChannelStrip *pChannelStrip = nullptr;                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                 if (pMdiSubWindow)  
                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
1761                  if (pChannelStrip)                  if (pChannelStrip)
1762                          pChannelStrip->channelReset();                          pChannelStrip->channelReset();
1763          }          }
# Line 1906  void MainForm::viewOptions (void) Line 1896  void MainForm::viewOptions (void)
1896                                  (!bOldKeepOnTop     &&  m_pOptions->bKeepOnTop)     ||                                  (!bOldKeepOnTop     &&  m_pOptions->bKeepOnTop)     ||
1897                                  (iOldBaseFontSize   !=  m_pOptions->iBaseFontSize)) {                                  (iOldBaseFontSize   !=  m_pOptions->iBaseFontSize)) {
1898                                  QMessageBox::information(this,                                  QMessageBox::information(this,
1899                                          QSAMPLER_TITLE ": " + tr("Information"),                                          tr("Information"),
1900                                          tr("Some settings may be only effective\n"                                          tr("Some settings may be only effective\n"
1901                                          "next time you start this program."));                                          "next time you start this program."));
1902                                  updateMessagesCapture();                                  updateMessagesCapture();
# Line 1970  void MainForm::channelsArrange (void) Line 1960  void MainForm::channelsArrange (void)
1960    
1961          m_pWorkspace->setUpdatesEnabled(false);          m_pWorkspace->setUpdatesEnabled(false);
1962          int y = 0;          int y = 0;
1963          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
1964          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  pMdiSubWindow->adjustSize();
1965                  QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);                  const QRect& frameRect
1966                  if (pMdiSubWindow) {                          = pMdiSubWindow->frameGeometry();
1967                          pMdiSubWindow->adjustSize();                  int w = m_pWorkspace->width();
1968                          int iWidth = m_pWorkspace->width();                  if (w < frameRect.width())
1969                          if (iWidth < pMdiSubWindow->width())                          w = frameRect.width();
1970                                  iWidth = pMdiSubWindow->width();                  const int h = frameRect.height();
1971                          const int iHeight = pMdiSubWindow->frameGeometry().height();                  pMdiSubWindow->setGeometry(0, y, w, h);
1972                          pMdiSubWindow->setGeometry(0, y, iWidth, iHeight);                  y += h;
                         y += iHeight;  
                 }  
1973          }          }
1974          m_pWorkspace->setUpdatesEnabled(true);          m_pWorkspace->setUpdatesEnabled(true);
1975    
# Line 2096  void MainForm::helpAbout (void) Line 2084  void MainForm::helpAbout (void)
2084          sText += "</small>";          sText += "</small>";
2085          sText += "</p>\n";          sText += "</p>\n";
2086    
2087          QMessageBox::about(this, tr("About") + " " QSAMPLER_TITLE, sText);          QMessageBox::about(this, tr("About"), sText);
2088  }  }
2089    
2090    
# Line 2109  void MainForm::stabilizeForm (void) Line 2097  void MainForm::stabilizeForm (void)
2097          QString sSessionName = sessionName(m_sFilename);          QString sSessionName = sessionName(m_sFilename);
2098          if (m_iDirtyCount > 0)          if (m_iDirtyCount > 0)
2099                  sSessionName += " *";                  sSessionName += " *";
2100          setWindowTitle(tr(QSAMPLER_TITLE " - [%1]").arg(sSessionName));          setWindowTitle(sSessionName);
2101    
2102          // Update the main menu state...          // Update the main menu state...
2103          ChannelStrip *pChannelStrip = activeChannelStrip();          ChannelStrip *pChannelStrip = activeChannelStrip();
# Line 2291  void MainForm::updateAllChannelStrips ( Line 2279  void MainForm::updateAllChannelStrips (
2279                  if (bRemoveDeadStrips) {                  if (bRemoveDeadStrips) {
2280                          const QList<QMdiSubWindow *>& wlist                          const QList<QMdiSubWindow *>& wlist
2281                                  = m_pWorkspace->subWindowList();                                  = m_pWorkspace->subWindowList();
2282                          const int iStripCount = wlist.count();                          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2283                          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                                  ChannelStrip *pChannelStrip
2284                                  ChannelStrip *pChannelStrip = nullptr;                                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                                 if (pMdiSubWindow)  
                                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2285                                  if (pChannelStrip) {                                  if (pChannelStrip) {
2286                                          bool bExists = false;                                          bool bExists = false;
2287                                          for (int iChannel = 0; piChannelIDs[iChannel] >= 0; ++iChannel) {                                          for (int iChannel = 0; piChannelIDs[iChannel] >= 0; ++iChannel) {
# Line 2373  void MainForm::updateInstrumentNames (vo Line 2358  void MainForm::updateInstrumentNames (vo
2358                  return;                  return;
2359    
2360          m_pWorkspace->setUpdatesEnabled(false);          m_pWorkspace->setUpdatesEnabled(false);
2361          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2362          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  ChannelStrip *pChannelStrip
2363                  ChannelStrip *pChannelStrip = nullptr;                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                 if (pMdiSubWindow)  
                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2364                  if (pChannelStrip)                  if (pChannelStrip)
2365                          pChannelStrip->updateInstrumentName(true);                          pChannelStrip->updateInstrumentName(true);
2366          }          }
# Line 2408  void MainForm::updateDisplayFont (void) Line 2390  void MainForm::updateDisplayFont (void)
2390                  return;                  return;
2391    
2392          m_pWorkspace->setUpdatesEnabled(false);          m_pWorkspace->setUpdatesEnabled(false);
2393          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2394          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  ChannelStrip *pChannelStrip
2395                  ChannelStrip *pChannelStrip = nullptr;                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                 if (pMdiSubWindow)  
                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2396                  if (pChannelStrip)                  if (pChannelStrip)
2397                          pChannelStrip->setDisplayFont(font);                          pChannelStrip->setDisplayFont(font);
2398          }          }
# Line 2431  void MainForm::updateDisplayEffect (void Line 2410  void MainForm::updateDisplayEffect (void
2410                  return;                  return;
2411    
2412          m_pWorkspace->setUpdatesEnabled(false);          m_pWorkspace->setUpdatesEnabled(false);
2413          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2414          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  ChannelStrip *pChannelStrip
2415                  ChannelStrip *pChannelStrip = nullptr;                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                 if (pMdiSubWindow)  
                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2416                  if (pChannelStrip)                  if (pChannelStrip)
2417                          pChannelStrip->setDisplayEffect(m_pOptions->bDisplayEffect);                          pChannelStrip->setDisplayEffect(m_pOptions->bDisplayEffect);
2418          }          }
# Line 2464  void MainForm::updateMaxVolume (void) Line 2440  void MainForm::updateMaxVolume (void)
2440                  return;                  return;
2441    
2442          m_pWorkspace->setUpdatesEnabled(false);          m_pWorkspace->setUpdatesEnabled(false);
2443          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2444          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  ChannelStrip *pChannelStrip
2445                  ChannelStrip *pChannelStrip = nullptr;                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                 if (pMdiSubWindow)  
                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2446                  if (pChannelStrip)                  if (pChannelStrip)
2447                          pChannelStrip->setMaxVolume(m_pOptions->iMaxVolume);                          pChannelStrip->setMaxVolume(m_pOptions->iMaxVolume);
2448          }          }
# Line 2514  void MainForm::appendMessagesError( cons Line 2487  void MainForm::appendMessagesError( cons
2487          QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);          QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
2488    
2489          if (m_pOptions && m_pOptions->bConfirmError) {          if (m_pOptions && m_pOptions->bConfirmError) {
2490                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Error");                  const QString& sTitle = tr("Error");
2491          #if 0          #if 0
2492                  QMessageBox::critical(this, sTitle, sText, QMessageBox::Cancel);                  QMessageBox::critical(this, sTitle, sText, QMessageBox::Cancel);
2493          #else          #else
# Line 2617  ChannelStrip *MainForm::createChannelStr Line 2590  ChannelStrip *MainForm::createChannelStr
2590          }          }
2591    
2592          // Add it to workspace...          // Add it to workspace...
2593          m_pWorkspace->addSubWindow(pChannelStrip,          QMdiSubWindow *pMdiSubWindow
2594                  Qt::SubWindow | Qt::FramelessWindowHint);                  = m_pWorkspace->addSubWindow(pChannelStrip,
2595                            Qt::SubWindow | Qt::FramelessWindowHint);
2596            pMdiSubWindow->setAttribute(Qt::WA_DeleteOnClose);
2597    
2598          // Actual channel strip setup...          // Actual channel strip setup...
2599          pChannelStrip->setup(pChannel);          pChannelStrip->setup(pChannel);
# Line 2694  ChannelStrip *MainForm::channelStrip ( i Line 2669  ChannelStrip *MainForm::channelStrip ( i
2669          if (wlist.isEmpty())          if (wlist.isEmpty())
2670                  return nullptr;                  return nullptr;
2671    
2672          const int iStripCount = wlist.count();          foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2673          for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  ChannelStrip *pChannelStrip
2674                  ChannelStrip *pChannelStrip = nullptr;                          = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                 QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                 if (pMdiSubWindow)  
                         pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2675                  if (pChannelStrip) {                  if (pChannelStrip) {
2676                          Channel *pChannel = pChannelStrip->channel();                          Channel *pChannel = pChannelStrip->channel();
2677                          if (pChannel && pChannel->channelID() == iChannelID)                          if (pChannel && pChannel->channelID() == iChannelID)
# Line 2723  void MainForm::channelsMenuAboutToShow ( Line 2695  void MainForm::channelsMenuAboutToShow (
2695                  = m_pWorkspace->subWindowList();                  = m_pWorkspace->subWindowList();
2696          if (!wlist.isEmpty()) {          if (!wlist.isEmpty()) {
2697                  m_ui.channelsMenu->addSeparator();                  m_ui.channelsMenu->addSeparator();
2698                  const int iStripCount = wlist.count();                  int iStrip = 0;
2699                  for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                  foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2700                          ChannelStrip *pChannelStrip = nullptr;                          ChannelStrip *pChannelStrip
2701                          QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);                                  = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                         if (pMdiSubWindow)  
                                 pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2702                          if (pChannelStrip) {                          if (pChannelStrip) {
2703                                  QAction *pAction = m_ui.channelsMenu->addAction(                                  QAction *pAction = m_ui.channelsMenu->addAction(
2704                                          pChannelStrip->windowTitle(),                                          pChannelStrip->windowTitle(),
# Line 2737  void MainForm::channelsMenuAboutToShow ( Line 2707  void MainForm::channelsMenuAboutToShow (
2707                                  pAction->setChecked(activeChannelStrip() == pChannelStrip);                                  pAction->setChecked(activeChannelStrip() == pChannelStrip);
2708                                  pAction->setData(iStrip);                                  pAction->setData(iStrip);
2709                          }                          }
2710                            ++iStrip;
2711                  }                  }
2712          }          }
2713  }  }
# Line 2813  void MainForm::timerSlot (void) Line 2784  void MainForm::timerSlot (void)
2784                                  // Update the channel stream usage for each strip...                                  // Update the channel stream usage for each strip...
2785                                  const QList<QMdiSubWindow *>& wlist                                  const QList<QMdiSubWindow *>& wlist
2786                                          = m_pWorkspace->subWindowList();                                          = m_pWorkspace->subWindowList();
2787                                  const int iStripCount = wlist.count();                                  foreach (QMdiSubWindow *pMdiSubWindow, wlist) {
2788                                  for (int iStrip = 0; iStrip < iStripCount; ++iStrip) {                                          ChannelStrip *pChannelStrip
2789                                          ChannelStrip *pChannelStrip = nullptr;                                                  = static_cast<ChannelStrip *> (pMdiSubWindow->widget());
                                         QMdiSubWindow *pMdiSubWindow = wlist.at(iStrip);  
                                         if (pMdiSubWindow)  
                                                 pChannelStrip = static_cast<ChannelStrip *> (pMdiSubWindow->widget());  
2790                                          if (pChannelStrip && pChannelStrip->isVisible())                                          if (pChannelStrip && pChannelStrip->isVisible())
2791                                                  pChannelStrip->updateChannelUsage();                                                  pChannelStrip->updateChannelUsage();
2792                                  }                                  }
# Line 2847  void MainForm::startServer (void) Line 2815  void MainForm::startServer (void)
2815          // Is the server process instance still here?          // Is the server process instance still here?
2816          if (m_pServer) {          if (m_pServer) {
2817                  if (QMessageBox::warning(this,                  if (QMessageBox::warning(this,
2818                          QSAMPLER_TITLE ": " + tr("Warning"),                          tr("Warning"),
2819                          tr("Could not start the LinuxSampler server.\n\n"                          tr("Could not start the LinuxSampler server.\n\n"
2820                          "Maybe it is already started."),                          "Maybe it is already started."),
2821                          QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) {                          QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) {
# Line 2917  void MainForm::stopServer ( bool bIntera Line 2885  void MainForm::stopServer ( bool bIntera
2885    
2886          if (m_pServer && bInteractive) {          if (m_pServer && bInteractive) {
2887                  if (QMessageBox::question(this,                  if (QMessageBox::question(this,
2888                          QSAMPLER_TITLE ": " + tr("The backend's fate ..."),                          tr("The backend's fate ..."),
2889                          tr("You have the option to keep the sampler backend (LinuxSampler)\n"                          tr("You have the option to keep the sampler backend (LinuxSampler)\n"
2890                          "running in the background. The sampler would continue to work\n"                          "running in the background. The sampler would continue to work\n"
2891                          "according to your current sampler session and you could alter the\n"                          "according to your current sampler session and you could alter the\n"

Legend:
Removed from v.3555  
changed lines
  Added in v.3613

  ViewVC Help
Powered by ViewVC