Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
f233ac53
Commit
f233ac53
authored
Mar 30, 2017
by
Gus Grubba
Browse files
Moving Add New Set as a sibling of Map rather than a child.
parent
2673ed92
Changes
3
Show whitespace changes
Inline
Side-by-side
src/FlightMap/Widgets/CenterMapDropButton.qml
View file @
f233ac53
...
@@ -200,7 +200,7 @@ DropButton {
...
@@ -200,7 +200,7 @@ DropButton {
QGCButton
{
QGCButton
{
text
:
qsTr
(
"
Current Location
"
)
text
:
qsTr
(
"
Current Location
"
)
Layout.fillWidth
:
true
Layout.fillWidth
:
true
enabled
:
mainWindow
.
gcsPosition
.
isValid
&&
!
followVehicleCheckBox
.
checked
enabled
:
mainWindow
.
gcsPosition
&&
mainWindow
.
gcsPosition
.
isValid
&&
!
followVehicleCheckBox
.
checked
onClicked
:
{
onClicked
:
{
dropButton
.
hideDropDown
()
dropButton
.
hideDropDown
()
...
...
src/PlanView/PlanToolBar.qml
View file @
f233ac53
...
@@ -178,7 +178,7 @@ Rectangle {
...
@@ -178,7 +178,7 @@ Rectangle {
anchors.rightMargin
:
_margins
anchors.rightMargin
:
_margins
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
text
:
missionController
.
dirty
?
qsTr
(
"
Upload Required
"
)
:
qsTr
(
"
Upload
"
)
text
:
missionController
?
(
missionController
.
dirty
?
qsTr
(
"
Upload Required
"
)
:
qsTr
(
"
Upload
"
)
)
:
""
enabled
:
_activeVehicle
enabled
:
_activeVehicle
visible
:
_manualUpload
visible
:
_manualUpload
onClicked
:
missionController
.
upload
()
onClicked
:
missionController
.
upload
()
...
...
src/QtLocationPlugin/QMLControl/OfflineMap.qml
View file @
f233ac53
...
@@ -49,9 +49,9 @@ QGCView {
...
@@ -49,9 +49,9 @@ QGCView {
property
bool
_tooManyTiles
:
QGroundControl
.
mapEngineManager
.
tileCount
>
_maxTilesForDownload
property
bool
_tooManyTiles
:
QGroundControl
.
mapEngineManager
.
tileCount
>
_maxTilesForDownload
property
var
_settings
:
QGroundControl
.
settingsManager
.
flightMapSettings
property
var
_settings
:
QGroundControl
.
settingsManager
.
flightMapSettings
readonly
property
real
minZoomLevel
:
3
readonly
property
real
minZoomLevel
:
1
readonly
property
real
maxZoomLevel
:
20
readonly
property
real
maxZoomLevel
:
20
readonly
property
real
sliderTouchArea
:
ScreenTools
.
isMobile
?
ScreenTools
.
defaultFontPixelWidth
*
5
:
ScreenTools
.
defaultFontPixelWidth
*
3
readonly
property
real
sliderTouchArea
:
ScreenTools
.
defaultFontPixelWidth
*
(
ScreenTools
.
isTinyScreen
?
5
:
(
ScreenTools
.
isMobile
?
6
:
3
))
readonly
property
int
_maxTilesForDownload
:
100000
readonly
property
int
_maxTilesForDownload
:
100000
...
@@ -601,17 +601,27 @@ QGCView {
...
@@ -601,17 +601,27 @@ QGCView {
}
}
}
// Map
}
// Map
}
}
}
// Item - Add new set view
}
// Map
//-- Add new set dialog
//-- Add new set dialog
Rectangle
{
Rectangle
{
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.margins
:
ScreenTools
.
defaultFontPixelWidth
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.verticalCenter
:
parent
.
verticalCenter
anchors.right
:
parent
.
right
anchors.right
:
parent
.
right
visible
:
_map
.
visible
width
:
ScreenTools
.
defaultFontPixelWidth
*
(
ScreenTools
.
isTinyScreen
?
24
:
28
)
width
:
ScreenTools
.
defaultFontPixelWidth
*
(
ScreenTools
.
isTinyScreen
?
24
:
28
)
height
:
Math
.
min
(
parent
.
height
-
(
anchors
.
margins
*
2
),
addNewSetFlickable
.
y
+
addNewSetColumn
.
height
+
addNewSetLabel
.
anchors
.
margins
)
height
:
Math
.
min
(
parent
.
height
-
(
anchors
.
margins
*
2
),
addNewSetFlickable
.
y
+
addNewSetColumn
.
height
+
addNewSetLabel
.
anchors
.
margins
)
color
:
Qt
.
rgba
(
qgcPal
.
window
.
r
,
qgcPal
.
window
.
g
,
qgcPal
.
window
.
b
,
0.85
)
color
:
Qt
.
rgba
(
qgcPal
.
window
.
r
,
qgcPal
.
window
.
g
,
qgcPal
.
window
.
b
,
0.85
)
radius
:
ScreenTools
.
defaultFontPixelWidth
*
0.5
radius
:
ScreenTools
.
defaultFontPixelWidth
*
0.5
MouseArea
{
anchors.fill
:
parent
onWheel
:
{
wheel
.
accepted
=
true
;
}
onPressed
:
{
mouse
.
accepted
=
true
;
}
onReleased
:
{
mouse
.
accepted
=
true
;
}
}
QGCLabel
{
QGCLabel
{
id
:
addNewSetLabel
id
:
addNewSetLabel
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
anchors.margins
:
ScreenTools
.
defaultFontPixelHeight
/
2
...
@@ -853,8 +863,6 @@ QGCView {
...
@@ -853,8 +863,6 @@ QGCView {
}
// Column
}
// Column
}
// QGCFlickable
}
// QGCFlickable
}
// Rectangle - Add new set dialog
}
// Rectangle - Add new set dialog
}
// Item - Add new set view
}
// Map
QGCFlickable
{
QGCFlickable
{
id
:
_tileSetList
id
:
_tileSetList
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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