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
f7ad3693
Commit
f7ad3693
authored
8 years ago
by
Gus Grubba
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3247 from dogmaphobic/offlineMap
Offline map
parents
916651a6
b31e2025
master
dev1
merge_branch_alt
original
phil
rc1
No related merge requests found
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
356 additions
and
158 deletions
+356
-158
gradle-wrapper.properties
android/gradle/wrapper/gradle-wrapper.properties
+1
-1
QGCButton.qml
src/QmlControls/QGCButton.qml
+1
-1
QGCTextField.qml
src/QmlControls/QGCTextField.qml
+1
-0
ScreenToolsController.cc
src/QmlControls/ScreenToolsController.cc
+1
-1
QGCMapEngine.cpp
src/QtLocationPlugin/QGCMapEngine.cpp
+1
-1
OfflineMap.qml
src/QtLocationPlugin/QMLControl/OfflineMap.qml
+349
-154
MainWindowLeftPanel.qml
src/ui/MainWindowLeftPanel.qml
+2
-0
No files found.
android/gradle/wrapper/gradle-wrapper.properties
View file @
f7ad3693
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
...
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath
=
wrapper/dists
distributionPath
=
wrapper/dists
zipStoreBase
=
GRADLE_USER_HOME
zipStoreBase
=
GRADLE_USER_HOME
zipStorePath
=
wrapper/dists
zipStorePath
=
wrapper/dists
distributionUrl
=
http
\:
//services.gradle.org/distributions/gradle-1.12
-all.zip
distributionUrl
=
http
s
\:
//services.gradle.org/distributions/gradle-2.2.1
-all.zip
This diff is collapsed.
Click to expand it.
src/QmlControls/QGCButton.qml
View file @
f7ad3693
...
@@ -60,7 +60,7 @@ Button {
...
@@ -60,7 +60,7 @@ Button {
background
:
Item
{
background
:
Item
{
property
bool
down
:
control
.
pressed
||
(
control
.
checkable
&&
control
.
checked
)
property
bool
down
:
control
.
pressed
||
(
control
.
checkable
&&
control
.
checked
)
implicitWidth
:
Math
.
round
(
TextSingleton
.
implicitHeight
*
4.5
)
implicitWidth
:
Math
.
round
(
TextSingleton
.
implicitHeight
*
4.5
)
implicitHeight
:
ScreenTools
.
isMobile
?
ScreenTools
.
defaultFontPixelHeight
*
3
*
0.7
5
:
Math
.
max
(
25
,
Math
.
round
(
TextSingleton
.
implicitHeight
*
1.2
))
implicitHeight
:
ScreenTools
.
isMobile
?
ScreenTools
.
defaultFontPixelHeight
*
2.
5
:
Math
.
max
(
25
,
Math
.
round
(
TextSingleton
.
implicitHeight
*
1.2
))
Rectangle
{
Rectangle
{
anchors.fill
:
parent
anchors.fill
:
parent
...
...
This diff is collapsed.
Click to expand it.
src/QmlControls/QGCTextField.qml
View file @
f7ad3693
...
@@ -31,6 +31,7 @@ TextField {
...
@@ -31,6 +31,7 @@ TextField {
}
}
style
:
TextFieldStyle
{
style
:
TextFieldStyle
{
font.pixelSize
:
ScreenTools
.
defaultFontPixelSize
background
:
Item
{
background
:
Item
{
id
:
backgroundItem
id
:
backgroundItem
...
...
This diff is collapsed.
Click to expand it.
src/QmlControls/ScreenToolsController.cc
View file @
f7ad3693
...
@@ -31,7 +31,7 @@ const double ScreenToolsController::_defaultFontPixelSizeRatio = 1.0;
...
@@ -31,7 +31,7 @@ const double ScreenToolsController::_defaultFontPixelSizeRatio = 1.0;
#elif __android__
#elif __android__
const
double
ScreenToolsController
::
_defaultFontPixelSizeRatio
=
1.0
;
const
double
ScreenToolsController
::
_defaultFontPixelSizeRatio
=
1.0
;
#elif __ios__
#elif __ios__
const
double
ScreenToolsController
::
_defaultFontPixelSizeRatio
=
0.
8
;
const
double
ScreenToolsController
::
_defaultFontPixelSizeRatio
=
0.
6
;
#else
#else
const
double
ScreenToolsController
::
_defaultFontPixelSizeRatio
=
0.8
;
const
double
ScreenToolsController
::
_defaultFontPixelSizeRatio
=
0.8
;
#endif
#endif
...
...
This diff is collapsed.
Click to expand it.
src/QtLocationPlugin/QGCMapEngine.cpp
View file @
f7ad3693
...
@@ -266,7 +266,7 @@ QGCTileSet
...
@@ -266,7 +266,7 @@ QGCTileSet
QGCMapEngine
::
getTileCount
(
int
zoom
,
double
topleftLon
,
double
topleftLat
,
double
bottomRightLon
,
double
bottomRightLat
,
UrlFactory
::
MapType
mapType
)
QGCMapEngine
::
getTileCount
(
int
zoom
,
double
topleftLon
,
double
topleftLat
,
double
bottomRightLon
,
double
bottomRightLat
,
UrlFactory
::
MapType
mapType
)
{
{
if
(
zoom
<
1
)
zoom
=
1
;
if
(
zoom
<
1
)
zoom
=
1
;
if
(
zoom
>
18
)
zoom
=
18
;
if
(
zoom
>
MAX_MAP_ZOOM
)
zoom
=
MAX_MAP_ZOOM
;
QGCTileSet
set
;
QGCTileSet
set
;
set
.
tileX0
=
long2tileX
(
topleftLon
,
zoom
);
set
.
tileX0
=
long2tileX
(
topleftLon
,
zoom
);
set
.
tileY0
=
lat2tileY
(
topleftLat
,
zoom
);
set
.
tileY0
=
lat2tileY
(
topleftLat
,
zoom
);
...
...
This diff is collapsed.
Click to expand it.
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
f7ad3693
This diff is collapsed.
Click to expand it.
src/ui/MainWindowLeftPanel.qml
View file @
f7ad3693
...
@@ -193,6 +193,7 @@ Item {
...
@@ -193,6 +193,7 @@ Item {
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
text
:
qsTr
(
"
Offline Maps
"
)
text
:
qsTr
(
"
Offline Maps
"
)
exclusiveGroup
:
panelActionGroup
exclusiveGroup
:
panelActionGroup
visible
:
!
ScreenTools
.
isTinyScreen
onClicked
:
{
onClicked
:
{
if
(
__rightPanel
.
source
!=
"
OfflineMap.qml
"
)
{
if
(
__rightPanel
.
source
!=
"
OfflineMap.qml
"
)
{
__rightPanel
.
source
=
"
OfflineMap.qml
"
__rightPanel
.
source
=
"
OfflineMap.qml
"
...
@@ -282,6 +283,7 @@ Item {
...
@@ -282,6 +283,7 @@ Item {
//-- Main Setting Display Area
//-- Main Setting Display Area
Rectangle
{
Rectangle
{
id
:
settingDisplayArea
anchors.left
:
__verticalSeparator
.
right
anchors.left
:
__verticalSeparator
.
right
width
:
mainWindow
.
width
-
__leftMenu
.
width
-
__verticalSeparator
.
width
width
:
mainWindow
.
width
-
__leftMenu
.
width
-
__verticalSeparator
.
width
height
:
parent
.
height
-
toolBar
.
height
-
__topSeparator
.
height
height
:
parent
.
height
-
toolBar
.
height
-
__topSeparator
.
height
...
...
This diff is collapsed.
Click to expand it.
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