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
f2b56ac2
Commit
f2b56ac2
authored
Mar 22, 2017
by
Gus Grubba
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide Import/Export from mobile for now.
Add placeholder for device import/export.
parent
a0485cd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
94 additions
and
3 deletions
+94
-3
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+94
-3
No files found.
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
f2b56ac2
...
...
@@ -858,11 +858,13 @@ QGCView {
QGCButton
{
text
:
qsTr
(
"
Import
"
)
width
:
_buttonSize
visible
:
!
ScreenTools
.
isMobile
onClicked
:
rootLoader
.
sourceComponent
=
importDialog
}
QGCButton
{
text
:
qsTr
(
"
Export
"
)
width
:
_buttonSize
visible
:
!
ScreenTools
.
isMobile
enabled
:
QGroundControl
.
mapEngineManager
.
tileSets
.
count
>
1
onClicked
:
showExport
()
}
...
...
@@ -939,7 +941,7 @@ QGCView {
width
:
_bigButtonSize
enabled
:
QGroundControl
.
mapEngineManager
.
selectedCount
>
0
onClicked
:
{
showList
()
rootLoader
.
sourceComponent
=
exportToDevice
}
}
QGCButton
{
...
...
@@ -1100,8 +1102,7 @@ QGCView {
text
:
qsTr
(
"
Import From Device
"
)
width
:
_bigButtonSize
*
1.25
onClicked
:
{
showList
();
rootLoader
.
sourceComponent
=
null
rootLoader
.
sourceComponent
=
importFromDevice
}
}
QGCButton
{
...
...
@@ -1118,4 +1119,94 @@ QGCView {
}
}
Component
{
id
:
importFromDevice
Rectangle
{
width
:
mainWindow
.
width
height
:
mainWindow
.
height
color
:
"
black
"
anchors.centerIn
:
parent
Rectangle
{
width
:
parent
.
width
*
0.45
height
:
importCol
.
height
*
1.5
radius
:
ScreenTools
.
defaultFontPixelWidth
color
:
qgcPal
.
windowShadeDark
border.color
:
qgcPal
.
text
anchors.centerIn
:
parent
Column
{
id
:
importCol
spacing
:
ScreenTools
.
defaultFontPixelHeight
width
:
parent
.
width
anchors.centerIn
:
parent
QGCLabel
{
text
:
qsTr
(
"
Map Tile Set Import From Device
"
);
font.family
:
ScreenTools
.
demiboldFontFamily
font.pointSize
:
ScreenTools
.
mediumFontPointSize
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
QGCLabel
{
text
:
qsTr
(
"
NOT YET IMPLEMENTED
"
);
font.family
:
ScreenTools
.
demiboldFontFamily
font.pointSize
:
ScreenTools
.
mediumFontPointSize
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
QGCButton
{
text
:
qsTr
(
"
Close
"
)
width
:
_bigButtonSize
*
1.25
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
showList
();
rootLoader
.
sourceComponent
=
null
}
}
}
}
}
}
Component
{
id
:
exportToDevice
Rectangle
{
width
:
mainWindow
.
width
height
:
mainWindow
.
height
color
:
"
black
"
anchors.centerIn
:
parent
Rectangle
{
width
:
parent
.
width
*
0.45
height
:
importCol
.
height
*
1.5
radius
:
ScreenTools
.
defaultFontPixelWidth
color
:
qgcPal
.
windowShadeDark
border.color
:
qgcPal
.
text
anchors.centerIn
:
parent
Column
{
id
:
importCol
spacing
:
ScreenTools
.
defaultFontPixelHeight
width
:
parent
.
width
anchors.centerIn
:
parent
QGCLabel
{
text
:
qsTr
(
"
Map Tile Set Export To Device
"
);
font.family
:
ScreenTools
.
demiboldFontFamily
font.pointSize
:
ScreenTools
.
mediumFontPointSize
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
QGCLabel
{
text
:
qsTr
(
"
NOT YET IMPLEMENTED
"
);
font.family
:
ScreenTools
.
demiboldFontFamily
font.pointSize
:
ScreenTools
.
mediumFontPointSize
anchors.horizontalCenter
:
parent
.
horizontalCenter
}
QGCButton
{
text
:
qsTr
(
"
Close
"
)
width
:
_bigButtonSize
*
1.25
anchors.horizontalCenter
:
parent
.
horizontalCenter
onClicked
:
{
showList
();
rootLoader
.
sourceComponent
=
null
}
}
}
}
}
}
}
// QGCView
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