diff --git a/src/activities/alphabet-sequence/ActivityConfig.qml b/src/activities/alphabet-sequence/ActivityConfig.qml index 59acc186c..f74e964ca 100644 --- a/src/activities/alphabet-sequence/ActivityConfig.qml +++ b/src/activities/alphabet-sequence/ActivityConfig.qml @@ -1,58 +1,58 @@ /* GCompris - ActivityConfig.qml * * Copyright (C) 2019 Akshay Kumar * * Authors: * Akshay Kumar * * 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.6 import "../../core" Item { id: activityConfiguration property Item background property alias modeBox: modeBox property var availableModes: [ { "text": qsTr("Lower Case"), "value": "lower" }, { "text": qsTr("Upper Case"), "value": "upper" }, ] Flow { id: flow spacing: 5 width: parent.width GCComboBox { id: modeBox model: availableModes background: activityConfiguration.background label: qsTr("Select Domino Representation") } } property var dataToSave function setDefaultValues() { for(var i = 0 ; i < availableModes.length ; i++) { if(availableModes[i].value === dataToSave["mode"]) { modeBox.currentIndex = i; break; } } } function saveValues() { var newMode = availableModes[modeBox.currentIndex].value; dataToSave = {"mode": newMode}; } -} \ No newline at end of file +} diff --git a/src/activities/alphabet-sequence/resource/1/Data.qml b/src/activities/alphabet-sequence/resource/1/Data.qml index 5e7febdf6..b7ce660f3 100644 --- a/src/activities/alphabet-sequence/resource/1/Data.qml +++ b/src/activities/alphabet-sequence/resource/1/Data.qml @@ -1,63 +1,63 @@ /* GCompris - Data.qml * * Copyright (C) 2019 Akshay Kumar * * Authors: * Akshay Kumar * * 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.6 import GCompris 1.0 import "../../../../core" Dataset { objective: qsTr("Select letters in alphabetical order") difficulty: 1 data: [ { data: qsTr("a/b/c/d/e").split("/"), showNext: true }, { data: qsTr("f/g/h/i/j/k").split("/"), showNext: true }, { data: qsTr("a/b/c/d/e/f/g/h/i/j/k").split("/"), showNext: false }, { data: qsTr("l/m/n/o/p").split("/"), showNext: false }, { data: qsTr("q/r/s/t/u").split("/"), showNext: false }, { data: qsTr("a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u").split("/"), showNext: false }, { data: qsTr("u/v/w/x/y/z").split("/"), showNext: false }, { data: qsTr("a/b/c/d/e/f/g/h/i/j/k/l/m/n/o/p/q/r/s/t/u/v/w/x/y/z").split("/"), showNext: false } ] -} \ No newline at end of file +} diff --git a/src/activities/alphabet-sequence/resource/2/Data.qml b/src/activities/alphabet-sequence/resource/2/Data.qml index cb0add40a..cd2ff7be3 100644 --- a/src/activities/alphabet-sequence/resource/2/Data.qml +++ b/src/activities/alphabet-sequence/resource/2/Data.qml @@ -1,143 +1,143 @@ /* GCompris - Data.qml * * Copyright (C) 2019 Akshay Kumar * * Authors: * Akshay Kumar * * 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.6 import GCompris 1.0 import "../../../../core" Dataset { objective: qsTr("Select words in alphabetical order") difficulty: 2 data: [ { data: [ qsTr("fruit"), qsTr("road"), qsTr("meat"), qsTr("speech"), qsTr("gold"), qsTr("trip"), qsTr("dance") ].sort(), showNext: true }, { data: [ qsTr("witch"), qsTr("ghost"), qsTr("trip"), qsTr("house"), qsTr("live"), qsTr("like"), qsTr("road"), ].sort(), showNext: true }, { data: [ qsTr("old"), qsTr("crown"), qsTr("tear"), qsTr("bench"), qsTr("computer"), qsTr("key"), ].sort(), showNext: true }, { data: [ qsTr("brake"), qsTr("dream"), qsTr("prince"), qsTr("talk"), qsTr("fly"), qsTr("history"), ].sort(), showNext: false }, { data: [ qsTr("watch"), qsTr("shampoo"), qsTr("sun"), qsTr("apple"), qsTr("table"), qsTr("socks"), ].sort(), showNext: false }, { data: [ qsTr("needle"), qsTr("couch"), qsTr("peanuts"), qsTr("stock"), qsTr("shoes"), ].sort(), showNext: false }, { data: [ qsTr("needle"), qsTr("couch"), qsTr("peanuts"), qsTr("stock"), qsTr("shoes"), ].sort(), showNext: false }, { data: [ qsTr("hanger"), qsTr("toothbrush"), qsTr("plastic"), qsTr("machine"), qsTr("shampoo"), qsTr("towel"), ].sort(), showNext: false }, { data: [ qsTr("bread"), qsTr("waist"), qsTr("law"), qsTr("firm"), qsTr("fibre"), qsTr("move"), qsTr("bright"), qsTr("green"), ].sort(), showNext: false }, { data: [ qsTr("rush"), qsTr("trade"), qsTr("line"), qsTr("boy"), qsTr("girl"), qsTr("key"), ].sort(), showNext: false }, ] -} \ No newline at end of file +} diff --git a/src/activities/numbers-odd-even/resource/1/Data.qml b/src/activities/numbers-odd-even/resource/1/Data.qml index 83f872210..a4a0c0636 100644 --- a/src/activities/numbers-odd-even/resource/1/Data.qml +++ b/src/activities/numbers-odd-even/resource/1/Data.qml @@ -1,55 +1,55 @@ /* GCompris - Data.qml * * Copyright (C) 2019 Akshay Kumar * * Authors: * Akshay Kumar * * 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.6 import GCompris 1.0 import "../../../../core" Dataset { objective: qsTr("Select even and odd numbers upto 20") difficulty: 1 data: [ { data: "0 2 4".split(" "), showNext: true }, { data: "1 3 5".split(" "), showNext: true }, { data: "0 2 4 6 8 10 12".split(" "), showNext: true }, { data: "1 3 5 7 9 11 13".split(" "), showNext: false }, { data: "0 2 4 6 8 10 12 14 16 18 20".split(" "), showNext: false }, { data: "1 3 5 7 9 11 13 15 17 19 21".split(" "), showNext: false } ] -} \ No newline at end of file +} diff --git a/src/activities/numbers-odd-even/resource/2/Data.qml b/src/activities/numbers-odd-even/resource/2/Data.qml index 937d2eeef..a85880e9c 100644 --- a/src/activities/numbers-odd-even/resource/2/Data.qml +++ b/src/activities/numbers-odd-even/resource/2/Data.qml @@ -1,55 +1,55 @@ /* GCompris - Data.qml * * Copyright (C) 2019 Akshay Kumar * * Authors: * Akshay Kumar * * 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.6 import GCompris 1.0 import "../../../../core" Dataset { objective: qsTr("Select even and odd numbers upto 30") difficulty: 1 data: [ { data: "0 2 4 6 8 10 12 14 16 18 20".split(" "), showNext: true }, { data: "1 3 5 7 9 11 13 15 17 19 21".split(" "), showNext: true }, { data: "0 2 4 6 8 10 12 14 16 18 20 22 24 26".split(" "), showNext: false }, { data: "1 3 5 7 9 11 13 15 17 19 21 23 25 27".split(" "), showNext: false }, { data: "0 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30".split(" "), showNext: false }, { data: "1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31".split(" "), showNext: false } ] -} \ No newline at end of file +} diff --git a/src/activities/planegame/resource/1/Data.qml b/src/activities/planegame/resource/1/Data.qml index 08be8e936..005c3eddc 100644 --- a/src/activities/planegame/resource/1/Data.qml +++ b/src/activities/planegame/resource/1/Data.qml @@ -1,59 +1,59 @@ /* GCompris - Data.qml * * Copyright (C) 2019 Akshay Kumar * * Authors: * Akshay Kumar * * 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.6 import GCompris 1.0 import "../../../../core" Dataset { objective: qsTr("Count numbers upto 15") difficulty: 1 data: [ { data: "0 1 2 3".split(" "), showNext: true }, { data: "0 1 2 3 4 5".split(" "), showNext: true }, { data: "0 1 2 3 4 5 6 7".split(" "), showNext: true }, { data: "0 1 2 3 4 5 6 7 8 9".split(" "), showNext: false }, { data: "0 1 2 3 4 5 6 7 8 9 10 11".split(" "), showNext: false }, { data: "0 1 2 3 4 5 6 7 8 9 10 11 12 13".split(" "), showNext: false }, { data: "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15".split(" "), showNext: false } ] -} \ No newline at end of file +} diff --git a/src/activities/planegame/resource/2/Data.qml b/src/activities/planegame/resource/2/Data.qml index b302f7de3..aa488eb18 100644 --- a/src/activities/planegame/resource/2/Data.qml +++ b/src/activities/planegame/resource/2/Data.qml @@ -1,55 +1,55 @@ /* GCompris - Data.qml * * Copyright (C) 2019 Akshay Kumar * * Authors: * Akshay Kumar * * 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.6 import GCompris 1.0 import "../../../../core" Dataset { objective: qsTr("Count numbers upto 20") difficulty: 2 data: [ { data: "0 1 2 3 4 5 6 7 8 9 10".split(" "), showNext: true }, { data: "0 1 2 3 4 5 6 7 8 9 10 11 12".split(" "), showNext: true }, { data: "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14".split(" "), showNext: false }, { data: "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16".split(" "), showNext: false }, { data: "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18".split(" "), showNext: false }, { data: "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20".split(" "), showNext: false } ] -} \ No newline at end of file +}