1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Merge pull request #1898 from srcejon/freq_scanner

Update layout of ADS-B Display Settings Dialog to support small screens
This commit is contained in:
Edouard Griffiths 2023-11-20 10:56:39 +01:00 committed by GitHub
commit f70d4fe64c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,7 +7,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>417</width> <width>417</width>
<height>742</height> <height>467</height>
</rect> </rect>
</property> </property>
<property name="font"> <property name="font">
@ -20,98 +20,22 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QGroupBox" name="groupBox"> <widget class="QTabWidget" name="tabs">
<layout class="QGridLayout" name="gridLayout"> <property name="currentIndex">
<item row="9" column="0"> <number>0</number>
<widget class="QLabel" name="displayNavAids">
<property name="text">
<string>Display NAVAIDs</string>
</property>
</widget>
</item>
<item row="21" column="1">
<widget class="QSpinBox" name="airfieldElevation">
<property name="toolTip">
<string>Barometric altitude reported by aircraft when on airfield surface</string>
</property>
<property name="minimum">
<number>-10000</number>
</property>
<property name="maximum">
<number>30000</number>
</property>
<property name="singleStep">
<number>10</number>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="airportRangeLabel">
<property name="text">
<string>Airport display distance (km)</string>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="heliportsLabel">
<property name="text">
<string>Display heliports</string>
</property>
</widget>
</item>
<item row="12" column="1">
<widget class="QSpinBox" name="timeout">
<property name="toolTip">
<string>How long in seconds after not receiving any frames will an aircraft be removed from the table and map</string>
</property>
<property name="maximum">
<number>1000000</number>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QCheckBox" name="heliports">
<property name="toolTip">
<string>When checked, heliports are displayed on the map</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="22" column="1">
<widget class="QSpinBox" name="transitionAltitude">
<property name="toolTip">
<string>Transition altitude in feet</string>
</property>
<property name="minimum">
<number>2500</number>
</property>
<property name="maximum">
<number>20000</number>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QComboBox" name="airportSize">
<property name="toolTip">
<string>Sets the minimum airport size that will be displayed on the map</string>
</property> </property>
<widget class="QWidget" name="generalTab">
<attribute name="title">
<string>General</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_4">
<item> <item>
<layout class="QFormLayout" name="generalLayout">
<item row="0" column="0">
<widget class="QLabel" name="unitsLabel">
<property name="text"> <property name="text">
<string>Small</string> <string>Units</string>
</property> </property>
</item>
<item>
<property name="text">
<string>Medium</string>
</property>
</item>
<item>
<property name="text">
<string>Large</string>
</property>
</item>
</widget> </widget>
</item> </item>
<item row="0" column="1"> <item row="0" column="1">
@ -131,21 +55,82 @@
</item> </item>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="1" column="0">
<widget class="QLabel" name="mapTypeLabel"> <widget class="QLabel" name="photosLabel">
<property name="text"> <property name="text">
<string>Map type</string> <string>Display aircraft photos</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="16" column="0"> <item row="1" column="1">
<widget class="QCheckBox" name="photos">
<property name="toolTip">
<string>Download and display photos of highlighted aircraft</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="timeoutLabel">
<property name="text">
<string>Aircraft timeout (s)</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QSpinBox" name="timeout">
<property name="toolTip">
<string>How long in seconds after not receiving any frames will an aircraft be removed from the table and map</string>
</property>
<property name="maximum">
<number>1000000</number>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="fontLabel">
<property name="text">
<string>Table font</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QPushButton" name="font">
<property name="toolTip">
<string>Select a font for the table</string>
</property>
<property name="text">
<string>Select...</string>
</property>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="autoResizeTableColumnsLabel"> <widget class="QLabel" name="autoResizeTableColumnsLabel">
<property name="text"> <property name="text">
<string>Resize columns after adding aircraft</string> <string>Resize columns after adding aircraft</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="17" column="1"> <item row="4" column="1">
<widget class="QCheckBox" name="autoResizeTableColumns">
<property name="toolTip">
<string>Resize the columns in the table after an aircraft is added to it</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="displayStatsLabel">
<property name="text">
<string>Display demodulator statistics</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QCheckBox" name="displayStats"> <widget class="QCheckBox" name="displayStats">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Fixed"> <sizepolicy hsizetype="Expanding" vsizetype="Fixed">
@ -161,45 +146,14 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="18" column="0"> <item row="6" column="0">
<widget class="QLabel" name="verboseModelMatchingLabel"> <widget class="QLabel" name="verboseModelMatchingLabel">
<property name="text"> <property name="text">
<string>Log 3D model matching information</string> <string>Log 3D model matching information</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="13" column="1"> <item row="6" column="1">
<widget class="QPushButton" name="font">
<property name="toolTip">
<string>Select a font for the table</string>
</property>
<property name="text">
<string>Select...</string>
</property>
</widget>
</item>
<item row="20" column="0">
<widget class="QLabel" name="checkWXAPIKeyLabel">
<property name="text">
<string>CheckWX API key</string>
</property>
</widget>
</item>
<item row="11" column="0">
<widget class="QLabel" name="photosLabel">
<property name="text">
<string>Display aircraft photos</string>
</property>
</widget>
</item>
<item row="7" column="0">
<widget class="QLabel" name="airspacesLabel">
<property name="text">
<string>Airspaces to display</string>
</property>
</widget>
</item>
<item row="18" column="1">
<widget class="QCheckBox" name="verboseModelMatching"> <widget class="QCheckBox" name="verboseModelMatching">
<property name="toolTip"> <property name="toolTip">
<string>Log information about how aircraft are matched to 3D models</string> <string>Log information about how aircraft are matched to 3D models</string>
@ -209,24 +163,120 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="22" column="0"> <item row="7" column="0">
<widget class="QLabel" name="aviationstackAPIKeyLabel">
<property name="text">
<string>avaitionstack API key</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QLineEdit" name="aviationstackAPIKey">
<property name="toolTip">
<string>aviationstack.com API key for accessing flight information</string>
</property>
</widget>
</item>
<item row="8" column="0">
<widget class="QLabel" name="checkWXAPIKeyLabel">
<property name="text">
<string>CheckWX API key</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QLineEdit" name="checkWXAPIKey">
<property name="toolTip">
<string>checkwxapi.com API key for accessing airport weather (METARs)</string>
</property>
</widget>
</item>
<item row="9" column="0">
<widget class="QLabel" name="airfieldElevationLabel">
<property name="text">
<string>Airfield barometric altitude (ft)</string>
</property>
</widget>
</item>
<item row="9" column="1">
<widget class="QSpinBox" name="airfieldElevation">
<property name="toolTip">
<string>Barometric altitude reported by aircraft when on airfield surface</string>
</property>
<property name="minimum">
<number>-10000</number>
</property>
<property name="maximum">
<number>30000</number>
</property>
<property name="singleStep">
<number>10</number>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="transitionAltitudeLabel"> <widget class="QLabel" name="transitionAltitudeLabel">
<property name="text"> <property name="text">
<string>Transition altitude (ft)</string> <string>Transition altitude (ft)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="1"> <item row="10" column="1">
<widget class="QSpinBox" name="airspaceRange"> <widget class="QSpinBox" name="transitionAltitude">
<property name="toolTip"> <property name="toolTip">
<string>Displays airspace within the specified distance in kilometres from My Position</string> <string>Transition altitude in feet</string>
</property>
<property name="minimum">
<number>2500</number>
</property> </property>
<property name="maximum"> <property name="maximum">
<number>20000</number> <number>20000</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="1"> </layout>
</item>
</layout>
</widget>
<widget class="QWidget" name="mapTab">
<attribute name="title">
<string>Map</string>
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_2">
<item>
<layout class="QFormLayout" name="mapLayout">
<item row="0" column="0">
<widget class="QLabel" name="mapProviderLabel">
<property name="text">
<string>Map provider</string>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QComboBox" name="mapProvider">
<property name="toolTip">
<string>Mapping service</string>
</property>
<item>
<property name="text">
<string>osm</string>
</property>
</item>
<item>
<property name="text">
<string>mapboxgl</string>
</property>
</item>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="mapTypeLabel">
<property name="text">
<string>Map type</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="mapType"> <widget class="QComboBox" name="mapType">
<property name="toolTip"> <property name="toolTip">
<string>Type of map to display</string> <string>Type of map to display</string>
@ -253,45 +303,14 @@
</item> </item>
</widget> </widget>
</item> </item>
<item row="20" column="1"> <item row="2" column="0">
<widget class="QLineEdit" name="checkWXAPIKey"> <widget class="QLabel" name="aircraftMinZoomLabel">
<property name="toolTip">
<string>checkwxapi.com API key for accessing airport weather (METARs)</string>
</property>
</widget>
</item>
<item row="19" column="1">
<widget class="QLineEdit" name="aviationstackAPIKey">
<property name="toolTip">
<string>aviationstack.com API key for accessing flight information</string>
</property>
</widget>
</item>
<item row="19" column="0">
<widget class="QLabel" name="aviationstackAPIKeyLabel">
<property name="text"> <property name="text">
<string>avaitionstack API key</string> <string>Zoom level for aircraft scaling</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="11" column="1"> <item row="2" column="1">
<widget class="QCheckBox" name="photos">
<property name="toolTip">
<string>Download and display photos of highlighted aircraft</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="mapProviderLabel">
<property name="text">
<string>Map provider</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QSpinBox" name="aircraftMinZoom"> <widget class="QSpinBox" name="aircraftMinZoom">
<property name="toolTip"> <property name="toolTip">
<string>When map zoom (0 min zoom - 15 max zoom) is higher than this value, aircraft icon size will be scaled</string> <string>When map zoom (0 min zoom - 15 max zoom) is higher than this value, aircraft icon size will be scaled</string>
@ -301,14 +320,77 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="13" column="0"> <item row="3" column="0">
<widget class="QLabel" name="fontLabel"> <widget class="QLabel" name="airportSizeLabel">
<property name="text"> <property name="text">
<string>Table font</string> <string>Display airports with size</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="7" column="1"> <item row="3" column="1">
<widget class="QComboBox" name="airportSize">
<property name="toolTip">
<string>Sets the minimum airport size that will be displayed on the map</string>
</property>
<item>
<property name="text">
<string>Small</string>
</property>
</item>
<item>
<property name="text">
<string>Medium</string>
</property>
</item>
<item>
<property name="text">
<string>Large</string>
</property>
</item>
</widget>
</item>
<item row="4" column="0">
<widget class="QLabel" name="heliportsLabel">
<property name="text">
<string>Display heliports</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QCheckBox" name="heliports">
<property name="toolTip">
<string>When checked, heliports are displayed on the map</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="airportRangeLabel">
<property name="text">
<string>Airport display distance (km)</string>
</property>
</widget>
</item>
<item row="5" column="1">
<widget class="QSpinBox" name="airportRange">
<property name="toolTip">
<string>Displays airports within the specified distance in kilometres from My Position</string>
</property>
<property name="maximum">
<number>20000</number>
</property>
</widget>
</item>
<item row="6" column="0">
<widget class="QLabel" name="airspacesLabel">
<property name="text">
<string>Airspaces to display</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QListWidget" name="airspaces"> <widget class="QListWidget" name="airspaces">
<property name="toolTip"> <property name="toolTip">
<string>Airspace categories to display</string> <string>Airspace categories to display</string>
@ -465,21 +547,31 @@
</item> </item>
</widget> </widget>
</item> </item>
<item row="8" column="0"> <item row="7" column="0">
<widget class="QLabel" name="airspaceRangeLabel"> <widget class="QLabel" name="airspaceRangeLabel">
<property name="text"> <property name="text">
<string>Airspace display distance (km)</string> <string>Airspace display distance (km)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0"> <item row="7" column="1">
<widget class="QLabel" name="unitsLabel"> <widget class="QSpinBox" name="airspaceRange">
<property name="text"> <property name="toolTip">
<string>Units</string> <string>Displays airspace within the specified distance in kilometres from My Position</string>
</property>
<property name="maximum">
<number>20000</number>
</property> </property>
</widget> </widget>
</item> </item>
<item row="9" column="1"> <item row="8" column="0">
<widget class="QLabel" name="displayNavAids">
<property name="text">
<string>Display NAVAIDs</string>
</property>
</widget>
</item>
<item row="8" column="1">
<widget class="QCheckBox" name="navAids"> <widget class="QCheckBox" name="navAids">
<property name="toolTip"> <property name="toolTip">
<string>Display NAVAIDs such as VORs and NDBs</string> <string>Display NAVAIDs such as VORs and NDBs</string>
@ -489,86 +581,7 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="9" column="1">
<widget class="QLabel" name="airportSizeLabel">
<property name="text">
<string>Display airports with size</string>
</property>
</widget>
</item>
<item row="6" column="1">
<widget class="QSpinBox" name="airportRange">
<property name="toolTip">
<string>Displays airports within the specified distance in kilometres from My Position</string>
</property>
<property name="maximum">
<number>20000</number>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="mapProvider">
<property name="toolTip">
<string>Mapping service</string>
</property>
<item>
<property name="text">
<string>osm</string>
</property>
</item>
<item>
<property name="text">
<string>mapboxgl</string>
</property>
</item>
</widget>
</item>
<item row="16" column="1">
<widget class="QCheckBox" name="autoResizeTableColumns">
<property name="toolTip">
<string>Resize the columns in the table after an aircraft is added to it</string>
</property>
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="12" column="0">
<widget class="QLabel" name="timeoutLabel">
<property name="text">
<string>Aircraft timeout (s)</string>
</property>
</widget>
</item>
<item row="21" column="0">
<widget class="QLabel" name="airfieldElevationLabel">
<property name="text">
<string>Airfield barometric altitude (ft)</string>
</property>
</widget>
</item>
<item row="17" column="0">
<widget class="QLabel" name="displayStatsLabel">
<property name="text">
<string>Display demodulator statistics</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QLabel" name="aircraftMinZoomLabel">
<property name="text">
<string>Zoom level for aircraft scaling</string>
</property>
</widget>
</item>
<item row="10" column="0">
<widget class="QLabel" name="atcCallsignsLabel">
<property name="text">
<string>Use ATC callsigns on map</string>
</property>
</widget>
</item>
<item row="10" column="1">
<widget class="QCheckBox" name="atcCallsigns"> <widget class="QCheckBox" name="atcCallsigns">
<property name="toolTip"> <property name="toolTip">
<string>Use ATC callsigns (SPEEDBIRD) rather than ICAO (BAW) for aircraft labels on map</string> <string>Use ATC callsigns (SPEEDBIRD) rather than ICAO (BAW) for aircraft labels on map</string>
@ -578,7 +591,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="9" column="0">
<widget class="QLabel" name="atcCallsignsLabel">
<property name="text">
<string>Use ATC callsigns on map</string>
</property>
</widget>
</item>
</layout> </layout>
</item>
</layout>
</widget>
</widget> </widget>
</item> </item>
<item> <item>
@ -593,26 +616,6 @@
</item> </item>
</layout> </layout>
</widget> </widget>
<tabstops>
<tabstop>units</tabstop>
<tabstop>mapProvider</tabstop>
<tabstop>mapType</tabstop>
<tabstop>airportSize</tabstop>
<tabstop>heliports</tabstop>
<tabstop>airportRange</tabstop>
<tabstop>airspaces</tabstop>
<tabstop>airspaceRange</tabstop>
<tabstop>navAids</tabstop>
<tabstop>photos</tabstop>
<tabstop>timeout</tabstop>
<tabstop>font</tabstop>
<tabstop>autoResizeTableColumns</tabstop>
<tabstop>displayStats</tabstop>
<tabstop>verboseModelMatching</tabstop>
<tabstop>aviationstackAPIKey</tabstop>
<tabstop>checkWXAPIKey</tabstop>
<tabstop>airfieldElevation</tabstop>
</tabstops>
<resources/> <resources/>
<connections> <connections>
<connection> <connection>