Posts

Showing posts from July, 2019

Overriding Wordlist component function to use Multiple Datasets.

Overview One of the tasks for GSoC 2019 included adding multiple datasets to smallNumbers activity. The aim of the activity is to teach students to count the number of object on the falling item. But the activity is not an independent activity, but it is the sub-activity of the parent activity gletters. In gletter the overall working is the same, apart from the fact that this time their are no falling objects but alphabets, and the student has to identify the falling alphabet and press the corresponding button on the keyboard. So to manage different types of falling items the activity uses a separate core component i.e. Wordlist. Now since the task was to implement the multiple datasets for smallnumbers activity without affecting the functionalitiy of its parent activity gletters, I had to make some changes in wordlist component. Wordlist initially reading data The Wordlist component uses a loadFromFile function which is provided the path to the file location which contains the d

Multiple Datasets: Tutorial

Gcompris Multiple dataset Migration of an Activity This post is a step by step tutorial for adding multiple datasets to an activity in Gcompris. The procedure of adding multiple datasets to an activity is fairly simple in Gcompris. The steps for it are given below. Note: In these steps we'll refer the activity in consideration as current_activity . Also we assume that we plan to add 3 datasets to current_activity . PROCEDURE Add the following line to current_activity /ActivityInfo.qml file levels: "1,2,3" The above line indicates that that the activity will contain 3 datasets and will automatically create the dataset selection menu for the activity with 3 options. example import GCompris 1.0 ActivityInfo { name: "money/Money.qml" difficulty: 2 icon: "money/money.svg" author: "Bruno Coudoin <bruno.coudoin@gcompris.net>" demo: false //: Activity title title: qsTr("Money") //: Help title descriptio