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
f1e3b187
Commit
f1e3b187
authored
Jan 05, 2019
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
fe691f5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
209 additions
and
240 deletions
+209
-240
GeoFenceEditor.qml
src/PlanView/GeoFenceEditor.qml
+209
-240
No files found.
src/PlanView/GeoFenceEditor.qml
View file @
f1e3b187
...
@@ -10,13 +10,9 @@ import QGroundControl.FactControls 1.0
...
@@ -10,13 +10,9 @@ import QGroundControl.FactControls 1.0
QGCFlickable
{
QGCFlickable
{
id
:
root
id
:
root
width
:
availableWidth
contentHeight
:
geoFenceEditorRect
.
height
height
:
availableHeight
contentHeight
:
editorColumn
.
height
clip
:
true
clip
:
true
property
real
availableWidth
property
real
availableHeight
property
var
myGeoFenceController
property
var
myGeoFenceController
property
var
flightMap
property
var
flightMap
...
@@ -24,14 +20,10 @@ QGCFlickable {
...
@@ -24,14 +20,10 @@ QGCFlickable {
readonly
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
readonly
property
real
_margin
:
ScreenTools
.
defaultFontPixelWidth
/
2
readonly
property
real
_radius
:
ScreenTools
.
defaultFontPixelWidth
/
2
readonly
property
real
_radius
:
ScreenTools
.
defaultFontPixelWidth
/
2
Column
{
id
:
editorColumn
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
Rectangle
{
Rectangle
{
id
:
geoFenceEditorRect
id
:
geoFenceEditorRect
width
:
parent
.
width
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
height
:
geoFenceItems
.
y
+
geoFenceItems
.
height
+
(
_margin
*
2
)
height
:
geoFenceItems
.
y
+
geoFenceItems
.
height
+
(
_margin
*
2
)
radius
:
_radius
radius
:
_radius
color
:
qgcPal
.
missionItemEditor
color
:
qgcPal
.
missionItemEditor
...
@@ -213,21 +205,10 @@ QGCFlickable {
...
@@ -213,21 +205,10 @@ QGCFlickable {
Repeater
{
Repeater
{
model
:
myGeoFenceController
.
polygons
model
:
myGeoFenceController
.
polygons
QGCColoredImage
{
QGCButton
{
width
:
ScreenTools
.
defaultFontPixelHeight
text
:
qsTr
(
"
Del
"
)
height
:
width
sourceSize.height
:
width
source
:
"
/res/XDelete.svg
"
fillMode
:
Image
.
PreserveAspectFit
color
:
qgcPal
.
text
Layout.alignment
:
Qt
.
AlignHCenter
Layout.alignment
:
Qt
.
AlignHCenter
onClicked
:
myGeoFenceController
.
deletePolygon
(
index
)
property
int
_polygonIndex
:
index
QGCMouseArea
{
fillItem
:
parent
onClicked
:
myGeoFenceController
.
deletePolygon
(
parent
.
_polygonIndex
)
}
}
}
}
}
}
// GridLayout
}
// GridLayout
...
@@ -314,21 +295,10 @@ QGCFlickable {
...
@@ -314,21 +295,10 @@ QGCFlickable {
Repeater
{
Repeater
{
model
:
myGeoFenceController
.
circles
model
:
myGeoFenceController
.
circles
QGCColoredImage
{
QGCButton
{
width
:
ScreenTools
.
defaultFontPixelHeight
text
:
qsTr
(
"
Del
"
)
height
:
width
sourceSize.height
:
width
source
:
"
/res/XDelete.svg
"
fillMode
:
Image
.
PreserveAspectFit
color
:
qgcPal
.
text
Layout.alignment
:
Qt
.
AlignHCenter
Layout.alignment
:
Qt
.
AlignHCenter
onClicked
:
myGeoFenceController
.
deleteCircle
(
index
)
property
int
_circleIndex
:
index
QGCMouseArea
{
fillItem
:
parent
onClicked
:
myGeoFenceController
.
deleteCircle
(
parent
.
_polygonIndex
)
}
}
}
}
}
}
// GridLayout
}
// GridLayout
...
@@ -336,5 +306,4 @@ QGCFlickable {
...
@@ -336,5 +306,4 @@ QGCFlickable {
}
}
}
}
}
// Rectangle
}
// 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