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
b1c90168
Unverified
Commit
b1c90168
authored
Jan 05, 2019
by
Don Gagne
Committed by
GitHub
Jan 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7124 from DonLakeFlyer/MobileCleanup
Mobile visual cleanup
parents
b86d386d
54d10575
Changes
11
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
381 additions
and
483 deletions
+381
-483
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+2
-2
QGCMapCircle.Facts.json
src/MissionManager/QGCMapCircle.Facts.json
+1
-1
GeoFenceEditor.qml
src/PlanView/GeoFenceEditor.qml
+209
-240
MissionItemEditor.qml
src/PlanView/MissionItemEditor.qml
+2
-3
PlanView.qml
src/PlanView/PlanView.qml
+2
-10
RallyPointItemEditor.qml
src/PlanView/RallyPointItemEditor.qml
+2
-1
PositionManager.cpp
src/PositionManager/PositionManager.cpp
+0
-1
QGCCheckBox.qml
src/QmlControls/QGCCheckBox.qml
+30
-76
QGCMouseArea.qml
src/QmlControls/QGCMouseArea.qml
+1
-1
QGCRadioButton.qml
src/QmlControls/QGCRadioButton.qml
+18
-29
ToolStrip.qml
src/QmlControls/ToolStrip.qml
+114
-119
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
b1c90168
...
...
@@ -488,13 +488,13 @@ QGCView {
exclusiveGroup
:
multiVehicleSelectorGroup
text
:
qsTr
(
"
Single
"
)
checked
:
true
color
:
mapPal
.
text
textColor
:
mapPal
.
text
}
QGCRadioButton
{
exclusiveGroup
:
multiVehicleSelectorGroup
text
:
qsTr
(
"
Multi-Vehicle
"
)
color
:
mapPal
.
text
textColor
:
mapPal
.
text
}
}
...
...
src/MissionManager/QGCMapCircle.Facts.json
View file @
b1c90168
...
...
@@ -3,7 +3,7 @@
"name"
:
"Radius"
,
"shortDescription"
:
"Radius for geofence circle."
,
"type"
:
"double"
,
"decimalPlaces"
:
2
,
"decimalPlaces"
:
1
,
"min"
:
0.1
,
"units"
:
"m"
}
...
...
src/PlanView/GeoFenceEditor.qml
View file @
b1c90168
This diff is collapsed.
Click to expand it.
src/PlanView/MissionItemEditor.qml
View file @
b1c90168
...
...
@@ -15,7 +15,7 @@ import QGroundControl.Palette 1.0
/// Mission item edit control
Rectangle
{
id
:
_root
height
:
editorLoader
.
y
+
(
editorLoader
.
visible
?
editorLoader
.
height
:
0
)
+
(
_margin
*
2
)
height
:
editorLoader
.
visible
?
(
editorLoader
.
y
+
editorLoader
.
height
+
(
_margin
*
2
))
:
(
commandPicker
.
y
+
commandPicker
.
height
+
_margin
/
2
)
color
:
_currentItem
?
qgcPal
.
missionItemEditor
:
qgcPal
.
windowShade
radius
:
_radius
...
...
@@ -90,8 +90,7 @@ Rectangle {
sourceSize.height
:
_hamburgerSize
source
:
"
qrc:/qmlimages/Hamburger.svg
"
visible
:
missionItem
.
isCurrentItem
&&
missionItem
.
sequenceNumber
!==
0
color
:
qgcPal
.
windowShade
color
:
qgcPal
.
text
}
QGCMouseArea
{
...
...
src/PlanView/PlanView.qml
View file @
b1c90168
...
...
@@ -760,14 +760,6 @@ QGCView {
anchors.left
:
parent
.
left
anchors.leftMargin
:
ScreenTools
.
defaultFontPixelWidth
readonly
property
real
_buttonRadius
:
ScreenTools
.
defaultFontPixelHeight
*
0.75
QGCColoredImage
{
width
:
height
height
:
ScreenTools
.
defaultFontPixelWidth
*
2.5
sourceSize.height
:
height
source
:
"
qrc:/res/waypoint.svg
"
color
:
qgcPal
.
text
anchors.verticalCenter
:
parent
.
verticalCenter
}
QGCLabel
{
text
:
qsTr
(
"
Plan
"
)
color
:
qgcPal
.
text
...
...
@@ -831,7 +823,7 @@ QGCView {
QGCListView
{
id
:
missionItemEditorListView
anchors.fill
:
parent
spacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
spacing
:
ScreenTools
.
defaultFontPixelHeight
/
4
orientation
:
ListView
.
Vertical
model
:
_missionController
.
visualItems
cacheBuffer
:
Math
.
max
(
height
*
2
,
0
)
...
...
@@ -865,9 +857,9 @@ QGCView {
GeoFenceEditor
{
anchors.top
:
rightControls
.
bottom
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.bottom
:
parent
.
bottom
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
availableHeight
:
ScreenTools
.
availableHeight
myGeoFenceController
:
_geoFenceController
flightMap
:
editorMap
visible
:
_editingLayer
==
_layerGeoFence
...
...
src/PlanView/RallyPointItemEditor.qml
View file @
b1c90168
...
...
@@ -50,7 +50,7 @@ Rectangle {
color
:
_outerTextColor
}
Image
{
QGCColored
Image
{
id
:
hamburger
anchors.rightMargin
:
_margin
anchors.right
:
parent
.
right
...
...
@@ -59,6 +59,7 @@ Rectangle {
height
:
width
sourceSize.height
:
height
source
:
"
qrc:/qmlimages/Hamburger.svg
"
color
:
qgcPal
.
text
MouseArea
{
anchors.fill
:
parent
...
...
src/PositionManager/PositionManager.cpp
View file @
b1c90168
...
...
@@ -36,7 +36,6 @@ void QGCPositionManager::setToolbox(QGCToolbox *toolbox)
if
(
!
_defaultSource
)
{
//-- Otherwise, create a default one
_defaultSource
=
QGeoPositionInfoSource
::
createDefaultSource
(
this
);
qDebug
()
<<
_defaultSource
;
}
_simulatedSource
=
new
SimulatedPosition
();
...
...
src/QmlControls/QGCCheckBox.qml
View file @
b1c90168
...
...
@@ -6,96 +6,50 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
ScreenTools
1.0
CheckBox
{
activeFocusOnPress
:
true
property
color
textColor
:
_qgcPal
.
text
property
bool
textBold
:
false
property
real
textFontPointSize
:
ScreenTools
.
defaultFontPointSize
property
var
_qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
bool
_noText
:
text
===
""
property
real
_radius
:
ScreenTools
.
defaultFontPixelHeight
*
0.16
property
var
__qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
activeFocusOnPress
:
true
style
:
CheckBoxStyle
{
label
:
Item
{
implicitWidth
:
text
.
implicitWidth
+
2
implicitHeight
:
ScreenTools
.
implicitCheckBoxHeight
implicitWidth
:
_noText
?
0
:
text
.
implicitWidth
+
ScreenTools
.
defaultFontPixelWidth
*
0.25
implicitHeight
:
_noText
?
0
:
Math
.
max
(
text
.
implicitHeight
,
ScreenTools
.
checkBoxIndicatorSize
)
baselineOffset
:
text
.
baselineOffset
Rectangle
{
anchors.margins
:
-
1
anchors.leftMargin
:
-
3
anchors.rightMargin
:
-
3
anchors.fill
:
text
visible
:
control
.
activeFocus
height
:
6
radius
:
3
color
:
"
#224f9fef
"
border.color
:
"
#47b
"
opacity
:
0.6
}
Text
{
id
:
text
text
:
control
.
text
antialiasing
:
true
font.pointSize
:
ScreenTools
.
defaultFontPointSize
font.family
:
ScreenTools
.
normalFontFamily
color
:
control
.
__qgcPal
.
text
anchors.verticalCenter
:
parent
.
verticalCenter
id
:
text
text
:
control
.
text
font.pointSize
:
textFontPointSize
font.bold
:
control
.
textBold
color
:
control
.
textColor
anchors.centerIn
:
parent
}
}
// label
}
indicator
:
Item
{
implicitWidth
:
ScreenTools
.
checkBoxIndicatorSize
implicitHeight
:
implicitWidth
Rectangle
{
anchors.fill
:
parent
anchors.bottomMargin
:
-
1
color
:
"
#44ffffff
"
radius
:
baserect
.
radius
}
Rectangle
{
id
:
baserect
property
var
enabledGradient
:
Gradient
{
GradientStop
{
color
:
"
#eee
"
;
position
:
0
}
GradientStop
{
color
:
control
.
pressed
?
"
#eee
"
:
"
#fff
"
;
position
:
0.1
}
GradientStop
{
color
:
"
#fff
"
;
position
:
1
}
}
property
var
disabledGradient
:
Gradient
{
GradientStop
{
color
:
"
#999
"
;
position
:
0
}
GradientStop
{
color
:
__qgcPal
.
textField
;
position
:
0.1
}
GradientStop
{
color
:
__qgcPal
.
textField
;
position
:
0.9
}
GradientStop
{
color
:
"
#999
"
;
position
:
1
}
}
gradient
:
control
.
enabled
?
enabledGradient
:
disabledGradient
radius
:
ScreenTools
.
defaultFontPixelHeight
*
0.16
anchors.fill
:
parent
border.color
:
control
.
activeFocus
?
"
#47b
"
:
"
#999
"
opacity
:
control
.
enabled
?
1
:
0.5
}
Image
{
source
:
"
/qmlimages/check.png
"
opacity
:
control
.
checkedState
===
Qt
.
Checked
?
control
.
enabled
?
1
:
0.5
:
0
anchors.centerIn
:
parent
anchors.verticalCenterOffset
:
1
Behavior
on
opacity
{
NumberAnimation
{
duration
:
80
}}
}
Rectangle
{
anchors.fill
:
parent
anchors.margins
:
Math
.
round
(
baserect
.
radius
)
antialiasing
:
true
gradient
:
Gradient
{
GradientStop
{
color
:
control
.
pressed
?
"
#555
"
:
"
#999
"
;
position
:
0
}
GradientStop
{
color
:
"
#555
"
;
position
:
1
}
anchors.fill
:
parent
radius
:
_radius
border.color
:
"
black
"
opacity
:
control
.
checkedState
===
Qt
.
PartiallyChecked
?
0.5
:
1
Rectangle
{
anchors.margins
:
parent
.
height
/
4
anchors.fill
:
parent
radius
:
_radius
color
:
"
black
"
visible
:
control
.
checkedState
===
Qt
.
Checked
}
radius
:
baserect
.
radius
-
1
anchors.centerIn
:
parent
anchors.alignWhenCentered
:
true
border.color
:
"
#222
"
Behavior
on
opacity
{
NumberAnimation
{
duration
:
80
}}
opacity
:
control
.
checkedState
===
Qt
.
PartiallyChecked
?
control
.
enabled
?
1
:
0.5
:
0
}
}
// indicator
}
// style
}
}
}
src/QmlControls/QGCMouseArea.qml
View file @
b1c90168
import
QtQuick
2.
3
import
QtQuick
2.
11
import
QGroundControl
1.0
import
QGroundControl
.
ScreenTools
1.0
...
...
src/QmlControls/QGCRadioButton.qml
View file @
b1c90168
...
...
@@ -6,41 +6,30 @@ import QGroundControl.Palette 1.0
import
QGroundControl
.
ScreenTools
1.0
RadioButton
{
property
var
color
:
qgcPal
.
text
///< Text color
property
int
textStyle
:
Text
.
Normal
property
color
textStyleColor
:
qgcPal
.
text
property
bool
textBold
:
false
property
var
qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
color
textColor
:
_qgcPal
.
text
property
bool
textBold
:
false
property
real
textFontPointSize
:
ScreenTools
.
defaultFontPointSize
property
var
_qgcPal
:
QGCPalette
{
colorGroupEnabled
:
enabled
}
property
bool
_noText
:
text
===
""
activeFocusOnPress
:
true
style
:
RadioButtonStyle
{
spacing
:
_noText
?
0
:
ScreenTools
.
defaultFontPixelWidth
/
2
label
:
Item
{
implicitWidth
:
text
.
implicitWidth
+
ScreenTools
.
defaultFontPixelWidth
*
0.25
implicitHeight
:
ScreenTools
.
implicitRadioButtonHeight
implicitWidth
:
_noText
?
0
:
text
.
implicitWidth
+
ScreenTools
.
defaultFontPixelWidth
*
0.25
implicitHeight
:
_noText
?
0
:
Math
.
max
(
text
.
implicitHeight
,
ScreenTools
.
radioButtonIndicatorSize
)
baselineOffset
:
text
.
y
+
text
.
baselineOffset
Rectangle
{
anchors.fill
:
text
anchors.margins
:
-
1
anchors.leftMargin
:
-
3
anchors.rightMargin
:
-
3
visible
:
control
.
activeFocus
height
:
ScreenTools
.
defaultFontPixelWidth
*
0.25
radius
:
height
*
0.5
color
:
"
#224f9fef
"
border.color
:
"
#47b
"
opacity
:
0.6
}
Text
{
id
:
text
text
:
control
.
text
font.pointSize
:
ScreenTools
.
defaultFontPointSize
font.family
:
ScreenTools
.
normalFontFamily
font.pointSize
:
textFontPointSize
font.bold
:
control
.
textBold
antialiasing
:
true
color
:
control
.
color
style
:
control
.
textStyle
styleColor
:
control
.
textStyleColor
color
:
control
.
textColor
anchors.centerIn
:
parent
}
}
...
...
@@ -49,9 +38,9 @@ RadioButton {
width
:
ScreenTools
.
radioButtonIndicatorSize
height
:
width
color
:
"
white
"
border.color
:
control
.
qgcPal
.
text
antialiasing
:
true
border.color
:
"
black
"
radius
:
height
/
2
opacity
:
control
.
enabled
?
1
:
0.5
Rectangle
{
anchors.centerIn
:
parent
...
...
@@ -60,7 +49,7 @@ RadioButton {
antialiasing
:
true
radius
:
height
/
2
color
:
"
black
"
opacity
:
control
.
checked
?
(
control
.
enabled
?
1
:
0.5
)
:
0
visible
:
control
.
checked
}
}
}
...
...
src/QmlControls/ToolStrip.qml
View file @
b1c90168
This diff is collapsed.
Click to expand it.
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