/**************************************************************************** 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.0Item {width: childrenRect.widthheight: childrenRect.heightproperty alias cfg_forceStripes: forceStripes.checkedproperty alias cfg_showToolTips: showToolTips.checkedproperty alias cfg_highlightWindows: highlightWindows.checkedproperty alias cfg_maxStripes: maxStripes.valueproperty alias cfg_groupingStrategy: groupingStrategy.currentIndexproperty alias cfg_onlyGroupWhenFull: onlyGroupWhenFull.checkedproperty alias cfg_sortingStrategy: sortingStrategy.currentIndexproperty alias cfg_showOnlyCurrentScreen: showOnlyCurrentScreen.checkedproperty alias cfg_showOnlyCurrentDesktop: showOnlyCurrentDesktop.checkedproperty alias cfg_showOnlyCurrentActivity: showOnlyCurrentActivity.checkedproperty alias cfg_showOnlyMinimized: showOnlyMinimized.checkedColumnLayout {GroupBox {Layout.fillWidth: truetitle: i18n("Appearance")flat: trueColumnLayout {Layout.fillWidth: trueCheckBox {id: forceStripestext: i18n("Force row settings")}CheckBox {id: showToolTipstext: i18n("Show tooltips")}CheckBox {id: highlightWindowstext: i18n("Highlight windows")}RowLayout {Layout.fillHeight: falseLabel {text: i18n("Maximum rows:")}SpinBox {id: maxStripesminimumValue: 1}}}}GroupBox {Layout.fillWidth: truetitle: i18n("Grouping and Sorting")flat: truevisible: (plasmoid.pluginName != "org.kde.plasma.icontasks")ColumnLayout {RowLayout {Label {text: i18n("Sorting:")}ComboBox {id: sortingStrategyLayout.fillWidth: truemodel: [i18n("Do Not Sort"), i18n("Manually"), i18n("Alphabetically"), i18n("By Desktop"), i18n("By Activity")]}}RowLayout {Label {text: i18n("Grouping:")}ComboBox {id: groupingStrategyLayout.fillWidth: truemodel: [i18n("Do Not Group"), i18n("By Program Name")]}}CheckBox {id: onlyGroupWhenFulltext: i18n("Only when the task manager is full")}}}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")}}}}}