Changeset View
Changeset View
Standalone View
Standalone View
src/activities/find_the_day/resource/3/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("Find the date several months away") | ||||
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": 60 | ||||
40 | } | ||||
41 | }, | ||||
42 | { | ||||
43 | "navigationBarVisible" : true, | ||||
44 | "minimumDate": "2018-01-01", | ||||
45 | "maximumDate": "2019-12-31", | ||||
46 | "visibleMonth": 10, | ||||
47 | "visibleYear": 2018, | ||||
48 | "mode": "findYearMonthDay", | ||||
49 | "questionsExplicitlyGiven": false, | ||||
50 | "questionAnswers": { | ||||
51 | "length": 5, | ||||
52 | "maxOffset": 90 | ||||
53 | } | ||||
54 | }, | ||||
55 | { | ||||
56 | "navigationBarVisible" : true, | ||||
57 | "minimumDate": "2018-01-01", | ||||
58 | "maximumDate": "2018-12-31", | ||||
59 | "visibleMonth": 7, | ||||
60 | "visibleYear": 2018, | ||||
61 | "mode": "findDayOfWeek", | ||||
62 | "questionsExplicitlyGiven": true, | ||||
63 | "questionAnswers": [ | ||||
64 | { | ||||
65 | "question": qsTr("Find day of week 5 months and 2 days after July 3."), | ||||
66 | "answer": {"dayOfWeek": 3} | ||||
67 | }, | ||||
68 | { | ||||
69 | "question": qsTr("Find day of week 2 months and 4 days after October 8."), | ||||
70 | "answer": {"dayOfWeek": 3} | ||||
71 | }, | ||||
72 | { | ||||
73 | "question": qsTr("Find day of week 1 month and 3 days before December 28."), | ||||
74 | "answer": {"dayOfWeek": 0} | ||||
75 | }, | ||||
76 | { | ||||
77 | "question": qsTr("Find day of week 8 months and 7 days after February 28."), | ||||
78 | "answer": {"dayOfWeek": 0} | ||||
79 | }, | ||||
80 | { | ||||
81 | "question": qsTr("Find day of week 3 months and 3 days before September 15."), | ||||
82 | "answer": {"dayOfWeek": 2} | ||||
83 | } | ||||
84 | ] | ||||
85 | }, | ||||
86 | { | ||||
87 | "navigationBarVisible" : true, | ||||
88 | "minimumDate": "2018-01-01", | ||||
89 | "maximumDate": "2018-12-31", | ||||
90 | "visibleMonth": 7, | ||||
91 | "visibleYear": 2018, | ||||
92 | "mode": "findYearMonthDay", | ||||
93 | "questionsExplicitlyGiven": true, | ||||
94 | "questionAnswers": [ | ||||
95 | { | ||||
96 | "question": qsTr("Find the date 2 months, 1 week and 5 days after January 12."), | ||||
97 | "answer": {"year": 2018, "month": 2, "day": 24} | ||||
98 | }, | ||||
99 | { | ||||
100 | "question": qsTr("Find the date 3 months, 2 weeks and 1 day after August 23."), | ||||
101 | "answer": {"year": 2018, "month": 11, "day": 8} | ||||
102 | }, | ||||
103 | { | ||||
104 | "question": qsTr("Find the date 5 months, 3 weeks and 2 days after March 20."), | ||||
105 | "answer": {"year": 2018, "month": 8, "day": 12} | ||||
106 | }, | ||||
107 | { | ||||
108 | "question": qsTr("Find the date 1 month 1 week and 1 day before September 10."), | ||||
109 | "answer": {"year": 2018, "month": 7, "day": 2} | ||||
110 | }, | ||||
111 | { | ||||
112 | "question": qsTr("Find the date 2 months, 1 week and 8 days before April 7."), | ||||
113 | "answer": {"year": 2018, "month": 0, "day": 23} | ||||
114 | } | ||||
115 | ] | ||||
116 | } | ||||
117 | ] | ||||
118 | } |