Changeset View
Changeset View
Standalone View
Standalone View
src/activities/algebra_by/Algebra.qml
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 34 | pageComponent: Image { | |||
---|---|---|---|---|---|
64 | } | 64 | } | ||
65 | 65 | | |||
66 | Timer { | 66 | Timer { | ||
67 | id: timer | 67 | id: timer | ||
68 | interval: 1000 | 68 | interval: 1000 | ||
69 | onTriggered: Activity.run() | 69 | onTriggered: Activity.run() | ||
70 | } | 70 | } | ||
71 | 71 | | |||
72 | Item { | ||||
73 | width: background.width - 80 * ApplicationInfo.ratio | ||||
74 | height: background.height | ||||
72 | Bar { | 75 | Bar { | ||
73 | id: bar | 76 | id: bar | ||
77 | | ||||
74 | content: BarEnumContent { value: help | home | level } | 78 | content: BarEnumContent { value: help | home | level } | ||
75 | onHelpClicked: { | 79 | onHelpClicked: { | ||
76 | displayDialog(dialogHelpLeftRight) | 80 | displayDialog(dialogHelpLeftRight) | ||
77 | } | 81 | } | ||
78 | onPreviousLevelClicked: { | 82 | onPreviousLevelClicked: { | ||
79 | Activity.previousLevel() | 83 | Activity.previousLevel() | ||
80 | } | 84 | } | ||
81 | onNextLevelClicked: { | 85 | onNextLevelClicked: { | ||
82 | Activity.nextLevel() | 86 | Activity.nextLevel() | ||
83 | | ||||
84 | } | 87 | } | ||
85 | onHomeClicked: home() | 88 | onHomeClicked: home() | ||
86 | } | 89 | } | ||
90 | } | ||||
87 | 91 | | |||
88 | Balloon { | 92 | Balloon { | ||
89 | id: balloon | 93 | id: balloon | ||
90 | onTimeout: bonus.bad("smiley") | 94 | onTimeout: bonus.bad("smiley") | ||
91 | } | 95 | } | ||
92 | 96 | | |||
93 | Bonus { | 97 | Bonus { | ||
94 | id: bonus | 98 | id: bonus | ||
Show All 31 Lines | |||||
126 | 130 | | |||
127 | ReadyButton { | 131 | ReadyButton { | ||
128 | id: iAmReady | 132 | id: iAmReady | ||
129 | onClicked: Activity.run() | 133 | onClicked: Activity.run() | ||
130 | } | 134 | } | ||
131 | 135 | | |||
132 | Flow { | 136 | Flow { | ||
133 | id:textFlow | 137 | id:textFlow | ||
134 | x: 200 * ApplicationInfo.ratio | 138 | x: parent.width / 2 - width / 2 | ||
135 | y: 80 | 139 | y: 80 | ||
136 | width: parent.width / 2 | 140 | width: parent.width / 2 | ||
137 | height: 100 | 141 | height: 100 | ||
138 | anchors.margins: 4 | 142 | anchors.margins: 4 | ||
139 | spacing: 10 | 143 | spacing: 10 | ||
140 | 144 | | |||
141 | AlgebraText { | 145 | AlgebraText { | ||
142 | id: firstOp | 146 | id: firstOp | ||
Show All 33 Lines |