QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
ADSBServerSettings.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.FactControls
7import QGroundControl.Controls
8
9SettingsPage {
10 property var _settingsManager: QGroundControl.settingsManager
11 property var _adsbSettings: _settingsManager.adsbVehicleManagerSettings
12 property Fact _adsbServerConnectEnabled: _adsbSettings.adsbServerConnectEnabled
13
14 SettingsGroupLayout {
15 Layout.fillWidth: true
16 visible: QGroundControl.settingsManager.adsbVehicleManagerSettings.visible
17
18 FactCheckBoxSlider {
19 Layout.fillWidth: true
20 text: fact.shortDescription
21 fact: _adsbServerConnectEnabled
22 visible: fact.visible
23 }
24 }
25
26 SettingsGroupLayout {
27 Layout.fillWidth: true
28 visible: _adsbSettings.adsbServerHostAddress.visible || _adsbSettings.adsbServerPort.visible
29 enabled: _adsbServerConnectEnabled.rawValue
30
31 LabelledFactTextField {
32 Layout.fillWidth: true
33 label: fact.shortDescription
34 fact: _adsbSettings.adsbServerHostAddress
35 visible: fact.visible
36 }
37
38 LabelledFactTextField {
39 Layout.fillWidth: true
40 label: fact.shortDescription
41 fact: _adsbSettings.adsbServerPort
42 visible: fact.visible
43 }
44 }
45}