Changeset View
Changeset View
Standalone View
Standalone View
src/apps/marble-maps/MainScreen.qml
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | 49 | { | |||
---|---|---|---|---|---|
50 | properties.exitItem.visible = true | 50 | properties.exitItem.visible = true | ||
51 | } | 51 | } | ||
52 | } | 52 | } | ||
53 | 53 | | |||
54 | Item { | 54 | Item { | ||
55 | id: mapItem | 55 | id: mapItem | ||
56 | 56 | | |||
57 | PinchArea { | 57 | PinchArea { | ||
58 | anchors.fill: parent | 58 | anchors { | ||
59 | top: parent.top | ||||
60 | left: parent.left | ||||
61 | right: parent.right | ||||
62 | bottom: dialogContainer.top | ||||
63 | } | ||||
59 | enabled: true | 64 | enabled: true | ||
60 | 65 | | |||
61 | onPinchStarted: marbleMaps.handlePinchStarted(pinch.center) | 66 | onPinchStarted: marbleMaps.handlePinchStarted(pinch.center) | ||
62 | onPinchFinished: marbleMaps.handlePinchFinished(pinch.center) | 67 | onPinchFinished: marbleMaps.handlePinchFinished(pinch.center) | ||
63 | onPinchUpdated: marbleMaps.handlePinchUpdated(pinch.center, pinch.scale); | 68 | onPinchUpdated: marbleMaps.handlePinchUpdated(pinch.center, pinch.scale); | ||
64 | 69 | | |||
65 | MarbleMaps { | 70 | MarbleMaps { | ||
66 | id: marbleMaps | 71 | id: marbleMaps | ||
67 | 72 | | |||
68 | anchors { | 73 | anchors.fill: parent | ||
69 | top: parent.top | | |||
70 | left: parent.left | | |||
71 | right: parent.right | | |||
72 | bottom: dialogContainer.top | | |||
73 | } | | |||
74 | 74 | | |||
75 | visible: true | 75 | visible: true | ||
76 | focus: true | 76 | focus: true | ||
77 | 77 | | |||
78 | // Theme settings. | 78 | // Theme settings. | ||
79 | projection: MarbleItem.Mercator | 79 | projection: MarbleItem.Mercator | ||
80 | mapThemeId: "earth/vectorosm/vectorosm.dgml" | 80 | mapThemeId: "earth/vectorosm/vectorosm.dgml" | ||
81 | 81 | | |||
▲ Show 20 Lines • Show All 83 Lines • ▼ Show 20 Line(s) | 164 | Timer { | |||
165 | id: quitTimer | 165 | id: quitTimer | ||
166 | interval: 3000; | 166 | interval: 3000; | ||
167 | running: false; | 167 | running: false; | ||
168 | repeat: false | 168 | repeat: false | ||
169 | onTriggered: itemStack.state = "" | 169 | onTriggered: itemStack.state = "" | ||
170 | } | 170 | } | ||
171 | } | 171 | } | ||
172 | } | 172 | } | ||
173 | 173 | } | |||
174 | BorderImage { | 174 | BorderImage { | ||
175 | anchors.fill: dialogContainer | 175 | anchors.fill: dialogContainer | ||
176 | anchors.margins: -14 | 176 | anchors.margins: -14 | ||
177 | border { top: 14; left: 14; right: 14; bottom: 14 } | 177 | border { top: 14; left: 14; right: 14; bottom: 14 } | ||
178 | source: "qrc:///border_shadow.png" | 178 | source: "qrc:///border_shadow.png" | ||
179 | } | 179 | } | ||
180 | 180 | | |||
181 | Item { | 181 | Item { | ||
▲ Show 20 Lines • Show All 115 Lines • ▼ Show 20 Line(s) | |||||
297 | PositionMarker { | 297 | PositionMarker { | ||
298 | id: positionMarker | 298 | id: positionMarker | ||
299 | posX: navigationManager.visible ? navigationManager.snappedPositionMarkerScreenPosition.x : 0 | 299 | posX: navigationManager.visible ? navigationManager.snappedPositionMarkerScreenPosition.x : 0 | ||
300 | posY: navigationManager.visible ? navigationManager.snappedPositionMarkerScreenPosition.y : 0 | 300 | posY: navigationManager.visible ? navigationManager.snappedPositionMarkerScreenPosition.y : 0 | ||
301 | angle: marbleMaps.angle | 301 | angle: marbleMaps.angle | ||
302 | visible: navigationManager.visible | 302 | visible: navigationManager.visible | ||
303 | } | 303 | } | ||
304 | } | 304 | } | ||
305 | } | | |||
306 | 305 | | |||
307 | states: [ | 306 | states: [ | ||
308 | State { | 307 | State { | ||
309 | name: "" | 308 | name: "" | ||
310 | PropertyChanges { target: quitHelper; visible: false } | 309 | PropertyChanges { target: quitHelper; visible: false } | ||
311 | PropertyChanges { target: search; visible: true } | 310 | PropertyChanges { target: search; visible: true } | ||
312 | PropertyChanges { target: placemarkDialog; visible: false } | 311 | PropertyChanges { target: placemarkDialog; visible: false } | ||
313 | PropertyChanges { target: routeEditor; visible: false } | 312 | PropertyChanges { target: routeEditor; visible: false } | ||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |