diff --git a/src/activities/explore_world_animals/CMakeLists.txt b/src/activities/explore_world_animals/CMakeLists.txt index c77099b14..5b7ebc9b5 100644 --- a/src/activities/explore_world_animals/CMakeLists.txt +++ b/src/activities/explore_world_animals/CMakeLists.txt @@ -1 +1 @@ -GCOMPRIS_ADD_RCC(activities/explore_world_animals *.qml *.svg *.js resource/*) +GCOMPRIS_ADD_RCC(activities/explore_world_animals *.qml *.svg resource/*/*) diff --git a/src/activities/explore_world_animals/ExploreWorldAnimals.qml b/src/activities/explore_world_animals/ExploreWorldAnimals.qml index 24f282882..bee891097 100644 --- a/src/activities/explore_world_animals/ExploreWorldAnimals.qml +++ b/src/activities/explore_world_animals/ExploreWorldAnimals.qml @@ -1,35 +1,34 @@ /* GCompris - explore_world_animals.qml * * Copyright (C) 2015 Johnny Jazeix * * Authors: * Beth Hadley (GTK+ version) * Johnny Jazeix (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 GCompris 1.0 -import "../explore_farm_animals" -import "explore_world_animals.js" as Dataset +import "../explore_monuments" -Explore { +ExploreLevels { id: activity - dataset: Dataset - backgroundImage: "qrc:/gcompris/src/activities/explore_world_animals/resource/content.svg" + numberofLevel: 1 + url: "qrc:/gcompris/src/activities/explore_world_animals/resource/" hasAudioQuestions: false } diff --git a/src/activities/explore_world_animals/explore_world_animals.js b/src/activities/explore_world_animals/explore_world_animals.js deleted file mode 100644 index 029ef446b..000000000 --- a/src/activities/explore_world_animals/explore_world_animals.js +++ /dev/null @@ -1,89 +0,0 @@ -/* GCompris - explore_world_animals.js -* -* Copyright (C) 2015 Johnny Jazeix -* -* Authors: -* Beth Hadley (GTK+ version) -* Johnny Jazeix (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 . -*/ - -var tab = [ - { - "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/tux.svg", - "title": qsTr("Jaguar"), - "text": qsTr("Jaguars are named after the Native American word meaning 'he who kills with one leap' because they like to climb trees to attack their prey."), - "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/jaggy.jpg", - "text2": qsTr("Jaguar"), - "x": 0.36, - "y": 0.56, - "width": 0.0785, - "height": 0.1005 - }, - { - "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/tux.svg", - "title": qsTr("Hedgehog"), - "text": qsTr("Hedgehogs eat small animals, like frogs and insects, so many people keep them as useful pets. When in danger, they will curl up into a ball and stick up their coat of sharp spines."), - "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/hedgy.jpg", - "text2": qsTr("Hedgehog"), - "x": 0.53, - "y": 0.24, - "width": 0.0785, - "height": 0.1005 - }, - { - "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/tux.svg", - "title": qsTr("Giraffe"), - "text": qsTr("The giraffe lives in Africa and is the tallest mammal in the world. Just their legs, which are usually 1.8 meters long, are taller than most humans!"), - "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/giraffe.jpg", - "text2": qsTr("Giraffe"), - "x": 0.58, - "y": 0.48, - "width": 0.0785, - "height": 0.1005 - }, - { - "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/tux.svg", - "title": qsTr("Bison"), - "text": qsTr("Bison live on the plains of North America and were hunted by the Native Americans for food."), - "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/bison.jpg", - "text2": qsTr("Bison"), - "x": 0.27, - "y": 0.29, - "width": 0.0785, - "height": 0.1005 - }, - { - "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/tux.svg", - "title": qsTr("Narwhal"), - "text": qsTr("Narwhals are whales that live in the Arctic Ocean and have long tusks. These tusks remind many people of the mythical unicorn's horn."), - "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/narwhal.jpg", - "text2": qsTr("Narwhal"), - "x": 0.50, - "y": 0.06, - "width": 0.0785, - "height": 0.1005 - } -] - - -var instruction = [ - { - "text": qsTr("Explore exotic animals from around the world.") - }, - { - "text": qsTr("Click on location where the given animal lives.") - } -] diff --git a/src/activities/explore_world_animals/resource/bison.jpg b/src/activities/explore_world_animals/resource/animals/bison.jpg similarity index 100% rename from src/activities/explore_world_animals/resource/bison.jpg rename to src/activities/explore_world_animals/resource/animals/bison.jpg diff --git a/src/activities/explore_world_animals/resource/content.svg b/src/activities/explore_world_animals/resource/animals/content.svg similarity index 100% rename from src/activities/explore_world_animals/resource/content.svg rename to src/activities/explore_world_animals/resource/animals/content.svg diff --git a/src/activities/explore_world_animals/resource/giraffe.jpg b/src/activities/explore_world_animals/resource/animals/giraffe.jpg similarity index 100% rename from src/activities/explore_world_animals/resource/giraffe.jpg rename to src/activities/explore_world_animals/resource/animals/giraffe.jpg diff --git a/src/activities/explore_world_animals/resource/hedgy.jpg b/src/activities/explore_world_animals/resource/animals/hedgy.jpg similarity index 100% rename from src/activities/explore_world_animals/resource/hedgy.jpg rename to src/activities/explore_world_animals/resource/animals/hedgy.jpg diff --git a/src/activities/explore_world_animals/resource/jaggy.jpg b/src/activities/explore_world_animals/resource/animals/jaggy.jpg similarity index 100% rename from src/activities/explore_world_animals/resource/jaggy.jpg rename to src/activities/explore_world_animals/resource/animals/jaggy.jpg diff --git a/src/activities/explore_world_animals/resource/narwhal.jpg b/src/activities/explore_world_animals/resource/animals/narwhal.jpg similarity index 100% rename from src/activities/explore_world_animals/resource/narwhal.jpg rename to src/activities/explore_world_animals/resource/animals/narwhal.jpg diff --git a/src/activities/explore_world_animals/resource/tux.svg b/src/activities/explore_world_animals/resource/animals/tux.svg similarity index 100% rename from src/activities/explore_world_animals/resource/tux.svg rename to src/activities/explore_world_animals/resource/animals/tux.svg diff --git a/src/activities/explore_world_animals/resource/board/board1.qml b/src/activities/explore_world_animals/resource/board/board1.qml new file mode 100644 index 000000000..512ef83b7 --- /dev/null +++ b/src/activities/explore_world_animals/resource/board/board1.qml @@ -0,0 +1,93 @@ +/* GCompris +* +* Copyright (C) 2015 Johnny Jazeix +* +* Authors: +* Beth Hadley (GTK+ version) +* Johnny Jazeix (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.0 + +QtObject { + + property string backgroundImage: "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/content.svg" + property var tab : [ + { + "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/tux.svg", + "title": qsTr("Jaguar"), + "text": qsTr("Jaguars are named after the Native American word meaning 'he who kills with one leap' because they like to climb trees to attack their prey."), + "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/jaggy.jpg", + "text2": qsTr("Jaguar"), + "x": 0.36, + "y": 0.56, + "width": 0.0785, + "height": 0.1005 + }, + { + "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/tux.svg", + "title": qsTr("Hedgehog"), + "text": qsTr("Hedgehogs eat small animals, like frogs and insects, so many people keep them as useful pets. When in danger, they will curl up into a ball and stick up their coat of sharp spines."), + "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/hedgy.jpg", + "text2": qsTr("Hedgehog"), + "x": 0.53, + "y": 0.24, + "width": 0.0785, + "height": 0.1005 + }, + { + "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/tux.svg", + "title": qsTr("Giraffe"), + "text": qsTr("The giraffe lives in Africa and is the tallest mammal in the world. Just their legs, which are usually 1.8 meters long, are taller than most humans!"), + "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/giraffe.jpg", + "text2": qsTr("Giraffe"), + "x": 0.58, + "y": 0.48, + "width": 0.0785, + "height": 0.1005 + }, + { + "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/tux.svg", + "title": qsTr("Bison"), + "text": qsTr("Bison live on the plains of North America and were hunted by the Native Americans for food."), + "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/bison.jpg", + "text2": qsTr("Bison"), + "x": 0.27, + "y": 0.29, + "width": 0.0785, + "height": 0.1005 + }, + { + "image": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/tux.svg", + "title": qsTr("Narwhal"), + "text": qsTr("Narwhals are whales that live in the Arctic Ocean and have long tusks. These tusks remind many people of the mythical unicorn's horn."), + "image2": "qrc:/gcompris/src/activities/explore_world_animals/resource/animals/narwhal.jpg", + "text2": qsTr("Narwhal"), + "x": 0.50, + "y": 0.06, + "width": 0.0785, + "height": 0.1005 + } + ] + + property var instructions : [ + { + "text": qsTr("Explore exotic animals from around the world.") + }, + { + "text": qsTr("Click on location where the given animal lives.") + } + ] +}