/**************************************************************************** Copyright (C) 2013 by Eike Hein <hein@kde.org> ** ** This program is free software; you can redistribute it and/or modify ** it under the terms of the GNU General Public License as published by ** the Free Software Foundation; either version 2 of the License, or ** (at your option) any later version. ** ** This program is distributed in the hope that it will be useful, ** but WITHOUT ANY WARRANTY; without even the implied warranty of ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ** GNU General Public License for more details. ** ** You should have received a copy of the GNU General Public License ** along with this program; if not, write to the ** Free Software Foundation, Inc., ** 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . ****************************************************************************/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 PlasmaCoreItem {width: childrenRect.widthheight: childrenRect.heightreadonly property bool plasmaPaAvailable: Qt.createComponent("PulseAudio.qml").status === Component.Readyproperty bool plasmoidVertical: (plasmoid.formFactor === PlasmaCore.Types.Vertical)property 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.checkedKirigami.FormLayout {anchors.left: parent.leftanchors.right: parent.rightCheckBox {id: showToolTipsKirigami.FormData.label: i18n ("General:")text: i18n("Show tooltips")}CheckBox {id: highlightWindowstext: i18n("Highlight windows when hovering over tasks")}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}}}