Warning, /education/gcompris/src/activities/programmingMaze/resource/instructions/Instruction.qml is written in an unsupported language. File is not indexed.

0001 /* GCompris - Instruction.qml
0002  *
0003  * SPDX-FileCopyrightText: 2018 Aman Kumar Gupta <gupta2140@gmail.com>
0004  *
0005  * Author:
0006  *   Aman Kumar Gupta <gupta2140@gmail.com>
0007  *
0008  *   SPDX-License-Identifier: GPL-3.0-or-later
0009  */
0010 import QtQuick 2.12
0011 import GCompris 1.0
0012 
0013 import "../../programmingMaze.js" as Activity
0014 
0015 Item {
0016     id: instruction
0017 
0018     //stores the movement animation duration of Tux when an instruction is executed.
0019     property real movementAnimationDuration
0020 
0021     /**
0022      * This signal is emitted after the execution of current instruction is complete.
0023      *
0024      * The signal will be caught by ProgrammingMaze.qml/Procedure.qml depending on with whom the connection is made,
0025      * and it will check if Tux has reached the fish(level is complete) or will execute the next instruction.
0026      */
0027     signal executionComplete
0028 
0029     /**
0030      * This signal is emitted if Tux cannot move according to the current executed instruction.
0031      *
0032      * It will be caught by deadEnd() in its parent file.
0033      */
0034     signal foundDeadEnd
0035 
0036 //     function setCodeAreaHighlightMoveDuration() {
0037 //         Activity.items.mainFunctionCodeArea.highlightMoveDuration = movementAnimationDuration
0038 //         Activity.items.procedureCodeArea.highlightMoveDuration = movementAnimationDuration
0039 //     }
0040 }