dRonin  adbada4
dRonin GCS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Groups Pages
biascalibrationpage.h
Go to the documentation of this file.
1 
14 /*
15  * This program is free software; you can redistribute it and/or modify
16  * it under the terms of the GNU General Public License as published by
17  * the Free Software Foundation; either version 3 of the License, or
18  * (at your option) any later version.
19  *
20  * This program is distributed in the hope that it will be useful, but
21  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  * for more details.
24  *
25  * You should have received a copy of the GNU General Public License along
26  * with this program; if not, see <http://www.gnu.org/licenses/>
27  */
28 
29 #ifndef BIASCALIBRATIONPAGE_H
30 #define BIASCALIBRATIONPAGE_H
31 
32 #include "abstractwizardpage.h"
33 #include "config/calibration.h"
34 
35 namespace Ui {
37 }
38 
40 {
41  Q_OBJECT
42 
43 public:
44  explicit BiasCalibrationPage(SetupWizard *wizard, QWidget *parent = nullptr);
46  bool validatePage();
47  bool isComplete() const;
48 
49 private slots:
50  void performCalibration();
51  void calibrationProgress(int current);
52  void calibrationDone();
53  void calibrationTimeout();
54 
55 private:
56  Ui::BiasCalibrationPage *ui;
57  Calibration *m_calibrationUtil;
58 
59  void stopCalibration();
60  void enableButtons(bool enable);
61 };
62 
63 #endif // BIASCALIBRATIONPAGE_H
The SetupWizard class is the main interface to the setup wizard. It provides selects the sequence of ...
Definition: setupwizard.h:47
The Calibration class is a UI free algorithm that can be connected to any interfaces. As such it only communicates with the UI via signals and slots, but has no direct handles to any particular controls or widgets.
Definition: calibration.h:46
BiasCalibrationPage(SetupWizard *wizard, QWidget *parent=nullptr)
Gui-less support class for calibration.