Changeset View
Changeset View
Standalone View
Standalone View
src/activities/analog_electricity/Dataset.qml
- This file was added.
1 | /* GCompris - Dataset.qml | ||||
---|---|---|---|---|---|
2 | * | ||||
3 | * Copyright (C) 2019 Deepak Kumar <deepakdk2431@gmail.com> | ||||
4 | * | ||||
5 | * This program is free software; you can redistribute it and/or modify | ||||
6 | * it under the terms of the GNU General Public License as published by | ||||
7 | * the Free Software Foundation; either version 3 of the License, or | ||||
8 | * (at your option) any later version. | ||||
9 | * | ||||
10 | * This program is distributed in the hope that it will be useful, | ||||
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
13 | * GNU General Public License for more details. | ||||
14 | * | ||||
15 | * You should have received a copy of the GNU General Public License | ||||
16 | * along with this program; if not, see <https://www.gnu.org/licenses/>. | ||||
17 | */ | ||||
18 | import QtQuick 2.6 | ||||
19 | | ||||
20 | QtObject { | ||||
21 | property var bulb: { | ||||
22 | 'imageName': 'bulb1.png', | ||||
23 | 'componentSource': 'Bulb.qml', | ||||
24 | 'width': 0.4, | ||||
25 | 'height': 0.4, | ||||
26 | 'toolTipText': qsTr("Bulb") | ||||
27 | } | ||||
28 | property var battery: { | ||||
29 | 'imageName': 'battery.png', | ||||
30 | 'componentSource': 'Battery.qml', | ||||
31 | 'width': 0.4, | ||||
32 | 'height': 0.4, | ||||
33 | 'toolTipText': qsTr("Battery") | ||||
34 | } | ||||
35 | // List of all components | ||||
36 | property var componentList: [bulb, battery] | ||||
37 | // tutorial levels | ||||
38 | property var tutorialLevels: [ | ||||
39 | // level 1 | ||||
40 | { | ||||
41 | inputComponentList: [battery, bulb], | ||||
42 | playAreaComponentList: [battery], | ||||
43 | playAreaComponentPositionX: [0.4], | ||||
44 | playAreaComponentPositionY: [0.3], | ||||
45 | introMessage: [ | ||||
46 | qsTr("The bulb will glow when both of its terminal is connected to the battery.") | ||||
47 | ] | ||||
48 | } | ||||
49 | ] | ||||
50 | | ||||
51 | } |