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
77749b5c
Commit
77749b5c
authored
May 16, 2017
by
Gus Grubba
Committed by
GitHub
May 16, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5159 from dogmaphobic/verbiageTweaks
Verbiage Tweaks
parents
6237ab4b
f4f3a5f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
SetupView.qml
src/VehicleSetup/SetupView.qml
+13
-12
No files found.
src/VehicleSetup/SetupView.qml
View file @
77749b5c
...
...
@@ -32,9 +32,9 @@ Rectangle {
readonly
property
real
_horizontalMargin
:
_defaultTextWidth
/
2
readonly
property
real
_verticalMargin
:
_defaultTextHeight
/
2
readonly
property
real
_buttonWidth
:
_defaultTextWidth
*
18
readonly
property
string
_armedVehicleText
:
qsTr
(
"
This operation cannot be performed while vehicle is armed.
"
)
readonly
property
string
_armedVehicleText
:
qsTr
(
"
This operation cannot be performed while
the
vehicle is armed.
"
)
property
string
_messagePanelText
:
"
missing message panel text
"
property
string
_messagePanelText
:
qsTr
(
"
missing message panel text
"
)
property
bool
_fullParameterVehicleAvailable
:
QGroundControl
.
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
!
QGroundControl
.
multiVehicleManager
.
activeVehicle
.
parameterManager
.
missingParameters
property
var
_corePlugin
:
QGroundControl
.
corePlugin
...
...
@@ -93,7 +93,8 @@ Rectangle {
}
else
{
var
autopilotPlugin
=
QGroundControl
.
multiVehicleManager
.
activeVehicle
.
autopilot
var
prereq
=
autopilotPlugin
.
prerequisiteSetup
(
vehicleComponent
)
if
(
prereq
!=
""
)
{
if
(
prereq
!==
""
)
{
//-- TODO: This cannot be trasnlated when built this way.
_messagePanelText
=
prereq
+
"
setup must be completed prior to
"
+
vehicleComponent
.
name
+
"
setup.
"
panelLoader
.
setSourceComponent
(
messagePanelComponent
)
}
else
{
...
...
@@ -141,7 +142,7 @@ Rectangle {
horizontalAlignment
:
Text
.
AlignHCenter
wrapMode
:
Text
.
WordWrap
font.pointSize
:
ScreenTools
.
mediumFontPointSize
text
:
t
r
(
"
%1 does not currently support setup of your vehicle type.
"
).
arg
(
QGroundControl
.
appName
)
+
text
:
qsT
r
(
"
%1 does not currently support setup of your vehicle type.
"
).
arg
(
QGroundControl
.
appName
)
+
"
If your vehicle is already configured you can still Fly.
"
onLinkActivated
:
Qt
.
openUrlExternally
(
link
)
...
...
@@ -162,7 +163,7 @@ Rectangle {
horizontalAlignment
:
Text
.
AlignHCenter
wrapMode
:
Text
.
WordWrap
font.pointSize
:
ScreenTools
.
largeFontPointSize
text
:
qsTr
(
"
Connect vehicle to your device and %1 will automatically detect it.
"
).
arg
(
QGroundControl
.
appName
)
+
text
:
qsTr
(
"
Vehicle settings and info will display after connecting your vehicle.
"
)
+
(
ScreenTools
.
isMobile
?
""
:
"
Click Firmware on the left to upgrade your vehicle.
"
)
onLinkActivated
:
Qt
.
openUrlExternally
(
link
)
...
...
@@ -182,8 +183,8 @@ Rectangle {
horizontalAlignment
:
Text
.
AlignHCenter
wrapMode
:
Text
.
WordWrap
font.pointSize
:
ScreenTools
.
mediumFontPointSize
text
:
"
You are currently connected to a vehicle, but that vehicle did not return back the full parameter list.
"
+
"
Because of this the full set of vehicle setup options are not available.
"
text
:
qsTr
(
"
You are currently connected to a vehicle but it did not return the full parameter list.
"
)
+
qsTr
(
"
As a result, the full set of vehicle setup options are not available.
"
)
onLinkActivated
:
Qt
.
openUrlExternally
(
link
)
}
...
...
@@ -251,7 +252,7 @@ Rectangle {
setupIndicator
:
false
checked
:
true
exclusiveGroup
:
setupButtonGroup
text
:
"
Summary
"
text
:
qsTr
(
"
Summary
"
)
Layout.fillWidth
:
true
onClicked
:
showSummaryPanel
()
...
...
@@ -263,7 +264,7 @@ Rectangle {
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
!
ScreenTools
.
isMobile
&&
_corePlugin
.
options
.
showFirmwareUpgrade
text
:
"
Firmware
"
text
:
qsTr
(
"
Firmware
"
)
Layout.fillWidth
:
true
onClicked
:
showFirmwarePanel
()
...
...
@@ -274,7 +275,7 @@ Rectangle {
exclusiveGroup
:
setupButtonGroup
visible
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
?
QGroundControl
.
multiVehicleManager
.
activeVehicle
.
genericFirmware
:
false
setupIndicator
:
false
text
:
"
PX4Flow
"
text
:
qsTr
(
"
PX4Flow
"
)
Layout.fillWidth
:
true
onClicked
:
showPX4FlowPanel
()
...
...
@@ -286,7 +287,7 @@ Rectangle {
setupComplete
:
joystickManager
.
activeJoystick
?
joystickManager
.
activeJoystick
.
calibrated
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
_fullParameterVehicleAvailable
&&
joystickManager
.
joysticks
.
length
!=
0
text
:
"
Joystick
"
text
:
qsTr
(
"
Joystick
"
)
Layout.fillWidth
:
true
onClicked
:
showJoystickPanel
()
...
...
@@ -313,7 +314,7 @@ Rectangle {
setupIndicator
:
false
exclusiveGroup
:
setupButtonGroup
visible
:
QGroundControl
.
multiVehicleManager
&&
QGroundControl
.
multiVehicleManager
.
parameterReadyVehicleAvailable
&&
_corePlugin
.
showAdvancedUI
text
:
"
Parameters
"
text
:
qsTr
(
"
Parameters
"
)
Layout.fillWidth
:
true
onClicked
:
showParametersPanel
()
...
...
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