26 #ifndef CONFIGVEHICLETYPEWIDGET_H
27 #define CONFIGVEHICLETYPEWIDGET_H
29 #include "ui_airframe.h"
30 #include "../uavobjectwidgetutils/configtaskwidget.h"
44 #include <QItemDelegate>
67 Ui_AircraftWidget *m_aircraft;
74 void updateCustomAirframeUI();
75 void addToDirtyMonitor();
80 QStringList channelNames;
81 QStringList mixerTypes;
82 QStringList mixerVectors;
84 QGraphicsSvgItem *quad;
85 UAVObject::Metadata accInitialData;
86 SystemSettings::AirframeTypeOptions frameType;
90 virtual void refreshWidgetsValues(
UAVObject *o = NULL);
91 virtual void updateObjectsFromWidgets();
93 void setComboCurrentIndex(QComboBox *box,
int index);
95 void doSetupAirframeUI(
int frameType);
96 void setupAirframeUI(SystemSettings::AirframeTypeOptions frameType);
98 void toggleAileron2(
int index);
99 void toggleElevator2(
int index);
100 void toggleRudder2(
int index);
101 void switchAirframeType(
int index);
103 void reverseMultirotorMotor();
105 void bnLevelTrim_clicked();
106 void bnServoTrim_clicked();
120 QWidget *
createEditor(QWidget *parent,
const QStyleOptionViewItem &option,
121 const QModelIndex &index)
const;
123 void setEditorData(QWidget *editor,
const QModelIndex &index)
const;
124 void setModelData(QWidget *editor, QAbstractItemModel *model,
const QModelIndex &index)
const;
127 const QModelIndex &index)
const;
130 #endif // CONFIGVEHICLETYPEWIDGET_H
~ConfigVehicleTypeWidget()
ConfigVehicleTypeWidget(QWidget *parent=nullptr)
void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
SpinBoxDelegate(QObject *parent=nullptr)
void showEvent(QShowEvent *event)
void setEditorData(QWidget *editor, const QModelIndex &index) const
void resizeEvent(QResizeEvent *event)
static QStringList getChannelDescriptions()
QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const