/[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 3788 by capela, Thu Jun 11 16:59:09 2020 UTC revision 3837 by capela, Tue Dec 1 17:46:41 2020 UTC
# Line 46  Line 46 
46  #include <QProcess>  #include <QProcess>
47  #include <QMessageBox>  #include <QMessageBox>
48    
 #include <QRegExp>  
49  #include <QTextStream>  #include <QTextStream>
50  #include <QFileDialog>  #include <QFileDialog>
51  #include <QFileInfo>  #include <QFileInfo>
# Line 752  void MainForm::customEvent ( QEvent* pEv Line 751  void MainForm::customEvent ( QEvent* pEv
751                          default:                          default:
752                                  appendMessagesColor(tr("LSCP Event: %1 data: %2")                                  appendMessagesColor(tr("LSCP Event: %1 data: %2")
753                                          .arg(::lscp_event_to_text(pLscpEvent->event()))                                          .arg(::lscp_event_to_text(pLscpEvent->event()))
754                                          .arg(pLscpEvent->data()), Qt::darkMagenta);                                          .arg(pLscpEvent->data()), "#996699");
755                  }                  }
756          }          }
757  }  }
# Line 1032  bool MainForm::loadSessionFile ( const Q Line 1031  bool MainForm::loadSessionFile ( const Q
1031                                  != LSCP_OK) {                                  != LSCP_OK) {
1032                                  appendMessagesColor(QString("%1(%2): %3")                                  appendMessagesColor(QString("%1(%2): %3")
1033                                          .arg(QFileInfo(sFilename).fileName()).arg(iLine)                                          .arg(QFileInfo(sFilename).fileName()).arg(iLine)
1034                                          .arg(sCommand.simplified()), Qt::darkYellow);                                          .arg(sCommand.simplified()), "#996633");
1035                                  appendMessagesClient("lscp_client_query");                                  appendMessagesClient("lscp_client_query");
1036                                  iErrors++;                                  iErrors++;
1037                          }                          }
# Line 2101  void MainForm::helpAbout (void) Line 2100  void MainForm::helpAbout (void)
2100                  sText += "</font></small>";                  sText += "</font></small>";
2101          }          }
2102          sText += "<br />\n";          sText += "<br />\n";
2103          sText += tr("Using") + ": ";          sText += tr("Using: Qt %1").arg(qVersion());
2104    #if defined(QT_STATIC)
2105            sText += "-static";
2106    #endif
2107            sText += ", ";
2108          sText += ::lscp_client_package();          sText += ::lscp_client_package();
2109          sText += " ";          sText += " ";
2110          sText += ::lscp_client_version();          sText += ::lscp_client_version();
# Line 2555  void MainForm::appendMessagesClient( con Line 2558  void MainForm::appendMessagesClient( con
2558    
2559          appendMessagesColor(s + QString(": %1 (errno=%2)")          appendMessagesColor(s + QString(": %1 (errno=%2)")
2560                  .arg(::lscp_client_get_result(m_pClient))                  .arg(::lscp_client_get_result(m_pClient))
2561                  .arg(::lscp_client_get_errno(m_pClient)), Qt::darkRed);                  .arg(::lscp_client_get_errno(m_pClient)), "#996666");
2562    
2563          // Make it look responsive...:)          // Make it look responsive...:)
2564          QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);          QApplication::processEvents(QEventLoop::ExcludeUserInputEvents);
# Line 2907  void MainForm::startServer (void) Line 2910  void MainForm::startServer (void)
2910          args.removeAt(0);          args.removeAt(0);
2911    
2912          appendMessages(tr("Server is starting..."));          appendMessages(tr("Server is starting..."));
2913          appendMessagesColor(m_pOptions->sServerCmdLine, Qt::darkMagenta);          appendMessagesColor(m_pOptions->sServerCmdLine, "#990099");
2914    
2915          // Go linuxsampler, go...          // Go linuxsampler, go...
2916          m_pServer->start(sCommand, args);          m_pServer->start(sCommand, args);
# Line 2919  void MainForm::startServer (void) Line 2922  void MainForm::startServer (void)
2922    
2923          // Show startup results...          // Show startup results...
2924          appendMessages(          appendMessages(
2925                  tr("Server was started with PID=%1.").arg((long) m_pServer->pid()));                  tr("Server was started with PID=%1.")
2926                    #if QT_VERSION < QT_VERSION_CHECK(5, 3, 0)
2927                            .arg(quint64(m_pServer->pid())));
2928                    #else
2929                            .arg(quint64(m_pServer->processId())));
2930                    #endif
2931    
2932          // Reset (yet again) the timer counters,          // Reset (yet again) the timer counters,
2933          // but this time is deferred as the user opted.          // but this time is deferred as the user opted.

Legend:
Removed from v.3788  
changed lines
  Added in v.3837

  ViewVC Help
Powered by ViewVC