QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
APMRemoteSupportComponent.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7import QGroundControl.FactControls
8
9SetupPage {
10 pageComponent: pageComponent
11
12 Component {
13 id: pageComponent
14
15 QGCGroupBox {
16 title: qsTr("Remote Support")
17
18 GridLayout {
19 id: elementsRow
20 columns: 2
21
22 columnSpacing: ScreenTools.defaultFontPixelWidth
23 rowSpacing: ScreenTools.defaultFontPixelWidth
24
25 QGCLabel {
26 visible: QGroundControl.settingsManager.mavlinkSettings.forwardMavlinkAPMSupportHostName.userVisible
27 text: qsTr("Host name:")
28 }
29 FactTextField {
30 id: mavlinkForwardingHostNameField
31 fact: QGroundControl.settingsManager.mavlinkSettings.forwardMavlinkAPMSupportHostName
32 Layout.preferredWidth: ScreenTools.defaultFontPixelWidth * 40
33 }
34 QGCButton {
35 text: qsTr("Connect")
36 enabled: !QGroundControl.linkManager.mavlinkSupportForwardingEnabled
37
38 onPressed: {
39 QGroundControl.linkManager.createMavlinkForwardingSupportLink()
40 }
41 }
42 QGCLabel {
43 visible: QGroundControl.linkManager.mavlinkSupportForwardingEnabled
44 text: qsTr("Forwarding traffic: Mavlink traffic will keep being forwarded until application restarts")
45 }
46 }
47 }
48 }
49}