QGroundControl
Ground Control Station for MAVLink Drones
Loading...
Searching...
No Matches
LogReplaySettings.qml
Go to the documentation of this file.
1import QtQuick
2import QtQuick.Controls
3import QtQuick.Layouts
4
5import QGroundControl
6import QGroundControl.Controls
7
8RowLayout {
9 spacing: _colSpacing
10
11 function saveSettings() {
12 console.log(logField.text)
13 subEditConfig.filename = logField.text
14 }
15
16 QGCLabel { text: qsTr("Log File") }
17
18 QGCTextField {
19 id: logField
20 Layout.preferredWidth: _secondColumnWidth
21 text: subEditConfig.filename
22 }
23
24 QGCButton {
25 text: qsTr("Browse")
26 onClicked: filePicker.openForLoad()
27 }
28
29 QGCFileDialog {
30 id: filePicker
31 title: qsTr("Select Telemetery Log")
32 nameFilters: [ qsTr("Telemetry Logs (*.%1)").arg(_logFileExtension), qsTr("All Files (*)") ]
33 folder: QGroundControl.settingsManager.appSettings.telemetrySavePath
34
35 property string _logFileExtension: QGroundControl.settingsManager.appSettings.telemetryFileExtension
36
37 onAcceptedForLoad: (file) => {
38 logField.text = file
39 close()
40 }
41 }
42}