Changeset View
Changeset View
Standalone View
Standalone View
src/activities/calendar/resource/2/Data.qml
- This file was added.
1 | /* GCompris - Data.qml | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright (C) 2019 Akshay Kumar <email.akshay98@gmail.com> | ||||
4 | * | ||||
5 | * Authors: | ||||
6 | * Akshay Kumar <email.akshay98@gmail.com> | ||||
7 | * | ||||
8 | * This program is free software; you can redistribute it and/or modify | ||||
9 | * it under the terms of the GNU General Public License as published by | ||||
10 | * the Free Software Foundation; either version 3 of the License, or | ||||
11 | * (at your option) any later version. | ||||
12 | * | ||||
13 | * This program is distributed in the hope that it will be useful, | ||||
14 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
16 | * GNU General Public License for more details. | ||||
17 | * | ||||
18 | * You should have received a copy of the GNU General Public License | ||||
19 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | ||||
20 | */ | ||||
21 | import QtQuick 2.6 | ||||
22 | import GCompris 1.0 | ||||
23 | import "../../../../core" | ||||
24 | | ||||
25 | Dataset { | ||||
26 | objective: qsTr("Calendar Questions involving 2 months") | ||||
27 | difficulty: 2 | ||||
28 | data: [ | ||||
29 | { | ||||
30 | "navigationBarVisible" : true, | ||||
31 | "minimumDate": "2018-01-01", | ||||
32 | "maximumDate": "2019-12-31", | ||||
33 | "visibleMonth": 10, | ||||
34 | "visibleYear": 2018, | ||||
35 | "mode": "findYearMonthDay", | ||||
36 | "questionsExplicitlyGiven": false, | ||||
37 | "questionAnswers": { | ||||
38 | "length": 5, | ||||
39 | "maxOffset": 30 | ||||
40 | } | ||||
41 | }, | ||||
42 | { | ||||
43 | "navigationBarVisible" : true, | ||||
44 | "minimumDate": "2018-01-01", | ||||
45 | "maximumDate": "2018-12-31", | ||||
46 | "visibleMonth": 2, | ||||
47 | "visibleYear": 2018, | ||||
48 | "mode": "findDayOfWeek", | ||||
49 | "questionsExplicitlyGiven": true, | ||||
50 | "questionAnswers": [ | ||||
51 | { | ||||
52 | "question": qsTr("What day of week is 30 days after 10 March?"), | ||||
53 | "answer": {"dayOfWeek": 1} | ||||
54 | }, | ||||
55 | { | ||||
56 | "question": qsTr("What day of the week is 40 days after 15 July?"), | ||||
57 | "answer": {"dayOfWeek": 5} | ||||
58 | }, | ||||
59 | { | ||||
60 | "question": qsTr("What day of the week is 20 days after 1 June?"), | ||||
61 | "answer": {"dayOfWeek": 5} | ||||
62 | }, | ||||
63 | { | ||||
64 | "question": qsTr("What day of the week is 60 days after 10 April?"), | ||||
65 | "answer": {"dayOfWeek": 6} | ||||
66 | }, | ||||
67 | { | ||||
68 | "question": qsTr("What day of the week is 10 days after 15 December?"), | ||||
69 | "answer": {"dayOfWeek": 2} | ||||
70 | } | ||||
71 | ] | ||||
72 | }, | ||||
73 | { | ||||
74 | "navigationBarVisible" : true, | ||||
75 | "minimumDate": "2018-01-01", | ||||
76 | "maximumDate": "2019-12-31", | ||||
77 | "visibleMonth": 10, | ||||
78 | "visibleYear": 2018, | ||||
79 | "mode": "findYearMonthDay", | ||||
80 | "questionsExplicitlyGiven": false, | ||||
81 | "questionAnswers": { | ||||
82 | "length": 5, | ||||
83 | "maxOffset": 60 | ||||
84 | } | ||||
85 | }, | ||||
86 | { | ||||
87 | "navigationBarVisible" : true, | ||||
88 | "minimumDate": "2017-01-01", | ||||
89 | "maximumDate": "2019-12-31", | ||||
90 | "visibleMonth": 1, | ||||
91 | "visibleYear": 2018, | ||||
92 | "mode": "findYearMonthDay", | ||||
93 | "questionsExplicitlyGiven": true, | ||||
94 | "questionAnswers": [ | ||||
95 | { | ||||
96 | "question": qsTr("Human Rights Day is celebrated five days after December 5.<br> Find the date of Human Rights Day in 2017."), | ||||
97 | "answer": {"year": 2017, "month": 11, "day": 10} | ||||
98 | }, | ||||
99 | { | ||||
100 | "question": qsTr("Braille Day is celebrated one day before January 5.<br> Find the date of Braille Day in 2018"), | ||||
101 | "answer": {"year": 2018, "month": 0, "day": 4} | ||||
102 | }, | ||||
103 | { | ||||
104 | "question": qsTr("Mark's birthday is on November 4. In 2017 his party was exactly two weeks later.<br> Find the date of his party in 2017"), | ||||
105 | "answer": {"year": 2017, "month": 10, "day": 18} | ||||
106 | }, | ||||
107 | { | ||||
108 | "question": qsTr("International Women's Day is celebrated two days before March 10.<br> Find the date of International Women's Day in 2018."), | ||||
109 | "answer": {"year": 2018, "month": 2, "day": 8} | ||||
110 | }, | ||||
111 | { | ||||
112 | "question": qsTr("Sports competition was held on last Friday of September 2017.<br> Select the date of sports competition on the calendar."), | ||||
113 | "answer": {"year": 2017, "month": 8, "day": 29} | ||||
114 | } | ||||
115 | ] | ||||
116 | } | ||||
117 | ] | ||||
118 | } |