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
fdcd39ae
Unverified
Commit
fdcd39ae
authored
Sep 07, 2019
by
Don Gagne
Committed by
GitHub
Sep 07, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7789 from DonLakeFlyer/SplitIndicator
Use new SplitIndicator control
parents
a672b841
2e6ab5dd
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
19 additions
and
49 deletions
+19
-49
SplitIndicator.qml
src/FlightMap/MapItems/SplitIndicator.qml
+1
-0
QGCMapPolygonVisuals.qml
src/MissionManager/QGCMapPolygonVisuals.qml
+4
-22
QGCMapPolylineVisuals.qml
src/MissionManager/QGCMapPolylineVisuals.qml
+6
-24
CorridorScanMapVisual.qml
src/PlanView/CorridorScanMapVisual.qml
+3
-1
SurveyMapVisual.qml
src/PlanView/SurveyMapVisual.qml
+2
-0
TransectStyleMapVisuals.qml
src/PlanView/TransectStyleMapVisuals.qml
+3
-2
No files found.
src/FlightMap/MapItems/SplitIndicator.qml
View file @
fdcd39ae
...
@@ -20,6 +20,7 @@ Rectangle {
...
@@ -20,6 +20,7 @@ Rectangle {
radius
:
width
/
2
radius
:
width
/
2
border.color
:
indicatorColor
border.color
:
indicatorColor
color
:
"
transparent
"
color
:
"
transparent
"
opacity
:
0.75
property
color
indicatorColor
:
"
white
"
property
color
indicatorColor
:
"
white
"
...
...
src/MissionManager/QGCMapPolygonVisuals.qml
View file @
fdcd39ae
...
@@ -267,32 +267,14 @@ Item {
...
@@ -267,32 +267,14 @@ Item {
MapQuickItem
{
MapQuickItem
{
id
:
mapQuickItem
id
:
mapQuickItem
anchorPoint.x
:
dragHandle
.
width
/
2
anchorPoint.x
:
sourceItem
.
width
/
2
anchorPoint.y
:
dragHandle
.
height
/
2
anchorPoint.y
:
sourceItem
.
height
/
2
visible
:
!
_circle
visible
:
!
_circle
property
int
vertexIndex
property
int
vertexIndex
sourceItem
:
Rectangle
{
sourceItem
:
SplitIndicator
{
id
:
dragHandle
width
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
height
:
width
radius
:
width
/
2
border.color
:
"
white
"
color
:
"
transparent
"
opacity
:
.
50
z
:
_zorderSplitHandle
z
:
_zorderSplitHandle
QGCLabel
{
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
"
+
"
}
QGCMouseArea
{
fillItem
:
parent
onClicked
:
mapPolygon
.
splitPolygonSegment
(
mapQuickItem
.
vertexIndex
)
}
}
}
}
}
}
}
...
...
src/MissionManager/QGCMapPolylineVisuals.qml
View file @
fdcd39ae
...
@@ -98,8 +98,6 @@ Item {
...
@@ -98,8 +98,6 @@ Item {
}
}
}
}
onVisibleChanged
:
_polylineComponent
.
visible
=
visible
Component.onCompleted
:
{
Component.onCompleted
:
{
addVisuals
()
addVisuals
()
if
(
interactive
)
{
if
(
interactive
)
{
...
@@ -175,6 +173,7 @@ Item {
...
@@ -175,6 +173,7 @@ Item {
line.width
:
lineWidth
line.width
:
lineWidth
line.color
:
lineColor
line.color
:
lineColor
path
:
mapPolyline
.
path
path
:
mapPolyline
.
path
visible
:
_root
.
visible
}
}
}
}
...
@@ -183,34 +182,17 @@ Item {
...
@@ -183,34 +182,17 @@ Item {
MapQuickItem
{
MapQuickItem
{
id
:
mapQuickItem
id
:
mapQuickItem
anchorPoint.x
:
splitHandle
.
width
/
2
anchorPoint.x
:
sourceItem
.
width
/
2
anchorPoint.y
:
splitHandle
.
height
/
2
anchorPoint.y
:
sourceItem
.
height
/
2
property
int
vertexIndex
sourceItem
:
Rectangle
{
id
:
splitHandle
width
:
ScreenTools
.
defaultFontPixelHeight
*
1.5
height
:
width
radius
:
width
/
2
border.color
:
"
white
"
color
:
"
transparent
"
opacity
:
.
50
z
:
_zorderSplitHandle
z
:
_zorderSplitHandle
QGCLabel
{
property
int
vertexIndex
anchors.horizontalCenter
:
parent
.
horizontalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
"
+
"
}
QGCMouseArea
{
sourceItem
:
SplitIndicator
{
fillItem
:
parent
onClicked
:
mapPolyline
.
splitSegment
(
mapQuickItem
.
vertexIndex
)
onClicked
:
mapPolyline
.
splitSegment
(
mapQuickItem
.
vertexIndex
)
}
}
}
}
}
}
}
Component
{
Component
{
id
:
splitHandlesComponent
id
:
splitHandlesComponent
...
...
src/PlanView/CorridorScanMapVisual.qml
View file @
fdcd39ae
...
@@ -17,6 +17,8 @@ import QGroundControl.Controls 1.0
...
@@ -17,6 +17,8 @@ import QGroundControl.Controls 1.0
/// Corridor Scan Complex Mission Item visuals
/// Corridor Scan Complex Mission Item visuals
TransectStyleMapVisuals
{
TransectStyleMapVisuals
{
polygonInteractive
:
false
property
bool
_currentItem
:
object
.
isCurrentItem
property
bool
_currentItem
:
object
.
isCurrentItem
Component.onCompleted
:
mapPolylineVisuals
.
addInitialPolyline
()
Component.onCompleted
:
mapPolylineVisuals
.
addInitialPolyline
()
...
...
src/PlanView/SurveyMapVisual.qml
View file @
fdcd39ae
...
@@ -20,6 +20,8 @@ import QGroundControl.FlightMap 1.0
...
@@ -20,6 +20,8 @@ import QGroundControl.FlightMap 1.0
/// Survey Complex Mission Item visuals
/// Survey Complex Mission Item visuals
TransectStyleMapVisuals
{
TransectStyleMapVisuals
{
polygonInteractive
:
true
property
var
_mapPolygon
:
object
.
surveyAreaPolygon
property
var
_mapPolygon
:
object
.
surveyAreaPolygon
/// Add an initial 4 sided polygon if there is none
/// Add an initial 4 sided polygon if there is none
...
...
src/PlanView/TransectStyleMapVisuals.qml
View file @
fdcd39ae
...
@@ -23,6 +23,7 @@ Item {
...
@@ -23,6 +23,7 @@ Item {
id
:
_root
id
:
_root
property
var
map
///< Map control to place item in
property
var
map
///< Map control to place item in
property
bool
polygonInteractive
:
true
property
var
_missionItem
:
object
property
var
_missionItem
:
object
property
var
_mapPolygon
:
object
.
surveyAreaPolygon
property
var
_mapPolygon
:
object
.
surveyAreaPolygon
...
@@ -69,7 +70,7 @@ Item {
...
@@ -69,7 +70,7 @@ Item {
id
:
mapPolygonVisuals
id
:
mapPolygonVisuals
mapControl
:
map
mapControl
:
map
mapPolygon
:
_mapPolygon
mapPolygon
:
_mapPolygon
interactive
:
_missionItem
.
isCurrentItem
interactive
:
polygonInteractive
&&
_missionItem
.
isCurrentItem
borderWidth
:
1
borderWidth
:
1
borderColor
:
"
black
"
borderColor
:
"
black
"
interiorColor
:
"
green
"
interiorColor
:
"
green
"
...
...
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