Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
dd46a2e2
Commit
dd46a2e2
authored
Mar 26, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
General Settings tweaks.
parent
5f087987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
62 deletions
+55
-62
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+55
-62
No files found.
src/ui/preferences/GeneralSettings.qml
View file @
dd46a2e2
...
...
@@ -140,7 +140,7 @@ QGCView {
//-----------------------------------------------------------------
//-- Base UI Font Point Size
Row
{
visible
:
_appFontPointSize
.
visibl
e
visible
:
_appFontPointSize
?
_appFontPointSize
.
visible
:
fals
e
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
id
:
baseFontLabel
...
...
@@ -189,15 +189,56 @@ QGCView {
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
indoorPalette
.
visible
QGCLabel
{
anchors.baseline
:
paletteCombo
.
baseline
text
:
qsTr
(
"
Color scheme:
"
)
text
:
qsTr
(
"
Color scheme:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
}
FactComboBox
{
width
:
_editFieldWidth
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
indoorPalette
indexModel
:
false
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
//-----------------------------------------------------------------
//-- Map Provider
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_mapProvider
.
visible
QGCLabel
{
text
:
qsTr
(
"
Map Provider:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
}
FactComboBox
{
width
:
_editFieldWidth
fact
:
_mapProvider
indexModel
:
false
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
//-----------------------------------------------------------------
//-- Map Type
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_mapType
.
visible
QGCLabel
{
text
:
qsTr
(
"
Map Type:
"
)
width
:
_labelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
}
FactComboBox
{
id
:
paletteCombo
id
:
mapTypes
width
:
_editFieldWidth
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
indoorPalett
e
fact
:
_mapTyp
e
indexModel
:
false
anchors.verticalCenter
:
parent
.
verticalCenter
Connections
{
target
:
QGroundControl
.
settingsManager
.
flightMapSettings
onMapTypeChanged
:
{
mapTypes
.
model
=
_mapType
.
enumStrings
}
}
}
}
//-----------------------------------------------------------------
...
...
@@ -206,10 +247,8 @@ QGCView {
text
:
qsTr
(
"
Mute all audio output
"
)
fact
:
_audioMuted
visible
:
_audioMuted
.
visible
property
Fact
_audioMuted
:
QGroundControl
.
settingsManager
.
appSettings
.
audioMuted
}
//-----------------------------------------------------------------
//-- Save telemetry log
FactCheckBox
{
...
...
@@ -217,10 +256,8 @@ QGCView {
text
:
qsTr
(
"
Save telemetry log after each flight
"
)
fact
:
_telemetrySave
visible
:
!
ScreenTools
.
isMobile
&&
_telemetrySave
.
visible
property
Fact
_telemetrySave
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySave
}
//-----------------------------------------------------------------
//-- Save even if not armed
FactCheckBox
{
...
...
@@ -228,10 +265,8 @@ QGCView {
fact
:
_telemetrySaveNotArmed
visible
:
!
ScreenTools
.
isMobile
&&
_telemetrySaveNotArmed
.
visible
enabled
:
promptSaveLog
.
checked
property
Fact
_telemetrySaveNotArmed
:
QGroundControl
.
settingsManager
.
appSettings
.
telemetrySaveNotArmed
}
//-----------------------------------------------------------------
//-- Telemetry save path
Row
{
...
...
@@ -296,9 +331,10 @@ QGCView {
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCCheckBox
{
id
:
announcePercentCheckbox
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
Announce battery lower than:
"
)
checked
:
_percentRemainingAnnounce
.
value
!=
0
checked
:
_percentRemainingAnnounce
.
value
!==
0
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.65
anchors.verticalCenter
:
parent
.
verticalCenter
onClicked
:
{
if
(
checked
)
{
_percentRemainingAnnounce
.
value
=
_percentRemainingAnnounce
.
defaultValueString
...
...
@@ -310,6 +346,7 @@ QGCView {
FactTextField
{
id
:
announcePercent
fact
:
_percentRemainingAnnounce
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.35
enabled
:
announcePercentCheckbox
.
checked
anchors.verticalCenter
:
parent
.
verticalCenter
}
...
...
@@ -329,12 +366,15 @@ QGCView {
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
QGroundControl
.
settingsManager
.
appSettings
.
defaultMissionItemAltitude
.
visible
QGCLabel
{
anchors.baseline
:
defaultItemAltitudeField
.
baseline
text
:
qsTr
(
"
Default mission item altitude:
"
)
anchors.verticalCenter
:
parent
.
verticalCenter
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.65
text
:
qsTr
(
"
Default mission altitude:
"
)
}
FactTextField
{
id
:
defaultItemAltitudeField
width
:
(
_labelWidth
+
_editFieldWidth
)
*
0.35
fact
:
QGroundControl
.
settingsManager
.
appSettings
.
defaultMissionItemAltitude
anchors.verticalCenter
:
parent
.
verticalCenter
}
}
//-----------------------------------------------------------------
...
...
@@ -377,53 +417,6 @@ QGCView {
}
}
}
//-----------------------------------------------------------------
//-- Map Provider
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_mapProvider
.
visible
QGCLabel
{
anchors.baseline
:
mapProviders
.
baseline
text
:
qsTr
(
"
Map Provider:
"
)
width
:
_labelWidth
}
FactComboBox
{
id
:
mapProviders
width
:
_editFieldWidth
fact
:
_mapProvider
indexModel
:
false
}
}
//-----------------------------------------------------------------
//-- Map Type
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
visible
:
_mapType
.
visible
QGCLabel
{
anchors.baseline
:
mapTypes
.
baseline
text
:
qsTr
(
"
Map Type:
"
)
width
:
_labelWidth
}
FactComboBox
{
id
:
mapTypes
width
:
_editFieldWidth
fact
:
_mapType
indexModel
:
false
Connections
{
target
:
QGroundControl
.
settingsManager
.
flightMapSettings
onMapTypeChanged
:
{
mapTypes
.
model
=
_mapType
.
enumStrings
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment