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
99d9796c
Commit
99d9796c
authored
Dec 10, 2019
by
Valentin Platzgummer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wimaMenu edited
parent
a1d6f37c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
205 additions
and
201 deletions
+205
-201
FlightDisplayView.qml
src/FlightDisplay/FlightDisplayView.qml
+2
-2
FlightDisplayWimaMenu.qml
src/FlightDisplay/FlightDisplayWimaMenu.qml
+203
-199
No files found.
src/FlightDisplay/FlightDisplayView.qml
View file @
99d9796c
...
@@ -551,8 +551,8 @@ QGCView {
...
@@ -551,8 +551,8 @@ QGCView {
z
:
_panel
.
z
+
4
z
:
_panel
.
z
+
4
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.leftMargin
:
ScreenTools
.
defaultFontPixel
Height
*
0.25
anchors.leftMargin
:
ScreenTools
.
defaultFontPixel
Width
anchors.bottomMargin
:
ScreenTools
.
defaultFontPixel
Height
*
0.25
anchors.bottomMargin
:
ScreenTools
.
defaultFontPixel
Width
wimaController
:
wimaController
wimaController
:
wimaController
...
...
src/FlightDisplay/FlightDisplayWimaMenu.qml
View file @
99d9796c
import
QtQuick
2.3
import
QtQuick
2.3
import
QtQuick
.
Controls
1.2
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
.
Controls
.
Styles
1.4
import
QtQuick
.
Dialogs
1.2
import
QtQuick
.
Dialogs
1.2
import
QtLocation
5.3
import
QtLocation
5.3
import
QtPositioning
5.3
import
QtPositioning
5.3
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Layouts
1.2
import
QtQuick
.
Layouts
1.2
import
QGroundControl
1.0
import
QGroundControl
1.0
...
@@ -19,7 +19,7 @@ import QGroundControl.FactControls 1.0
...
@@ -19,7 +19,7 @@ import QGroundControl.FactControls 1.0
Item
{
Item
{
id
:
_root
id
:
_root
height
:
7
00
height
:
6
00
width
:
300
width
:
300
property
var
wimaController
// must be provided by the user
property
var
wimaController
// must be provided by the user
...
@@ -50,8 +50,12 @@ Item {
...
@@ -50,8 +50,12 @@ Item {
return
Qt
.
formatTime
(
t
,
'
hh:mm:ss
'
)
return
Qt
.
formatTime
(
t
,
'
hh:mm:ss
'
)
}
}
QGCPalette
{
id
:
qgcPal
}
// box containing all items
// box containing all items
Rectangle
{
Rectangle
{
// maybe replace with column and remove anchors => dynamic height:
id
:
mainFrame
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
height
:
enableWima
.
enableWimaBoolean
?
parent
.
height
:
enableWima
.
height
height
:
enableWima
.
enableWimaBoolean
?
parent
.
height
:
enableWima
.
height
...
@@ -83,27 +87,31 @@ Item {
...
@@ -83,27 +87,31 @@ Item {
}
}
}
}
Column
{
Rectangle
{
id
:
mainColumn
id
:
controllerFrame
anchors.top
:
enableWima
.
bottom
anchors.top
:
enableWima
.
bottom
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.bottom
:
parent
.
bottom
anchors.bottom
:
parent
.
bottom
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
*
0.4
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
*
0.25
spacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.25
color
:
qgcPal
.
window
clip
:
true
ScrollView
{
id
:
scrollView
anchors.fill
:
parent
SectionHeader
{
Column
{
/*SectionHeader {
id: settingsHeader
id: settingsHeader
text: qsTr("Settings")
text: qsTr("Settings")
}
}*/
GridLayout
{
GridLayout
{
columns
:
2
columns
:
2
rowSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
rowSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
columnSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
columnSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
visible
:
settingsHeader
.
checked
visible
:
settingsHeader
.
checked
// Settings
// Settings
...
@@ -137,17 +145,14 @@ Item {
...
@@ -137,17 +145,14 @@ Item {
}
}
SectionHeader
{
/*
SectionHeader{
id: missionHeader
id: missionHeader
text: qsTr("Mission")
text: qsTr("Mission")
}
}*/
GridLayout
{
GridLayout
{
columns
:
2
columns
:
2
rowSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
rowSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
columnSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
columnSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
visible
:
missionHeader
.
checked
visible
:
missionHeader
.
checked
QGCLabel
{
text
:
qsTr
(
"
Speed
"
)
}
QGCLabel
{
text
:
qsTr
(
"
Speed
"
)
}
...
@@ -186,7 +191,7 @@ Item {
...
@@ -186,7 +191,7 @@ Item {
}
}
}
/*
}
SectionHeader{
SectionHeader{
id: vehicleHeader
id: vehicleHeader
...
@@ -196,10 +201,7 @@ Item {
...
@@ -196,10 +201,7 @@ Item {
columns: 2
columns: 2
rowSpacing: ScreenTools.defaultFontPixelHeight * 0.5
rowSpacing: ScreenTools.defaultFontPixelHeight * 0.5
columnSpacing: ScreenTools.defaultFontPixelHeight * 0.5
columnSpacing: ScreenTools.defaultFontPixelHeight * 0.5
anchors.topMargin
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
visible: vehicleHeader.checked*/
anchors.left
:
parent
.
left
anchors.right
:
parent
.
right
visible
:
vehicleHeader
.
checked
QGCButton
{
QGCButton
{
id
:
buttonUpload
id
:
buttonUpload
...
@@ -246,10 +248,10 @@ Item {
...
@@ -246,10 +248,10 @@ Item {
}
}
SectionHeader
{
/*
SectionHeader {
id: statsHeader
id: statsHeader
text: qsTr("Statistics")
text: qsTr("Statistics")
}
}*/
GridLayout
{
GridLayout
{
columns
:
2
columns
:
2
rowSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
rowSpacing
:
ScreenTools
.
defaultFontPixelHeight
*
0.5
...
@@ -278,6 +280,8 @@ Item {
...
@@ -278,6 +280,8 @@ Item {
font.pointSize
:
ScreenTools
.
smallFontPointSize
font.pointSize
:
ScreenTools
.
smallFontPointSize
}
}
}
}
}
}
// mainColumn
}
// item
}
// 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