OpenHantek
mainwindow.h
1 #pragma once
2 #include "post/ppresult.h"
3 #include <QMainWindow>
4 #include <memory>
5 
7 class HantekDsoControl;
8 class DsoSettings;
9 class ExporterRegistry;
10 class DsoWidget;
11 class HorizontalDock;
12 class TriggerDock;
13 class SpectrumDock;
14 class VoltageDock;
15 
16 namespace Ui {
17 class MainWindow;
18 }
19 
23 class MainWindow : public QMainWindow {
24  Q_OBJECT
25 
26  public:
27  explicit MainWindow(HantekDsoControl *dsoControl, DsoSettings *mSettings, ExporterRegistry *exporterRegistry,
28  QWidget *parent = 0);
29  ~MainWindow();
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 };
void closeEvent(QCloseEvent *event) override
Save the settings before exiting.
Definition: mainwindow.cpp:318
Definition: exporterregistry.h:23
Definition: mainwindow.h:16
The widget for the oszilloscope-screen This widget contains the scopes and all level sliders...
Definition: dsowidget.h:22
Holds the settings of the program.
Definition: settings.h:16
Dock window for the trigger settings. It contains the settings for the trigger mode, source and slope.
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
Dock window for the spectrum view. It contains the magnitude for all channels and allows to enable/di...
Definition: SpectrumDock.h:19
Dock window for the horizontal axis. It contains the settings for the timebase and the display format...
Definition: HorizontalDock.h:25
Analyzes the data from the dso. Calculates the spectrum and various data about the signal and saves t...
Definition: spectrumgenerator.h:24
The main window of the application. The main window contains the classic oszilloscope-screen and the ...
Definition: mainwindow.h:23
The DsoControl abstraction layer for Hantek USB DSOs. TODO Please anyone, refactor this class into sm...
Definition: hantekdsocontrol.h:30