mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
MixerCurve: start branch with integrated mixer curve widget featuring all heli coolness for every curve.
This commit is contained in:
parent
604a8e06cd
commit
1e985f3aed
@ -0,0 +1,14 @@
|
||||
#include "mixercurve.h"
|
||||
#include "ui_mixercurve.h"
|
||||
|
||||
MixerCurve::MixerCurve(QWidget *parent) :
|
||||
QFrame(parent),
|
||||
ui(new Ui::MixerCurve)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
}
|
||||
|
||||
MixerCurve::~MixerCurve()
|
||||
{
|
||||
delete ui;
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
#ifndef MIXERCURVE_H
|
||||
#define MIXERCURVE_H
|
||||
|
||||
#include <QFrame>
|
||||
|
||||
namespace Ui {
|
||||
class MixerCurve;
|
||||
}
|
||||
|
||||
class MixerCurve : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MixerCurve(QWidget *parent = 0);
|
||||
~MixerCurve();
|
||||
|
||||
private:
|
||||
Ui::MixerCurve *ui;
|
||||
};
|
||||
|
||||
#endif // MIXERCURVE_H
|
@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<ui version="4.0">
|
||||
<class>MixerCurve</class>
|
||||
<widget class="QFrame" name="MixerCurve">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>322</width>
|
||||
<height>300</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>MixerCurve</string>
|
||||
</property>
|
||||
<property name="frameShape">
|
||||
<enum>QFrame::StyledPanel</enum>
|
||||
</property>
|
||||
<property name="frameShadow">
|
||||
<enum>QFrame::Raised</enum>
|
||||
</property>
|
||||
<widget class="MixerCurveWidget" name="mixerCurveWidget" native="true">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>80</x>
|
||||
<y>40</y>
|
||||
<width>221</width>
|
||||
<height>241</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QDoubleSpinBox" name="spinCurveMin">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>260</y>
|
||||
<width>51</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QDoubleSpinBox" name="spinCurveMax">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>20</x>
|
||||
<y>40</y>
|
||||
<width>51</width>
|
||||
<height>22</height>
|
||||
</rect>
|
||||
</property>
|
||||
</widget>
|
||||
<widget class="QTableWidget" name="curveSettings">
|
||||
<property name="geometry">
|
||||
<rect>
|
||||
<x>10</x>
|
||||
<y>70</y>
|
||||
<width>61</width>
|
||||
<height>181</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="rowCount">
|
||||
<number>5</number>
|
||||
</property>
|
||||
<property name="columnCount">
|
||||
<number>1</number>
|
||||
</property>
|
||||
<row/>
|
||||
<row/>
|
||||
<row/>
|
||||
<row/>
|
||||
<row/>
|
||||
<column/>
|
||||
</widget>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>MixerCurveWidget</class>
|
||||
<extends>QWidget</extends>
|
||||
<header>mixercurvewidget.h</header>
|
||||
<container>1</container>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
@ -10,13 +10,18 @@ HEADERS += uavobjectwidgetutils_global.h \
|
||||
mixercurvewidget.h \
|
||||
mixercurvepoint.h \
|
||||
mixercurveline.h \
|
||||
smartsavebutton.h
|
||||
smartsavebutton.h \
|
||||
mixercurve.h
|
||||
SOURCES += uavobjectwidgetutilsplugin.cpp \
|
||||
configtaskwidget.cpp \
|
||||
mixercurvewidget.cpp \
|
||||
mixercurvepoint.cpp \
|
||||
mixercurveline.cpp \
|
||||
smartsavebutton.cpp
|
||||
smartsavebutton.cpp \
|
||||
mixercurve.cpp
|
||||
|
||||
|
||||
OTHER_FILES += UAVObjectWidgetUtils.pluginspec
|
||||
|
||||
FORMS += \
|
||||
mixercurve.ui
|
||||
|
Loading…
x
Reference in New Issue
Block a user