OpenHantek
DsoConfigDialog Class Reference

The dialog for the configuration options. More...

#include <configdialog.h>

Inheritance diagram for DsoConfigDialog:

Public Slots

void accept ()
 Saves the settings and closes the dialog. More...
 
void apply ()
 Saves the settings. More...
 
void changePage (QListWidgetItem *current, QListWidgetItem *previous)
 Change the config page. More...
 

Public Member Functions

 DsoConfigDialog (DsoSettings *settings, QWidget *parent=nullptr, Qt::WindowFlags flags=nullptr)
 Creates the configuration dialog and sets initial values. More...
 
 ~DsoConfigDialog ()
 Cleans up the dialog. More...
 

Private Member Functions

void createIcons ()
 Create the icons for the pages. More...
 

Private Attributes

DsoSettingssettings
 
QVBoxLayout * mainLayout
 
QHBoxLayout * horizontalLayout
 
QHBoxLayout * buttonsLayout
 
QListWidget * contentsWidget
 
QStackedWidget * pagesWidget
 
DsoConfigAnalysisPageanalysisPage
 
DsoConfigColorsPagecolorsPage
 
DsoConfigFilePagefilePage
 
DsoConfigScopePagescopePage
 
QPushButton * acceptButton
 
QPushButton * applyButton
 
QPushButton * rejectButton
 

Detailed Description

The dialog for the configuration options.

Constructor & Destructor Documentation

◆ DsoConfigDialog()

DsoConfigDialog::DsoConfigDialog ( DsoSettings settings,
QWidget *  parent = nullptr,
Qt::WindowFlags  flags = nullptr 
)

Creates the configuration dialog and sets initial values.

Parameters
settingsThe target settings object.
parentThe parent widget.
flagsFlags for the window manager.

◆ ~DsoConfigDialog()

DsoConfigDialog::~DsoConfigDialog ( )

Cleans up the dialog.

Member Function Documentation

◆ accept

void DsoConfigDialog::accept ( )
slot

Saves the settings and closes the dialog.

◆ apply

void DsoConfigDialog::apply ( )
slot

Saves the settings.

◆ changePage

void DsoConfigDialog::changePage ( QListWidgetItem *  current,
QListWidgetItem *  previous 
)
slot

Change the config page.

Parameters
currentThe page that has been selected.
previousThe page that was selected before.

◆ createIcons()

void DsoConfigDialog::createIcons ( )
private

Create the icons for the pages.

Field Documentation

◆ acceptButton

QPushButton* DsoConfigDialog::acceptButton
private

◆ analysisPage

DsoConfigAnalysisPage* DsoConfigDialog::analysisPage
private

◆ applyButton

QPushButton * DsoConfigDialog::applyButton
private

◆ buttonsLayout

QHBoxLayout* DsoConfigDialog::buttonsLayout
private

◆ colorsPage

DsoConfigColorsPage* DsoConfigDialog::colorsPage
private

◆ contentsWidget

QListWidget* DsoConfigDialog::contentsWidget
private

◆ filePage

DsoConfigFilePage* DsoConfigDialog::filePage
private

◆ horizontalLayout

QHBoxLayout* DsoConfigDialog::horizontalLayout
private

◆ mainLayout

QVBoxLayout* DsoConfigDialog::mainLayout
private

◆ pagesWidget

QStackedWidget* DsoConfigDialog::pagesWidget
private

◆ rejectButton

QPushButton * DsoConfigDialog::rejectButton
private

◆ scopePage

DsoConfigScopePage* DsoConfigDialog::scopePage
private

◆ settings

DsoSettings* DsoConfigDialog::settings
private

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