Browse Source

Minor UI improvements, WIP

QGC4.4
Lorenz Meier 12 years ago
parent
commit
467a2a1176
  1. BIN
      files/images/px4/airframes/flying_wing.png
  2. BIN
      files/images/px4/airframes/plane_aert.png
  3. BIN
      files/images/px4/airframes/plane_ert.png
  4. 3
      qgroundcontrol.qrc
  5. 3
      src/ui/px4_configuration/QGCPX4AirframeConfig.cc
  6. 93
      src/ui/px4_configuration/QGCPX4AirframeConfig.ui
  7. 3
      src/ui/uas/UASListWidget.cc

BIN
files/images/px4/airframes/flying_wing.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
files/images/px4/airframes/plane_aert.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
files/images/px4/airframes/plane_ert.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

3
qgroundcontrol.qrc

@ -163,6 +163,9 @@ @@ -163,6 +163,9 @@
<file>files/images/px4/airframes/hexa_+.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/flying_wing.png</file>
<file>files/images/px4/airframes/plane_ert.png</file>
<file>files/images/px4/airframes/plane_aert.png</file>
</qresource>
<qresource prefix="/general">
<file alias="vera.ttf">files/styles/Vera.ttf</file>

3
src/ui/px4_configuration/QGCPX4AirframeConfig.cc

@ -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)));
ui->hComboBox->addItem(tr("TBS Discovery"), 15);
ui->hComboBox->addItem(tr("H Custom"), 16);
connect(ui->applyButton, SIGNAL(clicked()), this, SLOT(applyAndReboot()));
connect(UASManager::instance(), SIGNAL(activeUASSet(UASInterface*)), this, SLOT(setActiveUAS()));

93
src/ui/px4_configuration/QGCPX4AirframeConfig.ui

@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>802</width>
<width>762</width>
<height>531</height>
</rect>
</property>
@ -36,6 +36,10 @@ @@ -36,6 +36,10 @@
<property name="text">
<string/>
</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">
<size>
<width>120</width>
@ -45,33 +49,7 @@ @@ -45,33 +49,7 @@
</widget>
</item>
<item>
<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>
<widget class="QComboBox" name="planeComboBox"/>
</item>
<item>
<widget class="QLabel" name="label">
@ -89,21 +67,20 @@ @@ -89,21 +67,20 @@
<property name="text">
<string/>
</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>
</item>
<item>
<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>
<widget class="QComboBox" name="flyingWingComboBox"/>
</item>
<item>
<widget class="QLabel" name="label_2">
@ -134,28 +111,7 @@ @@ -134,28 +111,7 @@
</widget>
</item>
<item>
<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>
<widget class="QComboBox" name="quadXComboBox"/>
</item>
<item>
<widget class="QLabel" name="label_3">
@ -331,18 +287,7 @@ @@ -331,18 +287,7 @@
</widget>
</item>
<item>
<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>
<widget class="QComboBox" name="hComboBox"/>
</item>
<item>
<widget class="QLabel" name="label_9">

3
src/ui/uas/UASListWidget.cc

@ -102,6 +102,9 @@ void UASListWidget::updateStatus() @@ -102,6 +102,9 @@ void UASListWidget::updateStatus()
while (i.hasNext()) {
i.next();
LinkInterface* link = i.key();
if (!link)
continue;
ProtocolInterface* p = LinkManager::instance()->getProtocolForLink(link);
// Build the tooltip out of the protocol parsing data: received, dropped, and parsing errors.

Loading…
Cancel
Save