Index: src/activities/memory-math-minus-tux/ActivityInfo.qml =================================================================== --- src/activities/memory-math-minus-tux/ActivityInfo.qml +++ src/activities/memory-math-minus-tux/ActivityInfo.qml @@ -38,4 +38,5 @@ credit: "" section: "math memory arithmetic" createdInVersion: 0 + levels: "1,2,3,4,5,6,7,8,9,10" } Index: src/activities/memory-math-minus-tux/MemoryMathMinusTux.qml =================================================================== --- src/activities/memory-math-minus-tux/MemoryMathMinusTux.qml +++ src/activities/memory-math-minus-tux/MemoryMathMinusTux.qml @@ -18,10 +18,8 @@ import QtQuick 2.6 import "../memory" -import "../memory-math-minus/memory-minusdataset.js" as Dataset MemoryCommon { - dataset: Dataset.get() backgroundImg: "qrc:/gcompris/src/activities/memory/resource/background.svg" withTux: true } Index: src/activities/memory-math-minus-tux/resource/1/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/1/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 1.") + difficulty: 4 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(1) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/10/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/10/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 10.") + difficulty: 5 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(10) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/2/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/2/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 2.") + difficulty: 4 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(2) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/3/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/3/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 3.") + difficulty: 4 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(3) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/4/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/4/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 4.") + difficulty: 4 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(4) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/5/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/5/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 5.") + difficulty: 4 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(5) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/6/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/6/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 6.") + difficulty: 5 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(6) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/7/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/7/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 7.") + difficulty: 5 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(7) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/8/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/8/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 8.") + difficulty: 5 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(8) + } + ] +} Index: src/activities/memory-math-minus-tux/resource/9/Data.qml =================================================================== --- /dev/null +++ src/activities/memory-math-minus-tux/resource/9/Data.qml @@ -0,0 +1,36 @@ +/* GCompris - Data.qml + * + * Copyright (C) 2020 Deepak Kumar + * + * Authors: + * Deepak 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 GCompris 1.0 +import "qrc:/gcompris/src/activities/memory/math_util.js" as Memory + +Data { + objective: qsTr("Subtraction table of 9.") + difficulty: 5 + + data: [ + { // Level 1 + columns: 5, + rows: 2, + texts: Memory.getMinusTable(9) + } + ] +}