|
OpenHantek
|
Holds the settings of the program. More...
#include <dsosettings.h>
Public Member Functions | |
| DsoSettings (const ScopeDevice *scopeDevice, int verboseLevel=0, bool resetSettings=false) | |
| Set the number of channels. | |
| bool | saveToFile (const QString &filename) |
| bool | loadFromFile (const QString &filename) |
| void | load () |
| Read the settings from the last session or another file. | |
| void | save () |
| Save the settings to the harddisk. | |
Data Fields | |
| DsoSettingsScope | scope |
| All oscilloscope related settings. | |
| DsoSettingsView | view |
| All view related settings. | |
| DsoSettingsAnalysis | analysis |
| All post processing analysis related settings. | |
| bool | exportProcessedSamples = true |
| Used for exporting. | |
| bool | alwaysSave = true |
| Always save the settings on exit. | |
| unsigned | configVersion = CONFIG_VERSION |
| Handle incompatible changes. | |
| const QString | deviceName |
| the human readable device name, e.g. DSO-6022BE | |
| const QString | deviceID |
| The unique serial number of EzUSB. | |
| const unsigned | deviceFW |
| The FW version number (BCD). | |
| QByteArray | mainWindowGeometry |
| Geometry of the main window. | |
| QByteArray | mainWindowState |
| State of docking windows and toolbars. | |
Private Member Functions | |
| void | setDefaultConfig () |
Private Attributes | |
| std::unique_ptr< QSettings > | storeSettings |
| const Dso::ControlSpecification * | deviceSpecification |
| int | verboseLevel = 0 |
| 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.
| bool DsoSettings::loadFromFile | ( | const QString & | filename | ) |
| void DsoSettings::save | ( | ) |
Save the settings to the harddisk.
| bool DsoSettings::saveToFile | ( | const QString & | filename | ) |
|
private |
| bool DsoSettings::alwaysSave = true |
Always save the settings on exit.
| DsoSettingsAnalysis DsoSettings::analysis |
All post processing analysis related settings.
| unsigned DsoSettings::configVersion = CONFIG_VERSION |
Handle incompatible changes.
| const unsigned DsoSettings::deviceFW |
The FW version number (BCD).
| const QString DsoSettings::deviceID |
The unique serial number of EzUSB.
| const QString DsoSettings::deviceName |
the human readable device name, e.g. DSO-6022BE
|
private |
| bool DsoSettings::exportProcessedSamples = true |
Used for exporting.
| QByteArray DsoSettings::mainWindowGeometry |
Geometry of the main window.
| QByteArray DsoSettings::mainWindowState |
State of docking windows and toolbars.
|
private |
| DsoSettingsScope DsoSettings::scope |
All oscilloscope related settings.
|
private |
|
private |
| DsoSettingsView DsoSettings::view |
All view related settings.