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
54b3055b
Commit
54b3055b
authored
Jul 30, 2019
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide APM Mock Links if APM is not built.
Fix Mocklink UI
parent
f37fd718
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
21 deletions
+34
-21
MockLink.qml
src/ui/preferences/MockLink.qml
+34
-21
No files found.
src/ui/preferences/MockLink.qml
View file @
54b3055b
...
@@ -8,7 +8,9 @@
...
@@ -8,7 +8,9 @@
****************************************************************************/
****************************************************************************/
import
QtQuick
2.3
import
QtQuick
2.11
import
QtQuick
.
Controls
2.4
import
QtQuick
.
Layouts
1.11
import
QGroundControl
1.0
import
QGroundControl
1.0
import
QGroundControl
.
Controls
1.0
import
QGroundControl
.
Controls
1.0
...
@@ -25,48 +27,59 @@ Rectangle {
...
@@ -25,48 +27,59 @@ Rectangle {
QGCFlickable
{
QGCFlickable
{
anchors.fill
:
parent
anchors.fill
:
parent
contentWidth
:
column
.
width
+
(
_margins
*
2
)
contentWidth
:
column
.
width
+
(
_margins
*
2
)
contentHeight
:
column
.
height
+
(
_margins
*
2
)
contentHeight
:
column
.
height
+
(
_margins
*
2
)
clip
:
true
clip
:
true
Column
{
Column
Layout
{
id
:
column
id
:
column
anchors.margins
:
_margins
anchors.margins
:
_margins
anchors.left
:
parent
.
left
anchors.left
:
parent
.
left
anchors.top
:
parent
.
top
anchors.top
:
parent
.
top
spacing
:
ScreenTools
.
defaultFontPixelHeight
spacing
:
ScreenTools
.
defaultFontPixelHeight
QGC
Button
{
QGC
CheckBox
{
text
:
qsTr
(
"
PX4 Vehicle
"
)
id
:
sendStatusText
onClicked
:
QGroundControl
.
startPX4MockLink
(
sendStatusText
.
checked
)
text
:
qsTr
(
"
Send status text + voice
"
)
}
}
QGCButton
{
QGCButton
{
text
:
qsTr
(
"
APM ArduCopter Vehicle
"
)
text
:
qsTr
(
"
PX4 Vehicle
"
)
onClicked
:
QGroundControl
.
startAPMArduCopterMockLink
(
sendStatusText
.
checked
)
Layout.fillWidth
:
true
onClicked
:
QGroundControl
.
startPX4MockLink
(
sendStatusText
.
checked
)
}
}
QGCButton
{
QGCButton
{
text
:
qsTr
(
"
APM ArduPlane Vehicle
"
)
text
:
qsTr
(
"
APM ArduCopter Vehicle
"
)
onClicked
:
QGroundControl
.
startAPMArduPlaneMockLink
(
sendStatusText
.
checked
)
visible
:
QGroundControl
.
hasAPMSupport
Layout.fillWidth
:
true
onClicked
:
QGroundControl
.
startAPMArduCopterMockLink
(
sendStatusText
.
checked
)
}
}
QGCButton
{
QGCButton
{
text
:
qsTr
(
"
APM ArduSub Vehicle
"
)
text
:
qsTr
(
"
APM ArduPlane Vehicle
"
)
onClicked
:
QGroundControl
.
startAPMArduSubMockLink
(
sendStatusText
.
checked
)
visible
:
QGroundControl
.
hasAPMSupport
Layout.fillWidth
:
true
onClicked
:
QGroundControl
.
startAPMArduPlaneMockLink
(
sendStatusText
.
checked
)
}
}
QGCButton
{
QGCButton
{
text
:
qsTr
(
"
APM ArduRover Vehicle
"
)
text
:
qsTr
(
"
APM ArduSub Vehicle
"
)
onClicked
:
QGroundControl
.
startAPMArduRoverMockLink
(
sendStatusText
.
checked
)
visible
:
QGroundControl
.
hasAPMSupport
Layout.fillWidth
:
true
onClicked
:
QGroundControl
.
startAPMArduSubMockLink
(
sendStatusText
.
checked
)
}
}
QGCButton
{
QGCButton
{
text
:
qsTr
(
"
Generic Vehicle
"
)
text
:
qsTr
(
"
APM ArduRover Vehicle
"
)
onClicked
:
QGroundControl
.
startGenericMockLink
(
sendStatusText
.
checked
)
visible
:
QGroundControl
.
hasAPMSupport
Layout.fillWidth
:
true
onClicked
:
QGroundControl
.
startAPMArduRoverMockLink
(
sendStatusText
.
checked
)
}
}
QGCCheckBox
{
QGCButton
{
id
:
sendStatusText
text
:
qsTr
(
"
Generic Vehicle
"
)
text
:
qsTr
(
"
Send status text + voice
"
)
Layout.fillWidth
:
true
onClicked
:
QGroundControl
.
startGenericMockLink
(
sendStatusText
.
checked
)
}
}
QGCButton
{
QGCButton
{
text
:
qsTr
(
"
Stop One MockLink
"
)
text
:
qsTr
(
"
Stop One MockLink
"
)
onClicked
:
QGroundControl
.
stopOneMockLink
()
Layout.fillWidth
:
true
onClicked
:
QGroundControl
.
stopOneMockLink
()
}
}
}
}
}
}
...
...
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