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
e9052893
Commit
e9052893
authored
Nov 10, 2019
by
DonLakeFlyer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
3b4a9ca9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
10 deletions
+61
-10
MissionItemEditor.qml
src/PlanView/MissionItemEditor.qml
+61
-10
No files found.
src/PlanView/MissionItemEditor.qml
View file @
e9052893
...
...
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.4
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
.
Dialogs
1.2
import
QtQml
2.2
import
QtQuick
.
Layouts
1.11
import
QGroundControl
1.0
import
QGroundControl
.
ScreenTools
1.0
...
...
@@ -214,15 +215,66 @@ Rectangle {
}
}
QGCButton
{
id
:
commandPicker
anchors.topMargin
:
_margin
anchors.rightMargin
:
ScreenTools
.
defaultFontPixelWidth
anchors.leftMargin
:
_margin
QGCColoredImage
{
id
:
deleteButton
anchors.margins
:
_margin
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
visible
:
!
commandLabel
.
visible
text
:
missionItem
.
commandName
anchors.verticalCenter
:
commandPicker
.
verticalCenter
height
:
_hamburgerSize
width
:
height
sourceSize.height
:
height
fillMode
:
Image
.
PreserveAspectFit
mipmap
:
true
smooth
:
true
color
:
qgcPal
.
text
visible
:
_currentItem
&&
missionItem
.
sequenceNumber
!==
0
source
:
"
/res/TrashDelete.svg
"
QGCMouseArea
{
fillItem
:
parent
onClicked
:
remove
()
}
}
Rectangle
{
id
:
commandPicker
anchors.margins
:
_margin
anchors.left
:
deleteButton
.
right
anchors.top
:
parent
.
top
height
:
ScreenTools
.
implicitComboBoxHeight
width
:
innerLayout
.
x
+
innerLayout
.
width
+
ScreenTools
.
comboBoxPadding
visible
:
!
commandLabel
.
visible
color
:
qgcPal
.
window
border.width
:
1
border.color
:
qgcPal
.
text
RowLayout
{
id
:
innerLayout
anchors.margins
:
_padding
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
spacing
:
_padding
property
real
_padding
:
ScreenTools
.
comboBoxPadding
QGCLabel
{
text
:
missionItem
.
commandName
}
QGCColoredImage
{
height
:
ScreenTools
.
implicitComboBoxHeight
-
(
ScreenTools
.
comboBoxPadding
*
2
)
width
:
height
sourceSize.height
:
height
fillMode
:
Image
.
PreserveAspectFit
smooth
:
true
antialiasing
:
true
color
:
qgcPal
.
text
source
:
"
qrc:/qt-project.org/imports/QtQuick/Controls.2/images/double-arrow.png
"
}
}
QGCMouseArea
{
fillItem
:
parent
onClicked
:
mainWindow
.
showComponentDialog
(
commandDialog
,
qsTr
(
"
Select Mission Command
"
),
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
)
}
Component
{
id
:
commandDialog
...
...
@@ -233,15 +285,14 @@ Rectangle {
}
}
onClicked
:
mainWindow
.
showComponentDialog
(
commandDialog
,
qsTr
(
"
Select Mission Command
"
),
mainWindow
.
showDialogDefaultWidth
,
StandardButton
.
Cancel
)
}
QGCLabel
{
id
:
commandLabel
anchors.leftMargin
:
ScreenTools
.
comboBoxPadding
anchors.fill
:
commandPicker
visible
:
!
missionItem
.
isCurrentItem
||
!
missionItem
.
isSimpleItem
||
_waypointsOnlyMode
verticalAlignment
:
Text
.
AlignVCenter
horizontalAlignment
:
Text
.
AlignHCenter
text
:
missionItem
.
commandName
color
:
_outerTextColor
}
...
...
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