2012-07-17 01:24:22 +02:00
|
|
|
/**
|
|
|
|
******************************************************************************
|
|
|
|
*
|
|
|
|
* @file fixedwingpage.h
|
|
|
|
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2012.
|
|
|
|
* @addtogroup
|
|
|
|
* @{
|
|
|
|
* @addtogroup FixedWingPage
|
|
|
|
* @{
|
|
|
|
* @brief
|
|
|
|
*****************************************************************************/
|
|
|
|
/*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful, but
|
|
|
|
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
|
|
|
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
|
|
* for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef FIXEDWINGPAGE_H
|
|
|
|
#define FIXEDWINGPAGE_H
|
|
|
|
|
2013-11-24 17:29:38 -05:00
|
|
|
#include <QtSvg/QGraphicsSvgItem>
|
|
|
|
#include <QtSvg/QSvgRenderer>
|
|
|
|
#include <QList>
|
|
|
|
|
2012-07-17 01:24:22 +02:00
|
|
|
#include "abstractwizardpage.h"
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
class FixedWingPage;
|
|
|
|
}
|
|
|
|
|
2013-05-19 17:37:30 +03:00
|
|
|
class FixedWingPage : public AbstractWizardPage {
|
2012-07-17 01:24:22 +02:00
|
|
|
Q_OBJECT
|
2013-05-19 17:37:30 +03:00
|
|
|
|
2012-07-17 01:24:22 +02:00
|
|
|
public:
|
|
|
|
explicit FixedWingPage(SetupWizard *wizard, QWidget *parent = 0);
|
|
|
|
~FixedWingPage();
|
2013-05-19 17:37:30 +03:00
|
|
|
|
2013-11-24 17:29:38 -05:00
|
|
|
void initializePage();
|
|
|
|
bool validatePage();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
|
2012-07-17 01:24:22 +02:00
|
|
|
private:
|
|
|
|
Ui::FixedWingPage *ui;
|
2013-11-24 17:29:38 -05:00
|
|
|
void setupFixedWingTypesCombo();
|
|
|
|
QGraphicsSvgItem *m_fixedwingPic;
|
|
|
|
void updateAvailableTypes();
|
|
|
|
QList<QString> m_descriptions;
|
|
|
|
|
|
|
|
private slots:
|
|
|
|
void updateImageAndDescription();
|
2012-07-17 01:24:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // FIXEDWINGPAGE_H
|