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
16e93829
Unverified
Commit
16e93829
authored
Apr 20, 2019
by
Don Gagne
Committed by
GitHub
Apr 20, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7371 from DonLakeFlyer/master
Consistent Altitutude Mode labelling in all complex items
parents
c0ea93e9
e12fbcfa
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
58 additions
and
35 deletions
+58
-35
AltitudeFactTextField.qml
src/FactSystem/FactControls/AltitudeFactTextField.qml
+12
-10
CameraCalc.qml
src/PlanView/CameraCalc.qml
+6
-3
CorridorScanEditor.qml
src/PlanView/CorridorScanEditor.qml
+6
-5
StructureScanEditor.qml
src/PlanView/StructureScanEditor.qml
+10
-7
SurveyItemEditor.qml
src/PlanView/SurveyItemEditor.qml
+6
-5
QGCCheckBox.qml
src/QmlControls/QGCCheckBox.qml
+2
-0
QGCRadioButton.qml
src/QmlControls/QGCRadioButton.qml
+1
-1
QGCTextField.qml
src/QmlControls/QGCTextField.qml
+15
-4
No files found.
src/FactSystem/FactControls/AltitudeFactTextField.qml
View file @
16e93829
import
QtQuick
2.3
import
QGroundControl
1.0
import
QGroundControl
.
FactSystem
1.0
FactTextField
{
unitsLabel
:
fact
?
fact
.
units
+
_altitudeModeExtraUnits
:
""
showUnits
:
true
showHelp
:
true
unitsLabel
:
fact
?
fact
.
units
:
""
extraUnitsLabel
:
fact
?
_altitudeModeExtraUnits
:
""
showUnits
:
true
showHelp
:
true
property
int
altitudeMode
:
QGroundControl
.
AltitudeModeNone
readonly
property
string
_altModeNoneExtraUnits
:
""
readonly
property
string
_altModeRelativeExtraUnits
:
qsTr
(
"
(Rel)
"
)
readonly
property
string
_altModeAbsoluteExtraUnits
:
qsTr
(
"
(AMSL)
"
)
readonly
property
string
_altModeAboveTerrainExtraUnits
:
qsTr
(
"
(Abv Terr)
"
)
readonly
property
string
_altModeTerrainFrameExtraUnits
:
qsTr
(
"
(TerrF)
"
)
readonly
property
string
_altModeRelativeExtraUnits
:
qsTr
(
"
(Rel)
"
)
readonly
property
string
_altModeAbsoluteExtraUnits
:
qsTr
(
"
(AMSL)
"
)
readonly
property
string
_altModeAboveTerrainExtraUnits
:
qsTr
(
"
(Abv Terr)
"
)
readonly
property
string
_altModeTerrainFrameExtraUnits
:
qsTr
(
"
(TerrF)
"
)
property
string
_altitudeModeExtraUnits
:
_altModeRelativeExtraUnits
property
string
_altitudeModeExtraUnits
:
_altModeNoneExtraUnits
onAltitudeModeChanged
:
updateAltitudeModeExtraUnits
()
function
updateAltitudeModeExtraUnits
()
{
if
(
altitudeMode
===
QGroundControl
.
AltitudeModeNone
)
{
...
...
@@ -32,6 +36,4 @@ FactTextField {
_altitudeModeExtraUnits
=
""
}
}
onAltitudeModeChanged
:
updateAltitudeModeExtraUnits
()
}
src/PlanView/CameraCalc.qml
View file @
16e93829
...
...
@@ -15,8 +15,9 @@ Column {
spacing
:
_margin
property
var
cameraCalc
property
bool
vehicleFlightIsFrontal
:
true
property
bool
vehicleFlightIsFrontal
:
true
property
string
distanceToSurfaceLabel
property
int
distanceToSurfaceAltitudeMode
:
QGroundControl
.
AltitudeModeNone
property
string
frontalDistanceLabel
property
string
sideDistanceLabel
...
...
@@ -226,8 +227,9 @@ Column {
onClicked
:
cameraCalc
.
valueSetIsDistance
.
value
=
1
}
FactTextField
{
Altitude
FactTextField
{
fact
:
cameraCalc
.
distanceToSurface
altitudeMode
:
distanceToSurfaceAltitudeMode
enabled
:
fixedDistanceRadio
.
checked
Layout.fillWidth
:
true
}
...
...
@@ -285,8 +287,9 @@ Column {
visible
:
cameraCalc
.
isManualCamera
QGCLabel
{
text
:
distanceToSurfaceLabel
}
FactTextField
{
Altitude
FactTextField
{
fact
:
cameraCalc
.
distanceToSurface
altitudeMode
:
distanceToSurfaceAltitudeMode
Layout.fillWidth
:
true
}
...
...
src/PlanView/CorridorScanEditor.qml
View file @
16e93829
...
...
@@ -67,11 +67,12 @@ Rectangle {
CameraCalc
{
cameraCalc
:
missionItem
.
cameraCalc
vehicleFlightIsFrontal
:
true
distanceToSurfaceLabel
:
qsTr
(
"
Altitude
"
)
frontalDistanceLabel
:
qsTr
(
"
Trigger Distance
"
)
sideDistanceLabel
:
qsTr
(
"
Spacing
"
)
cameraCalc
:
missionItem
.
cameraCalc
vehicleFlightIsFrontal
:
true
distanceToSurfaceLabel
:
qsTr
(
"
Altitude
"
)
distanceToSurfaceAltitudeMode
:
missionItem
.
followTerrain
?
QGroundControl
.
AltitudeModeAboveTerrain
:
QGroundControl
.
AltitudeModeRelative
frontalDistanceLabel
:
qsTr
(
"
Trigger Dist
"
)
sideDistanceLabel
:
qsTr
(
"
Spacing
"
)
}
SectionHeader
{
...
...
src/PlanView/StructureScanEditor.qml
View file @
16e93829
...
...
@@ -75,11 +75,12 @@ Rectangle {
}
CameraCalc
{
cameraCalc
:
missionItem
.
cameraCalc
vehicleFlightIsFrontal
:
false
distanceToSurfaceLabel
:
qsTr
(
"
Scan Distance
"
)
frontalDistanceLabel
:
qsTr
(
"
Layer Height
"
)
sideDistanceLabel
:
qsTr
(
"
Trigger Distance
"
)
cameraCalc
:
missionItem
.
cameraCalc
vehicleFlightIsFrontal
:
false
distanceToSurfaceLabel
:
qsTr
(
"
Scan Distance
"
)
distanceToSurfaceAltitudeMode
:
QGroundControl
.
AltitudeModeNone
frontalDistanceLabel
:
qsTr
(
"
Layer Height
"
)
sideDistanceLabel
:
qsTr
(
"
Trigger Distance
"
)
}
SectionHeader
{
...
...
@@ -117,14 +118,16 @@ Rectangle {
}
QGCLabel
{
text
:
qsTr
(
"
Scan Bottom Alt
"
)
}
FactTextField
{
Altitude
FactTextField
{
fact
:
missionItem
.
scanBottomAlt
altitudeMode
:
QGroundControl
.
AltitudeModeRelative
Layout.fillWidth
:
true
}
QGCLabel
{
text
:
qsTr
(
"
Entrance/Exit Alt
"
)
}
FactTextField
{
Altitude
FactTextField
{
fact
:
missionItem
.
entranceAlt
altitudeMode
:
QGroundControl
.
AltitudeModeRelative
Layout.fillWidth
:
true
}
...
...
src/PlanView/SurveyItemEditor.qml
View file @
16e93829
...
...
@@ -67,11 +67,12 @@ Rectangle {
}
CameraCalc
{
cameraCalc
:
missionItem
.
cameraCalc
vehicleFlightIsFrontal
:
true
distanceToSurfaceLabel
:
qsTr
(
"
Altitude
"
)
frontalDistanceLabel
:
qsTr
(
"
Trigger Distance
"
)
sideDistanceLabel
:
qsTr
(
"
Spacing
"
)
cameraCalc
:
missionItem
.
cameraCalc
vehicleFlightIsFrontal
:
true
distanceToSurfaceLabel
:
qsTr
(
"
Altitude
"
)
distanceToSurfaceAltitudeMode
:
missionItem
.
followTerrain
?
QGroundControl
.
AltitudeModeAboveTerrain
:
QGroundControl
.
AltitudeModeRelative
frontalDistanceLabel
:
qsTr
(
"
Trigger Dist
"
)
sideDistanceLabel
:
qsTr
(
"
Spacing
"
)
}
SectionHeader
{
...
...
src/QmlControls/QGCCheckBox.qml
View file @
16e93829
...
...
@@ -16,6 +16,8 @@ CheckBox {
activeFocusOnPress
:
true
style
:
CheckBoxStyle
{
spacing
:
_noText
?
0
:
ScreenTools
.
defaultFontPixelWidth
*
0.25
label
:
Item
{
implicitWidth
:
_noText
?
0
:
text
.
implicitWidth
+
ScreenTools
.
defaultFontPixelWidth
*
0.25
implicitHeight
:
_noText
?
0
:
Math
.
max
(
text
.
implicitHeight
,
ScreenTools
.
checkBoxIndicatorSize
)
...
...
src/QmlControls/QGCRadioButton.qml
View file @
16e93829
...
...
@@ -17,7 +17,7 @@ RadioButton {
activeFocusOnPress
:
true
style
:
RadioButtonStyle
{
spacing
:
_noText
?
0
:
ScreenTools
.
defaultFontPixelWidth
/
2
spacing
:
_noText
?
0
:
ScreenTools
.
defaultFontPixelWidth
*
0.25
label
:
Item
{
implicitWidth
:
_noText
?
0
:
text
.
implicitWidth
+
ScreenTools
.
defaultFontPixelWidth
*
0.25
...
...
src/QmlControls/QGCTextField.qml
View file @
16e93829
...
...
@@ -13,9 +13,10 @@ TextField {
activeFocusOnPress
:
true
antialiasing
:
true
property
bool
showUnits
:
false
property
bool
showHelp
:
false
property
string
unitsLabel
:
""
property
bool
showUnits
:
false
property
bool
showHelp
:
false
property
string
unitsLabel
:
""
property
string
extraUnitsLabel
:
""
signal
helpClicked
...
...
@@ -89,7 +90,17 @@ TextField {
font.family
:
ScreenTools
.
normalFontFamily
antialiasing
:
true
color
:
control
.
textColor
visible
:
control
.
showUnits
visible
:
control
.
showUnits
&&
text
!==
""
}
Text
{
Layout.alignment
:
Qt
.
AlignVCenter
text
:
control
.
extraUnitsLabel
font.pointSize
:
ScreenTools
.
smallFontPointSize
font.family
:
ScreenTools
.
normalFontFamily
antialiasing
:
true
color
:
control
.
textColor
visible
:
control
.
showUnits
&&
text
!==
""
}
Rectangle
{
...
...
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