202 changed files with 13327 additions and 13052 deletions
@ -1 +1,48 @@
@@ -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 @@
@@ -1,55 +1,55 @@
|
||||
name: SDRangel Linux Coverity build |
||||
|
||||
# Run every day at 3:00am UTC |
||||
on: |
||||
schedule: |
||||
- cron: '0 3 * * *' |
||||
workflow_dispatch: |
||||
|
||||
jobs: |
||||
build_coverity: |
||||
if: github.repository == 'f4exb/sdrangel' |
||||
# run once on latest |
||||
runs-on: ubuntu-24.04 |
||||
env: |
||||
COVERITY_SCAN_PROJECT_NAME: ${{ github.repository }} |
||||
COVERITY_SCAN_PROJECT_ID : "33161" |
||||
COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }} |
||||
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
with: |
||||
submodules: true |
||||
fetch-depth: 0 |
||||
- name: Check Coverity |
||||
id: coverity_check |
||||
run: | |
||||
./.github/workflows/coverity.sh --precheck |
||||
# keep dependencies synced with linux.yml |
||||
- name: Install dependencies |
||||
if: steps.coverity_check.outputs.run == 'true' |
||||
run: | |
||||
sudo apt-get update |
||||
sudo apt-get install software-properties-common |
||||
sudo add-apt-repository -y ppa:ettusresearch/uhd |
||||
sudo apt-get update |
||||
sudo apt-get -y install build-essential cmake git xxd \ |
||||
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
||||
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
||||
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
||||
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 \ |
||||
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-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 \ |
||||
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
||||
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
||||
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
||||
libavahi-client-dev libavahi-common-dev libaio-dev \ |
||||
python3-mako python3-cheetah python3-numpy \ |
||||
autoconf automake libtool ninja-build |
||||
bash cmake/ci/build_sdrplay.sh |
||||
- name: Build SDRangel for Coverity |
||||
if: steps.coverity_check.outputs.run == 'true' |
||||
run: | |
||||
./.github/workflows/coverity.sh |
||||
name: SDRangel Linux Coverity build |
||||
|
||||
# Run every day at 3:00am UTC |
||||
on: |
||||
schedule: |
||||
- cron: '0 3 * * *' |
||||
workflow_dispatch: |
||||
|
||||
jobs: |
||||
build_coverity: |
||||
if: github.repository == 'f4exb/sdrangel' |
||||
# run once on latest |
||||
runs-on: ubuntu-24.04 |
||||
env: |
||||
COVERITY_SCAN_PROJECT_NAME: ${{ github.repository }} |
||||
COVERITY_SCAN_PROJECT_ID : "33161" |
||||
COVERITY_SCAN_NOTIFICATION_EMAIL: ${{ secrets.COVERITY_SCAN_NOTIFICATION_EMAIL }} |
||||
COVERITY_SCAN_TOKEN: ${{ secrets.COVERITY_SCAN_TOKEN }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
with: |
||||
submodules: true |
||||
fetch-depth: 0 |
||||
- name: Check Coverity |
||||
id: coverity_check |
||||
run: | |
||||
./.github/workflows/coverity.sh --precheck |
||||
# keep dependencies synced with linux.yml |
||||
- name: Install dependencies |
||||
if: steps.coverity_check.outputs.run == 'true' |
||||
run: | |
||||
sudo apt-get update |
||||
sudo apt-get install software-properties-common |
||||
sudo add-apt-repository -y ppa:ettusresearch/uhd |
||||
sudo apt-get update |
||||
sudo apt-get -y install build-essential cmake git xxd \ |
||||
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
||||
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
||||
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
||||
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 \ |
||||
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-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 \ |
||||
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
||||
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
||||
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
||||
libavahi-client-dev libavahi-common-dev libaio-dev \ |
||||
python3-mako python3-cheetah python3-numpy \ |
||||
autoconf automake libtool ninja-build |
||||
bash cmake/ci/build_sdrplay.sh |
||||
- name: Build SDRangel for Coverity |
||||
if: steps.coverity_check.outputs.run == 'true' |
||||
run: | |
||||
./.github/workflows/coverity.sh |
||||
|
||||
@ -0,0 +1,29 @@
@@ -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 @@
@@ -1,76 +1,76 @@
|
||||
name: SDRangel Linux release build |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- linux_github_release |
||||
tags: |
||||
- 'v*' |
||||
workflow_dispatch: |
||||
|
||||
jobs: |
||||
build_deb: |
||||
strategy: |
||||
fail-fast: false |
||||
matrix: |
||||
os: [ubuntu-22.04, ubuntu-24.04] |
||||
runs-on: ${{ matrix.os }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
with: |
||||
submodules: true |
||||
fetch-depth: 0 |
||||
- name: Install dependencies |
||||
# ensure changes in dependencies get added to coverity.yml |
||||
run: | |
||||
sudo apt-get update |
||||
sudo apt-get install software-properties-common |
||||
sudo add-apt-repository -y ppa:ettusresearch/uhd |
||||
sudo apt-get update |
||||
sudo apt-get -y install build-essential cmake git xxd \ |
||||
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
||||
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
||||
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
||||
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 \ |
||||
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-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 \ |
||||
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
||||
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
||||
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
||||
libavahi-client-dev libavahi-common-dev libaio-dev \ |
||||
python3-mako python3-cheetah python3-numpy \ |
||||
autoconf automake libtool ninja-build |
||||
bash cmake/ci/build_sdrplay.sh |
||||
- name: Build SDRangel |
||||
run: | |
||||
if [ "${RUNNING_IN_ACT:-}" = "true" ]; then |
||||
mkdir -p /tmp/build |
||||
rsync -a --delete . /tmp/build/sdrangel/ |
||||
cd /tmp/build/sdrangel |
||||
debuild -i -us -uc -b |
||||
cp ../sdrangel_*_amd64.deb "$GITHUB_WORKSPACE"/ |
||||
else |
||||
debuild -i -us -uc -b |
||||
fi |
||||
- name: Get version |
||||
id: get_version |
||||
run: | |
||||
if [[ "${{github.ref_name}}" == "linux_github_release" ]]; then |
||||
echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT |
||||
else |
||||
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT |
||||
fi |
||||
- name: Rename |
||||
run: mv ../sdrangel_*_amd64.deb sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
- name: Upload artifact |
||||
uses: actions/upload-artifact@v4 |
||||
with: |
||||
name: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
path: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
- name: Upload release |
||||
if: startsWith(github.ref, 'refs/tags/') |
||||
uses: softprops/action-gh-release@v2 |
||||
with: |
||||
files: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
name: SDRangel Linux release build |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- linux_github_release |
||||
tags: |
||||
- 'v*' |
||||
workflow_dispatch: |
||||
|
||||
jobs: |
||||
build_deb: |
||||
strategy: |
||||
fail-fast: false |
||||
matrix: |
||||
os: [ubuntu-22.04, ubuntu-24.04] |
||||
runs-on: ${{ matrix.os }} |
||||
steps: |
||||
- uses: actions/checkout@v4 |
||||
with: |
||||
submodules: true |
||||
fetch-depth: 0 |
||||
- name: Install dependencies |
||||
# ensure changes in dependencies get added to coverity.yml |
||||
run: | |
||||
sudo apt-get update |
||||
sudo apt-get install software-properties-common |
||||
sudo add-apt-repository -y ppa:ettusresearch/uhd |
||||
sudo apt-get update |
||||
sudo apt-get -y install build-essential cmake git xxd \ |
||||
devscripts fakeroot debhelper libfftw3-dev qtbase5-dev libopengl-dev libqt5opengl5-dev \ |
||||
qttools5-dev qttools5-dev-tools qtmultimedia5-dev libqt5multimedia5-plugins libqt5websockets5-dev \ |
||||
libqt5quick5 qtwebengine5-dev qtbase5-private-dev \ |
||||
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 \ |
||||
libqt5serialport5-dev qtdeclarative5-dev qtpositioning5-dev qtlocation5-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 \ |
||||
libxml2-dev bison flex ffmpeg libpostproc-dev libavcodec-dev libavformat-dev \ |
||||
libopus-dev libcodec2-dev libairspy-dev libhackrf-dev \ |
||||
libbladerf-dev libsoapysdr-dev libiio-dev libuhd-dev libhamlib-dev libunwind-dev \ |
||||
libavahi-client-dev libavahi-common-dev libaio-dev \ |
||||
python3-mako python3-cheetah python3-numpy \ |
||||
autoconf automake libtool ninja-build |
||||
bash cmake/ci/build_sdrplay.sh |
||||
- name: Build SDRangel |
||||
run: | |
||||
if [ "${RUNNING_IN_ACT:-}" = "true" ]; then |
||||
mkdir -p /tmp/build |
||||
rsync -a --delete . /tmp/build/sdrangel/ |
||||
cd /tmp/build/sdrangel |
||||
debuild -i -us -uc -b |
||||
cp ../sdrangel_*_amd64.deb "$GITHUB_WORKSPACE"/ |
||||
else |
||||
debuild -i -us -uc -b |
||||
fi |
||||
- name: Get version |
||||
id: get_version |
||||
run: | |
||||
if [[ "${{github.ref_name}}" == "linux_github_release" ]]; then |
||||
echo "version=$(echo ${{github.sha}} | cut -c1-7)" >> $GITHUB_OUTPUT |
||||
else |
||||
echo "version=$(echo ${{github.ref_name}} | cut -c2-)" >> $GITHUB_OUTPUT |
||||
fi |
||||
- name: Rename |
||||
run: mv ../sdrangel_*_amd64.deb sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
- name: Upload artifact |
||||
uses: actions/upload-artifact@v4 |
||||
with: |
||||
name: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
path: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
- name: Upload release |
||||
if: startsWith(github.ref, 'refs/tags/') |
||||
uses: softprops/action-gh-release@v2 |
||||
with: |
||||
files: sdrangel_${{ steps.get_version.outputs.version }}_${{ matrix.os }}_amd64.deb |
||||
|
||||
@ -1,67 +1,67 @@
@@ -1,67 +1,67 @@
|
||||
<?xml version="1.0"?> |
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||
package="org.sdrangel" |
||||
android:installLocation="auto" |
||||
android:versionCode="13" |
||||
android:versionName="7.25.1.1"> |
||||
<uses-permission android:name="android.permission.INTERNET" /> |
||||
<uses-permission android:name="android.permission.READ_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.CAMERA" /> |
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> |
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
||||
<uses-permission android:name="android.permission.WAKE_LOCK" /> |
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
||||
|
||||
<supports-screens |
||||
android:anyDensity="true" |
||||
android:largeScreens="true" |
||||
android:normalScreens="true" |
||||
android:smallScreens="true" /> |
||||
<application |
||||
android:name="org.qtproject.qt.android.bindings.QtApplication" |
||||
android:hardwareAccelerated="true" |
||||
android:label="SDRangel" |
||||
android:extractNativeLibs="true" |
||||
android:requestLegacyExternalStorage="true" |
||||
android:allowBackup="true" |
||||
android:fullBackupOnly="false" |
||||
android:icon="@mipmap/ic_launcher"> |
||||
<activity |
||||
android:name="org.sdrangel.SDRangelActivity" |
||||
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" |
||||
android:label="SDRangel" |
||||
android:launchMode="singleTop" |
||||
android:screenOrientation="unspecified" |
||||
android:exported="true"> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.MAIN" /> |
||||
<category android:name="android.intent.category.LAUNCHER" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.app.lib_name" |
||||
android:value="sdrangel" /> |
||||
|
||||
<meta-data |
||||
android:name="android.app.arguments" |
||||
android:value="" /> |
||||
|
||||
<meta-data |
||||
android:name="android.app.background_running" |
||||
android:value="true" /> |
||||
</activity> |
||||
|
||||
<provider |
||||
android:name="androidx.core.content.FileProvider" |
||||
android:authorities="${applicationId}.qtprovider" |
||||
android:exported="false" |
||||
android:grantUriPermissions="true"> |
||||
<meta-data |
||||
android:name="android.support.FILE_PROVIDER_PATHS" |
||||
android:resource="@xml/qtprovider_paths"/> |
||||
</provider> |
||||
</application> |
||||
</manifest> |
||||
<?xml version="1.0"?> |
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" |
||||
package="org.sdrangel" |
||||
android:installLocation="auto" |
||||
android:versionCode="13" |
||||
android:versionName="7.25.1.1"> |
||||
<uses-permission android:name="android.permission.INTERNET" /> |
||||
<uses-permission android:name="android.permission.READ_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.CAMERA" /> |
||||
<uses-permission android:name="android.permission.RECORD_AUDIO" /> |
||||
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> |
||||
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> |
||||
<uses-permission android:name="android.permission.WAKE_LOCK" /> |
||||
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> |
||||
|
||||
<supports-screens |
||||
android:anyDensity="true" |
||||
android:largeScreens="true" |
||||
android:normalScreens="true" |
||||
android:smallScreens="true" /> |
||||
<application |
||||
android:name="org.qtproject.qt.android.bindings.QtApplication" |
||||
android:hardwareAccelerated="true" |
||||
android:label="SDRangel" |
||||
android:extractNativeLibs="true" |
||||
android:requestLegacyExternalStorage="true" |
||||
android:allowBackup="true" |
||||
android:fullBackupOnly="false" |
||||
android:icon="@mipmap/ic_launcher"> |
||||
<activity |
||||
android:name="org.sdrangel.SDRangelActivity" |
||||
android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|layoutDirection|locale|fontScale|keyboard|keyboardHidden|navigation|mcc|mnc|density" |
||||
android:label="SDRangel" |
||||
android:launchMode="singleTop" |
||||
android:screenOrientation="unspecified" |
||||
android:exported="true"> |
||||
<intent-filter> |
||||
<action android:name="android.intent.action.MAIN" /> |
||||
<category android:name="android.intent.category.LAUNCHER" /> |
||||
</intent-filter> |
||||
|
||||
<meta-data |
||||
android:name="android.app.lib_name" |
||||
android:value="sdrangel" /> |
||||
|
||||
<meta-data |
||||
android:name="android.app.arguments" |
||||
android:value="" /> |
||||
|
||||
<meta-data |
||||
android:name="android.app.background_running" |
||||
android:value="true" /> |
||||
</activity> |
||||
|
||||
<provider |
||||
android:name="androidx.core.content.FileProvider" |
||||
android:authorities="${applicationId}.qtprovider" |
||||
android:exported="false" |
||||
android:grantUriPermissions="true"> |
||||
<meta-data |
||||
android:name="android.support.FILE_PROVIDER_PATHS" |
||||
android:resource="@xml/qtprovider_paths"/> |
||||
</provider> |
||||
</application> |
||||
</manifest> |
||||
|
||||
@ -1,26 +1,26 @@
@@ -1,26 +1,26 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||
// //
|
||||
// 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 //
|
||||
// the Free Software Foundation as version 3 of the License, or //
|
||||
// (at your option) any later version. //
|
||||
// //
|
||||
// This program is distributed in the hope that it will be useful, //
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||
// GNU General Public License V3 for more details. //
|
||||
// //
|
||||
// You should have received a copy of the GNU General Public License //
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once |
||||
|
||||
#include "loggerwithfile.h" |
||||
|
||||
void installCrashHandler(qtwebapp::LoggerWithFile *logger); |
||||
|
||||
#ifdef _WIN32 |
||||
void logWindowsStackTrace(); |
||||
#endif |
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||
// //
|
||||
// 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 //
|
||||
// the Free Software Foundation as version 3 of the License, or //
|
||||
// (at your option) any later version. //
|
||||
// //
|
||||
// This program is distributed in the hope that it will be useful, //
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||
// GNU General Public License V3 for more details. //
|
||||
// //
|
||||
// You should have received a copy of the GNU General Public License //
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once |
||||
|
||||
#include "loggerwithfile.h" |
||||
|
||||
void installCrashHandler(qtwebapp::LoggerWithFile *logger); |
||||
|
||||
#ifdef _WIN32 |
||||
void logWindowsStackTrace(); |
||||
#endif |
||||
|
||||
@ -1,50 +1,50 @@
@@ -1,50 +1,50 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||
// //
|
||||
// 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 //
|
||||
// the Free Software Foundation as version 3 of the License, or //
|
||||
// (at your option) any later version. //
|
||||
// //
|
||||
// This program is distributed in the hope that it will be useful, //
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||
// GNU General Public License V3 for more details. //
|
||||
// //
|
||||
// You should have received a copy of the GNU General Public License //
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "bufferlogger.h" |
||||
|
||||
using namespace qtwebapp; |
||||
|
||||
BufferLogger::BufferLogger(int maxSize, QObject *parent) : |
||||
Logger(parent), |
||||
m_maxSize(maxSize) |
||||
{ |
||||
} |
||||
|
||||
BufferLogger::~BufferLogger() |
||||
{ |
||||
} |
||||
|
||||
void BufferLogger::write(const LogMessage* logMessage) |
||||
{ |
||||
QString text = qPrintable(logMessage->toString("{timestamp} {type} {msg}", "yyyy-MM-dd HH:mm:ss.zzz")); |
||||
m_messages.enqueue(text); |
||||
while (m_messages.size() > m_maxSize) { |
||||
m_messages.dequeue(); |
||||
} |
||||
} |
||||
|
||||
QString BufferLogger::getLog() const |
||||
{ |
||||
QString log; |
||||
|
||||
for (const auto& s : m_messages) { |
||||
log.append(s); |
||||
} |
||||
|
||||
return log; |
||||
} |
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||
// //
|
||||
// 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 //
|
||||
// the Free Software Foundation as version 3 of the License, or //
|
||||
// (at your option) any later version. //
|
||||
// //
|
||||
// This program is distributed in the hope that it will be useful, //
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||
// GNU General Public License V3 for more details. //
|
||||
// //
|
||||
// You should have received a copy of the GNU General Public License //
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "bufferlogger.h" |
||||
|
||||
using namespace qtwebapp; |
||||
|
||||
BufferLogger::BufferLogger(int maxSize, QObject *parent) : |
||||
Logger(parent), |
||||
m_maxSize(maxSize) |
||||
{ |
||||
} |
||||
|
||||
BufferLogger::~BufferLogger() |
||||
{ |
||||
} |
||||
|
||||
void BufferLogger::write(const LogMessage* logMessage) |
||||
{ |
||||
QString text = qPrintable(logMessage->toString("{timestamp} {type} {msg}", "yyyy-MM-dd HH:mm:ss.zzz")); |
||||
m_messages.enqueue(text); |
||||
while (m_messages.size() > m_maxSize) { |
||||
m_messages.dequeue(); |
||||
} |
||||
} |
||||
|
||||
QString BufferLogger::getLog() const |
||||
{ |
||||
QString log; |
||||
|
||||
for (const auto& s : m_messages) { |
||||
log.append(s); |
||||
} |
||||
|
||||
return log; |
||||
} |
||||
|
||||
@ -1,46 +1,46 @@
@@ -1,46 +1,46 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||
// //
|
||||
// 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 //
|
||||
// the Free Software Foundation as version 3 of the License, or //
|
||||
// (at your option) any later version. //
|
||||
// //
|
||||
// This program is distributed in the hope that it will be useful, //
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||
// GNU General Public License V3 for more details. //
|
||||
// //
|
||||
// You should have received a copy of the GNU General Public License //
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once |
||||
|
||||
#include <QQueue> |
||||
|
||||
#include "logger.h" |
||||
#include "export.h" |
||||
|
||||
namespace qtwebapp { |
||||
|
||||
// A ring-buffer like logger for holding m_maxSize recent log messages
|
||||
class LOGGING_API BufferLogger : public Logger { |
||||
Q_OBJECT |
||||
Q_DISABLE_COPY(BufferLogger) |
||||
|
||||
public: |
||||
BufferLogger(int maxSize, QObject *parent = nullptr); |
||||
virtual ~BufferLogger(); |
||||
|
||||
void write(const LogMessage* logMessage) override; |
||||
QString getLog() const; // Get last m_maxSize messages as one big string
|
||||
|
||||
private: |
||||
|
||||
int m_maxSize; // Maximum number of messages to store
|
||||
QQueue<QString> m_messages; // Queue containing last m_maxSize messages
|
||||
|
||||
}; |
||||
|
||||
} |
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
// Copyright (C) 2025 Jon Beniston, M7RCE //
|
||||
// //
|
||||
// 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 //
|
||||
// the Free Software Foundation as version 3 of the License, or //
|
||||
// (at your option) any later version. //
|
||||
// //
|
||||
// This program is distributed in the hope that it will be useful, //
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of //
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
|
||||
// GNU General Public License V3 for more details. //
|
||||
// //
|
||||
// You should have received a copy of the GNU General Public License //
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#pragma once |
||||
|
||||
#include <QQueue> |
||||
|
||||
#include "logger.h" |
||||
#include "export.h" |
||||
|
||||
namespace qtwebapp { |
||||
|
||||
// A ring-buffer like logger for holding m_maxSize recent log messages
|
||||
class LOGGING_API BufferLogger : public Logger { |
||||
Q_OBJECT |
||||
Q_DISABLE_COPY(BufferLogger) |
||||
|
||||
public: |
||||
BufferLogger(int maxSize, QObject *parent = nullptr); |
||||
virtual ~BufferLogger(); |
||||
|
||||
void write(const LogMessage* logMessage) override; |
||||
QString getLog() const; // Get last m_maxSize messages as one big string
|
||||
|
||||
private: |
||||
|
||||
int m_maxSize; // Maximum number of messages to store
|
||||
QQueue<QString> m_messages; // Queue containing last m_maxSize messages
|
||||
|
||||
}; |
||||
|
||||
} |
||||
|
||||
@ -1,18 +1,18 @@
@@ -1,18 +1,18 @@
|
||||
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 |
||||
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 |
||||
the file minus the .bmp extension into the OperatorFlagCode of the Edit Aircraft Details dialog |
||||
box. |
||||
|
||||
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 |
||||
C:\Program Files\Kinetic\BaseStation\OperatorFlags, then the baw bitmap will be displayed in the |
||||
Operator column for that aircraft. |
||||
|
||||
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 |
||||
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 |
||||
automatically appear. |
||||
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 |
||||
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 |
||||
the file minus the .bmp extension into the OperatorFlagCode of the Edit Aircraft Details dialog |
||||
box. |
||||
|
||||
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 |
||||
C:\Program Files\Kinetic\BaseStation\OperatorFlags, then the baw bitmap will be displayed in the |
||||
Operator column for that aircraft. |
||||
|
||||
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 |
||||
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 |
||||
automatically appear. |
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue