OpenHantek
DsoSettings Class Reference

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

Detailed Description

Holds the settings of the program.

Constructor & Destructor Documentation

◆ DsoSettings()

DsoSettings::DsoSettings ( const ScopeDevice scopeDevice,
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.

◆ save()

void DsoSettings::save ( )

Save the settings to the harddisk.

◆ setDefaultConfig()

void DsoSettings::setDefaultConfig ( )
private

◆ setFilename()

bool DsoSettings::setFilename ( const QString &  filename)

Field Documentation

◆ alwaysSave

bool DsoSettings::alwaysSave = true

Always save the settings on exit.

◆ configVersion

unsigned DsoSettings::configVersion = CONFIG_VERSION

Handle incompatible changes.

◆ deviceFW

const unsigned DsoSettings::deviceFW

◆ deviceID

const QString DsoSettings::deviceID

◆ deviceName

const QString DsoSettings::deviceName

◆ deviceSpecification

const Dso::ControlSpecification* DsoSettings::deviceSpecification
private

◆ exportProcessedSamples

bool DsoSettings::exportProcessedSamples = true

General options of the program.

◆ mainWindowGeometry

QByteArray DsoSettings::mainWindowGeometry

Geometry of the main window.

◆ mainWindowState

QByteArray DsoSettings::mainWindowState

State of docking windows and toolbars.

◆ post

DsoSettingsPostProcessing DsoSettings::post

All post processing related settings.

◆ resetSettings

bool DsoSettings::resetSettings = false
private

◆ scope

DsoSettingsScope DsoSettings::scope

All oscilloscope related settings.

◆ storeSettings

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

◆ view

DsoSettingsView DsoSettings::view

All view related settings.


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