/[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 3558 by capela, Tue Aug 13 10:19:32 2019 UTC revision 3559 by capela, Thu Aug 22 18:58:38 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 1493  void MainForm::fileReset (void) Line 1493  void MainForm::fileReset (void)
1493    
1494          // Ask user whether he/she want's an internal sampler reset...          // Ask user whether he/she want's an internal sampler reset...
1495          if (m_pOptions && m_pOptions->bConfirmReset) {          if (m_pOptions && m_pOptions->bConfirmReset) {
1496                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Warning");                  const QString& sTitle = tr("Warning");
1497                  const QString& sText = tr(                  const QString& sText = tr(
1498                          "Resetting the sampler instance will close\n"                          "Resetting the sampler instance will close\n"
1499                          "all device and channel configurations.\n\n"                          "all device and channel configurations.\n\n"
# Line 1552  void MainForm::fileRestart (void) Line 1552  void MainForm::fileRestart (void)
1552          // Ask user whether he/she want's a complete restart...          // Ask user whether he/she want's a complete restart...
1553          // (if we're currently up and running)          // (if we're currently up and running)
1554          if (m_pOptions && m_pOptions->bConfirmRestart) {          if (m_pOptions && m_pOptions->bConfirmRestart) {
1555                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Warning");                  const QString& sTitle = tr("Warning");
1556                  const QString& sText = tr(                  const QString& sText = tr(
1557                          "New settings will be effective after\n"                          "New settings will be effective after\n"
1558                          "restarting the client/server connection.\n\n"                          "restarting the client/server connection.\n\n"
# Line 1666  void MainForm::removeChannelStrip (void) Line 1666  void MainForm::removeChannelStrip (void)
1666    
1667          // Prompt user if he/she's sure about this...          // Prompt user if he/she's sure about this...
1668          if (m_pOptions && m_pOptions->bConfirmRemove) {          if (m_pOptions && m_pOptions->bConfirmRemove) {
1669                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Warning");                  const QString& sTitle = tr("Warning");
1670                  const QString& sText = tr(                  const QString& sText = tr(
1671                          "About to remove channel:\n\n"                          "About to remove channel:\n\n"
1672                          "%1\n\n"                          "%1\n\n"
# Line 1906  void MainForm::viewOptions (void) Line 1906  void MainForm::viewOptions (void)
1906                                  (!bOldKeepOnTop     &&  m_pOptions->bKeepOnTop)     ||                                  (!bOldKeepOnTop     &&  m_pOptions->bKeepOnTop)     ||
1907                                  (iOldBaseFontSize   !=  m_pOptions->iBaseFontSize)) {                                  (iOldBaseFontSize   !=  m_pOptions->iBaseFontSize)) {
1908                                  QMessageBox::information(this,                                  QMessageBox::information(this,
1909                                          QSAMPLER_TITLE ": " + tr("Information"),                                          tr("Information"),
1910                                          tr("Some settings may be only effective\n"                                          tr("Some settings may be only effective\n"
1911                                          "next time you start this program."));                                          "next time you start this program."));
1912                                  updateMessagesCapture();                                  updateMessagesCapture();
# Line 2096  void MainForm::helpAbout (void) Line 2096  void MainForm::helpAbout (void)
2096          sText += "</small>";          sText += "</small>";
2097          sText += "</p>\n";          sText += "</p>\n";
2098    
2099          QMessageBox::about(this, tr("About") + " " QSAMPLER_TITLE, sText);          QMessageBox::about(this, tr("About"), sText);
2100  }  }
2101    
2102    
# Line 2109  void MainForm::stabilizeForm (void) Line 2109  void MainForm::stabilizeForm (void)
2109          QString sSessionName = sessionName(m_sFilename);          QString sSessionName = sessionName(m_sFilename);
2110          if (m_iDirtyCount > 0)          if (m_iDirtyCount > 0)
2111                  sSessionName += " *";                  sSessionName += " *";
2112          setWindowTitle(tr(QSAMPLER_TITLE " - [%1]").arg(sSessionName));          setWindowTitle(sSessionName);
2113    
2114          // Update the main menu state...          // Update the main menu state...
2115          ChannelStrip *pChannelStrip = activeChannelStrip();          ChannelStrip *pChannelStrip = activeChannelStrip();
# Line 2514  void MainForm::appendMessagesError( cons Line 2514  void MainForm::appendMessagesError( cons
2514          QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);          QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
2515    
2516          if (m_pOptions && m_pOptions->bConfirmError) {          if (m_pOptions && m_pOptions->bConfirmError) {
2517                  const QString& sTitle = QSAMPLER_TITLE ": " + tr("Error");                  const QString& sTitle = tr("Error");
2518          #if 0          #if 0
2519                  QMessageBox::critical(this, sTitle, sText, QMessageBox::Cancel);                  QMessageBox::critical(this, sTitle, sText, QMessageBox::Cancel);
2520          #else          #else
# Line 2847  void MainForm::startServer (void) Line 2847  void MainForm::startServer (void)
2847          // Is the server process instance still here?          // Is the server process instance still here?
2848          if (m_pServer) {          if (m_pServer) {
2849                  if (QMessageBox::warning(this,                  if (QMessageBox::warning(this,
2850                          QSAMPLER_TITLE ": " + tr("Warning"),                          tr("Warning"),
2851                          tr("Could not start the LinuxSampler server.\n\n"                          tr("Could not start the LinuxSampler server.\n\n"
2852                          "Maybe it is already started."),                          "Maybe it is already started."),
2853                          QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) {                          QMessageBox::Ok | QMessageBox::Cancel) == QMessageBox::Ok) {
# Line 2917  void MainForm::stopServer ( bool bIntera Line 2917  void MainForm::stopServer ( bool bIntera
2917    
2918          if (m_pServer && bInteractive) {          if (m_pServer && bInteractive) {
2919                  if (QMessageBox::question(this,                  if (QMessageBox::question(this,
2920                          QSAMPLER_TITLE ": " + tr("The backend's fate ..."),                          tr("The backend's fate ..."),
2921                          tr("You have the option to keep the sampler backend (LinuxSampler)\n"                          tr("You have the option to keep the sampler backend (LinuxSampler)\n"
2922                          "running in the background. The sampler would continue to work\n"                          "running in the background. The sampler would continue to work\n"
2923                          "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.3558  
changed lines
  Added in v.3559

  ViewVC Help
Powered by ViewVC