diff --git a/src/activities/watercycle/Message.qml.autosave b/src/activities/watercycle/Message.qml.autosave deleted file mode 100644 index 797bfbfc8..000000000 --- a/src/activities/watercycle/Message.qml.autosave +++ /dev/null @@ -1,147 +0,0 @@ -/*GCompris-Qt Message.qml -* Copyright (C) 2015 Siddhesh suthar -* -* Authors: -* Bruno Coudoin (GTK+ version) -* Sagar Chand Agarwal (Qt Quick port) -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation; either version 3 of the License, or -* (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, see . -*/ - -import QtQuick 2.1 -import "../../core" -import GCompris 1.0 -import "watercycle.js" as Activity - -Item{ - id: message - opacity: displayed ? 1 : 0 - - property bool displayed: index == 0 ? false : true - - // The message in the intro array, set to 0 to disable - property int index: 1 - - property variant intro: [ - "", - qsTr("The Water Cycle (also known as the hydrologic cycle) is the journey water takes " - +"as it circulates from the land to the sky and back again." - +" The Sun's heat provides energy to evaporate water from the Earth's surface (oceans, lakes,etc)."), - qsTr(" Plants also lose water to the air (this is called transpiration). The water vapor eventually condenses," - +" forming tiny droplets in clouds. When the clouds meet cool air over land, precipitation is triggered, " - +" and water returns to the land (or sea). Some of the precipitation soaks into the ground. " - ), - qsTr("Some of the underground water is trapped between rock or clay layers; this is called groundwater. " - +"But most of the water flows downhill as runoff (above ground or underground), eventually returning to the seas"), - qsTr("Your goal is to complete water cycle before Tux reaches home " - +"Click on the different components which make up the Water Cycle " - +"First click on sun,then cloud ,then motor near the river and" - +"at last regulate the switch to provide water to Tux's bath"), - qsTr("You can hover at each component to see their main functions. " - +"Learn and Enjoy") - ] - - Behavior on opacity { NumberAnimation {duration: 100 } } - - Rectangle { - id: intro_textbg - x: intro_text.x -4 - y: intro_text.y -4 - width: intro_text.width +4 - height: intro_text.height +4 - color: "#d8ffffff" - border.color: "#2a2a2a" - border.width: 2 - radius: 8 - } - - GCText { - id: intro_text - fontSize: regularSize - font.weight: Font.DemiBold - horizontalAlignment: Text.AlignHCenter - anchors { - top: parent.top - topMargin: 10 *ApplicationInfo.ratio - right: parent.right - rightMargin: 5 * ApplicationInfo.ratio - left: parent.left - leftMargin: 5 * ApplicationInfo.ratio - } - width: parent.width - wrapMode: Text.WordWrap - text: parent.intro[parent.index] - } - - Rectangle { // our inlined button ui - id: button - width: Math.max(skipText.width, nextText.width) * 1.2 - height: Math.max(skipText.height, nextText.height) * 1.4 - x: intro_textbg.x + (intro_textbg.width/2) + 20 - y: intro_textbg.y + intro_textbg.height - button.height - 5 - color: "#d8ffffff" - border.color: "#2a2a2a" - border.width: 3 - radius: 8 - z: 5 - - anchors.top : intro_textbg.bottom - anchors.topMargin: 10 - - GCText { - id: nextText - anchors.centerIn: parent - text: index != 4 ? qsTr("Next") : qsTr("Let's Go") - } - - MouseArea { - anchors.fill: parent - onClicked: { - if(index++ == 4) { - index = 0 - items.tux.start() - } - } - } - } - - Rectangle { // our inlined button ui - id: skipButton - width: button.width - height: button.height - x: intro_textbg.x + (intro_textbg.width/2) -20- skipButton.width - y: intro_textbg.y + intro_textbg.height - skipButton.height - 5 - color: "#d8ffffff" - border.color: "#2a2a2a" - border.width: 3 - radius: 8 - z: 5 - - anchors.top : intro_textbg.bottom - anchors.topMargin: 10 - GCText { - id: skipText - anchors.centerIn: parent - text: qsTr("Skip Instruction") - } - - MouseArea { - anchors.fill: parent - onClicked: { - message.index = 0 - items.tux.start() - } - } - } -}