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