Warning, /education/gcompris/src/activities/baby_wordprocessor/ActivityConfig.qml is written in an unsupported language. File is not indexed.
0001 /* GCompris - ActivityConfig.qml 0002 * 0003 * SPDX-FileCopyrightText: 2020 Johnny Jazeix <jazeix@gmail.com> 0004 * 0005 * Authors: 0006 * Johnny Jazeix <jazeix@gmail.com> 0007 * 0008 * SPDX-License-Identifier: GPL-3.0-or-later 0009 */ 0010 import QtQuick 2.12 0011 import "../../core" 0012 0013 Item { 0014 id: activityConfiguration 0015 property Item background 0016 property bool audioMode: false 0017 width: flick.width 0018 0019 Column { 0020 id: column 0021 spacing: 10 0022 width: parent.width 0023 0024 GCDialogCheckBox { 0025 id: audioModeBox 0026 text: qsTr("Play characters' sound when typed") 0027 checked: audioMode // This is available in all editors. 0028 onCheckedChanged: { 0029 audioMode = checked 0030 } 0031 } 0032 } 0033 0034 property var dataToSave 0035 0036 function setDefaultValues() { 0037 if(dataToSave["audioMode"] === undefined) { 0038 dataToSave["audioMode"] = "false"; 0039 } 0040 audioModeBox.checked = (dataToSave.audioMode === "true") 0041 } 0042 0043 function saveValues() { 0044 dataToSave = { "audioMode": "" + audioMode } 0045 } 0046 }