/*SPDX-FileCopyrightText: 2013 Eike Hein <hein@kde.org>SPDX-License-Identifier: GPL-2.0-or-later*/import QtQuick 2.0import QtQuick.Controls 2.5import QtQuick.Layouts 1.12import org.kde.kirigami 2.4 as Kirigamiimport org.kde.plasma.core 2.0 as PlasmaCoreKirigami.FormLayout {anchors.left: parent.leftanchors.right: parent.rightreadonly property bool plasmaPaAvailable: Qt.createComponent("PulseAudio.qml").status === Component.Readyreadonly property bool plasmoidVertical: plasmoid.formFactor === PlasmaCore.Types.Verticalproperty alias cfg_showToolTips: showToolTips.checkedproperty alias cfg_highlightWindows: highlightWindows.checkedproperty bool cfg_indicateAudioStreamsproperty alias cfg_iconSize: iconSize.valueproperty alias cfg_maxStripes: maxStripes.valueproperty alias cfg_forceStripes: forceStripes.checkedCheckBox {id: showToolTipsKirigami.FormData.label: i18n("General:")text: i18n("Show tooltips")}RowLayout {// HACK: Workaround for Kirigami bug 434625// due to which a simple Layout.leftMargin on CheckBox doesn't workItem { implicitWidth: Kirigami.Units.gridUnit }CheckBox {id: highlightWindowstext: i18n("Highlight windows when hovering over task tooltips")enabled: showToolTips.checked}}CheckBox {id: indicateAudioStreamstext: i18n("Mark applications that play audio")checked: cfg_indicateAudioStreams && plasmaPaAvailableonCheckedChanged: cfg_indicateAudioStreams = checkedenabled: plasmaPaAvailable}Item {Kirigami.FormData.isSection: truevisible: plasmoidVertical}Slider {id: iconSizevisible: plasmoidVerticalKirigami.FormData.label: i18n("Icon size:")Layout.fillWidth: truefrom: 0to: 5stepSize: 1}RowLayout {visible: plasmoidVerticalLayout.fillWidth: trueLabel {text: i18n("Small")Layout.alignment: Qt.AlignLeft}Item {Layout.fillWidth: true}Label {text: i18n("Large")Layout.alignment: Qt.AlignRight}}Item {Kirigami.FormData.isSection: true}SpinBox {id: maxStripesKirigami.FormData.label: plasmoidVertical ? i18n("Maximum columns:") : i18n("Maximum rows:")from: 1}CheckBox {id: forceStripestext: plasmoidVertical ? i18n("Always arrange tasks in rows of as many columns") : i18n("Always arrange tasks in columns of as many rows")enabled: maxStripes.value > 1}}