/**************************************************************************** ** ** Copyright (C) 2011 Nokia Institute of Technology. ** All rights reserved. ** Contact: Manager (renato.chencarek@openbossa.org) ** ** This file is part of the Incredible Circus project. ** ** GNU Lesser General Public License Usage ** ** This file may be used under the terms of the GNU Lesser General Public ** License version 2.1 as published by the Free Software Foundation and ** appearing in the file LICENSE.LGPL included in the packaging of this ** file. Please review the following information to ensure the GNU Lesser ** General Public License version 2.1 requirements will be met: ** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. ** ****************************************************************************/ import QtQuick 1.1 import Circus 1.0 import "widgets" Item { signal playClicked() signal menuClicked() signal restartClicked() MouseArea { anchors.fill: parent } Rectangle { anchors { top: frame.top left: parent.left right: frame.left bottom: frame.bottom rightMargin: -30 * scaleFactor } color: "#3b080d" } Rectangle { anchors { top: frame.top left: frame.right right: parent.right bottom: frame.bottom leftMargin: -30 * scaleFactor } color: "#36050c" } Image { anchors { top: parent.top left: parent.left right: parent.right bottom: frame.top bottomMargin: -38 * scaleFactor } fillMode: Image.Tile source: "image://cache/common/bg.png" } Image { anchors { top: frame.bottom left: parent.left right: parent.right bottom: parent.bottom topMargin: -41 * scaleFactor bottomMargin: -2 } fillMode: Image.Tile source: "image://cache/common/bg.png" } Image { anchors.top: parent.top anchors.horizontalCenter: parent.horizontalCenter anchors.topMargin: 41 * scaleFactor sourceSize.width: parent.width - 20 sourceSize.height: 80 * scaleFactor source: "image://title/" + qsTr("PAUSE") } Frame { id: frame anchors { verticalCenter: parent.verticalCenter horizontalCenter: parent.horizontalCenter } title: qsTr("Don't give up") background: "image://cache/common/frameshadow.png" } ImageButton { onClicked: playClicked() anchors.verticalCenter: frame.verticalCenter anchors.horizontalCenter: frame.horizontalCenter source: "image://cache/screens/pause/bt_resume.png" } BottomBar { Button { text: qsTr("Menu") onClicked: menuClicked() } ImageButton { onClicked: sound.enabled = !sound.enabled source: sound.enabled ? "image://cache/buttons/bt_song.png" : "image://cache/buttons/bt_song_off.png" } Button { text: qsTr("Restart Level") onClicked: restartClicked() } } }