OpenHantek
Loading...
Searching...
No Matches
mainwindow.h
1#pragma once
2#include "post/ppresult.h"
3#include <QMainWindow>
4#include <memory>
5
8class DsoSettings;
10class DsoWidget;
11class HorizontalDock;
12class TriggerDock;
13class SpectrumDock;
14class VoltageDock;
15
16namespace Ui {
17class MainWindow;
18}
19
23class MainWindow : public QMainWindow {
24 Q_OBJECT
25
26 public:
27 explicit MainWindow(HantekDsoControl *dsoControl, DsoSettings *mSettings, ExporterRegistry *exporterRegistry,
28 QWidget *parent = 0);
30 public slots:
31 void showNewData(std::shared_ptr<PPresult> data);
32 void exporterStatusChanged(const QString &exporterName, const QString &status);
33 void exporterProgressChanged();
34
35 protected:
36 void closeEvent(QCloseEvent *event) override;
37
38 private:
39 Ui::MainWindow *ui;
40
41 // Central widgets
42 DsoWidget *dsoWidget;
43
44 // Settings used for the whole program
45 DsoSettings *mSettings;
46 ExporterRegistry *exporterRegistry;
47};
Holds the settings of the program.
Definition settings.h:16
The widget for the oszilloscope-screen This widget contains the scopes and all level sliders.
Definition dsowidget.h:22
Definition exporterregistry.h:23
The DsoControl abstraction layer for Hantek USB DSOs. TODO Please anyone, refactor this class into sm...
Definition hantekdsocontrol.h:30
Dock window for the horizontal axis. It contains the settings for the timebase and the display format...
Definition HorizontalDock.h:25
The main window of the application. The main window contains the classic oszilloscope-screen and the ...
Definition mainwindow.h:23
void closeEvent(QCloseEvent *event) override
Save the settings before exiting.
Definition mainwindow.cpp:318
Dock window for the spectrum view. It contains the magnitude for all channels and allows to enable/di...
Definition SpectrumDock.h:19
Analyzes the data from the dso. Calculates the spectrum and various data about the signal and saves t...
Definition spectrumgenerator.h:24
Dock window for the trigger settings. It contains the settings for the trigger mode,...
Definition TriggerDock.h:21
Dock window for the voltage channel settings. It contains the settings for gain and coupling for both...
Definition VoltageDock.h:20