Skip to content
Permalink
Browse files

categorization activity

  • Loading branch information...
divyam3897 authored and Johnny Jazeix committed Nov 10, 2016
1 parent aab769e commit 43ef8edeaa8a72994e861aefaabe22c56d790677
Showing with 7,306 additions and 0 deletions.
  1. +1 −0 src/activities/activities.txt
  2. +35 −0 src/activities/categorization/ActivityInfo.qml
  3. +1 −0 src/activities/categorization/CMakeLists.txt
  4. +225 −0 src/activities/categorization/Categorization.qml
  5. +229 −0 src/activities/categorization/CategoryReview.qml
  6. +243 −0 src/activities/categorization/MenuScreen.qml
  7. +151 −0 src/activities/categorization/README
  8. +117 −0 src/activities/categorization/Zone.qml
  9. +292 −0 src/activities/categorization/categorization.js
  10. +330 −0 src/activities/categorization/categorization.svg
  11. +630 −0 src/activities/categorization/resource/background.svg
  12. +88 −0 src/activities/categorization/resource/board/category1.qml
  13. +125 −0 src/activities/categorization/resource/board/category10.qml
  14. +207 −0 src/activities/categorization/resource/board/category11.qml
  15. +115 −0 src/activities/categorization/resource/board/category12.qml
  16. +88 −0 src/activities/categorization/resource/board/category13.qml
  17. +115 −0 src/activities/categorization/resource/board/category14.qml
  18. +106 −0 src/activities/categorization/resource/board/category15.qml
  19. +118 −0 src/activities/categorization/resource/board/category16.qml
  20. +88 −0 src/activities/categorization/resource/board/category17.qml
  21. +88 −0 src/activities/categorization/resource/board/category18.qml
  22. +125 −0 src/activities/categorization/resource/board/category2.qml
  23. +89 −0 src/activities/categorization/resource/board/category3.qml
  24. +106 −0 src/activities/categorization/resource/board/category4.qml
  25. +61 −0 src/activities/categorization/resource/board/category5.qml
  26. +89 −0 src/activities/categorization/resource/board/category6.qml
  27. +106 −0 src/activities/categorization/resource/board/category7.qml
  28. +97 −0 src/activities/categorization/resource/board/category8.qml
  29. +161 −0 src/activities/categorization/resource/board/category9.qml
  30. BIN src/activities/categorization/resource/images/alphabets/alphabets.jpg
  31. +70 −0 src/activities/categorization/resource/images/alphabets/lowerA.svg
  32. +70 −0 src/activities/categorization/resource/images/alphabets/lowerB.svg
  33. +70 −0 src/activities/categorization/resource/images/alphabets/lowerD.svg
  34. +70 −0 src/activities/categorization/resource/images/alphabets/lowerE.svg
  35. +70 −0 src/activities/categorization/resource/images/alphabets/lowerF.svg
  36. +70 −0 src/activities/categorization/resource/images/alphabets/lowerG.svg
  37. +70 −0 src/activities/categorization/resource/images/alphabets/lowerH.svg
  38. +70 −0 src/activities/categorization/resource/images/alphabets/lowerI.svg
  39. +70 −0 src/activities/categorization/resource/images/alphabets/lowerJ.svg
  40. +70 −0 src/activities/categorization/resource/images/alphabets/lowerK.svg
  41. +70 −0 src/activities/categorization/resource/images/alphabets/lowerM.svg
  42. +70 −0 src/activities/categorization/resource/images/alphabets/lowerN.svg
  43. +70 −0 src/activities/categorization/resource/images/alphabets/lowerP.svg
  44. +70 −0 src/activities/categorization/resource/images/alphabets/lowerQ.svg
  45. +70 −0 src/activities/categorization/resource/images/alphabets/lowerR.svg
  46. +70 −0 src/activities/categorization/resource/images/alphabets/lowerT.svg
  47. +70 −0 src/activities/categorization/resource/images/alphabets/lowerU.svg
  48. +70 −0 src/activities/categorization/resource/images/alphabets/lowerY.svg
  49. BIN src/activities/categorization/resource/images/alphabets/numbers.jpg
  50. +70 −0 src/activities/categorization/resource/images/alphabets/upperA.svg
  51. +70 −0 src/activities/categorization/resource/images/alphabets/upperB.svg
  52. +70 −0 src/activities/categorization/resource/images/alphabets/upperC.svg
  53. +70 −0 src/activities/categorization/resource/images/alphabets/upperD.svg
  54. +70 −0 src/activities/categorization/resource/images/alphabets/upperE.svg
  55. +70 −0 src/activities/categorization/resource/images/alphabets/upperF.svg
  56. +70 −0 src/activities/categorization/resource/images/alphabets/upperG.svg
  57. +70 −0 src/activities/categorization/resource/images/alphabets/upperH.svg
  58. +70 −0 src/activities/categorization/resource/images/alphabets/upperI.svg
  59. +70 −0 src/activities/categorization/resource/images/alphabets/upperJ.svg
  60. +70 −0 src/activities/categorization/resource/images/alphabets/upperK.svg
  61. +70 −0 src/activities/categorization/resource/images/alphabets/upperL.svg
  62. +70 −0 src/activities/categorization/resource/images/alphabets/upperM.svg
  63. +70 −0 src/activities/categorization/resource/images/alphabets/upperN.svg
  64. +70 −0 src/activities/categorization/resource/images/alphabets/upperO.svg
  65. +70 −0 src/activities/categorization/resource/images/alphabets/upperP.svg
  66. +70 −0 src/activities/categorization/resource/images/alphabets/upperQ.svg
  67. +70 −0 src/activities/categorization/resource/images/alphabets/upperR.svg
  68. +70 −0 src/activities/categorization/resource/images/alphabets/upperS.svg
  69. +70 −0 src/activities/categorization/resource/images/alphabets/upperT.svg
  70. +70 −0 src/activities/categorization/resource/images/alphabets/upperU.svg
  71. +70 −0 src/activities/categorization/resource/images/alphabets/upperV.svg
  72. +70 −0 src/activities/categorization/resource/images/alphabets/upperW.svg
  73. +70 −0 src/activities/categorization/resource/images/alphabets/upperX.svg
  74. +70 −0 src/activities/categorization/resource/images/alphabets/upperY.svg
  75. +70 −0 src/activities/categorization/resource/images/alphabets/upperZ.svg
  76. BIN src/activities/categorization/resource/images/fishes/fish1.jpg
  77. BIN src/activities/categorization/resource/images/fishes/fish10.jpg
  78. BIN src/activities/categorization/resource/images/fishes/fish11.jpg
  79. BIN src/activities/categorization/resource/images/fishes/fish12.jpg
  80. BIN src/activities/categorization/resource/images/fishes/fish13.jpg
  81. BIN src/activities/categorization/resource/images/fishes/fish14.jpg
  82. BIN src/activities/categorization/resource/images/fishes/fish15.jpg
  83. BIN src/activities/categorization/resource/images/fishes/fish16.jpg
  84. BIN src/activities/categorization/resource/images/fishes/fish17.jpg
  85. BIN src/activities/categorization/resource/images/fishes/fish18.jpg
  86. BIN src/activities/categorization/resource/images/fishes/fish19.jpg
  87. BIN src/activities/categorization/resource/images/fishes/fish2.png
  88. BIN src/activities/categorization/resource/images/fishes/fish20.jpg
  89. BIN src/activities/categorization/resource/images/fishes/fish21.jpg
  90. BIN src/activities/categorization/resource/images/fishes/fish22.jpg
  91. BIN src/activities/categorization/resource/images/fishes/fish23.jpg
  92. BIN src/activities/categorization/resource/images/fishes/fish24.jpg
  93. BIN src/activities/categorization/resource/images/fishes/fish25.jpg
  94. BIN src/activities/categorization/resource/images/fishes/fish26.jpg
  95. BIN src/activities/categorization/resource/images/fishes/fish27.jpg
  96. BIN src/activities/categorization/resource/images/fishes/fish28.jpg
  97. BIN src/activities/categorization/resource/images/fishes/fish3.jpg
  98. BIN src/activities/categorization/resource/images/fishes/fish4.jpg
  99. BIN src/activities/categorization/resource/images/fishes/fish5.jpg
  100. BIN src/activities/categorization/resource/images/fishes/fish6.jpg
  101. BIN src/activities/categorization/resource/images/fishes/fish7.jpg
  102. BIN src/activities/categorization/resource/images/fishes/fish8.jpg
  103. BIN src/activities/categorization/resource/images/fishes/fish9.jpg
  104. BIN src/activities/categorization/resource/images/monuments/IndiaGate.jpg
  105. BIN src/activities/categorization/resource/images/monuments/arcDeTriomphe.jpg
  106. BIN src/activities/categorization/resource/images/monuments/bayterek.jpg
  107. BIN src/activities/categorization/resource/images/monuments/beandenburgGate.jpg
  108. BIN src/activities/categorization/resource/images/monuments/burj.jpg
  109. BIN src/activities/categorization/resource/images/monuments/cathedral.jpg
  110. BIN src/activities/categorization/resource/images/monuments/christTheRedeemer.jpg
  111. BIN src/activities/categorization/resource/images/monuments/colosseum.jpg
  112. BIN src/activities/categorization/resource/images/monuments/eiffelTower.jpg
  113. BIN src/activities/categorization/resource/images/monuments/empireState.jpg
  114. BIN src/activities/categorization/resource/images/monuments/greatPyramid.jpg
  115. BIN src/activities/categorization/resource/images/monuments/greatWall.jpg
  116. BIN src/activities/categorization/resource/images/monuments/jucheTower.jpg
  117. BIN src/activities/categorization/resource/images/monuments/kutubMinar.jpg
  118. BIN src/activities/categorization/resource/images/monuments/leMusee.jpg
  119. BIN src/activities/categorization/resource/images/monuments/leaningTowerOfPisa.jpg
  120. BIN src/activities/categorization/resource/images/monuments/leninMuseum.jpg
  121. BIN src/activities/categorization/resource/images/monuments/monument1.jpg
  122. BIN src/activities/categorization/resource/images/monuments/monument2.jpg
  123. BIN src/activities/categorization/resource/images/monuments/monument3.jpg
  124. BIN src/activities/categorization/resource/images/monuments/mountRushmore.jpg
  125. BIN src/activities/categorization/resource/images/monuments/operaHouse.jpg
  126. BIN src/activities/categorization/resource/images/monuments/parthenon.jpg
  127. BIN src/activities/categorization/resource/images/monuments/statueOfLiberty.jpg
  128. BIN src/activities/categorization/resource/images/monuments/tajMahal.jpg
  129. BIN src/activities/categorization/resource/images/monuments/usCapitol.jpg
  130. BIN src/activities/categorization/resource/images/monuments/victoriaMemorial.jpg
  131. BIN src/activities/categorization/resource/images/monuments/zimniPalace.jpg
  132. BIN src/activities/categorization/resource/images/others/baseball.jpg
  133. BIN src/activities/categorization/resource/images/others/blackslate.jpg
  134. BIN src/activities/categorization/resource/images/others/bucket.png
  135. BIN src/activities/categorization/resource/images/others/buffetset.jpg
  136. BIN src/activities/categorization/resource/images/others/bulb.jpg
  137. BIN src/activities/categorization/resource/images/others/chair.jpg
  138. BIN src/activities/categorization/resource/images/others/cup.jpg
  139. BIN src/activities/categorization/resource/images/others/erasers.jpg
  140. BIN src/activities/categorization/resource/images/others/igloo.jpg
  141. BIN src/activities/categorization/resource/images/others/knife.jpg
  142. BIN src/activities/categorization/resource/images/others/pan.jpg
  143. BIN src/activities/categorization/resource/images/others/pencil.jpg
  144. BIN src/activities/categorization/resource/images/others/pillow.jpg
  145. BIN src/activities/categorization/resource/images/others/plate.jpg
  146. BIN src/activities/categorization/resource/images/others/spoons.jpg
  147. BIN src/activities/categorization/resource/images/others/volleyball.jpg
  148. BIN src/activities/categorization/resource/images/others/weighingMachine.jpg
  149. BIN src/activities/categorization/resource/images/renewable/dam1.jpg
  150. BIN src/activities/categorization/resource/images/renewable/dam2.jpg
  151. BIN src/activities/categorization/resource/images/renewable/dam3.jpg
  152. BIN src/activities/categorization/resource/images/renewable/dam4.jpg
  153. BIN src/activities/categorization/resource/images/renewable/dam5.jpg
  154. BIN src/activities/categorization/resource/images/renewable/geothermal.jpg
  155. BIN src/activities/categorization/resource/images/renewable/solar1.jpg
  156. BIN src/activities/categorization/resource/images/renewable/solar2.jpg
  157. BIN src/activities/categorization/resource/images/renewable/solar3.jpg
  158. BIN src/activities/categorization/resource/images/renewable/solar4.jpg
  159. BIN src/activities/categorization/resource/images/renewable/solar5.jpg
  160. BIN src/activities/categorization/resource/images/renewable/solar6.jpg
  161. BIN src/activities/categorization/resource/images/renewable/solar7.jpg
  162. BIN src/activities/categorization/resource/images/renewable/solar8.jpg
  163. BIN src/activities/categorization/resource/images/renewable/windmill.jpg
  164. BIN src/activities/categorization/resource/images/renewable/windmill1.jpg
  165. BIN src/activities/categorization/resource/images/renewable/windmill11.jpg
  166. BIN src/activities/categorization/resource/images/renewable/windmill12.jpg
  167. BIN src/activities/categorization/resource/images/renewable/windmill13.jpg
  168. BIN src/activities/categorization/resource/images/renewable/windmill14.jpg
  169. BIN src/activities/categorization/resource/images/renewable/windmill15.jpg
  170. BIN src/activities/categorization/resource/images/renewable/windmill2.jpg
  171. BIN src/activities/categorization/resource/images/renewable/windmill3.jpg
  172. BIN src/activities/categorization/resource/images/renewable/windmill4.jpg
  173. BIN src/activities/categorization/resource/images/renewable/windmill5.jpg
  174. BIN src/activities/categorization/resource/images/renewable/windmill6.jpg
  175. BIN src/activities/categorization/resource/images/renewable/windmill7.jpg
  176. BIN src/activities/categorization/resource/images/renewable/windmill8.jpg
  177. BIN src/activities/categorization/resource/images/renewable/windmill9.jpg
  178. BIN src/activities/categorization/resource/images/tools/clawHammer.jpg
  179. BIN src/activities/categorization/resource/images/tools/clawHammer1.jpg
  180. BIN src/activities/categorization/resource/images/tools/cutingTool.jpg
  181. BIN src/activities/categorization/resource/images/tools/estwingHammer.jpg
  182. BIN src/activities/categorization/resource/images/tools/framingHammer.jpg
  183. BIN src/activities/categorization/resource/images/tools/hammer1.jpg
  184. BIN src/activities/categorization/resource/images/tools/hammer2.jpg
  185. BIN src/activities/categorization/resource/images/tools/hammer3.jpg
  186. BIN src/activities/categorization/resource/images/tools/hammer4.jpg
  187. BIN src/activities/categorization/resource/images/tools/hammer5.jpg
  188. BIN src/activities/categorization/resource/images/tools/measuringTape.jpeg
  189. BIN src/activities/categorization/resource/images/tools/measuringTape.jpg
  190. BIN src/activities/categorization/resource/images/tools/measuringTape1.jpg
  191. BIN src/activities/categorization/resource/images/tools/measuringTape2.jpg
  192. BIN src/activities/categorization/resource/images/tools/measuringTape3.jpg
  193. BIN src/activities/categorization/resource/images/tools/measuringTape4.jpg
  194. BIN src/activities/categorization/resource/images/tools/multimeter.jpg
  195. BIN src/activities/categorization/resource/images/tools/multimeter1.jpg
  196. BIN src/activities/categorization/resource/images/tools/multimeter2.jpg
  197. BIN src/activities/categorization/resource/images/tools/nailCutter.jpg
  198. BIN src/activities/categorization/resource/images/tools/nosePlier.jpg
  199. BIN src/activities/categorization/resource/images/tools/nosePlier1.jpg
  200. BIN src/activities/categorization/resource/images/tools/nosePlier2.jpg
  201. BIN src/activities/categorization/resource/images/tools/nosePlier3.jpg
  202. BIN src/activities/categorization/resource/images/tools/nosePlier4.jpg
  203. BIN src/activities/categorization/resource/images/tools/plier.jpg
  204. BIN src/activities/categorization/resource/images/tools/plier1.jpg
  205. BIN src/activities/categorization/resource/images/tools/plier2.jpg
  206. BIN src/activities/categorization/resource/images/tools/scissor.jpg
  207. BIN src/activities/categorization/resource/images/tools/scissor1.jpg
  208. BIN src/activities/categorization/resource/images/tools/scissor2.jpg
  209. BIN src/activities/categorization/resource/images/tools/scissors.jpg
  210. BIN src/activities/categorization/resource/images/tools/scissors2.jpg
  211. BIN src/activities/categorization/resource/images/tools/screwDriver.jpg
  212. BIN src/activities/categorization/resource/images/tools/screwDriver1.jpg
  213. BIN src/activities/categorization/resource/images/tools/screwDriver2.jpg
  214. BIN src/activities/categorization/resource/images/tools/screwDriver3.jpg
  215. BIN src/activities/categorization/resource/images/tools/sickle.jpg
  216. BIN src/activities/categorization/resource/images/tools/sideCutter1.jpg
  217. BIN src/activities/categorization/resource/images/tools/sprinkler.jpg
  218. BIN src/activities/categorization/resource/images/tools/stripper1.png
  219. BIN src/activities/categorization/resource/images/tools/tweezer.jpg
  220. BIN src/activities/categorization/resource/images/tools/tweezer1.jpg
  221. BIN src/activities/categorization/resource/images/tools/wrench.jpg
  222. BIN src/activities/categorization/resource/images/tools/wrench1.jpg
@@ -17,6 +17,7 @@ ballcatch
braille_alphabets
braille_fun
canal_lock
categorization
chess
chess_2players
chess_partyend
@@ -0,0 +1,35 @@
/* GCompris - ActivityInfo.qml
*
* Copyright (C) 2016 Divyam Madaan <divyam3897@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

ActivityInfo {
name: "categorization/Categorization.qml"
difficulty: 4
icon: "categorization/categorization.svg"
author: "Divyam Madaan &lt;divyam3897@gmail.com&gt;"
demo: true
title: qsTr("Categorization")
description: qsTr("Categorize the elements into correct and incorrect groups")
//intro: "Categorize the elements into the correct group"
goal: qsTr("Build conceptual thinking and enrich knowledge")
prerequisite: qsTr("Can drag elements using mouse")
manual: qsTr("Review the instructions and then drag and drop the elements as specified")
credit: ""
section: "fun"
createdInVersion: 8000
}
@@ -0,0 +1 @@
GCOMPRIS_ADD_RCC(activities/categorization *.qml *.svg *.js resource/*.* resource/*/*)
@@ -0,0 +1,225 @@
/* GCompris - categorization.qml
*
* Copyright (C) 2016 Divyam Madaan <divyam3897@gmail.com>
*
* Authors:
* Divyam Madaan <divyam3897@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 QtQuick 2.1
import QtQuick.Controls 1.1
import GCompris 1.0

import "../../core"
import "categorization.js" as Activity
import "qrc:/gcompris/src/core/core.js" as Core
import "."

ActivityBase {
id: activity

onStart: focus = true
onStop: {}

property string boardsUrl: "qrc:/gcompris/src/activities/categorization/resource/"
property bool vert: background.width < background.height

pageComponent: Image {
id: background
source: "qrc:/gcompris/src/activities/lang/resource/imageid-bg.svg"
anchors.fill: parent
sourceSize.width: parent.width
signal start
signal stop

property bool categoriesFallback: (items.categoriesCount == 6) ? true : false

Component.onCompleted: {
activity.start.connect(start)
activity.stop.connect(stop)
}

// Add here the QML items you need to access in javascript
QtObject {
id: items
property Item main: activity.main
property alias background: background
property alias bar: bar
property alias bonus: bonus
property alias categoryReview: categoryReview
property alias menuScreen: menuScreen
property alias menuModel: menuScreen.menuModel
property alias dialogActivityConfig: dialogActivityConfig
property string mode: "easy"
property bool instructionsVisible: true
property bool categoryImageChecked: (mode === "easy" || mode === "medium")
property bool scoreChecked: (mode === "easy")
property bool iAmReadyChecked: (mode === "expert")
property bool displayUpdateDialogAtStart: true
property var details
property alias file: file
property var categoriesCount
}

onStart: {
Activity.init(items, boardsUrl)
dialogActivityConfig.getInitialConfiguration()
Activity.start()
}

onStop: {
dialogActivityConfig.saveDatainConfiguration()
}

MenuScreen {
id: menuScreen

File {
id: file
onError: console.error("File error: " + msg);
}
}

CategoryReview {
id: categoryReview
}

ExclusiveGroup {
id: configOptions
}

DialogActivityConfig {
id: dialogActivityConfig
content: Component {
Column {
id: column
spacing: 5
width: dialogActivityConfig.width
height: dialogActivityConfig.height
property alias easyModeBox: easyModeBox
property alias mediumModeBox: mediumModeBox
property alias expertModeBox: expertModeBox

GCDialogCheckBox {
id: easyModeBox
width: column.width - 50
text: qsTr("Instructions and score visible")
checked: (items.mode == "easy") ? true : false
exclusiveGroup: configOptions
onCheckedChanged: {
if(easyModeBox.checked) {
items.mode = "easy"
menuScreen.iAmReady.visible = false
}
}
}

GCDialogCheckBox {
id: mediumModeBox
width: easyModeBox.width
text: qsTr("Instructions visible and score invisible")
checked: (items.mode == "medium") ? true : false
exclusiveGroup: configOptions
onCheckedChanged: {
if(mediumModeBox.checked) {
items.mode = "medium"
menuScreen.iAmReady.visible = false
}
}
}

GCDialogCheckBox {
id: expertModeBox
width: easyModeBox.width
text: qsTr("Instructions and score invisible")
checked: (items.mode == "expert") ? true : false
exclusiveGroup: configOptions
onCheckedChanged: {
if(expertModeBox.checked) {
items.mode = "expert"
menuScreen.iAmReady.visible = true
}
}
}
}
}
onLoadData: {
if(dataToSave && dataToSave["mode"])
items.mode = dataToSave["mode"]
if(dataToSave && dataToSave["displayUpdateDialogAtStart"])
items.displayUpdateDialogAtStart = (dataToSave["displayUpdateDialogAtStart"] == "true") ? true : false
}

onSaveData: {
dataToSave["data"] = Activity.categoriesToSavedProperties(dataToSave)
dataToSave["mode"] = items.mode
dataToSave["displayUpdateDialogAtStart"] = items.displayUpdateDialogAtStart ? "true" : "false"
}
onClose: home()
}

DialogHelp {
id: dialogHelp
onClose: home()
}

Bar {
id: bar
content: menuScreen.started ? withConfig : withoutConfig
property BarEnumContent withConfig: BarEnumContent { value: help | home | config }
property BarEnumContent withoutConfig: BarEnumContent { value: home | level }
onPreviousLevelClicked: Activity.previousLevel()
onNextLevelClicked: Activity.nextLevel()
onHelpClicked: {
displayDialog(dialogHelp)
}
onHomeClicked: {
if(items.menuScreen.started)
activity.home()
else if(items.categoryReview.started)
Activity.launchMenuScreen()
}
onConfigClicked: {
dialogActivityConfig.active = true
displayDialog(dialogActivityConfig)
}
}

Bonus {
id: bonus
Component.onCompleted: win.connect(Activity.nextLevel)
}

Loader {
id: categoriesFallbackDialog
sourceComponent: GCDialog {
parent: activity.main
message: qsTr("You don't have all the images for this activity. " +
"Press Update to get the complete dataset. " +
"Press the Cross to play with demo version or 'Never show this dialog later' if you want to never see again this dialog.")
button1Text: qsTr("Update the image set")
button2Text: qsTr("Never show this dialog later")
onClose: background.categoriesFallback = false
onButton1Hit: DownloadManager.downloadResource('data2/words/words.rcc')
onButton2Hit: { items.displayUpdateDialogAtStart = false; dialogActivityConfig.saveDatainConfiguration() }
}
anchors.fill: parent
focus: true
active: background.categoriesFallback && items.displayUpdateDialogAtStart
onStatusChanged: if (status == Loader.Ready) item.start()
}
}
}

0 comments on commit 43ef8ed

Please sign in to comment.
You can’t perform that action at this time.