diff --git a/doc/img/Spectrum_Controls_All.png b/doc/img/Spectrum_Controls_All.png new file mode 100644 index 000000000..7fc4d8235 Binary files /dev/null and b/doc/img/Spectrum_Controls_All.png differ diff --git a/doc/img/Spectrum_Controls_Minimum.png b/doc/img/Spectrum_Controls_Minimum.png new file mode 100644 index 000000000..c9093e5f3 Binary files /dev/null and b/doc/img/Spectrum_Controls_Minimum.png differ diff --git a/doc/img/Spectrum_Controls_Standard.png b/doc/img/Spectrum_Controls_Standard.png new file mode 100644 index 000000000..7f9985374 Binary files /dev/null and b/doc/img/Spectrum_Controls_Standard.png differ diff --git a/plugins/channelrx/demodadsb/adsbdemod.cpp b/plugins/channelrx/demodadsb/adsbdemod.cpp index cf7fdc678..d88ea0933 100644 --- a/plugins/channelrx/demodadsb/adsbdemod.cpp +++ b/plugins/channelrx/demodadsb/adsbdemod.cpp @@ -553,7 +553,7 @@ void ADSBDemod::webapiFormatChannelReport(SWGSDRangel::SWGChannelReport& respons for (const auto& report : m_aircraftReport) { SWGSDRangel::SWGADSBDemodAircraftState *aircraftState = new SWGSDRangel::SWGADSBDemodAircraftState(); - //aircraftState->setIcao(new QString(report.m_icao)); + aircraftState->setIcao(new QString(report.m_icao)); aircraftState->setCallsign(new QString(report.m_callsign)); aircraftState->setLatitude(report.m_latitude); aircraftState->setLongitude(report.m_longitude); diff --git a/plugins/channelrx/demodadsb/adsbdemodgui.cpp b/plugins/channelrx/demodadsb/adsbdemodgui.cpp index 140878178..749ddd2fb 100644 --- a/plugins/channelrx/demodadsb/adsbdemodgui.cpp +++ b/plugins/channelrx/demodadsb/adsbdemodgui.cpp @@ -3046,7 +3046,7 @@ void ADSBDemodGUI::handleADSB( aircraft->m_rxTime = dateTime; aircraft->m_updateTime = QDateTime::currentDateTime(); - QTime time = dateTime.time(); + QTime time = aircraft->m_updateTime.time(); aircraft->m_timeItem->setText(QString("%1:%2:%3").arg(time.hour(), 2, 10, QLatin1Char('0')).arg(time.minute(), 2, 10, QLatin1Char('0')).arg(time.second(), 2, 10, QLatin1Char('0'))); if (df == 17) { @@ -8397,7 +8397,7 @@ void ADSBDemodGUI::handleImportReply(QNetworkReply* reply) } aircraft->m_rxTime = QDateTime::fromSecsSinceEpoch(state[4].toInt()); aircraft->m_updateTime = QDateTime::currentDateTime(); - QTime time = aircraft->m_rxTime.time(); + QTime time = aircraft->m_updateTime.time(); aircraft->m_timeItem->setText(QString("%1:%2:%3").arg(time.hour(), 2, 10, QLatin1Char('0')).arg(time.minute(), 2, 10, QLatin1Char('0')).arg(time.second(), 2, 10, QLatin1Char('0'))); aircraft->m_adsbFrameCount++; aircraft->m_adsbFrameCountItem->setData(Qt::DisplayRole, aircraft->m_adsbFrameCount); diff --git a/plugins/channelrx/freqscanner/freqscannergui.ui b/plugins/channelrx/freqscanner/freqscannergui.ui index e7ef455bf..e6156d204 100644 --- a/plugins/channelrx/freqscanner/freqscannergui.ui +++ b/plugins/channelrx/freqscanner/freqscannergui.ui @@ -29,7 +29,7 @@ - Qt::NoFocus + Qt::FocusPolicy::NoFocus Frequency Scanner @@ -102,7 +102,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -143,7 +143,7 @@ PointingHandCursor - Qt::NoFocus + Qt::FocusPolicy::NoFocus Minimum demod shift frequency from center in Hz @@ -178,19 +178,19 @@ - Qt::Vertical + Qt::Orientation::Vertical - Qt::Vertical + Qt::Orientation::Horizontal - 40 - 20 + 0 + 0 @@ -209,7 +209,7 @@ Active frequency power - Qt::LeftToRight + Qt::LayoutDirection::LeftToRight -120.0 @@ -230,7 +230,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -281,12 +281,12 @@ - Qt::Vertical + Qt::Orientation::Horizontal - 40 - 20 + 0 + 0 @@ -294,7 +294,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -343,7 +343,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -392,7 +392,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -443,7 +443,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -480,7 +480,7 @@ PointingHandCursor - Qt::NoFocus + Qt::FocusPolicy::NoFocus Channel bandwidth @@ -506,7 +506,7 @@ Shift - Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + Qt::AlignmentFlag::AlignRight|Qt::AlignmentFlag::AlignTrailing|Qt::AlignmentFlag::AlignVCenter @@ -534,7 +534,7 @@ PointingHandCursor - Qt::NoFocus + Qt::FocusPolicy::NoFocus Frequency shift applied from scan frequency (for SSB) @@ -551,12 +551,12 @@ - Qt::Vertical + Qt::Orientation::Horizontal - 40 - 20 + 0 + 0 @@ -620,7 +620,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -776,7 +776,7 @@ - Qt::Vertical + Qt::Orientation::Vertical @@ -784,6 +784,12 @@ + + + 0 + 1 + + Freq (Hz) @@ -976,7 +982,7 @@ Leave blank for no adjustment - Export frequencies from .csv file + Export frequencies to .csv file @@ -990,7 +996,7 @@ Leave blank for no adjustment - Qt::Vertical + Qt::Orientation::Vertical @@ -1028,15 +1034,15 @@ Leave blank for no adjustment
gui/buttonswitch.h
- RollupContents + ValueDialZ QWidget -
gui/rollupcontents.h
+
gui/valuedialz.h
1
- ValueDialZ + RollupContents QWidget -
gui/valuedialz.h
+
gui/rollupcontents.h
1
diff --git a/plugins/samplesource/limesdrinput/limesdrinputthread.h b/plugins/samplesource/limesdrinput/limesdrinputthread.h index 1c473de40..83d9fcf19 100644 --- a/plugins/samplesource/limesdrinput/limesdrinputthread.h +++ b/plugins/samplesource/limesdrinput/limesdrinputthread.h @@ -29,6 +29,7 @@ #include "dsp/samplesinkfifo.h" #include "dsp/decimators.h" +#include "dsp/replaybuffer.h" #include "limesdr/devicelimesdrshared.h" #include "limesdr/devicelimesdr.h" diff --git a/sdrbase/util/socket.cpp b/sdrbase/util/socket.cpp index 300a04e6f..ced4a1044 100644 --- a/sdrbase/util/socket.cpp +++ b/sdrbase/util/socket.cpp @@ -28,6 +28,7 @@ Socket::Socket(QObject *socket, QObject *parent) : Socket::~Socket() { delete m_socket; + m_socket = nullptr; } TCPSocket::TCPSocket(QTcpSocket *socket) : @@ -95,7 +96,7 @@ bool TCPSocket::isConnected() { QTcpSocket *socket = qobject_cast(m_socket); - return socket->state() == QAbstractSocket::ConnectedState; + return socket && (socket->state() == QAbstractSocket::ConnectedState); } WebSocket::WebSocket(QWebSocket *socket) : @@ -189,5 +190,5 @@ bool WebSocket::isConnected() { QWebSocket *socket = qobject_cast(m_socket); - return socket->state() == QAbstractSocket::ConnectedState; + return socket && (socket->state() == QAbstractSocket::ConnectedState); } diff --git a/sdrbase/util/visa.cpp b/sdrbase/util/visa.cpp index e1d2266dd..4db92081b 100644 --- a/sdrbase/util/visa.cpp +++ b/sdrbase/util/visa.cpp @@ -89,7 +89,8 @@ ViSession VISA::open(const QString& device) ViSession session; if (isAvailable()) { - if (VI_SUCCESS == viOpen(m_defaultRM, device.toLatin1().data(), VI_NULL, VI_NULL, &session)) + QByteArray deviceBA = device.toLatin1(); + if (VI_SUCCESS == viOpen(m_defaultRM, deviceBA.data(), VI_NULL, VI_NULL, &session)) { qDebug() << "VISA::open: Opened VISA device: " << device; return session; diff --git a/sdrgui/gui/dmsspinbox.cpp b/sdrgui/gui/dmsspinbox.cpp index ac807f485..ed046f194 100644 --- a/sdrgui/gui/dmsspinbox.cpp +++ b/sdrgui/gui/dmsspinbox.cpp @@ -90,6 +90,10 @@ QAbstractSpinBox::StepEnabled DMSSpinBox::stepEnabled() const { QAbstractSpinBox::StepEnabled enabled = QAbstractSpinBox::StepNone; + if (isReadOnly()) { + return enabled; + } + if (hasValue() && (m_value < m_maximum)) { enabled |= QAbstractSpinBox::StepUpEnabled; } diff --git a/sdrgui/gui/spectrum.md b/sdrgui/gui/spectrum.md index 035f45573..91cc52d8a 100644 --- a/sdrgui/gui/spectrum.md +++ b/sdrgui/gui/spectrum.md @@ -455,9 +455,17 @@ Click to open the Spectrum Display Settings dialog. See below. Selects which of these spectrum controls are displayed. This allows a user to hide less frequently used controls. - - **Min**: displays a minimum set of controls. - - **Std**: displays the standard set of controls. - - **All**: displays all controls. + - **Min**: displays a minimum set of controls. + +![Minimum Controls](../../doc/img/Spectrum_Controls_Minimum.png) + + - **Std**: displays the standard set of controls. + +![Standard Controls](../../doc/img/Spectrum_Controls_Standard.png) + + - **All**: displays all controls. + +![All Controls](../../doc/img/Spectrum_Controls_All.png)

B.7.8: Go to annotation marker

diff --git a/sdrgui/readme.md b/sdrgui/readme.md index d77923d56..65588c6ca 100644 --- a/sdrgui/readme.md +++ b/sdrgui/readme.md @@ -46,10 +46,25 @@ The different component windows are: The workspaces are attached to a docking area of the main window and can be undocked to be moved to another display in a multiple screen setup for example. -The workspace has a top bar with the following controls: +The workspace has a tool bar with the following controls: ![Workspaces](../doc/img/Workspace_top.png) +Keyboard shortcuts for workspace controls are: + +- Ctrl-P: Configuration Presets. +- Ctrl-S: Start/stop all devices. +- Ctrl-R: Add RX device. +- Ctrl-T: Add TX device. +- Ctrl-M: Add MIMO device. +- Ctrl-E: Add feature. +- Ctrl-Shift-P: Feature presets. +- Ctrl-Shift-C: Cascade windows. +- Ctrl-Shift-T: Tile windows. +- Ctrl-Shift-V: Stack windows vertically. +- Ctrl-Shift-S: Stack windows in columns. +- Ctrl-Shift-B: Display windows in tabs. +

1.1: Workspace index

Shows the index of the workspaces in the list of workspaces as a "W" followed by the index.