QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMSupportForwardingIndicator.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Layouts
3
4import QGroundControl
5import QGroundControl.Controls
6
7//-------------------------------------------------------------------------
8//-- Telemetry RSSI
9Item {
10 id: control
11 anchors.top: parent.top
12 anchors.bottom: parent.bottom
13 width: forwardingSupportIcon.width * 1.1
14
15 property bool showIndicator: QGroundControl.linkManager.mavlinkSupportForwardingEnabled
16
17 Component {
18 id: forwardingSupportInfoPage
19
20 ToolIndicatorPage {
21 contentComponent: SettingsGroupLayout {
22 QGCLabel { text: qsTr("Mavlink traffic is being forwarded to a support server") }
23
24 LabelledLabel {
25 label: qsTr("Server name:")
26 labelText: QGroundControl.settingsManager.mavlinkSettings.forwardMavlinkAPMSupportHostName.value
27 }
28 }
29 }
30 }
31
32 Image {
33 id: forwardingSupportIcon
34 anchors.top: parent.top
35 anchors.bottom: parent.bottom
36 width: height
37 sourceSize.height: height
38 source: "/qmlimages/ForwardingSupportIconGreen.svg"
39 fillMode: Image.PreserveAspectFit
40 }
41
42 MouseArea {
43 anchors.fill: parent
44 onClicked: mainWindow.showIndicatorDrawer(forwardingSupportInfoPage, control)
45 }
46}