1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-25 17:28:50 -05:00
Commit Graph

96 Commits

Author SHA1 Message Date
Daniele Forsi
6627b0c377 Use qDeleteAll() for brevity 2024-05-19 19:44:45 +02:00
Daniele Forsi
87be13fcae Fix memleaks found with AddressSanitizer/LeakSanitizer
Found with:
ASAN_OPTIONS="detect_odr_violation=1,strip_path_prefix=$(pwd)/" build/sdrangel

Fixes:
Direct leak of 72 byte(s) in 1 object(s) allocated from:
    #0 0x7f7b94ef46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f7b929ff74c in MainSettings::load() sdrbase/settings/mainsettings.cpp:153
    #2 0x7f7b947614f6 in MainWindow::loadSettings() sdrgui/mainwindow.cpp:1230
    #3 0x7f7b94759e11 in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrgui/mainwindow.cpp:211
    #4 0x55b694e0a175 in runQtApplication app/main.cpp:196
    #5 0x55b694e07ab7 in main app/main.cpp:248
    #6 0x7f7b8f4456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Indirect leak of 136 byte(s) in 1 object(s) allocated from:
    #0 0x7f7b94ef46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f7b929e734d in QList<Preset>::node_construct(QList<Preset>::Node*, Preset const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:465
    #2 0x7f7b929e734d in QList<Preset>::append(Preset const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:625
    #3 0x7f7b929e734d in QList<Preset>::push_back(Preset const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:377
    #4 0x7f7b929e734d in Configuration::deserialize(QByteArray const&) sdrbase/settings/configuration.cpp:112
    #5 0x7f7b929ff934 in MainSettings::load() sdrbase/settings/mainsettings.cpp:155
    #6 0x7f7b947614f6 in MainWindow::loadSettings() sdrgui/mainwindow.cpp:1230
    #7 0x7f7b94759e11 in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrgui/mainwindow.cpp:211
    #8 0x55b694e0a175 in runQtApplication app/main.cpp:196
    #9 0x55b694e07ab7 in main app/main.cpp:248
    #10 0x7f7b8f4456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7f7b94ef46c8 in operator new(unsigned long) ../../../../src/libsanitizer/asan/asan_new_delete.cpp:95
    #1 0x7f7b929e9706 in QList<Preset::DeviceConfig>::node_construct(QList<Preset::DeviceConfig>::Node*, Preset::DeviceConfig const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:465
    #2 0x7f7b929e9706 in QList<Preset::DeviceConfig>::append(Preset::DeviceConfig const&) /usr/include/x86_64-linux-gnu/qt5/QtCore/qlist.h:625
    #3 0x7f7b929f627c in Preset::deserialize(QByteArray const&) sdrbase/settings/preset.cpp:193
    #4 0x7f7b929e74ca in Configuration::deserialize(QByteArray const&) sdrbase/settings/configuration.cpp:113
    #5 0x7f7b929ff934 in MainSettings::load() sdrbase/settings/mainsettings.cpp:155
    #6 0x7f7b947614f6 in MainWindow::loadSettings() sdrgui/mainwindow.cpp:1230
    #7 0x7f7b94759e11 in MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) sdrgui/mainwindow.cpp:211
    #8 0x55b694e0a175 in runQtApplication app/main.cpp:196
    #9 0x55b694e07ab7 in main app/main.cpp:248
    #10 0x7f7b8f4456c9 in __libc_start_call_main ../sysdeps/nptl/libc_start_call_main.h:58
2024-05-19 19:44:45 +02:00
Daniele Forsi
08c918f194 Fix saving configurations after deleting some entries 2024-05-11 19:36:31 +02:00
srcejon
2973eff337 Preset: Copy and initialise all fields for #2061. 2024-04-10 01:40:57 +01:00
f4exb
439b5d094c Rewriting of copyright notices for sdrbase. Part of #1893 2023-11-19 13:43:10 +01:00
Jon Beniston
d5ea5f5d6f Add settings/serializableinterface.h 2023-08-24 15:55:33 +01:00
Jon Beniston
2a24f72590 Add support for plugin presets. 2023-08-24 15:51:50 +01:00
Jon Beniston
5e71da4530 Add VkFFT support and profiler 2023-08-13 23:52:57 +01:00
Jon Beniston
0a106c52e0 Disable MSAA for 2D maps by default 2023-02-23 10:38:01 +00:00
Jon Beniston
df7b763eab Optionally reenamable smoothing on 2D maps, as 16 MSAA isn't always available 2023-02-16 11:00:30 +00:00
Jon Beniston
9c7aa8b333 Map Updates
Allow OpenSkyNetwork DB, OpenAIP and OurAirports DB stuctures to be
shared by different plugins, to speed up loading.
Perform map anti-aliasing on the whole map, rather than just info boxes,
to improve rendering speed when there are many items. Add map
multisampling as a preference.
Add plotting of airspaces, airports, navaids on Map feature.
Add support for polylines and polygons to be plotted on Map feature.
Add support for images to 2D Map feature.
Add distance and name filters to Map feature.
Filter map items when zoomed out or if off screen, to improve rendering
performance.
Add UK DAB, FM and AM transmitters to Map feature.
Use labelless maps for 2D transmit maps in Map feature (same as in ADS-B
demod).
2023-02-14 14:46:08 +00:00
Jon Beniston
68603fec43 Allow sampling devices to be refreshed while SDRangel is running.
(Possibly need to add a mutex for MainCore::getPluginManager, so only
can be used by one thread)
Add option to automatically update My Position based on GPS. This is
started in MainCore, so we get position as soon as possible.
Don't set QFileDialog::DontUseNativeDialog on Android, as Qt's file
dialog can't access user storage. Set globally for Linux/Windows, rather
than for each dialog.

 MainWindow:
 - Add welcome dialog for Android.
 - Don't show menu bar or status bar on Android to save screen space.
 - On Android, change tab position when screen orientation changes.
 - Load default configurations and presets first time SDRangel is run.
 - Change loadConfiguration to use a QProgressDialog rather than
   QMessageBox, as the latter was crashing on Android.
   - Use DialogPositioner to ensure dialogs are on screen.
2022-12-20 21:06:39 +00:00
Jon Beniston
d1c67c971e Add buttons to stack MDI windows vertically and put in tabs.
Use right click to auto-stack sub-windows, rather than having a
dedicated button.
Allow maximize button to make window full screen, if already maximized.
Add title to device windows, for when displayed in tabs.
Add menu button to workspace toolbar, for Android only, to avoid having
menu bar, which takes up a lot of space.
Add configuration presets button to workspace toolbar.
Add icons for window arangement
2022-12-20 16:10:11 +00:00
Jon Beniston
2cb2a8d555 Update sdrbase and sdrgui to support Qt5 and Qt6 2022-11-17 14:41:55 +00:00
Jon Beniston
d441e6d475 Add 3D spectrogram 2022-06-18 12:35:44 +01:00
f4exb
0eb487781b AMBE feature: removed AMBE support in main application 2022-05-25 01:00:33 +02:00
f4exb
3880a0f98f AMBE feature: cleanup of main application AMBE support 2022-05-25 00:13:40 +02:00
f4exb
d0c2b24694 Removed main LimeRFE support 2022-05-22 22:10:36 +02:00
f4exb
1df009c73d Fixed auto stack workspaces status save/restore 2022-05-20 08:46:40 +02:00
f4exb
9e4b5bda56 Save auto stack workspaces status in configuration 2022-05-19 15:48:14 +02:00
f4exb
1bcecec103 v7: added API for configurations and updated presets API. Implements #1234 2022-05-08 19:33:10 +02:00
f4exb
69a66adf88 Massive UI revamping (v7): make correction to sub windows sizes and placement at the top when loading a configuration 2022-04-26 19:44:18 +02:00
f4exb
a7ca650286 Massive UI revamping (v7): MainWindow: first round of cleanup 2022-04-15 10:04:24 +02:00
f4exb
c797060a7d Massive UI revamping (v7): device set presets 2022-04-13 18:43:37 +02:00
f4exb
2f89b79c84 Massive UI revamping (v7): added channels 2022-04-12 16:20:45 +02:00
f4exb
0ca0eb8f73 Massive UI revamping (v7): devices intermediate 2022-04-09 13:38:22 +02:00
f4exb
43f53fe26a Massive UI revamping (v7): created configurations with just Features for now 2022-04-05 16:28:07 +02:00
f4exb
4b82b919d3 Implement signal when main preferences are changed. Partially implements #1139 2022-03-20 12:24:56 +01:00
f4exb
8e79cd7ff2 Main Window: added option to hide or show the main spectrum in the central widget. Fixes #1152 2022-02-16 00:49:22 +01:00
f4exb
98b305f320 Make rollup state a serializable object so that it can be dumped in JSON format for the API. Prerequisite tp #1050 2022-01-09 05:27:12 +01:00
f4exb
fcdeffa59c GUI flavor: save and restore the device item index for the initial set up (R0). Fixes #1066 2021-12-05 12:35:39 +01:00
f4exb
2a9cc27a41 Implement serialize and deserialize to/from API in Serializable interface. Related changes and fixes 2021-12-01 00:21:19 +01:00
f4exb
7a6636b63a Fixed -Wunused-variable warnings 2020-11-14 18:45:05 +01:00
f4exb
55eb6cc951 Fixed -Wunused-parameter warnings 2020-11-14 11:13:32 +01:00
Jon Beniston
1a9b6d1763 Add ADS-B Demodulator plugin.
Add GS232 Rotator Controller feature plugin.
Add altitude and station name to My Positon.
Use QtDeploy to ensure all required Qt libraries are included (Should
fix OpenGL issues)
2020-10-27 16:22:10 +00:00
f4exb
cd5a4db876 Feature plugins framework: presets 2020-09-28 16:49:32 +02:00
f4exb
e8f3745bf3 Feature plugins framework initial commit and Misc plugins removal 2020-09-28 16:49:32 +02:00
Jon Beniston
49cb082c7e Add rigctrl plugin.
plugins/misc/rigctrl - Add rigctrl plugin.
sdrbase/plugin/pluginapi.h/.cpp - Add misc plugin registration.
sdrbase/plugin/pluginmanager.h/.cpp - Add misc plugin registration.
sdrbase/plugin/plugininterface.h/.cpp - Add top level UI and global settings serialization callbacks.
sdrbase/settings/mainsettings.h/cpp - Allow plugins to save global settings in main settings file.
sdrgui/mainwindow.cpp - Load settings after plugins are loaded, to allow plugin settings to be loaded and saved.
sdrsrv/maincore.cpp - Support loading/saving of plugin settings.
2020-09-08 15:47:20 +01:00
f4exb
634821296d Updated version and changelogs 2020-04-28 05:47:49 +02:00
f4exb
b64d813cfc Fixed some warnings from Mac ports compilation 2020-04-19 06:14:45 +02:00
f4exb
ab4f18684e LimeRFE USB support: added persistent calibration map 2020-01-16 18:23:29 +01:00
f4exb
5dca792955 Removed some extra semicolons 2019-11-01 22:22:18 +01:00
f4exb
500f5bc82c Presets for MIMO 2019-10-09 07:39:52 +02:00
f4exb
af6218611a REST API: config: PUT (6): mapper work and rework 2019-08-10 05:16:25 +02:00
f4exb
c777ec881d REST API: config: PUT (5): mapper work and rework. ChannelAnalyzer complements 2019-08-09 18:45:10 +02:00
f4exb
659f94b4c6 REST API: config: PUT (2): interface 2019-08-06 08:48:14 +02:00
f4exb
8ce4788b55 REST API: config: GET (3) added commands and removed usless friend class 2019-08-03 01:05:16 +02:00
f4exb
b95fa98e5a REST API: config: GET (2) presets channels and devices loop 2019-08-03 01:05:16 +02:00
f4exb
62ef01c21c REST API: config: GET (1) preferences and partial presets 2019-08-01 02:16:56 +02:00
f4exb
9588d53327 Removed obsolete fields of Preferences class 2019-07-31 23:56:23 +02:00