OpenHantek
Loading...
Searching...
No Matches
DsoSettings Class Reference

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::ControlSpecificationdeviceSpecification
int verboseLevel = 0
bool resetSettings = false

Detailed Description

Holds the settings of the program.

Constructor & Destructor Documentation

◆ DsoSettings()

DsoSettings::DsoSettings ( const ScopeDevice * scopeDevice,
int verboseLevel = 0,
bool resetSettings = false )
explicit

Set the number of channels.

Parameters
channelsThe new channel count, that will be applied to lists.

Member Function Documentation

◆ load()

void DsoSettings::load ( )

Read the settings from the last session or another file.

◆ loadFromFile()

bool DsoSettings::loadFromFile ( const QString & filename)

◆ save()

void DsoSettings::save ( )

Save the settings to the harddisk.

◆ saveToFile()

bool DsoSettings::saveToFile ( const QString & filename)

◆ setDefaultConfig()

void DsoSettings::setDefaultConfig ( )
private

Field Documentation

◆ alwaysSave

bool DsoSettings::alwaysSave = true

Always save the settings on exit.

◆ analysis

DsoSettingsAnalysis DsoSettings::analysis

All post processing analysis related settings.

◆ configVersion

unsigned DsoSettings::configVersion = CONFIG_VERSION

Handle incompatible changes.

◆ deviceFW

const unsigned DsoSettings::deviceFW

The FW version number (BCD).

◆ deviceID

const QString DsoSettings::deviceID

The unique serial number of EzUSB.

◆ deviceName

const QString DsoSettings::deviceName

the human readable device name, e.g. DSO-6022BE

◆ deviceSpecification

const Dso::ControlSpecification* DsoSettings::deviceSpecification
private

◆ exportProcessedSamples

bool DsoSettings::exportProcessedSamples = true

Used for exporting.

◆ mainWindowGeometry

QByteArray DsoSettings::mainWindowGeometry

Geometry of the main window.

◆ mainWindowState

QByteArray DsoSettings::mainWindowState

State of docking windows and toolbars.

◆ resetSettings

bool DsoSettings::resetSettings = false
private

◆ scope

DsoSettingsScope DsoSettings::scope

All oscilloscope related settings.

◆ storeSettings

std::unique_ptr< QSettings > DsoSettings::storeSettings
private

◆ verboseLevel

int DsoSettings::verboseLevel = 0
private

◆ view

DsoSettingsView DsoSettings::view

All view related settings.


The documentation for this class was generated from the following files: