Commit 3dac81b3 authored by Timothée Giet's avatar Timothée Giet

learn_additions, new activity

parent dca0c7e3
......@@ -77,7 +77,9 @@ imagename
instruments
land_safe
lang
learn_additions
learn_digits
learn_subtractions
leftright
letter-in-word
lightsoff
......
/* GCompris - ActivityInfo.qml
*
* Copyright (C) 2020 Timothée Giet <animtim@gmail.com>
*
* 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 <https://www.gnu.org/licenses/>.
*/
import GCompris 1.0
ActivityInfo {
name: "learn_additions/Learn_additions.qml"
difficulty: 2
icon: "learn_additions/learn_additions.svg"
author: "Timothée Giet &lt;animtim@gmail.com&gt;"
//: Activity title
title: qsTr("Learn additions")
//: Help title
description: qsTr("Learn additions with small numbers")
//intro: "Click on the circles to give the operation's result."
//: Help goal
goal: qsTr("Learn additions by counting their result")
//: Help prerequisite
prerequisite: ""
//: Help manual
manual: qsTr("An addition is displayed on the screen. Calculate the result, fill the corresponding number of circles and validate the answer.")+ ("<br><br>") +
qsTr("<b>Keyboard controls:</b>") + ("<br>") +
qsTr("-Arrows: navigate") + ("<br>") +
qsTr("-Space: select or deselect a circle") + ("<br>") +
qsTr("-Enter: validate the answer")
credit: ""
section: "math arithmetic"
createdInVersion: 9800
levels: "1,2,3"
}
GCOMPRIS_ADD_RCC(activities/learn_additions *.qml *.svg resource/*)
/* GCompris - learn_additions.qml
*
* Copyright (C) 2020 Timothée Giet <animtim@gmail.com>
*
* Authors:
* Timothée Giet <animtim@gmail.com>
*
* 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 <https://www.gnu.org/licenses/>.
*/
import QtQuick 2.6
import "../../core"
import "../learn_digits/"
import "../learn_digits/learn_digits.js" as Activity
Learn_digits {
id: activity
operationMode: true
}
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="100"
height="100"
id="svg9131"
sodipodi:version="0.32"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
version="1.0"
sodipodi:docname="learn_additions.svg">
<sodipodi:namedview
id="base"
pagecolor="#9c9c9c"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0"
inkscape:pageshadow="2"
inkscape:zoom="4"
inkscape:cx="69.296875"
inkscape:cy="49.621622"
inkscape:document-units="px"
inkscape:current-layer="layer1"
height="100px"
width="100px"
inkscape:window-width="1884"
inkscape:window-height="1054"
inkscape:window-x="0"
inkscape:window-y="0"
showgrid="true"
inkscape:snap-global="true"
inkscape:window-maximized="1">
<inkscape:grid
type="xygrid"
id="grid834" />
</sodipodi:namedview>
<defs
id="defs9133" />
<metadata
id="metadata9136">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
<dc:date>2020</dc:date>
<dc:creator>
<cc:Agent>
<dc:title>Timothée Giet</dc:title>
</cc:Agent>
</dc:creator>
<cc:license
rdf:resource="http://creativecommons.org/licenses/by-sa/4.0/" />
</cc:Work>
<cc:License
rdf:about="http://creativecommons.org/licenses/by-sa/4.0/">
<cc:permits
rdf:resource="http://creativecommons.org/ns#Reproduction" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#Distribution" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Notice" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#Attribution" />
<cc:permits
rdf:resource="http://creativecommons.org/ns#DerivativeWorks" />
<cc:requires
rdf:resource="http://creativecommons.org/ns#ShareAlike" />
</cc:License>
</rdf:RDF>
</metadata>
<g
style="display:inline"
id="layer1"
inkscape:groupmode="layer"
inkscape:label="Calque 1">
<rect
style="display:inline;opacity:1;vector-effect:none;fill:#ffffff;fill-opacity:0.81568627;stroke:none;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect832-9"
width="70"
height="20"
x="15"
y="54"
ry="5" />
<circle
style="display:inline;opacity:1;vector-effect:none;fill:none;fill-opacity:0.82278478;stroke:#373737;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path892-1"
cx="70"
cy="64"
r="5" />
<circle
style="display:inline;opacity:1;vector-effect:none;fill:#d2611d;fill-opacity:1;stroke:#373737;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path894-2"
cx="50"
cy="64"
r="5" />
<circle
style="display:inline;opacity:1;vector-effect:none;fill:#d2611d;fill-opacity:1;stroke:#373737;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path896-7"
cx="30"
cy="64"
r="5" />
<g
aria-label="1"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:1.25;font-family:Kabel;-inkscape-font-specification:Kabel;letter-spacing:0px;word-spacing:0px;fill:#d2611d;fill-opacity:1;stroke:#ffffff;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="text948"
transform="translate(24,4)">
<path
d="m 9.294167,34.033203 -1.1835937,-2.035156 6.5585937,-4.03125 v 13.777344 l -3.34375,0.289062 v -9.042969 z"
id="path999"
inkscape:connector-curvature="0" />
</g>
<g
aria-label="1"
style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:16px;line-height:1.25;font-family:Kabel;-inkscape-font-specification:Kabel;letter-spacing:0px;word-spacing:0px;display:inline;fill:#d2611d;fill-opacity:1;stroke:#ffffff;stroke-width:0.5;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
id="text948-3"
transform="translate(52,3.9999998)">
<path
d="m 9.294167,34.033203 -1.1835937,-2.035156 6.5585937,-4.03125 v 13.777344 l -3.34375,0.289062 v -9.042969 z"
id="path999-6"
inkscape:connector-curvature="0" />
</g>
<path
style="opacity:1;vector-effect:none;fill:#d2611d;fill-opacity:1;stroke:#ffffff;stroke-width:0.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
d="m 49,34 v 4 h -4 v 2 h 4 v 4 h 2 v -4 h 4 v -2 h -4 v -4 z"
id="rect860"
inkscape:connector-curvature="0" />
</g>
</svg>
/* GCompris - Data.qml
*
* Copyright (C) 2020 Timothée Giet <animtim@gmail.com>
*
* Authors:
* Timothée Giet <animtim@gmail.com>
*
* 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 <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
Data {
objective: qsTr("Additions with 1 and 2.")
difficulty: 2
data: [
{
questionsArray: ["1 + 1", "1 + 2", "2 + 2"],
answersArray: [2,3,4],
circlesModel: 4
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Timothée Giet <animtim@gmail.com>
*
* Authors:
* Timothée Giet <animtim@gmail.com>
*
* 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 <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
Data {
objective: qsTr("Additions with 1, 2 and 3.")
difficulty: 3
data: [
{
questionsArray: ["1 + 1", "1 + 2", "1 + 3", "2 + 2", "2 + 3", "3 + 3"],
answersArray: [2,3,4,4,5,6],
circlesModel: 6
}
]
}
/* GCompris - Data.qml
*
* Copyright (C) 2020 Timothée Giet <animtim@gmail.com>
*
* Authors:
* Timothée Giet <animtim@gmail.com>
*
* 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 <http://www.gnu.org/licenses/>.
*/
import GCompris 1.0
Data {
objective: qsTr("Additions with 1, 2, 3 and 4.")
difficulty: 3
data: [
{
questionsArray: ["1 + 1", "1 + 2", "1 + 3", "1 + 4", "2 + 2", "2 + 3", "2 + 4", "3 + 3", "3 + 4", "4 + 4"],
answersArray: [2,3,4,5,4,5,6,6,7,8],
circlesModel: 9
}
]
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment