API Documentation
Loading...
Searching...
No Matches
CalibratorWidget.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <QWidget>
4namespace NDEVR
5{
6 class ProgressWidget;
7 class Button;
8 class IMUCalibrator;
9 class FileChooserDialog;
10 class FileFormat;
12 {
13 public:
14 CalibratorWidget(QWidget* parent = nullptr);
15 CalibratorWidget(IMUCalibrator* calibrator, QWidget* parent = nullptr);
16 static FileFormat CalibrationTemplateFormat();
17 void setCalibrator(IMUCalibrator* calibrator);
18 void startCalibration();
19 void cancelCalibration();
20 void saveToLocation();
21 void saveCalibration();
22 protected:
23 void init();
24 protected slots:
25 void onUpdatedSlot();
26 protected:
28 Button* m_start_button = nullptr;
29 Button* m_save_button = nullptr;
30 Button* m_save_as_button = nullptr;
32 FileChooserDialog* m_file_dialog = nullptr;
33 bool m_is_calibrating = false;
34 };
35}
#define HARDWARE_WIDGETS_API
Definition DLLInfo.h:74
Definition Button.h:60
Definition CalibratorWidget.h:12
IMUCalibrator * m_calibrator
Definition CalibratorWidget.h:31
ProgressWidget * m_progress_widget
Definition CalibratorWidget.h:27
Definition FileChooserDialog.h:68
Definition FileFormat.h:38
Definition IMUCalibrator.h:27
Definition ProgressWidget.h:43
Definition ACIColor.h:37