1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

add the page

This commit is contained in:
Fredrik Larson 2014-09-28 22:46:01 +10:00
parent c643abf4fb
commit 488a359d85
5 changed files with 10 additions and 7 deletions

View File

@ -32,6 +32,7 @@
EscCalibrationPage::EscCalibrationPage(SetupWizard *wizard, QWidget *parent) :
AbstractWizardPage(wizard, parent),
ui(new Ui::EscCalibrationPage)
{
ui->setupUi(this);

View File

@ -26,7 +26,6 @@
*/
#ifndef ESCCALIBRATIONPAGE_H
#define ESCCALIBRATIONPAGE_H

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>BiasCalibrationPage</class>
<widget class="QWizardPage" name="BiasCalibrationPage">
<class>EscCalibrationPage</class>
<widget class="QWizardPage" name="EscCalibrationPage">
<property name="geometry">
<rect>
<x>0</x>
@ -66,8 +66,6 @@ p, li { white-space: pre-wrap; }
</item>
</layout>
</widget>
<resources>
<include location="../wizardResources.qrc"/>
</resources>
<resources/>
<connections/>
</ui>

View File

@ -40,6 +40,7 @@
#include "pages/escpage.h"
#include "pages/servopage.h"
#include "pages/biascalibrationpage.h"
#include "pages/esccalibrationpage.h"
#include "pages/summarypage.h"
#include "pages/savepage.h"
#include "pages/notyetimplementedpage.h"
@ -167,6 +168,9 @@ int SetupWizard::nextId() const
}
case PAGE_BIAS_CALIBRATION:
return PAGE_ESC_CALIBRATION;
case PAGE_ESC_CALIBRATION:
return PAGE_OUTPUT_CALIBRATION;
case PAGE_OUTPUT_CALIBRATION:
@ -441,6 +445,7 @@ void SetupWizard::createPages()
setPage(PAGE_ESC, new EscPage(this));
setPage(PAGE_SERVO, new ServoPage(this));
setPage(PAGE_BIAS_CALIBRATION, new BiasCalibrationPage(this));
setPage(PAGE_ESC_CALIBRATION, new EscCalibrationPage(this));
setPage(PAGE_OUTPUT_CALIBRATION, new OutputCalibrationPage(this));
setPage(PAGE_SUMMARY, new SummaryPage(this));
setPage(PAGE_SAVE, new SavePage(this));

View File

@ -186,7 +186,7 @@ private slots:
private:
enum { PAGE_START, PAGE_CONTROLLER, PAGE_VEHICLES, PAGE_MULTI, PAGE_FIXEDWING,
PAGE_AIRSPEED, PAGE_GPS, PAGE_HELI, PAGE_SURFACE, PAGE_INPUT, PAGE_ESC, PAGE_SERVO,
PAGE_BIAS_CALIBRATION, PAGE_REVO_CALIBRATION, PAGE_OUTPUT_CALIBRATION,
PAGE_BIAS_CALIBRATION, PAGE_ESC_CALIBRATION, PAGE_REVO_CALIBRATION, PAGE_OUTPUT_CALIBRATION,
PAGE_SAVE, PAGE_SUMMARY, PAGE_NOTYETIMPLEMENTED, PAGE_AIRFRAME_INITIAL_TUNING,
PAGE_REBOOT, PAGE_END, PAGE_UPDATE };
void createPages();