|
OpenHantek
|
Holds the settings of the program. More...
#include <dsosettings.h>
Public Member Functions | |
| DsoSettings (const ScopeDevice *scopeDevice, bool resetSettings=false) | |
| Set the number of channels. More... | |
| bool | setFilename (const QString &filename) |
| void | load () |
| Read the settings from the last session or another file. More... | |
| void | save () |
| Save the settings to the harddisk. More... | |
Data Fields | |
| DsoSettingsScope | scope |
| All oscilloscope related settings. More... | |
| DsoSettingsView | view |
| All view related settings. More... | |
| DsoSettingsPostProcessing | post |
| All post processing related settings. More... | |
| bool | exportProcessedSamples = true |
| General options of the program. More... | |
| bool | alwaysSave = true |
| Always save the settings on exit. More... | |
| unsigned | configVersion = CONFIG_VERSION |
| Handle incompatible changes. More... | |
| const QString | deviceName |
| const QString | deviceID |
| const unsigned | deviceFW |
| QByteArray | mainWindowGeometry |
| Geometry of the main window. More... | |
| QByteArray | mainWindowState |
| State of docking windows and toolbars. More... | |
Private Member Functions | |
| void | setDefaultConfig () |
Private Attributes | |
| std::unique_ptr< QSettings > | storeSettings |
| const Dso::ControlSpecification * | deviceSpecification |
| bool | resetSettings = false |
Holds the settings of the program.
|
explicit |
Set the number of channels.
| channels | The new channel count, that will be applied to lists. |
| void DsoSettings::load | ( | ) |
Read the settings from the last session or another file.
| void DsoSettings::save | ( | ) |
Save the settings to the harddisk.
|
private |
| bool DsoSettings::setFilename | ( | const QString & | filename | ) |
| bool DsoSettings::alwaysSave = true |
Always save the settings on exit.
| unsigned DsoSettings::configVersion = CONFIG_VERSION |
Handle incompatible changes.
| const unsigned DsoSettings::deviceFW |
| const QString DsoSettings::deviceID |
| const QString DsoSettings::deviceName |
|
private |
| bool DsoSettings::exportProcessedSamples = true |
General options of the program.
| QByteArray DsoSettings::mainWindowGeometry |
Geometry of the main window.
| QByteArray DsoSettings::mainWindowState |
State of docking windows and toolbars.
| DsoSettingsPostProcessing DsoSettings::post |
All post processing related settings.
|
private |
| DsoSettingsScope DsoSettings::scope |
All oscilloscope related settings.
|
private |
| DsoSettingsView DsoSettings::view |
All view related settings.