Tutorial screen added for odd even activity
AbandonedPublic

Authored by dekumar on Dec 29 2018, 10:53 AM.

Diff Detail

Repository
R2 GCompris
Branch
new
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 6457
Build 6475: arc lint + arc unit
dekumar requested review of this revision.Dec 29 2018, 10:53 AM
dekumar created this revision.
dekumar retitled this revision from Tutorial screen added to Tutorial screen added for odd even activity.Dec 29 2018, 11:08 AM
dekumar edited the summary of this revision. (Show Details)

Thanks in advance for fixing issues.

src/activities/planegame/planegame.js
49

This is not the classic definition. It holds true for the decimal system only.

https://en.wikipedia.org/wiki/Parity_(mathematics)

src/activities/planegame/resource/tutorial.qml
16

Typo: does not end -> do not end

src/activities/planegame/resource/tutorial2.qml
20

The question sign at the end is not needed.

117

Typo: No -> No,
Typo : an even numbers -> an even number
Typo: doesn't ends -> doesn't end

src/activities/planegame/resource/tutorial3.qml
21

The question sign at the end is not needed.

118

Typo: No -> No,
Typo : an even numbers -> an even number
Typo: doesn't ends -> doesn't end

src/activities/planegame/resource/tutorial4.qml
20

The question sign at the end is not needed.

117

Typo: No -> No,
Typo : an even numbers -> an even number
Typo: doesn't ends -> doesn't end

@yurchor I would fix all the issue and update the diff again.Thanks for reviewing it :)

dekumar updated this revision to Diff 48360.Dec 29 2018, 4:25 PM
  • Issues fixed
jjazeix added inline comments.
src/activities/planegame/planegame.js
53

do not leave

src/activities/planegame/resource/tutorial.qml
1

missing copyright

15

missing qsTr() for strings to translate

jjazeix requested changes to this revision.Jan 1 2019, 8:11 PM

Thank you for the patch.
I have this warning when I start the activity: qrc:/gcompris/src/core/Tutorial.qml:187:9: Unable to assign [undefined] to QUrl

The same tutorial is also displayed in case of other activities using the same base code (as planegame for example) and it's not expected.

When I continue on the tutorial: qrc:/gcompris/src/activities/planegame/resource/tutorial2.qml:66:7: QML GCText: Cannot anchor to an item that isn't a parent or sibling.

src/activities/planegame/planegame.js
49

Even numbers are numbers which leave remainder 0 when divisible by 2.

54

why starting with "tutorial1", then "tutorial", then "tutorial2" as filename and not order them?

src/activities/planegame/resource/tutorial.qml
13

id: even

15

2 spaces between "numbers" and "are"

src/activities/planegame/resource/tutorial1.qml
13

Some spaces shouldn't be there to separate the numbers.
It's not up to the developer to put the \n, the item should correctly handle the break lines and the text should not be outside the screen when we resize it.

src/activities/planegame/resource/tutorial2.qml
13

variable naming is not good

42

why do you want to translate 2?

97

you probably can use only one GCText to display if it is good or not and change the text accordingly

src/activities/planegame/resource/tutorial3.qml
117

it does not leave

This revision now requires changes to proceed.Jan 1 2019, 8:11 PM
dekumar marked 6 inline comments as done.Jan 2 2019, 2:54 AM

The same tutorial is also displayed in case of other activities using the same base code (as planegame for example) and it's not expected, Can you explain this in detail please?

The same tutorial is also displayed in case of other activities using the same base code (as planegame for example) and it's not expected, Can you explain this in detail please?

Run the activity "planegame" or "alphabet_sequence" and you'll still see the tutorial. There are several activity that inherits from other ones to avoid duplicating code. For planegame: AlphabetSequence, NumbersOddEven and Planegame (https://github.com/gcompris/GCompris-qt/search?l=QML&q=Planegame&type=).
The tutorial content is specific to NumbersOddEven (we can probably add ones for the other 2, but the content will need to be adapted).

dekumar abandoned this revision.Apr 4 2019, 10:24 AM