@ -37,6 +37,8 @@ QGCView {
@@ -37,6 +37,8 @@ QGCView {
property Fact _appFontPointSize : QGroundControl . settingsManager . appSettings . appFontPointSize
property real _labelWidth : ScreenTools . defaultFontPixelWidth * 15
property real _editFieldWidth : ScreenTools . defaultFontPixelWidth * 30
property Fact _telemPath : QGroundControl . settingsManager . appSettings . telemetrySavePath
property Fact _videoPath : QGroundControl . settingsManager . videoSettings . videoSavePath
readonly property string _requiresRestart : qsTr ( "(Requires Restart)" )
@ -205,26 +207,61 @@ QGCView {
@@ -205,26 +207,61 @@ QGCView {
property Fact _audioMuted : QGroundControl . settingsManager . appSettings . audioMuted
}
/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/ / - - P r o m p t S a v e L o g
/ / - - S a v e t e l e m e t r y l o g
FactCheckBox {
id: promptSaveLog
text: qsTr ( "Prompt to save Flight Data L og after each flight" )
fact: _promp tFlightT elemetrySave
visible: ! ScreenTools . isMobile && _promp tFlightT elemetrySave . visible
text: qsTr ( "Save telemetry l og after each flight" )
fact: _telemetrySave
visible: ! ScreenTools . isMobile && _telemetrySave . visible
property Fact _promp tFlightT elemetrySave : QGroundControl . settingsManager . appSettings . promp tFlightT elemetrySave
property Fact _telemetrySave : QGroundControl . settingsManager . appSettings . telemetrySave
}
/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/ / - - P r o m p t S a v e e v e n i f n o t a r m e d
/ / - - S a v e e v e n i f n o t a r m e d
FactCheckBox {
text: qsTr ( "Prompt to save Flight Data L og even if vehicle was not armed" )
fact: _promp tFlightT elemetrySaveNotArmed
visible: ! ScreenTools . isMobile && _promp tFlightT elemetrySaveNotArmed . visible
text: qsTr ( "Save telemetry l og even if vehicle was not armed" )
fact: _telemetrySaveNotArmed
visible: ! ScreenTools . isMobile && _telemetrySaveNotArmed . visible
enabled: promptSaveLog . checked
property Fact _promp tFlightT elemetrySaveNotArmed : QGroundControl . settingsManager . appSettings . promp tFlightT elemetrySaveNotArmed
property Fact _telemetrySaveNotArmed : QGroundControl . settingsManager . appSettings . telemetrySaveNotArmed
}
/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/ / - - T e l e m e t r y s a v e p a t h
Row {
spacing: ScreenTools . defaultFontPixelWidth
visible: QGroundControl . settingsManager . appSettings . telemetrySavePath . visible
QGCLabel {
anchors.baseline: telemBrowse . baseline
text: qsTr ( "Telemetry save path:" )
enabled: promptSaveLog . checked
}
QGCLabel {
anchors.baseline: telemBrowse . baseline
text: _telemPath . value == "" ? qsTr ( "<not set>" ) : _telemPath . value
enabled: promptSaveLog . checked
}
QGCButton {
id: telemBrowse
text: "Browse"
enabled: promptSaveLog . checked
onClicked: telemDialog . visible = true
FileDialog {
id: telemDialog
title: "Choose a location to save telemetry files."
folder: "file://" + _telemPath . value
selectFolder: true
onAccepted: _telemPath . value = QGroundControl . urlToLocalFile ( telemDialog . fileUrl )
}
}
}
/ / - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
/ / - - C l e a r s e t t i n g s
QGCCheckBox {
@ -329,7 +366,7 @@ QGCView {
@@ -329,7 +366,7 @@ QGCView {
FileDialog {
id: autoloadDirPicker
title: qsTr ( "Choose the location of mission file." )
folder: shortcuts . hom e
folder: "file://" + _autoLoadDir . valu e
selectFolder: true
onAccepted: _autoLoadDir . rawValue = QGroundControl . urlToLocalFile ( autoloadDirPicker . fileUrl )
}
@ -529,26 +566,27 @@ QGCView {
@@ -529,26 +566,27 @@ QGCView {
Row {
spacing: ScreenTools . defaultFontPixelWidth
visible: QGroundControl . settingsManager . videoSettings . videoSavePath . visible && QGroundControl . videoManager . isGStreamer && QGroundControl . videoManager . recordingEnabled
QGCLabel {
anchors.baseline: pathField . baseline
text: qsTr ( "Save P ath:" )
width: _labelWidth
anchors.baseline: videoBrowse . baseline
text: qsTr ( "Save p ath:" )
enabled: promptSaveLog . checked
}
FactTextField {
id: pathField
width: _editFieldWidth
fact: QGroundControl . settingsManager . videoSettings . videoSavePath
QGCLabel {
anchors.baseline: videoBrowse . baseline
text: _videoPath . value == "" ? qsTr ( "<not set>" ) : _videoPath . value
}
QGCButton {
id: videoBrowse
text: "Browse"
onClicked: videoLocationFile Dialog . visible = true
onClicked: videoDialog . visible = true
FileDialog {
id: videoLocationFile Dialog
id: videoDialog
title: "Choose a location to save video files."
folder: shortcuts . hom e
folder: "file://" + _videoPath . valu e
selectFolder: true
onAccepted: QGroundControl . settingsManager . videoSettings . videoSave Path. value = QGroundControl . urlToLocalFile ( videoLocationFile Dialog . fileUrl )
onAccepted: _video Path. value = QGroundControl . urlToLocalFile ( videoDialog . fileUrl )
}
}
}