12 import org.kde.edu.marble 0.11
16 width: 600; height: 450
18 SystemPalette {
id: activePalette }
26 transformOrigin:
"Center"
30 property bool flipped:
false
45 height: flipable.height
47 mapThemeId: settings.mapTheme
48 activeFloatItems: [
"compass",
"scalebar",
"progress" ]
52 image:
"configure.svg"
53 x: flipable.width - width - 10
54 y: flipable.height - height - 10;
56 onClicked: flipable.flipped = !flipable.flipped
61 anchors.bottom: configure.top
63 x: flipable.width - width - 10
65 onClicked: map.zoomIn()
70 anchors.bottom: zoom_in.top
73 x: flipable.width - width - 10
75 onClicked: map.zoomOut()
78 Component.onCompleted: {
79 map.center.longitude = settings.quitLongitude
80 map.center.latitude = settings.quitLatitude
81 map.radius = settings.quitRadius
90 height: screen.height;
97 width: 128+10; height: 128+25
102 width: 128; height: 128;
103 source:
"image://maptheme/" + model.modelData.id
107 anchors.left: model.modelData.name.right
108 text: model.modelData.name;
110 horizontalAlignment:
"AlignHCenter"
121 color:
"lightsteelblue"
128 width: parent.width; height: parent.height - flipback.height - 30
129 cellWidth: 130; cellHeight: 150
130 model: themes.mapThemes()
142 var x = maplistarea.mouseX + mapListView.contentX
143 var y = maplistarea.mouseY + mapListView.contentY
144 mapListView.currentIndex = mapListView.indexAt( x, y )
150 anchors.top: mapListView.bottom;
152 x: mapListView.visibleArea.xPosition * mapListView.width
153 width: mapListView.visibleArea.widthRatio * mapListView.width
160 image:
"flipback.svg"
162 y: flipable.height - height - 10;
166 flipable.flipped = !flipable.flipped
168 map.mapThemeId = themes.mapThemes()[mapListView.currentIndex].id
173 transform: Rotation {
174 origin.x: flipable.width/2
175 origin.y: flipable.height/2
176 axis.x: 1; axis.y:0; axis.z: 0
177 angle: flipable.angle
182 PropertyChanges { target: flipable;
angle: 180 }
183 when: flipable.flipped
186 transitions: Transition {
187 NumberAnimation { properties:
"angle"; duration: 400 }
double angle(double vec1[3], double vec2[3])
Provides access to all map themes installed locally.
static qreal radius(qreal zoom)