API Documentation
Loading...
Searching...
No Matches
MagnetometerCharts.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#ifdef USE_MAGNET_CHARTS
4#include <NDEVR/QTModelManager.h>
5#include <QWidget>
6namespace Ui
7{
8 class MagnetometerCalibrationUI;
9}
10namespace NDEVR
11{
12 class MagnetCalibrationChart;
13 class OrientationSensor;
14 class QTModelManager;
15 class FileChooserDialog;
16 class NDEVR_CHARTS_API MagnetometerCalibrationDialog : public QWidget
17 {
18 Q_OBJECT
19 public:
20 MagnetometerCalibrationDialog(QWidget* parent = nullptr);
21 void init();
22 void setModelManager(DesignObjectLookup* manager);
23 void setSensor(OrientationSensor* sensor);
24 void showSaveToPDF(bool show_save_button);
25 void toPDF();
26 bool event(QEvent* event) override;
27 bool isFinished() const;
28 protected slots:
29 void updateCalibrationObject();
30 protected:
31 FileChooserDialog* fileChooser(bool is_save);
32 void createFileChooser();
33 protected:
34 Ui::MagnetometerCalibrationUI* ui = nullptr;
35 OrientationSensor * m_sensor = nullptr;
36 DesignObjectLookup* m_manager = nullptr;
37 MagnetCalibrationChart* m_a_view;
38 MagnetCalibrationChart* m_b_view;
39 MagnetCalibrationChart* m_c_view;
40 FileChooserDialog* m_file_chooser = nullptr;
41 bool m_is_finished = false;
42 bool m_is_saving = false;
43 };
44}
45#endif
#define NDEVR_CHARTS_API
Definition DLLInfo.h:74
Definition ACIColor.h:37
Definition FontEditor.h:6