OpenHantek
DsoSettings Class Reference

Holds the settings of the program. More...

#include <dsosettings.h>

Public Member Functions

 DsoSettings (const Dso::ControlSpecification *deviceSpecification)
 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

DsoSettingsExport exporting
 General options of the program. More...
 
DsoSettingsScope scope
 All oscilloscope related settings. More...
 
DsoSettingsView view
 All view related settings. More...
 
DsoSettingsPostProcessing post
 All post processing related settings. More...
 
bool alwaysSave = true
 Always save the settings on exit. More...
 
QByteArray mainWindowGeometry
 Geometry of the main window. More...
 
QByteArray mainWindowState
 State of docking windows and toolbars. More...
 

Private Attributes

std::unique_ptr< QSettings > store = std::unique_ptr<QSettings>(new QSettings)
 
const Dso::ControlSpecificationdeviceSpecification
 

Detailed Description

Holds the settings of the program.

Constructor & Destructor Documentation

◆ DsoSettings()

DsoSettings::DsoSettings ( const Dso::ControlSpecification deviceSpecification)
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.

◆ setFilename()

bool DsoSettings::setFilename ( const QString &  filename)

Field Documentation

◆ alwaysSave

bool DsoSettings::alwaysSave = true

Always save the settings on exit.

◆ deviceSpecification

const Dso::ControlSpecification* DsoSettings::deviceSpecification
private

◆ exporting

DsoSettingsExport DsoSettings::exporting

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.

◆ scope

DsoSettingsScope DsoSettings::scope

All oscilloscope related settings.

◆ store

std::unique_ptr<QSettings> DsoSettings::store = std::unique_ptr<QSettings>(new QSettings)
private

◆ view

DsoSettingsView DsoSettings::view

All view related settings.


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