Commit 467a2a11 authored by Lorenz Meier's avatar Lorenz Meier

Minor UI improvements, WIP

parent dc568649
...@@ -163,6 +163,9 @@ ...@@ -163,6 +163,9 @@
<file>files/images/px4/airframes/hexa_+.png</file> <file>files/images/px4/airframes/hexa_+.png</file>
<file>files/images/px4/airframes/hexa_x.png</file> <file>files/images/px4/airframes/hexa_x.png</file>
<file>files/images/px4/airframes/octo_x.png</file> <file>files/images/px4/airframes/octo_x.png</file>
<file>files/images/px4/airframes/flying_wing.png</file>
<file>files/images/px4/airframes/plane_ert.png</file>
<file>files/images/px4/airframes/plane_aert.png</file>
</qresource> </qresource>
<qresource prefix="/general"> <qresource prefix="/general">
<file alias="vera.ttf">files/styles/Vera.ttf</file> <file alias="vera.ttf">files/styles/Vera.ttf</file>
......
...@@ -44,6 +44,9 @@ QGCPX4AirframeConfig::QGCPX4AirframeConfig(QWidget *parent) : ...@@ -44,6 +44,9 @@ QGCPX4AirframeConfig::QGCPX4AirframeConfig(QWidget *parent) :
connect(ui->hComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(hSelected(int))); connect(ui->hComboBox, SIGNAL(currentIndexChanged(int)), this, SLOT(hSelected(int)));
ui->hComboBox->addItem(tr("TBS Discovery"), 15);
ui->hComboBox->addItem(tr("H Custom"), 16);
connect(ui->applyButton, SIGNAL(clicked()), this, SLOT(applyAndReboot())); connect(ui->applyButton, SIGNAL(clicked()), this, SLOT(applyAndReboot()));
connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS())); connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS()));
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>802</width> <width>762</width>
<height>531</height> <height>531</height>
</rect> </rect>
</property> </property>
...@@ -36,6 +36,10 @@ ...@@ -36,6 +36,10 @@
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon">
<iconset resource="../../../qgroundcontrol.qrc">
<normaloff>:/files/images/px4/airframes/plane_aert.png</normaloff>:/files/images/px4/airframes/plane_aert.png</iconset>
</property>
<property name="iconSize"> <property name="iconSize">
<size> <size>
<width>120</width> <width>120</width>
...@@ -45,33 +49,7 @@ ...@@ -45,33 +49,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="planeComboBox"> <widget class="QComboBox" name="planeComboBox"/>
<item>
<property name="text">
<string>Please select</string>
</property>
</item>
<item>
<property name="text">
<string>EasyStar</string>
</property>
</item>
<item>
<property name="text">
<string>EasyStar 2</string>
</property>
</item>
<item>
<property name="text">
<string>EasyStar 2 w. Ailerons</string>
</property>
</item>
<item>
<property name="text">
<string>Bixler 2</string>
</property>
</item>
</widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
...@@ -89,21 +67,20 @@ ...@@ -89,21 +67,20 @@
<property name="text"> <property name="text">
<string/> <string/>
</property> </property>
<property name="icon">
<iconset resource="../../../qgroundcontrol.qrc">
<normaloff>:/files/images/px4/airframes/flying_wing.png</normaloff>:/files/images/px4/airframes/flying_wing.png</iconset>
</property>
<property name="iconSize">
<size>
<width>120</width>
<height>120</height>
</size>
</property>
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="flyingWingComboBox"> <widget class="QComboBox" name="flyingWingComboBox"/>
<item>
<property name="text">
<string>Bormatec CamFlyer Q</string>
</property>
</item>
<item>
<property name="text">
<string>FX-61 Phantom</string>
</property>
</item>
</widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
...@@ -134,28 +111,7 @@ ...@@ -134,28 +111,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="quadXComboBox"> <widget class="QComboBox" name="quadXComboBox"/>
<item>
<property name="text">
<string>AR.Drone Frame</string>
</property>
</item>
<item>
<property name="text">
<string>Arducopter C Frame</string>
</property>
</item>
<item>
<property name="text">
<string>DJI F330 Frame</string>
</property>
</item>
<item>
<property name="text">
<string>DJI F450 Frame</string>
</property>
</item>
</widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
...@@ -331,18 +287,7 @@ ...@@ -331,18 +287,7 @@
</widget> </widget>
</item> </item>
<item> <item>
<widget class="QComboBox" name="hComboBox"> <widget class="QComboBox" name="hComboBox"/>
<item>
<property name="text">
<string>Steadydrone</string>
</property>
</item>
<item>
<property name="text">
<string>H Frame Custom</string>
</property>
</item>
</widget>
</item> </item>
<item> <item>
<widget class="QLabel" name="label_9"> <widget class="QLabel" name="label_9">
......
...@@ -102,6 +102,9 @@ void UASListWidget::updateStatus() ...@@ -102,6 +102,9 @@ void UASListWidget::updateStatus()
while (i.hasNext()) { while (i.hasNext()) {
i.next(); i.next();
LinkInterface* link = i.key(); LinkInterface* link = i.key();
if (!link)
continue;
ProtocolInterface* p = LinkManager::instance()->getProtocolForLink(link); ProtocolInterface* p = LinkManager::instance()->getProtocolForLink(link);
// Build the tooltip out of the protocol parsing data: received, dropped, and parsing errors. // Build the tooltip out of the protocol parsing data: received, dropped, and parsing errors.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment