summaryrefslogtreecommitdiff
path: root/examples/declarative/landmarkmap
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/landmarkmap')
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapcommon/ScrollBar.qml80
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapcommon/Slider.qml81
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/Button.qml88
-rw-r--r--examples/declarative/landmarkmap/landmarkmapmobile/Floater.qml90
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/ListDelegate.qml66
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/StatusBar.qml66
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/TitleBar.qml76
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/ToolBar.qml79
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/gloss.pngbin0 -> 1236 bytes
-rw-r--r--examples/declarative/landmarkmap/landmarkmapmobile/images/landmarkstar.pngbin0 -> 583 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.pngbin0 -> 1415 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.sci5
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/moon.pngbin0 -> 2433 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/quit.pngbin0 -> 2369 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/star.pngbin0 -> 349 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/stripes.pngbin0 -> 257 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/sun.pngbin0 -> 8153 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.pngbin0 -> 1436 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.sci5
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.pngbin0 -> 2550 bytes
-rwxr-xr-xexamples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.sci5
21 files changed, 641 insertions, 0 deletions
diff --git a/examples/declarative/landmarkmap/landmarkmapcommon/ScrollBar.qml b/examples/declarative/landmarkmap/landmarkmapcommon/ScrollBar.qml
new file mode 100755
index 00000000..52177a65
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapcommon/ScrollBar.qml
@@ -0,0 +1,80 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+
+Item {
+ id: container
+
+ property variant flickableArea
+
+ Rectangle {
+ radius: 5
+ color: "black"
+ opacity: 0.3
+ border.color: "white"
+ border.width: 2
+ x: 0
+ y: flickableArea.visibleArea.yPosition * container.height
+ width: parent.width
+ height: flickableArea.visibleArea.heightRatio * container.height
+ }
+ states: [
+ State {
+ name: "show"
+ when: flickableArea.movingVertically
+ PropertyChanges {
+ target: container
+ opacity: 1
+ }
+ }
+ ]
+ transitions: [
+ Transition {
+ from: "*"
+ to: "*"
+ NumberAnimation {
+ target: container
+ properties: "opacity"
+ duration: 400
+ }
+ }
+ ]
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapcommon/Slider.qml b/examples/declarative/landmarkmap/landmarkmapcommon/Slider.qml
new file mode 100755
index 00000000..9a652842
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapcommon/Slider.qml
@@ -0,0 +1,81 @@
+/*/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+
+Item {
+ id: slider; width: 400; height: 16
+ // value is read/write.
+ property int value
+ onValueChanged: { handle.x = 2 + (value - minimum) * slider.xMax / (maximum - minimum); }
+ property real maximum: 1
+ property real minimum: 1
+ property int xMax: slider.width - handle.width-2
+ property int xMin: 2
+
+
+ Rectangle {
+ anchors.fill: parent
+ border.color: "white"; border.width: 0; radius: 8
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "#66343434" }
+ GradientStop { position: 1.0; color: "#66000000" }
+ }
+ }
+
+ Rectangle {
+ id: handle; smooth: true
+ //x: 2 + (value - minimum) * slider.xMax / (maximum - minimum)
+
+ x: slider.width / 2 - handle.width / 2;
+
+ y: 2; width: 30; height: slider.height-4; radius: 6
+ gradient: Gradient {
+ GradientStop { position: 0.0; color: "lightgray" }
+ GradientStop { position: 1.0; color: "gray" }
+ }
+
+ MouseArea {
+ anchors.fill: parent; drag.target: parent
+ drag.axis: Drag.XAxis; drag.minimumX: slider.xMin; drag.maximumX: slider.xMax
+ onPositionChanged: { value = (maximum - minimum) * (handle.x-slider.xMin) / (slider.xMax - slider.xMin) + minimum; }
+ }
+ }
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/Button.qml b/examples/declarative/landmarkmap/landmarkmapmobile/Button.qml
new file mode 100755
index 00000000..3afe3bfe
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/Button.qml
@@ -0,0 +1,88 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+
+Item {
+ id: container
+
+ signal clicked
+
+ property string text
+ property color textColor: "white"
+
+ BorderImage {
+ id: buttonImage
+ source: "images/toolbutton.sci"
+ width: container.width; height: container.height
+ }
+
+ MouseArea {
+ id: mouseRegion
+ anchors.fill: buttonImage
+ onClicked: { container.clicked(); }
+ }
+ Text {
+ id: buttonText
+ color: textColor
+ anchors.centerIn: buttonImage; font.bold: true
+ text: container.text; style: Text.Raised; styleColor: "black"
+ }
+
+ states: [
+ State {
+ name: "Pressed"
+ when: mouseRegion.pressed == true
+ PropertyChanges { target: buttonImage; opacity: 0.25 }
+ PropertyChanges { target: buttonText; opacity: 0.25 }
+ },
+ State {
+ name: "Disabled"
+ PropertyChanges{ target: buttonImage; opacity: 0 }
+ PropertyChanges{ target: buttonText; opacity: 0 }
+ }
+
+ ]
+
+ function disable() {
+ container.state = "Disabled";
+ mouseRegion.enabled = false;
+ }
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/Floater.qml b/examples/declarative/landmarkmap/landmarkmapmobile/Floater.qml
new file mode 100644
index 00000000..6e583265
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/Floater.qml
@@ -0,0 +1,90 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+import QtMobility.location 1.1
+
+
+Rectangle {
+ id: container
+ property int maxX: parent.width; property int maxY: parent.height
+ property double latitude
+ property double longitude
+ property int landmarks
+ property int categories
+
+ width: 180; height: 145
+ opacity: 0.7
+ border.color: "black"
+ border.width: 1
+ radius: 5
+ gradient: Gradient {
+ GradientStop {position: 0.0; color: "grey"}
+ GradientStop {position: 1.0; color: "black"}
+ }
+ MouseArea {
+ anchors.fill: parent
+ drag.target: parent
+ drag.axis: Drag.XandYAxis
+ drag.minimumX: -(parent.width * (2/3)); drag.maximumX: parent.maxX - (parent.width/3)
+ drag.minimumY: -(parent.height/2); drag.maximumY: parent.maxY - (parent.height/2)
+ }
+
+ Column {
+ id: locationGrid
+ anchors {left: parent.left; leftMargin: 5; top: parent.top; topMargin: 5}
+ spacing: 5
+ Text {color: "white"; font.bold: true
+ text: "My location:"; style: Text.Raised; styleColor: "black"
+ }
+ Text {color: "white"; font.bold: true; width: container.width - 5; elide: Text.ElideRight
+ text: "Lat: " + latitude; style: Text.Raised; styleColor: "black"
+ }
+ Text {color: "white"; font.bold: true; width: container.width - 5; elide: Text.ElideRight
+ text: "Lon: " + longitude; style: Text.Raised; styleColor: "black"
+ }
+ Text {color: "white"; font.bold: true
+ text: "Landmarks: " + landmarks; style: Text.Raised; styleColor: "black"
+ }
+ Text {color: "white"; font.bold: true
+ text: "Categories: " + categories; style: Text.Raised; styleColor: "black"
+ }
+ }
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/ListDelegate.qml b/examples/declarative/landmarkmap/landmarkmapmobile/ListDelegate.qml
new file mode 100755
index 00000000..86334db5
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/ListDelegate.qml
@@ -0,0 +1,66 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+ Component {
+ Item {
+ id: wrapper; width: wrapper.ListView.view.width; height: 86
+ Item {
+ id: moveMe
+ Rectangle { color: "black"; opacity: index % 2 ? 0.2 : 0.4; height: 84; width: wrapper.width; y: 1 }
+ Rectangle {
+ x: 6; y: 4; width: 76; height: 76; color: "white"; smooth: true
+
+ Image {
+ //source: imagePath;
+ source: "http://farm" + farm + ".static.flickr.com/" + server + "/" + id + "_" + secret + "_t.jpg"
+ width: parent.width; height: parent.height
+ x: 0; y: 0 }
+
+ Image { source: "images/gloss.png" }
+ }
+ Column {
+ x: 92; width: wrapper.ListView.view.width - 95; y: 15; spacing: 2
+ Text { text: title; color: "white"; width: parent.width; font.bold: true; elide: Text.ElideRight; style: Text.Raised; styleColor: "black" }
+ Text { text: datetaken; width: parent.width; elide: Text.ElideRight; color: "#cccccc"; style: Text.Raised; styleColor: "black" }
+ }
+ }
+ }
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/StatusBar.qml b/examples/declarative/landmarkmap/landmarkmapmobile/StatusBar.qml
new file mode 100755
index 00000000..d8003ffd
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/StatusBar.qml
@@ -0,0 +1,66 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+
+// At the moment unused, could accommodate e.g. satellite symbols etc.
+Item {
+ property alias text1: freeText.text
+ id: statusBar
+ BorderImage { source: "images/titlebar.sci"; width: parent.width; height: parent.height + 14; y: -7 }
+
+ Item {
+ id: container
+ width: (parent.width * 2) - 55 ; height: parent.height
+ Text {
+ id: freeText
+ anchors {
+ leftMargin: 10; rightMargin: 10;
+ verticalCenter: parent.verticalCenter
+ }
+ elide: Text.ElideLeft
+ text: ""
+ font.bold: true; color: "White"; style: Text.Raised; styleColor: "Black"
+ }
+ }
+ transitions: Transition {
+ NumberAnimation { properties: "x"; easing.type: Easing.InOutQuad }
+ }
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/TitleBar.qml b/examples/declarative/landmarkmap/landmarkmapmobile/TitleBar.qml
new file mode 100755
index 00000000..43087a4f
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/TitleBar.qml
@@ -0,0 +1,76 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+
+Item {
+ id: titleBar
+ BorderImage { source: "images/titlebar.sci"; width: parent.width; height: parent.height + 14; y: -7 }
+
+ Item {
+ id: container
+ width: (parent.width * 2) - 55 ; height: parent.height
+
+ Image {
+ id: quitButton
+ anchors.left: parent.left//; anchors.leftMargin: 0
+ anchors.verticalCenter: parent.verticalCenter
+ source: "images/quit.png"
+ MouseArea {
+ anchors.fill: parent
+ onClicked: Qt.quit()
+ }
+ }
+
+ Text {
+ id: categoryText
+ anchors {
+ left: quitButton.right; leftMargin: 10; rightMargin: 10
+ verticalCenter: parent.verticalCenter
+ }
+ elide: Text.ElideLeft
+ text: "Landmarkmap example"
+ font.bold: true; color: "White"; style: Text.Raised; styleColor: "Black"
+ }
+ }
+ transitions: Transition {
+ NumberAnimation { properties: "x"; easing.type: Easing.InOutQuad }
+ }
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/ToolBar.qml b/examples/declarative/landmarkmap/landmarkmapmobile/ToolBar.qml
new file mode 100755
index 00000000..cb951ca1
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/ToolBar.qml
@@ -0,0 +1,79 @@
+/****************************************************************************
+**
+** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
+** All rights reserved.
+** Contact: Nokia Corporation (qt-info@nokia.com)
+**
+** This file is part of the examples of the Qt Mobility Components.
+**
+** $QT_BEGIN_LICENSE:BSD$
+** You may use this file under the terms of the BSD license as follows:
+**
+** "Redistribution and use in source and binary forms, with or without
+** modification, are permitted provided that the following conditions are
+** met:
+** * Redistributions of source code must retain the above copyright
+** notice, this list of conditions and the following disclaimer.
+** * Redistributions in binary form must reproduce the above copyright
+** notice, this list of conditions and the following disclaimer in
+** the documentation and/or other materials provided with the
+** distribution.
+** * Neither the name of Nokia Corporation and its Subsidiary(-ies) nor
+** the names of its contributors may be used to endorse or promote
+** products derived from this software without specific prior written
+** permission.
+**
+** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE."
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+import Qt 4.7
+
+Item {
+ id: toolbar
+
+ property alias button1Label: button1.text
+ property alias button2Label: button2.text
+ property alias button3Label: button3.text
+ property alias button1FontColor: button1.textColor
+ property alias button2FontColor: button2.textColor
+ property alias button3FontColor: button3.textColor
+ signal button1Clicked
+ signal button2Clicked
+ signal button3Clicked
+
+ BorderImage { source: "images/titlebar.sci"; width: parent.width; height: parent.height + 14; y: -7 }
+
+ Button {
+ id: button1
+ anchors.left: parent.left; y: 3; width: parent.width/3; height: 32
+ onClicked: toolbar.button1Clicked()
+ }
+
+ Button {
+ id: button2
+ anchors.left: button1.right; anchors.leftMargin: 5; y: 3; width: parent.width/3 - anchors.leftMargin; height: 32
+ onClicked: toolbar.button2Clicked()
+ }
+
+ Button {
+ id: button3
+ anchors.left: button2.right; anchors.leftMargin: 5; y: 3; width: parent.width/3 - anchors.leftMargin; height: 32
+ onClicked: toolbar.button3Clicked()
+ }
+
+ function disableButton2() {
+ button2.disable();
+ }
+}
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/gloss.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/gloss.png
new file mode 100755
index 00000000..5d370cd9
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/gloss.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/landmarkstar.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/landmarkstar.png
new file mode 100644
index 00000000..d44de204
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/landmarkstar.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.png
new file mode 100755
index 00000000..2cc38dc3
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.sci b/examples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.sci
new file mode 100755
index 00000000..054bff78
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/lineedit.sci
@@ -0,0 +1,5 @@
+border.left: 10
+border.top: 10
+border.bottom: 10
+border.right: 10
+source: lineedit.png
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/moon.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/moon.png
new file mode 100755
index 00000000..9407b2b4
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/moon.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/quit.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/quit.png
new file mode 100755
index 00000000..5bda1b6e
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/quit.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/star.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/star.png
new file mode 100755
index 00000000..27ef9242
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/star.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/stripes.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/stripes.png
new file mode 100755
index 00000000..9f36727e
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/stripes.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/sun.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/sun.png
new file mode 100755
index 00000000..7713ca5c
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/sun.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.png
new file mode 100755
index 00000000..51c90082
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.sci b/examples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.sci
new file mode 100755
index 00000000..0418d94c
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/titlebar.sci
@@ -0,0 +1,5 @@
+border.left: 10
+border.top: 12
+border.bottom: 12
+border.right: 10
+source: titlebar.png
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.png b/examples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.png
new file mode 100755
index 00000000..11310013
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.png
Binary files differ
diff --git a/examples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.sci b/examples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.sci
new file mode 100755
index 00000000..9e4f9653
--- /dev/null
+++ b/examples/declarative/landmarkmap/landmarkmapmobile/images/toolbutton.sci
@@ -0,0 +1,5 @@
+border.left: 15
+border.top: 4
+border.bottom: 4
+border.right: 15
+source: toolbutton.png