/**************************************************************************** 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 1.0import QtQuick.Layouts 1.0import org.kde.plasma.core 2.0 as PlasmaCoreItem {width: childrenRect.widthheight: childrenRect.heightproperty bool vertical: (plasmoid.formFactor == PlasmaCore.Types.Vertical)property alias cfg_forceStripes: forceStripes.checkedproperty alias cfg_showToolTips: showToolTips.checkedproperty alias cfg_wheelEnabled: wheelEnabled.checkedproperty alias cfg_highlightWindows: highlightWindows.checkedproperty alias cfg_smartLaunchersEnabled: smartLaunchers.checkedproperty alias cfg_maxStripes: maxStripes.valueproperty alias cfg_groupingStrategy: groupingStrategy.currentIndexproperty alias cfg_middleClickAction: middleClickAction.currentIndexproperty alias cfg_groupPopups: groupPopups.checkedproperty alias cfg_onlyGroupWhenFull: onlyGroupWhenFull.checkedproperty alias cfg_sortingStrategy: sortingStrategy.currentIndexproperty alias cfg_separateLaunchers: separateLaunchers.checkedproperty alias cfg_showOnlyCurrentScreen: showOnlyCurrentScreen.checkedproperty alias cfg_showOnlyCurrentDesktop: showOnlyCurrentDesktop.checkedproperty alias cfg_showOnlyCurrentActivity: showOnlyCurrentActivity.checkedproperty alias cfg_showOnlyMinimized: showOnlyMinimized.checkedColumnLayout {anchors.left: parent.leftGroupBox {Layout.fillWidth: truetitle: i18n("Arrangement")flat: trueGridLayout {columns: 2Layout.fillWidth: trueLabel {text: vertical ? i18n("Maximum columns:") : i18n("Maximum rows:")}SpinBox {id: maxStripesminimumValue: 1}CheckBox {id: forceStripesLayout.column: 1Layout.row: 1text: vertical ? i18n("Always arrange tasks in rows of as many columns") : i18n("Always arrange tasks in columns of as many rows")enabled: maxStripes.value > 1}}}GroupBox {Layout.fillWidth: truetitle: i18n("Behavior")flat: trueColumnLayout {Layout.fillWidth: trueCheckBox {id: showToolTipstext: i18n("Show tooltips")}CheckBox {id: wheelEnabledtext: i18n("Cycle through tasks with mouse wheel")}CheckBox {id: highlightWindowstext: i18n("Highlight windows")}CheckBox {id: smartLaunchersLayout.fillWidth: truetext: i18n("Show progress and status information in task buttons")}RowLayout {Label {text: i18n("On middle-click:")}ComboBox {id: middleClickActionLayout.fillWidth: truemodel: [i18nc("The click action", "None"), i18n("Close Window or Group"), i18n("New Instance"), i18n("Minimize/Restore Window or Group")]}}}}GroupBox {Layout.fillWidth: truetitle: i18n("Grouping and Sorting")flat: truevisible: (plasmoid.pluginName != "org.kde.plasma.icontasks")ColumnLayout {GridLayout {columns: 3Label {Layout.fillWidth: truetext: i18n("Sorting:")horizontalAlignment: Text.AlignRight}ComboBox {id: sortingStrategyLayout.fillWidth: truemodel: [i18n("Do Not Sort"), i18n("Manually"), i18n("Alphabetically"), i18n("By Desktop"), i18n("By Activity")]}CheckBox {id: separateLaunchersLayout.column: 1Layout.row: 1Layout.columnSpan: 2text: i18n("Keep launchers separate")enabled: sortingStrategy.currentIndex == 1}Label {Layout.fillWidth: trueLayout.row: 2Layout.column: 0text: i18n("Grouping:")horizontalAlignment: Text.AlignRight}ComboBox {id: groupingStrategyLayout.row: 2Layout.column: 1Layout.fillWidth: truemodel: [i18n("Do Not Group"), i18n("By Program Name")]}CheckBox {id: groupPopupsLayout.column: 1Layout.row: 3Layout.columnSpan: 2text: i18n("Open groups in popups")enabled: groupingStrategy.currentIndex > 0}Item {width: childrenRect.widthheight: childrenRect.heightLayout.column: 1Layout.row: 4Layout.columnSpan: 2CheckBox {id: onlyGroupWhenFullanchors.left: parent.leftanchors.leftMargin: units.gridUnittext: i18n("Only group when the task manager is full")enabled: groupingStrategy.currentIndex > 0 && groupPopups.checked}}}}}GroupBox {Layout.fillWidth: truetitle: i18n("Filters")flat: trueColumnLayout {Layout.fillWidth: trueCheckBox {id: showOnlyCurrentScreentext: i18n("Show only tasks from the current screen")}CheckBox {id: showOnlyCurrentDesktoptext: i18n("Show only tasks from the current desktop")}CheckBox {id: showOnlyCurrentActivitytext: i18n("Show only tasks from the current activity")}CheckBox {id: showOnlyMinimizedvisible: (plasmoid.pluginName != "org.kde.plasma.icontasks")text: i18n("Show only tasks that are minimized")}}}}}