1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-03 11:24:10 +01:00

GPS Viewer: Try to improve scaling a bit, add split thing between log

and main view. Hope noone dislikes the changes ;) QT Layouts are fiddly!
:) Kinda a work in progress still.


git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1566 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-09-08 23:20:31 +00:00 committed by cranphin
parent 6b8d9aa3d1
commit 38f0cffede

View File

@ -13,504 +13,376 @@
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="rootVerticalLayout">
<property name="margin">
<number>9</number>
</property>
<item> <item>
<layout class="QHBoxLayout" name="horizontalLayout"> <widget class="QSplitter" name="splitter">
<item> <property name="orientation">
<widget class="QFrame" name="frame_2"> <enum>Qt::Vertical</enum>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Expanding" vsizetype="Expanding"> <widget class="QWidget" name="layoutWidget">
<horstretch>0</horstretch> <layout class="QVBoxLayout" name="verticalLayout_2">
<verstretch>0</verstretch> <item>
</sizepolicy> <layout class="QHBoxLayout" name="horizontalLayout1">
</property> <item>
<property name="minimumSize"> <layout class="QVBoxLayout" name="infoVerticalLayout" stretch="0,0,0,0,0,0,0,1">
<size> <item>
<width>300</width> <layout class="QHBoxLayout" name="infoHorizontalLayout1" stretch="0,1,1,1">
<height>120</height> <item>
</size> <widget class="QLabel" name="lat_label">
</property> <property name="text">
<property name="maximumSize"> <string>Coord:</string>
<size> </property>
<width>400</width> </widget>
<height>200</height> </item>
</size> <item>
</property> <widget class="QLabel" name="coord_value">
<property name="frameShape"> <property name="text">
<enum>QFrame::StyledPanel</enum> <string>Unknown</string>
</property> </property>
<property name="frameShadow"> </widget>
<enum>QFrame::Raised</enum> </item>
</property> <item>
<layout class="QVBoxLayout" name="verticalLayout_3"> <widget class="QLabel" name="coord_value_2">
<item> <property name="text">
<layout class="QHBoxLayout" name="horizontalLayout_3"> <string>Unknown</string>
<item> </property>
<widget class="QLabel" name="lat_label"> </widget>
<property name="sizePolicy"> </item>
<sizepolicy hsizetype="Minimum" vsizetype="Preferred"> <item>
<horstretch>0</horstretch> <widget class="QLabel" name="coord_value_3">
<verstretch>0</verstretch> <property name="text">
</sizepolicy> <string>Unknown</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="infoHorizontalLayout2" stretch="0,1,0,1">
<item>
<widget class="QLabel" name="speed_label">
<property name="text">
<string>Speed:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="speed_value">
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="bear_label">
<property name="text">
<string>Heading:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="bear_value">
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line1">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="infoHorizontalLayout3" stretch="0,1">
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>H / V / P DOP:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="dop_value">
<property name="text">
<string>0 / 0 / 0</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="infoHorizontalLayout4" stretch="0,1">
<item>
<widget class="QLabel" name="status_label">
<property name="text">
<string>Sats Used:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="status_value">
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="infoHorizontalLayout5" stretch="0,1,0">
<item>
<widget class="QLabel" name="fix_label">
<property name="text">
<string>Fix Type:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="fix_value">
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="time_value">
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Ignored</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_5" stretch="0,1">
<item>
<widget class="GpsConstellationWidget" name="gpsSky">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>64</width>
<height>64</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>250</height>
</size>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
</widget>
</item>
<item>
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Ignored</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>40</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout2" stretch="0,1,0,0">
<item>
<widget class="QFrame" name="frame">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Minimum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>60</height>
</size>
</property>
<property name="frameShape">
<enum>QFrame::StyledPanel</enum>
</property>
<property name="frameShadow">
<enum>QFrame::Raised</enum>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<property name="topMargin">
<number>0</number>
</property> </property>
<property name="text"> <property name="bottomMargin">
<string>Coord:</string> <number>0</number>
</property> </property>
</widget>
</item>
<item>
<widget class="QLabel" name="coord_value">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="coord_value_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="coord_value_3">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_4">
<item>
<widget class="QLabel" name="speed_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Speed:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="speed_value">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="bear_label">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Heading:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="bear_value">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_5">
<item>
<widget class="QLabel" name="label">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>H / V / P DOP:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="dop_value">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>0 / 0 / 0</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<item>
<widget class="QLabel" name="fix_label_2">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Sats Used:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="status_value">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
</layout>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_7">
<item>
<widget class="QLabel" name="fix_label">
<property name="text">
<string>Fix Type:</string>
</property>
</widget>
</item>
<item>
<widget class="QLabel" name="fix_value">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text">
<string>Unknown</string>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_5">
<item> <item>
<widget class="QLabel" name="time_value"> <widget class="QPushButton" name="connectButton">
<property name="font">
<font>
<weight>50</weight>
<bold>false</bold>
</font>
</property>
<property name="text"> <property name="text">
<string>Unknown</string> <string>Connect</string>
</property>
</widget>
</item>
<item>
<widget class="QPushButton" name="disconnectButton">
<property name="text">
<string>Disconnect</string>
</property> </property>
</widget> </widget>
</item> </item>
</layout> </layout>
</item> </widget>
</layout> </item>
</item> <item>
</layout> <spacer name="horizontalSpacer">
</widget> <property name="orientation">
</item> <enum>Qt::Horizontal</enum>
<item> </property>
<widget class="GpsConstellationWidget" name="gpsSky"> <property name="sizeType">
<property name="sizePolicy"> <enum>QSizePolicy::Ignored</enum>
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> </property>
<horstretch>0</horstretch> <property name="sizeHint" stdset="0">
<verstretch>0</verstretch> <size>
</sizepolicy> <width>40</width>
</property> <height>20</height>
<property name="minimumSize"> </size>
<size> </property>
<width>64</width> </spacer>
<height>64</height> </item>
</size> <item>
</property> <widget class="QGraphicsView" name="flatEarth">
<property name="maximumSize"> <property name="sizePolicy">
<size> <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<width>250</width> <horstretch>0</horstretch>
<height>250</height> <verstretch>0</verstretch>
</size> </sizepolicy>
</property> </property>
<property name="sizeIncrement"> <property name="maximumSize">
<size> <size>
<width>10</width> <width>191</width>
<height>10</height> <height>95</height>
</size> </size>
</property> </property>
<property name="baseSize"> <property name="acceptDrops">
<size> <bool>false</bool>
<width>120</width> </property>
<height>120</height> <property name="toolTip">
</size> <string extracomment="Location of GCS on the Earth"/>
</property> </property>
</widget> <property name="verticalScrollBarPolicy">
</item> <enum>Qt::ScrollBarAlwaysOff</enum>
</layout> </property>
</item> <property name="horizontalScrollBarPolicy">
<item> <enum>Qt::ScrollBarAlwaysOff</enum>
<layout class="QHBoxLayout" name="horizontalLayout_2"> </property>
<item> <property name="optimizationFlags">
<widget class="QFrame" name="frame"> <set>QGraphicsView::DontAdjustForAntialiasing</set>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Minimum" vsizetype="Minimum"> </widget>
<horstretch>0</horstretch> </item>
<verstretch>0</verstretch> <item>
</sizepolicy> <widget class="QGraphicsView" name="graphicsView">
</property> <property name="sizePolicy">
<property name="minimumSize"> <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<size> <horstretch>0</horstretch>
<width>60</width> <verstretch>0</verstretch>
<height>60</height> </sizepolicy>
</size> </property>
</property> <property name="maximumSize">
<property name="frameShape"> <size>
<enum>QFrame::StyledPanel</enum> <width>250</width>
</property> <height>95</height>
<property name="frameShadow"> </size>
<enum>QFrame::Raised</enum> </property>
</property> </widget>
<layout class="QVBoxLayout" name="verticalLayout"> </item>
<item> </layout>
<widget class="QPushButton" name="connectButton"> </item>
<property name="text"> </layout>
<string>Connect</string> </widget>
</property> <widget class="QGroupBox" name="dataStreamGroupBox">
</widget> <property name="title">
</item> <string>GPS Data Stream</string>
<item>
<widget class="QPushButton" name="disconnectButton">
<property name="text">
<string>Disconnect</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGraphicsView" name="flatEarth">
<property name="sizePolicy">
<sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>191</width>
<height>95</height>
</size>
</property>
<property name="baseSize">
<size>
<width>191</width>
<height>95</height>
</size>
</property>
<property name="acceptDrops">
<bool>false</bool>
</property>
<property name="toolTip">
<string extracomment="Location of GCS on the Earth"/>
</property>
<property name="verticalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="horizontalScrollBarPolicy">
<enum>Qt::ScrollBarAlwaysOff</enum>
</property>
<property name="optimizationFlags">
<set>QGraphicsView::DontAdjustForAntialiasing</set>
</property>
</widget>
</item>
<item>
<widget class="QGraphicsView" name="graphicsView">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="maximumSize">
<size>
<width>250</width>
<height>95</height>
</size>
</property>
</widget>
</item>
</layout>
</item>
<item>
<widget class="QGroupBox" name="dataStreamGroupBox">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>100</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>16777215</width>
<height>250</height>
</size>
</property>
<property name="title">
<string>GPS Data Stream</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_4" stretch="0">
<property name="margin">
<number>0</number>
</property> </property>
<item> <layout class="QVBoxLayout" name="verticalLayout_4">
<widget class="QTextBrowser" name="textBrowser"> <property name="margin">
<property name="sizePolicy"> <number>0</number>
<sizepolicy hsizetype="Minimum" vsizetype="Ignored"> </property>
<horstretch>0</horstretch> <item>
<verstretch>0</verstretch> <widget class="QTextBrowser" name="textBrowser">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Expanding" vsizetype="Ignored">
<property name="font"> <horstretch>0</horstretch>
<font> <verstretch>0</verstretch>
<family>Courier New</family> </sizepolicy>
<pointsize>8</pointsize> </property>
</font> <property name="minimumSize">
</property> <size>
<property name="verticalScrollBarPolicy"> <width>0</width>
<enum>Qt::ScrollBarAlwaysOn</enum> <height>50</height>
</property> </size>
<property name="lineWrapMode"> </property>
<enum>QTextEdit::WidgetWidth</enum> <property name="verticalScrollBarPolicy">
</property> <enum>Qt::ScrollBarAlwaysOn</enum>
<property name="acceptRichText"> </property>
<bool>false</bool> <property name="lineWrapMode">
</property> <enum>QTextEdit::WidgetWidth</enum>
</widget> </property>
</item> <property name="acceptRichText">
</layout> <bool>false</bool>
</property>
</widget>
</item>
</layout>
</widget>
</widget> </widget>
</item> </item>
</layout> </layout>