202 changed files with 13327 additions and 13052 deletions
@ -1 +1,48 @@ |
|||||||
*.fits binary |
# Git attributes for SDRangel |
||||||
|
# normalize text files to LF and identify binary files. |
||||||
|
* text=auto eol=lf |
||||||
|
|
||||||
|
# Vendored Cesium content: preserve upstream line endings. |
||||||
|
plugins/feature/map/Cesium/** -text |
||||||
|
|
||||||
|
# Generated Swagger UI files |
||||||
|
sdrbase/resources/webapi/doc/swagger-ui/** -text |
||||||
|
|
||||||
|
# Generated Swagger documentation and client code |
||||||
|
sdrbase/resources/webapi/doc/swagger/** -text |
||||||
|
swagger/sdrangel/code/** -text |
||||||
|
|
||||||
|
# SDRangel configuration and preset files |
||||||
|
*.cfgx binary |
||||||
|
*.prex binary |
||||||
|
|
||||||
|
# Binary image files. |
||||||
|
*.png binary |
||||||
|
*.PNG binary |
||||||
|
*.bmp binary |
||||||
|
*.BMP binary |
||||||
|
*.xcf binary |
||||||
|
*.XCF binary |
||||||
|
*.jpg binary |
||||||
|
*.JPG binary |
||||||
|
*.fits binary |
||||||
|
*.FITS binary |
||||||
|
*.ico binary |
||||||
|
*.ICO binary |
||||||
|
*.icns binary |
||||||
|
*.icns binary |
||||||
|
*.gif binary |
||||||
|
*.GIF binary |
||||||
|
|
||||||
|
# Binary audio/media files. |
||||||
|
*.wav binary |
||||||
|
*.WAV binary |
||||||
|
*.wasm binary |
||||||
|
*.WASM binary |
||||||
|
|
||||||
|
# Binary fonts. |
||||||
|
*.ttf binary |
||||||
|
*.TTF binary |
||||||
|
|
||||||
|
# Binary document files. |
||||||
|
*.odg binary |
||||||
|
|||||||
@ -1,55 +1,55 @@ |
|||||||
name: SDRangel Linux Coverity build |
name: SDRangel Linux Coverity build |
||||||
|
|
||||||
# Run every day at 3:00am UTC |
# Run every day at 3:00am UTC |
||||||
on: |
on: |
||||||
schedule: |
schedule: |
||||||
- cron: '0 3 * * *' |
- cron: '0 3 * * *' |
||||||
workflow_dispatch: |
workflow_dispatch: |
||||||
|
|
||||||
jobs: |
jobs: |
||||||
build_coverity: |
build_coverity: |
||||||
if: github.repository == 'f4exb/sdrangel' |
if: github.repository == 'f4exb/sdrangel' |
||||||
# run once on latest |
# run once on latest |
||||||
runs-on: ubuntu-24.04 |
runs-on: ubuntu-24.04 |
||||||
env: |
env: |
||||||
COVERITY_SCAN_PROJECT_NAME: ${{ github.repository }} |
COVERITY_SCAN_PROJECT_NAME: ${{ github.repository }} |
||||||
COVERITY_SCAN_PROJECT_ID : "33161" |
COVERITY_SCAN_PROJECT_ID : "33161" |
||||||
COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }} |
COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }} |
||||||
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
||||||
steps: |
steps: |
||||||
- uses: actions/checkout@v4 |
- uses: actions/checkout@v4 |
||||||
with: |
with: |
||||||
submodules: true |
submodules: true |
||||||
fetch-depth: 0 |
fetch-depth: 0 |
||||||
- name: Check Coverity |
- name: Check Coverity |
||||||
id: coverity_check |
id: coverity_check |
||||||
run: | |
run: | |
||||||
./.github/workflows/coverity.sh --precheck |
./.github/workflows/coverity.sh --precheck |
||||||
# keep dependencies synced with linux.yml |
# keep dependencies synced with linux.yml |
||||||
- name: Install dependencies |
- name: Install dependencies |
||||||
if: steps.coverity_check.outputs.run == 'true' |
if: steps.coverity_check.outputs.run == 'true' |
||||||
run: | |
run: | |
||||||
sudo apt-get update |
sudo apt-get update |
||||||
sudo apt-get install software-properties-common |
sudo apt-get install software-properties-common |
||||||
sudo add-apt-repository -y ppa:ettusresearch/uhd |
sudo add-apt-repository -y ppa:ettusresearch/uhd |
||||||
sudo apt-get update |
sudo apt-get update |
||||||
sudo apt-get -y install build-essential cmake git xxd \ |
sudo apt-get -y install build-essential cmake git xxd \ |
||||||
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
||||||
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
||||||
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
||||||
qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-window2 qml-module-qtquick-dialogs \ |
qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-window2 qml-module-qtquick-dialogs \ |
||||||
qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtgraphicaleffects \ |
qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtgraphicaleffects \ |
||||||
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-dev \ |
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-dev \ |
||||||
libqt5charts5-dev libqt5texttospeech5-dev libqt5gamepad5-dev libqt5svg5-dev libfaad-dev libflac-dev zlib1g-dev \ |
libqt5charts5-dev libqt5texttospeech5-dev libqt5gamepad5-dev libqt5svg5-dev libfaad-dev libflac-dev zlib1g-dev \ |
||||||
libusb-1.0-0-dev libhidapi-dev libboost-all-dev libasound2-dev libopencv-dev libopencv-imgcodecs-dev \ |
libusb-1.0-0-dev libhidapi-dev libboost-all-dev libasound2-dev libopencv-dev libopencv-imgcodecs-dev \ |
||||||
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
||||||
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
||||||
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
||||||
libavahi-client-dev libavahi-common-dev libaio-dev \ |
libavahi-client-dev libavahi-common-dev libaio-dev \ |
||||||
python3-mako python3-cheetah python3-numpy \ |
python3-mako python3-cheetah python3-numpy \ |
||||||
autoconf automake libtool ninja-build |
autoconf automake libtool ninja-build |
||||||
bash cmake/ci/build_sdrplay.sh |
bash cmake/ci/build_sdrplay.sh |
||||||
- name: Build SDRangel for Coverity |
- name: Build SDRangel for Coverity |
||||||
if: steps.coverity_check.outputs.run == 'true' |
if: steps.coverity_check.outputs.run == 'true' |
||||||
run: | |
run: | |
||||||
./.github/workflows/coverity.sh |
./.github/workflows/coverity.sh |
||||||
|
|||||||
@ -0,0 +1,29 @@ |
|||||||
|
name: Check Git attributes |
||||||
|
|
||||||
|
on: |
||||||
|
pull_request: |
||||||
|
|
||||||
|
jobs: |
||||||
|
check-gitattributes: |
||||||
|
runs-on: ubuntu-latest |
||||||
|
|
||||||
|
steps: |
||||||
|
- uses: actions/checkout@v4 |
||||||
|
|
||||||
|
- name: Check for line ending violations |
||||||
|
run: | |
||||||
|
# Re-normalize all files according to .gitattributes |
||||||
|
git add --renormalize . |
||||||
|
|
||||||
|
# Check if renormalization changed anything |
||||||
|
if git diff --cached --name-only | grep -q .; then |
||||||
|
echo "::error::The following files have line endings that don't match .gitattributes settings:" |
||||||
|
git diff --cached --name-only |
||||||
|
echo "" |
||||||
|
echo "To fix, run:" |
||||||
|
echo " git add --renormalize ." |
||||||
|
echo " git commit -m 'Normalize line endings'" |
||||||
|
exit 1 |
||||||
|
fi |
||||||
|
|
||||||
|
echo "All files have correct line endings." |
||||||
@ -1,76 +1,76 @@ |
|||||||
name: SDRangel Linux release build |
name: SDRangel Linux release build |
||||||
|
|
||||||
on: |
on: |
||||||
push: |
push: |
||||||
branches: |
branches: |
||||||
- linux_github_release |
- linux_github_release |
||||||
tags: |
tags: |
||||||
- 'v*' |
- 'v*' |
||||||
workflow_dispatch: |
workflow_dispatch: |
||||||
|
|
||||||
jobs: |
jobs: |
||||||
build_deb: |
build_deb: |
||||||
strategy: |
strategy: |
||||||
fail-fast: false |
fail-fast: false |
||||||
matrix: |
matrix: |
||||||
os: [ubuntu-22.04, ubuntu-24.04] |
os: [ubuntu-22.04, ubuntu-24.04] |
||||||
runs-on: ${{ matrix.os }} |
runs-on: ${{ matrix.os }} |
||||||
steps: |
steps: |
||||||
- uses: actions/checkout@v4 |
- uses: actions/checkout@v4 |
||||||
with: |
with: |
||||||
submodules: true |
submodules: true |
||||||
fetch-depth: 0 |
fetch-depth: 0 |
||||||
- name: Install dependencies |
- name: Install dependencies |
||||||
# ensure changes in dependencies get added to coverity.yml |
# ensure changes in dependencies get added to coverity.yml |
||||||
run: | |
run: | |
||||||
sudo apt-get update |
sudo apt-get update |
||||||
sudo apt-get install software-properties-common |
sudo apt-get install software-properties-common |
||||||
sudo add-apt-repository -y ppa:ettusresearch/uhd |
sudo add-apt-repository -y ppa:ettusresearch/uhd |
||||||
sudo apt-get update |
sudo apt-get update |
||||||
sudo apt-get -y install build-essential cmake git xxd \ |
sudo apt-get -y install build-essential cmake git xxd \ |
||||||
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
||||||
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
||||||
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
||||||
qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-window2 qml-module-qtquick-dialogs \ |
qml-module-qtlocation qml-module-qtpositioning qml-module-qtquick-window2 qml-module-qtquick-dialogs \ |
||||||
qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtgraphicaleffects \ |
qml-module-qtquick-controls qml-module-qtquick-controls2 qml-module-qtquick-layouts qml-module-qtgraphicaleffects \ |
||||||
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-dev \ |
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-dev \ |
||||||
libqt5charts5-dev libqt5texttospeech5-dev libqt5gamepad5-dev libqt5svg5-dev libfaad-dev libflac-dev zlib1g-dev \ |
libqt5charts5-dev libqt5texttospeech5-dev libqt5gamepad5-dev libqt5svg5-dev libfaad-dev libflac-dev zlib1g-dev \ |
||||||
libusb-1.0-0-dev libhidapi-dev libboost-all-dev libasound2-dev libopencv-dev libopencv-imgcodecs-dev \ |
libusb-1.0-0-dev libhidapi-dev libboost-all-dev libasound2-dev libopencv-dev libopencv-imgcodecs-dev \ |
||||||
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
||||||
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
||||||
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
||||||
libavahi-client-dev libavahi-common-dev libaio-dev \ |
libavahi-client-dev libavahi-common-dev libaio-dev \ |
||||||
python3-mako python3-cheetah python3-numpy \ |
python3-mako python3-cheetah python3-numpy \ |
||||||
autoconf automake libtool ninja-build |
autoconf automake libtool ninja-build |
||||||
bash cmake/ci/build_sdrplay.sh |
bash cmake/ci/build_sdrplay.sh |
||||||
- name: Build SDRangel |
- name: Build SDRangel |
||||||
run: | |
run: | |
||||||
if [ "${RUNNING_IN_ACT:-}" = "true" ]; then |
if [ "${RUNNING_IN_ACT:-}" = "true" ]; then |
||||||
mkdir -p /tmp/build |
mkdir -p /tmp/build |
||||||
rsync -a --delete . /tmp/build/sdrangel/ |
rsync -a --delete . /tmp/build/sdrangel/ |
||||||
cd /tmp/build/sdrangel |
cd /tmp/build/sdrangel |
||||||
debuild -i -us -uc -b |
debuild -i -us -uc -b |
||||||
cp ../sdrangel_*_amd64.deb "$GITHUB_WORKSPACE"/ |
cp ../sdrangel_*_amd64.deb "$GITHUB_WORKSPACE"/ |
||||||
else |
else |
||||||
debuild -i -us -uc -b |
debuild -i -us -uc -b |
||||||
fi |
fi |
||||||
- name: Get version |
- name: Get version |
||||||
id: get_version |
id: get_version |
||||||
run: | |
run: | |
||||||
if [[ "${{github.ref_name}}" == "linux_github_release" ]]; then |
if [[ "${{github.ref_name}}" == "linux_github_release" ]]; then |
||||||
echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT |
echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT |
||||||
else |
else |
||||||
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT |
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT |
||||||
fi |
fi |
||||||
- name: Rename |
- name: Rename |
||||||
run: mv ../sdrangel_*_amd64.deb sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
run: mv ../sdrangel_*_amd64.deb sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||||
- name: Upload artifact |
- name: Upload artifact |
||||||
uses: actions/upload-artifact@v4 |
uses: actions/upload-artifact@v4 |
||||||
with: |
with: |
||||||
name: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
name: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||||
path: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
path: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||||
- name: Upload release |
- name: Upload release |
||||||
if: startsWith(github.ref, 'refs/tags/') |
if: startsWith(github.ref, 'refs/tags/') |
||||||
uses: softprops/action-gh-release@v2 |
uses: softprops/action-gh-release@v2 |
||||||
with: |
with: |
||||||
files: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
files: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||||
|
|||||||
@ -1,67 +1,67 @@ |
|||||||
<?xml version="1.0"?> |
<?xml version="1.0"?> |
||||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||||
package="org.sdrangel" |
package="org.sdrangel" |
||||||
android:installLocation="auto" |
android:installLocation="auto" |
||||||
android:versionCode="13" |
android:versionCode="13" |
||||||
android:versionName="7.25.1.1"> |
android:versionName="7.25.1.1"> |
||||||
<uses-permission android:name="android.permission.INTERNET" /> |
<uses-permission android:name="android.permission.INTERNET" /> |
||||||
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> |
||||||
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> |
||||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
||||||
<uses-permission android:name="android.permission.CAMERA" /> |
<uses-permission android:name="android.permission.CAMERA" /> |
||||||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> |
<uses-permission android:name="android.permission.RECORD_AUDIO" /> |
||||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
||||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
||||||
<uses-permission android:name="android.permission.WAKE_LOCK" /> |
<uses-permission android:name="android.permission.WAKE_LOCK" /> |
||||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
||||||
|
|
||||||
<supports-screens |
<supports-screens |
||||||
android:anyDensity="true" |
android:anyDensity="true" |
||||||
android:largeScreens="true" |
android:largeScreens="true" |
||||||
android:normalScreens="true" |
android:normalScreens="true" |
||||||
android:smallScreens="true" /> |
android:smallScreens="true" /> |
||||||
<application |
<application |
||||||
android:name="org.qtproject.qt.android.bindings.QtApplication" |
android:name="org.qtproject.qt.android.bindings.QtApplication" |
||||||
android:hardwareAccelerated="true" |
android:hardwareAccelerated="true" |
||||||
android:label="SDRangel" |
android:label="SDRangel" |
||||||
android:extractNativeLibs="true" |
android:extractNativeLibs="true" |
||||||
android:requestLegacyExternalStorage="true" |
android:requestLegacyExternalStorage="true" |
||||||
android:allowBackup="true" |
android:allowBackup="true" |
||||||
android:fullBackupOnly="false" |
android:fullBackupOnly="false" |
||||||
android:icon="@mipmap/ic_launcher"> |
android:icon="@mipmap/ic_launcher"> |
||||||
<activity |
<activity |
||||||
android:name="org.sdrangel.SDRangelActivity" |
android:name="org.sdrangel.SDRangelActivity" |
||||||
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" |
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" |
||||||
android:label="SDRangel" |
android:label="SDRangel" |
||||||
android:launchMode="singleTop" |
android:launchMode="singleTop" |
||||||
android:screenOrientation="unspecified" |
android:screenOrientation="unspecified" |
||||||
android:exported="true"> |
android:exported="true"> |
||||||
<intent-filter> |
<intent-filter> |
||||||
<action android:name="android.intent.action.MAIN" /> |
<action android:name="android.intent.action.MAIN" /> |
||||||
<category android:name="android.intent.category.LAUNCHER" /> |
<category android:name="android.intent.category.LAUNCHER" /> |
||||||
</intent-filter> |
</intent-filter> |
||||||
|
|
||||||
<meta-data |
<meta-data |
||||||
android:name="android.app.lib_name" |
android:name="android.app.lib_name" |
||||||
android:value="sdrangel" /> |
android:value="sdrangel" /> |
||||||
|
|
||||||
<meta-data |
<meta-data |
||||||
android:name="android.app.arguments" |
android:name="android.app.arguments" |
||||||
android:value="" /> |
android:value="" /> |
||||||
|
|
||||||
<meta-data |
<meta-data |
||||||
android:name="android.app.background_running" |
android:name="android.app.background_running" |
||||||
android:value="true" /> |
android:value="true" /> |
||||||
</activity> |
</activity> |
||||||
|
|
||||||
<provider |
<provider |
||||||
android:name="androidx.core.content.FileProvider" |
android:name="androidx.core.content.FileProvider" |
||||||
android:authorities="${applicationId}.qtprovider" |
android:authorities="${applicationId}.qtprovider" |
||||||
android:exported="false" |
android:exported="false" |
||||||
android:grantUriPermissions="true"> |
android:grantUriPermissions="true"> |
||||||
<meta-data |
<meta-data |
||||||
android:name="android.support.FILE_PROVIDER_PATHS" |
android:name="android.support.FILE_PROVIDER_PATHS" |
||||||
android:resource="@xml/qtprovider_paths"/> |
android:resource="@xml/qtprovider_paths"/> |
||||||
</provider> |
</provider> |
||||||
</application> |
</application> |
||||||
</manifest> |
</manifest> |
||||||
|
|||||||
@ -1,26 +1,26 @@ |
|||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||||
// //
|
// //
|
||||||
// This program is free software; you can redistribute it and/or modify //
|
// This program is free software; you can redistribute it and/or modify //
|
||||||
// it under the terms of the GNU General Public License as published by //
|
// it under the terms of the GNU General Public License as published by //
|
||||||
// the Free Software Foundation as version 3 of the License, or //
|
// the Free Software Foundation as version 3 of the License, or //
|
||||||
// (at your option) any later version. //
|
// (at your option) any later version. //
|
||||||
// //
|
// //
|
||||||
// This program is distributed in the hope that it will be useful, //
|
// This program is distributed in the hope that it will be useful, //
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||||
// GNU General Public License V3 for more details. //
|
// GNU General Public License V3 for more details. //
|
||||||
// //
|
// //
|
||||||
// You should have received a copy of the GNU General Public License //
|
// You should have received a copy of the GNU General Public License //
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#pragma once |
#pragma once |
||||||
|
|
||||||
#include "loggerwithfile.h" |
#include "loggerwithfile.h" |
||||||
|
|
||||||
void installCrashHandler(qtwebapp::LoggerWithFile *logger); |
void installCrashHandler(qtwebapp::LoggerWithFile *logger); |
||||||
|
|
||||||
#ifdef _WIN32 |
#ifdef _WIN32 |
||||||
void logWindowsStackTrace(); |
void logWindowsStackTrace(); |
||||||
#endif |
#endif |
||||||
|
|||||||
@ -1,50 +1,50 @@ |
|||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||||
// //
|
// //
|
||||||
// This program is free software; you can redistribute it and/or modify //
|
// This program is free software; you can redistribute it and/or modify //
|
||||||
// it under the terms of the GNU General Public License as published by //
|
// it under the terms of the GNU General Public License as published by //
|
||||||
// the Free Software Foundation as version 3 of the License, or //
|
// the Free Software Foundation as version 3 of the License, or //
|
||||||
// (at your option) any later version. //
|
// (at your option) any later version. //
|
||||||
// //
|
// //
|
||||||
// This program is distributed in the hope that it will be useful, //
|
// This program is distributed in the hope that it will be useful, //
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||||
// GNU General Public License V3 for more details. //
|
// GNU General Public License V3 for more details. //
|
||||||
// //
|
// //
|
||||||
// You should have received a copy of the GNU General Public License //
|
// You should have received a copy of the GNU General Public License //
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "bufferlogger.h" |
#include "bufferlogger.h" |
||||||
|
|
||||||
using namespace qtwebapp; |
using namespace qtwebapp; |
||||||
|
|
||||||
BufferLogger::BufferLogger(int maxSize, QObject *parent) : |
BufferLogger::BufferLogger(int maxSize, QObject *parent) : |
||||||
Logger(parent), |
Logger(parent), |
||||||
m_maxSize(maxSize) |
m_maxSize(maxSize) |
||||||
{ |
{ |
||||||
} |
} |
||||||
|
|
||||||
BufferLogger::~BufferLogger() |
BufferLogger::~BufferLogger() |
||||||
{ |
{ |
||||||
} |
} |
||||||
|
|
||||||
void BufferLogger::write(const LogMessage* logMessage) |
void BufferLogger::write(const LogMessage* logMessage) |
||||||
{ |
{ |
||||||
QString text = qPrintable(logMessage->toString("{timestamp} {type} {msg}", "yyyy-MM-dd HH:mm:ss.zzz")); |
QString text = qPrintable(logMessage->toString("{timestamp} {type} {msg}", "yyyy-MM-dd HH:mm:ss.zzz")); |
||||||
m_messages.enqueue(text); |
m_messages.enqueue(text); |
||||||
while (m_messages.size() > m_maxSize) { |
while (m_messages.size() > m_maxSize) { |
||||||
m_messages.dequeue(); |
m_messages.dequeue(); |
||||||
} |
} |
||||||
} |
} |
||||||
|
|
||||||
QString BufferLogger::getLog() const |
QString BufferLogger::getLog() const |
||||||
{ |
{ |
||||||
QString log; |
QString log; |
||||||
|
|
||||||
for (const auto& s : m_messages) { |
for (const auto& s : m_messages) { |
||||||
log.append(s); |
log.append(s); |
||||||
} |
} |
||||||
|
|
||||||
return log; |
return log; |
||||||
} |
} |
||||||
|
|||||||
@ -1,46 +1,46 @@ |
|||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||||
// //
|
// //
|
||||||
// This program is free software; you can redistribute it and/or modify //
|
// This program is free software; you can redistribute it and/or modify //
|
||||||
// it under the terms of the GNU General Public License as published by //
|
// it under the terms of the GNU General Public License as published by //
|
||||||
// the Free Software Foundation as version 3 of the License, or //
|
// the Free Software Foundation as version 3 of the License, or //
|
||||||
// (at your option) any later version. //
|
// (at your option) any later version. //
|
||||||
// //
|
// //
|
||||||
// This program is distributed in the hope that it will be useful, //
|
// This program is distributed in the hope that it will be useful, //
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||||
// GNU General Public License V3 for more details. //
|
// GNU General Public License V3 for more details. //
|
||||||
// //
|
// //
|
||||||
// You should have received a copy of the GNU General Public License //
|
// You should have received a copy of the GNU General Public License //
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||||
///////////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#pragma once |
#pragma once |
||||||
|
|
||||||
#include <QQueue> |
#include <QQueue> |
||||||
|
|
||||||
#include "logger.h" |
#include "logger.h" |
||||||
#include "export.h" |
#include "export.h" |
||||||
|
|
||||||
namespace qtwebapp { |
namespace qtwebapp { |
||||||
|
|
||||||
// A ring-buffer like logger for holding m_maxSize recent log messages
|
// A ring-buffer like logger for holding m_maxSize recent log messages
|
||||||
class LOGGING_API BufferLogger : public Logger { |
class LOGGING_API BufferLogger : public Logger { |
||||||
Q_OBJECT |
Q_OBJECT |
||||||
Q_DISABLE_COPY(BufferLogger) |
Q_DISABLE_COPY(BufferLogger) |
||||||
|
|
||||||
public: |
public: |
||||||
BufferLogger(int maxSize, QObject *parent = nullptr); |
BufferLogger(int maxSize, QObject *parent = nullptr); |
||||||
virtual ~BufferLogger(); |
virtual ~BufferLogger(); |
||||||
|
|
||||||
void write(const LogMessage* logMessage) override; |
void write(const LogMessage* logMessage) override; |
||||||
QString getLog() const; // Get last m_maxSize messages as one big string
|
QString getLog() const; // Get last m_maxSize messages as one big string
|
||||||
|
|
||||||
private: |
private: |
||||||
|
|
||||||
int m_maxSize; // Maximum number of messages to store
|
int m_maxSize; // Maximum number of messages to store
|
||||||
QQueue<QString> m_messages; // Queue containing last m_maxSize messages
|
QQueue<QString> m_messages; // Queue containing last m_maxSize messages
|
||||||
|
|
||||||
}; |
}; |
||||||
|
|
||||||
} |
} |
||||||
|
|||||||
@ -1,18 +1,18 @@ |
|||||||
SECTION FROM THE MANUAL RELATING TO THE USE OF OPERATOR FLAGS |
SECTION FROM THE MANUAL RELATING TO THE USE OF OPERATOR FLAGS |
||||||
|
|
||||||
The operator column can be used to display a graphic for each aircraft, typically to show its |
The operator column can be used to display a graphic for each aircraft, typically to show its |
||||||
operator. Operator flag graphic files must be in .bmp format and must be placed in an |
operator. Operator flag graphic files must be in .bmp format and must be placed in an |
||||||
OperatorFlags subdirectory. To set an aircraft to display the operator flag, enter the name of |
OperatorFlags subdirectory. To set an aircraft to display the operator flag, enter the name of |
||||||
the file minus the .bmp extension into the OperatorFlagCode of the Edit Aircraft Details dialog |
the file minus the .bmp extension into the OperatorFlagCode of the Edit Aircraft Details dialog |
||||||
box. |
box. |
||||||
|
|
||||||
For example, if you enter “BAW” into the OperatorFlagCode field of an aircraft, and you have |
For example, if you enter “BAW” into the OperatorFlagCode field of an aircraft, and you have |
||||||
previously placed the file “BAW.bmp” into the directory |
previously placed the file “BAW.bmp” into the directory |
||||||
C:\Program Files\Kinetic\BaseStation\OperatorFlags, then the baw bitmap will be displayed in the |
C:\Program Files\Kinetic\BaseStation\OperatorFlags, then the baw bitmap will be displayed in the |
||||||
Operator column for that aircraft. |
Operator column for that aircraft. |
||||||
|
|
||||||
Note: We do not envisage users typically entering these codes using this interface. Instead, we |
Note: We do not envisage users typically entering these codes using this interface. Instead, we |
||||||
have provided this feature so that those existing third party applications that use BaseStation’s |
have provided this feature so that those existing third party applications that use BaseStation’s |
||||||
database interface to write registration data into the database can write in flag codes matching |
database interface to write registration data into the database can write in flag codes matching |
||||||
existing flag data sets, allowing the users of those third party products to have operator flags |
existing flag data sets, allowing the users of those third party products to have operator flags |
||||||
automatically appear. |
automatically appear. |
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue