1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00

LP-559 Update PikoBLX HW page with vector picture

This commit is contained in:
Laurent Lalanne 2017-11-27 21:43:42 +01:00
parent 18b70445c2
commit fc77ba2d4a
2 changed files with 92 additions and 156 deletions

View File

@ -38,6 +38,11 @@ ConfigPikoBLXHWWidget::ConfigPikoBLXHWWidget(QWidget *parent) : ConfigTaskWidget
m_ui = new Ui_PikoBLXHWWidget();
m_ui->setupUi(this);
m_ui->boardImg->load(QString(":/configgadget/images/pikoblx.svg"));
QSize picSize = m_ui->boardImg->sizeHint();
picSize.scale(360, 360, Qt::KeepAspectRatio);
m_ui->boardImg->setFixedSize(picSize);
// must be done before auto binding !
setWikiURL("PikoBLX+Configuration");

View File

@ -6,8 +6,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1680</width>
<height>1050</height>
<width>661</width>
<height>716</height>
</rect>
</property>
<property name="windowTitle">
@ -122,8 +122,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>1650</width>
<height>950</height>
<width>639</width>
<height>628</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout_3">
@ -147,7 +147,7 @@
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
<height>0</height>
</size>
</property>
</spacer>
@ -159,7 +159,7 @@
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>0</width>
<height>20</height>
</size>
</property>
@ -225,66 +225,48 @@
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<width>0</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="2">
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0,0,0">
<item row="0" column="3">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Minimum</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>10</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1" colspan="4" alignment="Qt::AlignHCenter|Qt::AlignVCenter">
<widget class="QLabel" name="lbBoardImage">
<layout class="QGridLayout" name="gridLayout" rowstretch="0,0">
<item row="0" column="1" colspan="2">
<widget class="QSvgWidget" name="boardImg" native="true">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<property name="minimumSize">
<size>
<width>350</width>
<height>350</height>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string/>
</property>
<property name="pixmap">
<pixmap resource="configgadget.qrc">:/configgadget/images/pikoblx_top.png</pixmap>
</property>
<property name="scaledContents">
<bool>false</bool>
</property>
<property name="alignment">
<set>Qt::AlignCenter</set>
</property>
<property name="textInteractionFlags">
<set>Qt::NoTextInteraction</set>
<property name="maximumSize">
<size>
<width>160000</width>
<height>160000</height>
</size>
</property>
</widget>
</item>
<item row="1" column="0">
<item row="1" column="0" colspan="3">
<widget class="CommonHWSettingsWidget" name="commonHWSettings" native="true">
<property name="minimumSize">
<size>
<width>600</width>
<height>20</height>
</size>
</property>
</widget>
</item>
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_2">
<item row="1" column="1">
<widget class="QComboBox" name="cbLEDPort"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="lbUART2">
<property name="text">
@ -295,18 +277,21 @@
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="lbUART1">
<property name="text">
<string>UART1</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
<item row="5" column="1">
<widget class="QComboBox" name="cbPPMPort"/>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="cbUART1"/>
<item row="6" column="0">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="cbUART2">
@ -318,9 +303,42 @@
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="cbUART1"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="lblPPM">
<property name="text">
<string>PPM Port (pad)</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="cbUART3"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="lbUART3">
<property name="text">
<string>Receiver</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lbLEDPort">
<property name="text">
<string>LED Strip</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="0" column="0">
<spacer name="verticalSpacer_3">
<property name="orientation">
@ -337,111 +355,19 @@
</property>
</spacer>
</item>
<item row="4" column="0">
<widget class="QLabel" name="lbUART3">
<item row="1" column="1">
<widget class="QComboBox" name="cbLEDPort"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="lbUART1">
<property name="text">
<string>Receiver</string>
<string>UART1</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="6" column="0">
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QLabel" name="lbLEDPort">
<property name="text">
<string>LED Strip</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="lblPPM">
<property name="text">
<string>PPM Port (pad)</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QComboBox" name="cbPPMPort"/>
</item>
</layout>
</item>
<item row="3" column="0" colspan="6">
<widget class="CommonHWSettingsWidget" name="commonHWSettings" native="true">
<property name="minimumSize">
<size>
<width>20</width>
<height>80</height>
</size>
</property>
</widget>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="5">
<layout class="QGridLayout" name="gridLayout_4">
<item row="0" column="0">
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>75</height>
</size>
</property>
</spacer>
</item>
<item row="3" column="0">
<spacer name="verticalSpacer_6">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Expanding</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>60</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
@ -658,6 +584,11 @@ Beware of not locking yourself out!</string>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>QSvgWidget</class>
<extends>QWidget</extends>
<header>qsvgwidget.h</header>
</customwidget>
<customwidget>
<class>CommonHWSettingsWidget</class>
<extends>QWidget</extends>