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> |
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 |
} |
} |
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 |
} |
} |
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(); |
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); |
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); |
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. |