1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

Make GPS options panel more pretty.

And more usefull for coming IP stuff :)


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1506 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-09-02 18:36:09 +00:00 committed by cranphin
parent d3bb821e82
commit f8873b9a18

View File

@ -1,185 +1,251 @@
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>GpsDisplayGadgetOptionsPage</class>
<widget class="QWidget" name="GpsDisplayGadgetOptionsPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>587</width>
<height>359</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="widget" native="true">
<widget class="QLabel" name="label">
<property name="geometry">
<rect>
<x>10</x>
<y>10</y>
<width>46</width>
<height>13</height>
</rect>
</property>
<property name="text">
<string>Mode:</string>
</property>
</widget>
<widget class="QComboBox" name="connectionMode">
<property name="geometry">
<rect>
<x>50</x>
<y>1</y>
<width>101</width>
<height>31</height>
</rect>
</property>
</widget>
<widget class="Line" name="line">
<property name="geometry">
<rect>
<x>160</x>
<y>40</y>
<width>118</width>
<height>3</height>
</rect>
</property>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
<widget class="QWidget" name="formLayoutWidget">
<property name="geometry">
<rect>
<x>10</x>
<y>73</y>
<width>221</width>
<height>261</height>
</rect>
</property>
<layout class="QFormLayout" name="formLayout">
<property name="fieldGrowthPolicy">
<enum>QFormLayout::AllNonFixedFieldsGrow</enum>
</property>
<item row="0" column="0">
<widget class="QLabel" name="portLabel">
<property name="text">
<string>Port:</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="portComboBox"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="portSpeedLabel">
<property name="text">
<string>Port Speed:</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="portSpeedComboBox"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="flowControlLabel">
<property name="text">
<string>Flow Control:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="flowControlComboBox"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="dataBitsLabel">
<property name="text">
<string>Data Bits:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="dataBitsComboBox"/>
</item>
<item row="4" column="0">
<widget class="QLabel" name="stopBitsLabel">
<property name="text">
<string>Stop Bits:</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="stopBitsComboBox"/>
</item>
<item row="5" column="0">
<widget class="QLabel" name="parityLabel">
<property name="text">
<string>Parity:</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QComboBox" name="parityComboBox"/>
</item>
<item row="6" column="0">
<widget class="QLabel" name="timeoutLabel">
<property name="text">
<string>Timeout(ms):</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="timeoutSpinBox">
<property name="maximum">
<number>100000</number>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QLabel" name="label_3">
<property name="geometry">
<rect>
<x>280</x>
<y>50</y>
<width>111</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>IP Connection</string>
</property>
</widget>
<widget class="QLabel" name="label_2">
<property name="geometry">
<rect>
<x>60</x>
<y>50</y>
<width>125</width>
<height>17</height>
</rect>
</property>
<property name="text">
<string>Serial Connection</string>
</property>
</widget>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
</ui>
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>GpsDisplayGadgetOptionsPage</class>
<widget class="QWidget" name="GpsDisplayGadgetOptionsPage">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>587</width>
<height>359</height>
</rect>
</property>
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle">
<string>Form</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<property name="margin">
<number>0</number>
</property>
<item row="0" column="0">
<widget class="QWidget" name="widget" native="true">
<layout class="QVBoxLayout" name="verticalLayout_4">
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>Mode:</string>
</property>
</widget>
</item>
<item>
<widget class="QComboBox" name="connectionMode"/>
</item>
<item>
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<widget class="QStackedWidget" name="stackedWidget">
<property name="currentIndex">
<number>0</number>
</property>
<widget class="QWidget" name="serialPage">
<layout class="QVBoxLayout" name="verticalLayout_2" stretch="0,1">
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="serialLabel">
<property name="text">
<string>Serial Connection</string>
</property>
</widget>
</item>
<item>
<layout class="QFormLayout" name="serialFormLayout">
<item row="0" column="1">
<widget class="QComboBox" name="portComboBox"/>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="portSpeedComboBox"/>
</item>
<item row="3" column="0">
<widget class="QLabel" name="dataBitsLabel">
<property name="text">
<string>Data Bits:</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="stopBitsLabel">
<property name="text">
<string>Stop Bits:</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="parityLabel">
<property name="text">
<string>Parity:</string>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="timeoutLabel">
<property name="text">
<string>Timeout(ms):</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QComboBox" name="flowControlComboBox"/>
</item>
<item row="3" column="1">
<widget class="QComboBox" name="dataBitsComboBox"/>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="stopBitsComboBox"/>
</item>
<item row="0" column="0">
<widget class="QLabel" name="portLabel">
<property name="text">
<string>Port:</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="portSpeedLabel">
<property name="text">
<string>Port Speed:</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QComboBox" name="parityComboBox"/>
</item>
<item row="2" column="0">
<widget class="QLabel" name="flowControlLabel">
<property name="text">
<string>Flow Control:</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="timeoutSpinBox">
<property name="maximum">
<number>100000</number>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="ipPage">
<layout class="QVBoxLayout" name="verticalLayout_3" stretch="0,1">
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="ipLabel">
<property name="text">
<string>IP Connection</string>
</property>
</widget>
</item>
<item>
<layout class="QFormLayout" name="ipFormLayout">
<item row="0" column="0">
<widget class="QLabel" name="ipHostLabel">
<property name="text">
<string>Host</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLineEdit" name="ipHostLineEdit"/>
</item>
<item row="1" column="0">
<widget class="QLabel" name="ipPortLabel">
<property name="text">
<string>Port</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="ipPortLineEdit"/>
</item>
</layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="telemetryPage">
<layout class="QVBoxLayout" name="verticalLayout_5">
<property name="margin">
<number>0</number>
</property>
<item>
<widget class="QLabel" name="telemetryLabel">
<property name="text">
<string>Telemetry</string>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>276</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</widget>
</item>
</layout>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections>
<connection>
<sender>connectionMode</sender>
<signal>currentIndexChanged(int)</signal>
<receiver>stackedWidget</receiver>
<slot>setCurrentIndex(int)</slot>
<hints>
<hint type="sourcelabel">
<x>77</x>
<y>16</y>
</hint>
<hint type="destinationlabel">
<x>293</x>
<y>194</y>
</hint>
</hints>
</connection>
</connections>
</ui>