6import QGroundControl.Controls
7import QGroundControl.FactControls
10 Layout.fillWidth: true
11 heading: qsTr("Server")
12 visible: _ntrip.ntripServerHostAddress.userVisible || _ntrip.ntripServerPort.userVisible ||
13 _ntrip.ntripUsername.userVisible || _ntrip.ntripPassword.userVisible
15 property var _ntrip: QGroundControl.settingsManager.ntripSettings
16 property bool _isActive: _ntrip.ntripServerConnectEnabled.rawValue
17 property real _textFieldWidth: ScreenTools.defaultFontPixelWidth * 30
19 LabelledFactTextField {
20 Layout.fillWidth: true
21 textFieldPreferredWidth: _textFieldWidth
22 fact: _ntrip.ntripServerHostAddress
23 visible: fact.userVisible
27 LabelledFactTextField {
28 Layout.fillWidth: true
29 textFieldPreferredWidth: _textFieldWidth
30 fact: _ntrip.ntripServerPort
31 visible: fact.userVisible
35 LabelledFactTextField {
36 Layout.fillWidth: true
37 textFieldPreferredWidth: _textFieldWidth
38 label: fact.shortDescription
39 fact: _ntrip.ntripUsername
40 visible: fact.userVisible
45 Layout.fillWidth: true
46 visible: _ntrip.ntripPassword.userVisible
47 spacing: ScreenTools.defaultFontPixelWidth * 0.5
49 LabelledFactTextField {
51 Layout.fillWidth: true
52 textFieldPreferredWidth: _textFieldWidth
53 label: fact.shortDescription
54 fact: _ntrip.ntripPassword
55 textField.echoMode: _showPassword ? TextInput.Normal : TextInput.Password
58 property bool _showPassword: false
62 text: passwordField._showPassword ? qsTr("Hide") : qsTr("Show")
63 onClicked: passwordField._showPassword = !passwordField._showPassword
64 Layout.alignment: Qt.AlignBottom
69 Layout.fillWidth: true
70 text: fact.shortDescription
71 fact: _ntrip.ntripUseTls
72 visible: fact.userVisible