![]() |
SDRAngel
4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
|
#include <mainsettings.h>
Collaboration diagram for MainSettings:Public Member Functions | |
| MainSettings () | |
| ~MainSettings () | |
| void | load () |
| void | save () const |
| void | resetToDefaults () |
| QString | getFileLocation () const |
| int | getFileFormat () const |
| see QSettings::Format for the values More... | |
| const Preferences & | getPreferences () const |
| Preset * | newPreset (const QString &group, const QString &description) |
| void | deletePreset (const Preset *preset) |
| int | getPresetCount () const |
| const Preset * | getPreset (int index) const |
| const Preset * | getPreset (const QString &groupName, quint64 centerFrequency, const QString &description, const QString &type) const |
| void | sortPresets () |
| void | renamePresetGroup (const QString &oldGroupName, const QString &newGroupName) |
| void | deletePresetGroup (const QString &groupName) |
| void | addCommand (Command *command) |
| void | deleteCommand (const Command *command) |
| int | getCommandCount () const |
| const Command * | getCommand (int index) const |
| const Command * | getCommand (const QString &groupName, const QString &description) const |
| void | sortCommands () |
| void | renameCommandGroup (const QString &oldGroupName, const QString &newGroupName) |
| void | deleteCommandGroup (const QString &groupName) |
| const Preset & | getWorkingPresetConst () const |
| Preset * | getWorkingPreset () |
| int | getSourceIndex () const |
| void | setSourceIndex (int value) |
| const QString & | getSourceDeviceId () const |
| void | setSourceDeviceId (const QString &deviceId) |
| void | setLatitude (float latitude) |
| void | setLongitude (float longitude) |
| float | getLatitude () const |
| float | getLongitude () const |
| void | setConsoleMinLogLevel (const QtMsgType &minLogLevel) |
| void | setFileMinLogLevel (const QtMsgType &minLogLevel) |
| void | setUseLogFile (bool useLogFile) |
| void | setLogFileName (const QString &value) |
| QtMsgType | getConsoleMinLogLevel () const |
| QtMsgType | getFileMinLogLevel () const |
| bool | getUseLogFile () const |
| const QString & | getLogFileName () const |
| DeviceUserArgs & | getDeviceUserArgs () |
| const AudioDeviceManager * | getAudioDeviceManager () const |
| void | setAudioDeviceManager (AudioDeviceManager *audioDeviceManager) |
| void | setAMBEEngine (AMBEEngine *ambeEngine) |
Protected Types | |
| typedef QList< Preset * > | Presets |
| typedef QList< Command * > | Commands |
Definition at line 14 of file mainsettings.h.
|
protected |
Definition at line 78 of file mainsettings.h.
|
protected |
Definition at line 76 of file mainsettings.h.
| MainSettings::MainSettings | ( | ) |
Definition at line 9 of file mainsettings.cpp.
References getFileFormat(), getFileLocation(), and resetToDefaults().
Here is the call graph for this function:| MainSettings::~MainSettings | ( | ) |
| void MainSettings::addCommand | ( | Command * | command | ) |
Definition at line 217 of file mainsettings.cpp.
References m_commands.
Referenced by MainWindow::on_commandDuplicate_clicked(), and MainWindow::on_commandNew_clicked().
Here is the caller graph for this function:| void MainSettings::deleteCommand | ( | const Command * | command | ) |
Definition at line 222 of file mainsettings.cpp.
References m_commands.
Referenced by MainWindow::on_commandDelete_clicked().
Here is the caller graph for this function:| void MainSettings::deleteCommandGroup | ( | const QString & | groupName | ) |
Definition at line 228 of file mainsettings.cpp.
References m_commands.
Referenced by MainWindow::on_commandDelete_clicked().
Here is the caller graph for this function:| void MainSettings::deletePreset | ( | const Preset * | preset | ) |
Definition at line 157 of file mainsettings.cpp.
References m_presets.
Referenced by MainCore::handleMessage(), MainWindow::handleMessage(), and MainWindow::on_presetDelete_clicked().
Here is the caller graph for this function:| void MainSettings::deletePresetGroup | ( | const QString & | groupName | ) |
Definition at line 163 of file mainsettings.cpp.
References m_presets.
Referenced by MainWindow::on_presetDelete_clicked().
Here is the caller graph for this function:
|
inline |
Definition at line 68 of file mainsettings.h.
|
inline |
Definition at line 40 of file mainsettings.h.
Referenced by MainWindow::commandKeyPressed(), getCommand(), MainWindow::loadSettings(), MainWindow::on_commandDelete_clicked(), MainWindow::on_commandEdit_clicked(), MainWindow::on_commandRun_clicked(), and renameCommandGroup().
Here is the caller graph for this function:| const Command * MainSettings::getCommand | ( | const QString & | groupName, |
| const QString & | description | ||
| ) | const |
Definition at line 261 of file mainsettings.cpp.
References getCommand(), getCommandCount(), and i.
Here is the call graph for this function:
|
inline |
Definition at line 39 of file mainsettings.h.
Referenced by MainWindow::commandKeyPressed(), getCommand(), MainWindow::loadSettings(), MainWindow::on_commandDelete_clicked(), MainWindow::on_commandEdit_clicked(), MainWindow::on_commandRun_clicked(), and renameCommandGroup().
Here is the caller graph for this function:
|
inline |
Definition at line 62 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceLoggingPut(), WebAPIAdapterSrv::instanceLoggingPut(), LoggingDialog::LoggingDialog(), MainCore::setLoggingOptions(), and MainWindow::setLoggingOptions().
Here is the caller graph for this function:
|
inline |
Definition at line 66 of file mainsettings.h.
Referenced by MainWindow::addMIMODevice(), MainCore::addSinkDevice(), MainWindow::addSinkDevice(), MainCore::addSourceDevice(), MainWindow::addSourceDevice(), MainWindow::on_action_DeviceUserArguments_triggered(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
Here is the caller graph for this function:| int MainSettings::getFileFormat | ( | ) | const |
see QSettings::Format for the values
Definition at line 36 of file mainsettings.cpp.
Referenced by MainSettings().
Here is the caller graph for this function:| QString MainSettings::getFileLocation | ( | ) | const |
Definition at line 30 of file mainsettings.cpp.
Referenced by AboutDialog::AboutDialog(), and MainSettings().
Here is the caller graph for this function:
|
inline |
Definition at line 63 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceLoggingPut(), WebAPIAdapterSrv::instanceLoggingPut(), LoggingDialog::LoggingDialog(), MainCore::setLoggingOptions(), and MainWindow::setLoggingOptions().
Here is the caller graph for this function:
|
inline |
Definition at line 55 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceLocationGet(), WebAPIAdapterSrv::instanceLocationGet(), WebAPIAdapterGUI::instanceLocationPut(), WebAPIAdapterSrv::instanceLocationPut(), MyPositionDialog::MyPositionDialog(), and DSDDemodGUI::updateMyPosition().
Here is the caller graph for this function:
|
inline |
Definition at line 65 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceLoggingPut(), WebAPIAdapterSrv::instanceLoggingPut(), LoggingDialog::LoggingDialog(), MainCore::setLoggingOptions(), and MainWindow::setLoggingOptions().
Here is the caller graph for this function:
|
inline |
Definition at line 56 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceLocationGet(), WebAPIAdapterSrv::instanceLocationGet(), WebAPIAdapterGUI::instanceLocationPut(), WebAPIAdapterSrv::instanceLocationPut(), MyPositionDialog::MyPositionDialog(), and DSDDemodGUI::updateMyPosition().
Here is the caller graph for this function:
|
inline |
Definition at line 26 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceConfigGet(), and WebAPIAdapterSrv::instanceConfigGet().
Here is the caller graph for this function:
|
inline |
Definition at line 31 of file mainsettings.h.
Referenced by getPreset(), WebAPIAdapterGUI::instanceConfigGet(), WebAPIAdapterSrv::instanceConfigGet(), WebAPIAdapterGUI::instancePresetDelete(), WebAPIAdapterSrv::instancePresetDelete(), WebAPIAdapterSrv::instancePresetFilePost(), WebAPIAdapterGUI::instancePresetPatch(), WebAPIAdapterSrv::instancePresetPatch(), WebAPIAdapterGUI::instancePresetPost(), WebAPIAdapterSrv::instancePresetPost(), WebAPIAdapterGUI::instancePresetPut(), WebAPIAdapterSrv::instancePresetPut(), WebAPIAdapterGUI::instancePresetsGet(), WebAPIAdapterSrv::instancePresetsGet(), MainWindow::loadSettings(), MainWindow::on_presetDelete_clicked(), MainWindow::on_presetEdit_clicked(), MainWindow::on_presetUpdate_clicked(), and renamePresetGroup().
Here is the caller graph for this function:| const Preset * MainSettings::getPreset | ( | const QString & | groupName, |
| quint64 | centerFrequency, | ||
| const QString & | description, | ||
| const QString & | type | ||
| ) | const |
Definition at line 196 of file mainsettings.cpp.
References getPreset(), getPresetCount(), and i.
Here is the call graph for this function:
|
inline |
Definition at line 30 of file mainsettings.h.
Referenced by getPreset(), WebAPIAdapterSrv::instanceConfigGet(), WebAPIAdapterGUI::instanceConfigGet(), WebAPIAdapterGUI::instancePresetsGet(), WebAPIAdapterSrv::instancePresetsGet(), MainWindow::loadSettings(), MainWindow::on_presetDelete_clicked(), MainWindow::on_presetEdit_clicked(), MainWindow::on_presetUpdate_clicked(), and renamePresetGroup().
Here is the caller graph for this function:
|
inline |
Definition at line 50 of file mainsettings.h.
Referenced by MainWindow::MainWindow().
Here is the caller graph for this function:
|
inline |
Definition at line 48 of file mainsettings.h.
Referenced by MainWindow::MainWindow().
Here is the caller graph for this function:
|
inline |
Definition at line 64 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceLoggingPut(), WebAPIAdapterSrv::instanceLoggingPut(), LoggingDialog::LoggingDialog(), MainCore::setLoggingOptions(), and MainWindow::setLoggingOptions().
Here is the caller graph for this function:
|
inline |
Definition at line 47 of file mainsettings.h.
Referenced by MainCore::changeSampleSink(), MainCore::changeSampleSource(), MainWindow::closeEvent(), MainWindow::MainWindow(), MainWindow::on_settingsSave_clicked(), MainWindow::sampleMIMOChanged(), MainWindow::sampleSinkChanged(), and MainWindow::sampleSourceChanged().
Here is the caller graph for this function:
|
inline |
Definition at line 46 of file mainsettings.h.
Referenced by WebAPIAdapterGUI::instanceConfigGet(), and WebAPIAdapterSrv::instanceConfigGet().
Here is the caller graph for this function:| void MainSettings::load | ( | ) |
Definition at line 42 of file mainsettings.cpp.
References Preferences::deserialize(), Command::deserialize(), DeviceUserArgs::deserialize(), AMBEEngine::deserialize(), Preset::deserialize(), AudioDeviceManager::deserialize(), i, m_ambeEngine, m_audioDeviceManager, m_commands, m_hardwareDeviceUserArgs, m_preferences, m_presets, and m_workingPreset.
Referenced by MainCore::loadSettings(), and MainWindow::loadSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| Preset * MainSettings::newPreset | ( | const QString & | group, |
| const QString & | description | ||
| ) |
Definition at line 148 of file mainsettings.cpp.
References m_presets, Preset::setDescription(), and Preset::setGroup().
Referenced by WebAPIAdapterSrv::instancePresetFilePut(), WebAPIAdapterGUI::instancePresetPost(), WebAPIAdapterSrv::instancePresetPost(), MainWindow::on_presetImport_clicked(), and MainWindow::on_presetSave_clicked().
Here is the call graph for this function:
Here is the caller graph for this function:| void MainSettings::renameCommandGroup | ( | const QString & | oldGroupName, |
| const QString & | newGroupName | ||
| ) |
Definition at line 247 of file mainsettings.cpp.
References getCommand(), getCommandCount(), i, and Command::setGroup().
Referenced by MainWindow::on_commandEdit_clicked().
Here is the call graph for this function:
Here is the caller graph for this function:| void MainSettings::renamePresetGroup | ( | const QString & | oldGroupName, |
| const QString & | newGroupName | ||
| ) |
Definition at line 182 of file mainsettings.cpp.
References getPreset(), getPresetCount(), i, and Preset::setGroup().
Referenced by MainWindow::on_presetEdit_clicked().
Here is the call graph for this function:
Here is the caller graph for this function:| void MainSettings::resetToDefaults | ( | ) |
Definition at line 142 of file mainsettings.cpp.
References m_preferences, m_workingPreset, Preferences::resetToDefaults(), and Preset::resetToDefaults().
Referenced by MainSettings().
Here is the call graph for this function:
Here is the caller graph for this function:| void MainSettings::save | ( | ) | const |
Definition at line 98 of file mainsettings.cpp.
References i, m_ambeEngine, m_audioDeviceManager, m_commands, m_hardwareDeviceUserArgs, m_preferences, m_presets, m_workingPreset, Preferences::serialize(), DeviceUserArgs::serialize(), AMBEEngine::serialize(), Preset::serialize(), and AudioDeviceManager::serialize().
Referenced by MainWindow::closeEvent(), MainCore::handleMessage(), MainWindow::handleMessage(), MainWindow::on_commandsSave_clicked(), MainWindow::on_settingsSave_clicked(), and MainCore::~MainCore().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 70 of file mainsettings.h.
Referenced by MainCore::MainCore(), and MainWindow::MainWindow().
Here is the caller graph for this function:
|
inline |
Definition at line 69 of file mainsettings.h.
Referenced by MainCore::MainCore(), and MainWindow::MainWindow().
Here is the caller graph for this function:
|
inline |
Definition at line 58 of file mainsettings.h.
Referenced by LoggingDialog::accept(), WebAPIAdapterSrv::instanceLoggingPut(), and WebAPIAdapterGUI::instanceLoggingPut().
Here is the caller graph for this function:
|
inline |
Definition at line 59 of file mainsettings.h.
Referenced by LoggingDialog::accept(), WebAPIAdapterSrv::instanceLoggingPut(), and WebAPIAdapterGUI::instanceLoggingPut().
Here is the caller graph for this function:
|
inline |
Definition at line 53 of file mainsettings.h.
Referenced by MyPositionDialog::accept(), WebAPIAdapterSrv::instanceLocationPut(), and WebAPIAdapterGUI::instanceLocationPut().
Here is the caller graph for this function:
|
inline |
Definition at line 61 of file mainsettings.h.
Referenced by LoggingDialog::accept(), WebAPIAdapterSrv::instanceLoggingPut(), and WebAPIAdapterGUI::instanceLoggingPut().
Here is the caller graph for this function:
|
inline |
Definition at line 54 of file mainsettings.h.
Referenced by MyPositionDialog::accept(), WebAPIAdapterSrv::instanceLocationPut(), and WebAPIAdapterGUI::instanceLocationPut().
Here is the caller graph for this function:
|
inline |
Definition at line 51 of file mainsettings.h.
Referenced by MainWindow::sampleSourceChanged().
Here is the caller graph for this function:
|
inline |
Definition at line 49 of file mainsettings.h.
Referenced by MainWindow::sampleSourceChanged().
Here is the caller graph for this function:
|
inline |
Definition at line 60 of file mainsettings.h.
Referenced by LoggingDialog::accept(), WebAPIAdapterSrv::instanceLoggingPut(), and WebAPIAdapterGUI::instanceLoggingPut().
Here is the caller graph for this function:| void MainSettings::sortCommands | ( | ) |
Definition at line 242 of file mainsettings.cpp.
References Command::commandCompare(), and m_commands.
Referenced by MainWindow::loadSettings(), MainWindow::on_commandDuplicate_clicked(), MainWindow::on_commandEdit_clicked(), and MainWindow::on_commandNew_clicked().
Here is the call graph for this function:
Here is the caller graph for this function:| void MainSettings::sortPresets | ( | ) |
Definition at line 177 of file mainsettings.cpp.
References m_presets, and Preset::presetCompare().
Referenced by MainCore::handleMessage(), MainWindow::handleMessage(), MainCore::loadSettings(), MainWindow::loadSettings(), MainWindow::on_presetEdit_clicked(), MainWindow::on_presetSave_clicked(), and MainWindow::on_presetUpdate_clicked().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 81 of file mainsettings.h.
|
protected |
Definition at line 74 of file mainsettings.h.
|
protected |
Definition at line 79 of file mainsettings.h.
Referenced by addCommand(), deleteCommand(), deleteCommandGroup(), load(), save(), sortCommands(), and ~MainSettings().
|
protected |
Definition at line 80 of file mainsettings.h.
|
protected |
Definition at line 73 of file mainsettings.h.
Referenced by load(), resetToDefaults(), and save().
|
protected |
Definition at line 77 of file mainsettings.h.
Referenced by deletePreset(), deletePresetGroup(), load(), newPreset(), save(), sortPresets(), and ~MainSettings().
|
protected |
Definition at line 75 of file mainsettings.h.
Referenced by load(), resetToDefaults(), and save().
1.8.13