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
fd091a62
Commit
fd091a62
authored
Jun 06, 2016
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small screen updates
parent
d69e6089
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
70 additions
and
58 deletions
+70
-58
GeneralSettings.qml
src/ui/preferences/GeneralSettings.qml
+70
-58
No files found.
src/ui/preferences/GeneralSettings.qml
View file @
fd091a62
...
...
@@ -28,8 +28,7 @@ Rectangle {
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
property
Fact
_percentRemainingAnnounce
:
QGroundControl
.
multiVehicleManager
.
disconnectedVehicle
.
battery
.
percentRemainingAnnounce
property
real
_firstLabelWidth
:
ScreenTools
.
defaultFontPixelWidth
*
16
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
22
property
real
_editFieldWidth
:
ScreenTools
.
defaultFontPixelWidth
*
15
QGCPalette
{
id
:
qgcPal
}
...
...
@@ -48,11 +47,13 @@ Rectangle {
text
:
qsTr
(
"
General Settings
"
)
font.pointSize
:
ScreenTools
.
mediumFontPointSize
}
Rectangle
{
height
:
1
width
:
parent
.
width
color
:
qgcPal
.
button
color
:
qgcPal
.
text
}
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
/
2
width
:
parent
.
width
...
...
@@ -62,63 +63,63 @@ Rectangle {
//-- Base UI Font Point Size
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
width
:
_firstLabelWidth
id
:
baseFontLabel
text
:
qsTr
(
"
Base UI font size:
"
)
anchors.verticalCenter
:
parent
.
verticalCenter
}
Row
{
id
:
baseFontRow
spacing
:
ScreenTools
.
defaultFontPixelWidth
/
2
anchors.verticalCenter
:
parent
.
verticalCenter
Rectangle
{
width
:
baseFontEdit
.
height
height
:
width
color
:
qgcPal
.
button
QGCLabel
{
QGCButton
{
id
:
decrementButton
width
:
height
height
:
baseFontEdit
.
height
text
:
"
-
"
anchors.centerIn
:
parent
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
if
(
ScreenTools
.
defaultFontPointSize
>
6
)
if
(
ScreenTools
.
defaultFontPointSize
>
6
)
{
QGroundControl
.
baseFontPointSize
=
QGroundControl
.
baseFontPointSize
-
1
}
}
}
QGCTextField
{
id
:
baseFontEdit
width
:
_editFieldWidth
-
(
height
*
2
)
width
:
_editFieldWidth
-
(
decrementButton
.
width
*
2
)
-
(
baseFontRow
.
spacing
*
2
)
text
:
QGroundControl
.
baseFontPointSize
showUnits
:
true
unitsLabel
:
"
pt
"
maximumLength
:
6
validator
:
DoubleValidator
{
bottom
:
6.0
;
top
:
48.0
;
decimals
:
2
;}
onEditingFinished
:
{
var
point
=
parseFloat
(
text
)
if
(
point
>=
6.0
&&
point
<=
48.0
)
QGroundControl
.
baseFontPointSize
=
point
;
}
}
Rectangle
{
width
:
baseFontEdit
.
height
height
:
width
color
:
qgcPal
.
button
QGCLabel
{
QGCButton
{
width
:
height
height
:
baseFontEdit
.
height
text
:
"
+
"
anchors.centerIn
:
parent
}
MouseArea
{
anchors.fill
:
parent
onClicked
:
{
if
(
ScreenTools
.
defaultFontPointSize
<
49
)
if
(
ScreenTools
.
defaultFontPointSize
<
49
)
{
QGroundControl
.
baseFontPointSize
=
QGroundControl
.
baseFontPointSize
+
1
}
}
}
}
QGCLabel
{
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
qsTr
(
"
(requires reboot to take affec
t)
"
)
text
:
qsTr
(
"
(requires app restar
t)
"
)
}
}
...
...
@@ -129,7 +130,7 @@ Rectangle {
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
width
:
_firstLabelW
idth
width
:
baseFontLabel
.
w
idth
anchors.baseline
:
distanceUnitsCombo
.
baseline
text
:
qsTr
(
"
Distance units:
"
)
}
...
...
@@ -143,7 +144,7 @@ Rectangle {
QGCLabel
{
anchors.baseline
:
distanceUnitsCombo
.
baseline
text
:
qsTr
(
"
(requires
reboot to take affec
t)
"
)
text
:
qsTr
(
"
(requires
app restar
t)
"
)
}
}
...
...
@@ -152,8 +153,8 @@ Rectangle {
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
width
:
baseFontLabel
.
width
anchors.baseline
:
speedUnitsCombo
.
baseline
width
:
_firstLabelWidth
text
:
qsTr
(
"
Speed units:
"
)
}
...
...
@@ -166,10 +167,15 @@ Rectangle {
QGCLabel
{
anchors.baseline
:
speedUnitsCombo
.
baseline
text
:
qsTr
(
"
(requires reboot to take affec
t)
"
)
text
:
qsTr
(
"
(requires app restar
t)
"
)
}
}
Item
{
height
:
ScreenTools
.
defaultFontPixelHeight
/
2
width
:
parent
.
width
}
//-----------------------------------------------------------------
//-- Scale on Flight View
QGCCheckBox
{
...
...
@@ -246,7 +252,7 @@ Rectangle {
QGCCheckBox
{
id
:
announcePercentCheckbox
anchors.baseline
:
announcePercent
.
baseline
text
:
qsTr
(
"
Announce battery
percent
lower than:
"
)
text
:
qsTr
(
"
Announce battery lower than:
"
)
checked
:
_percentRemainingAnnounce
.
value
!=
0
onClicked
:
{
...
...
@@ -269,15 +275,18 @@ Rectangle {
height
:
ScreenTools
.
defaultFontPixelHeight
/
2
width
:
parent
.
width
}
//-----------------------------------------------------------------
//-- Map Providers
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
id
:
mapProvidersLabel
anchors.baseline
:
mapProviders
.
baseline
width
:
_firstLabelWidth
text
:
qsTr
(
"
Map Providers:
"
)
}
QGCComboBox
{
id
:
mapProviders
width
:
_editFieldWidth
...
...
@@ -303,16 +312,19 @@ Rectangle {
//-- Palette Styles
Row
{
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
width
:
mapProvidersLabel
.
width
anchors.baseline
:
paletteCombo
.
baseline
width
:
_firstLabelWidth
text
:
qsTr
(
"
Style:
"
)
}
QGCComboBox
{
id
:
paletteCombo
width
:
_editFieldWidth
model
:
[
qsTr
(
"
Indoor
"
),
qsTr
(
"
Outdoor
"
)
]
currentIndex
:
QGroundControl
.
isDarkStyle
?
0
:
1
onActivated
:
{
if
(
index
!=
-
1
)
{
currentIndex
=
index
...
...
@@ -392,13 +404,13 @@ Rectangle {
spacing
:
ScreenTools
.
defaultFontPixelWidth
QGCLabel
{
text
:
qsTr
(
"
Offline mission editing
vehicle type
:
"
)
text
:
qsTr
(
"
Offline mission editing:
"
)
anchors.baseline
:
offlineTypeCombo
.
baseline
}
FactComboBox
{
id
:
offlineTypeCombo
width
:
ScreenTools
.
defaultFontPixelWidth
*
25
width
:
ScreenTools
.
defaultFontPixelWidth
*
18
fact
:
QGroundControl
.
offlineEditingFirmwareType
indexModel
:
false
}
...
...
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