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
e8e9aa4c
Commit
e8e9aa4c
authored
Jul 30, 2018
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parent
30adfd96
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
ParameterEditor.qml
src/QmlControls/ParameterEditor.qml
+6
-12
No files found.
src/QmlControls/ParameterEditor.qml
View file @
e8e9aa4c
...
...
@@ -33,6 +33,7 @@ QGCView {
property
var
_searchResults
///< List of parameter names from search results
property
bool
_showRCToParam
:
!
ScreenTools
.
isMobile
&&
QGroundControl
.
multiVehicleManager
.
activeVehicle
.
px4Firmware
property
var
_activeVehicle
:
QGroundControl
.
multiVehicleManager
.
activeVehicle
property
var
_appSettings
:
QGroundControl
.
settingsManager
.
appSettings
ParameterEditorController
{
id
:
controller
;
...
...
@@ -112,28 +113,18 @@ QGCView {
MenuItem
{
text
:
qsTr
(
"
Load from file...
"
)
onTriggered
:
{
var
appSettings
=
QGroundControl
.
settingsManager
.
appSettings
fileDialog
.
qgcView
=
qgcView
fileDialog
.
title
=
qsTr
(
"
Select Parameter File
"
)
fileDialog
.
title
=
qsTr
(
"
Load Parameters
"
)
fileDialog
.
selectExisting
=
true
fileDialog
.
folder
=
appSettings
.
parameterSavePath
fileDialog
.
fileExtension
=
appSettings
.
parameterFileExtension
fileDialog
.
nameFilters
=
[
qsTr
(
"
Parameter Files (*.%1)
"
).
arg
(
appSettings
.
parameterFileExtension
)
,
qsTr
(
"
All Files (*.*)
"
)
]
fileDialog
.
openForLoad
()
}
}
MenuItem
{
text
:
qsTr
(
"
Save to file...
"
)
onTriggered
:
{
var
appSettings
=
QGroundControl
.
settingsManager
.
appSettings
fileDialog
.
qgcView
=
qgcView
fileDialog
.
title
=
qsTr
(
"
Save Parameters
"
)
fileDialog
.
selectExisting
=
false
fileDialog
.
folder
=
appSettings
.
parameterSavePath
fileDialog
.
fileExtension
=
appSettings
.
parameterFileExtension
fileDialog
.
nameFilters
=
[
qsTr
(
"
Parameter Files (*.%1)
"
).
arg
(
appSettings
.
parameterFileExtension
)
,
qsTr
(
"
All Files (*.*)
"
)
]
fileDialog
.
openForSave
()
}
}
...
...
@@ -292,7 +283,10 @@ QGCView {
}
// QGCViewPanel
QGCFileDialog
{
id
:
fileDialog
id
:
fileDialog
folder
:
_appSettings
.
parameterSavePath
fileExtension
:
_appSettings
.
parameterFileExtension
nameFilters
:
[
qsTr
(
"
Parameter Files (*.%1)
"
).
arg
(
_appSettings
.
parameterFileExtension
)
,
qsTr
(
"
All Files (*.*)
"
)
]
onAcceptedForSave
:
{
controller
.
saveToFile
(
file
)
...
...
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