Preserve the configuration and center frequency when recreating or
reloading a device of the same device type.
Save the existing device description, serialized settings, and center
frequency before removing the current device. After creating the
replacement, restore the saved settings and frequency when the device
description matches.
For MIMO devices, preserve and restore both the source (RX) and sink (TX)
center frequencies.
This prevents a device reload from unnecessarily resetting the user's
device configuration. In particular, it allows a device that has entered
an error state and needs to be reloaded to return with its previous
configuration instead of requiring the user to configure it again.
Signed-off-by: Robin Getz <rgetz503@gmail.com>
DSPDevice*Engine: Add signals to indicate when commands have been processed.
DSPDeviceSourceEngine: Fix small memory leak.
DSPEngine::removeDeviceEngineAt: Remove wait to avoid blocking thread. Return QThread to get finished signal.
DSPEngine::addDevice*Engine: Don't call deleteLater for device*Engine, as these objects are deleted manually in MainWindow, which will crash if deleteLater called first.
Settings are saved in MainWindow::closeEvent() which is called when Sdrangel
is exited by closing its main window, or when using the File/Exit menu (or
Ctrl+Q) or when pressing Alt+F4.
(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.