OpenHantek
MainWindow Class Reference

The main window of the application. The main window contains the classic oszilloscope-screen and the gui elements used to control the oszilloscope. More...

#include <mainwindow.h>

Inheritance diagram for MainWindow:

Public Slots

void showNewData (std::shared_ptr< PPresult > newData)
 
void exporterStatusChanged (const QString &exporterName, const QString &status)
 
void exporterProgressChanged ()
 

Signals

void settingsLoaded (DsoSettingsScope *scope, const Dso::ControlSpecification *spec)
 

Public Member Functions

 MainWindow (HantekDsoControl *dsoControl, DsoSettings *dsoSettings, ExporterRegistry *exporterRegistry, QWidget *parent=nullptr)
 
 ~MainWindow () override
 

Protected Member Functions

void closeEvent (QCloseEvent *event) override
 Save the settings before exiting. More...
 

Private Attributes

Ui::MainWindow * ui
 
QIcon iconPause
 
QIcon iconPlay
 
DsoWidgetdsoWidget
 
DsoSettingsdsoSettings
 
ExporterRegistryexporterRegistry
 

Detailed Description

The main window of the application. The main window contains the classic oszilloscope-screen and the gui elements used to control the oszilloscope.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( HantekDsoControl dsoControl,
DsoSettings dsoSettings,
ExporterRegistry exporterRegistry,
QWidget *  parent = nullptr 
)
explicit

◆ ~MainWindow()

MainWindow::~MainWindow ( )
override

Member Function Documentation

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
overrideprotected

Save the settings before exiting.

Parameters
eventThe close event that should be handled.

◆ exporterProgressChanged

void MainWindow::exporterProgressChanged ( )
slot

◆ exporterStatusChanged

void MainWindow::exporterStatusChanged ( const QString &  exporterName,
const QString &  status 
)
slot

◆ settingsLoaded

void MainWindow::settingsLoaded ( DsoSettingsScope scope,
const Dso::ControlSpecification spec 
)
signal

◆ showNewData

void MainWindow::showNewData ( std::shared_ptr< PPresult newData)
slot

Field Documentation

◆ dsoSettings

DsoSettings* MainWindow::dsoSettings
private

◆ dsoWidget

DsoWidget* MainWindow::dsoWidget
private

◆ exporterRegistry

ExporterRegistry* MainWindow::exporterRegistry
private

◆ iconPause

QIcon MainWindow::iconPause
private

◆ iconPlay

QIcon MainWindow::iconPlay
private

◆ ui

Ui::MainWindow* MainWindow::ui
private

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