/** SPDX-FileCopyrightText: 2013 David Edmundson <davidedmundson@kde.org>* SPDX-FileCopyrightText: 2016 Eike Hein <hein@kde.org>** SPDX-License-Identifier: GPL-2.0-or-later*/import QtQuickimport QtQuick.Controls as QQC2import org.kde.kirigami as Kirigamiimport org.kde.plasma.plasmoidimport org.kde.kcmutils as KCMKCM.SimpleKCM {id: rootreadonly property bool isActivityPager: Plasmoid.pluginName === "org.kde.plasma.activitypager"property int cfg_displayedTextproperty alias cfg_showWindowOutlines: showWindowOutlines.checkedproperty alias cfg_showWindowIcons: showWindowIcons.checkedproperty int cfg_currentDesktopSelectedproperty alias cfg_pagerLayout: pagerLayout.currentIndexproperty alias cfg_showOnlyCurrentScreen: showOnlyCurrentScreen.checkedproperty alias cfg_wrapPage: wrapPage.checkedKirigami.FormLayout {QQC2.ButtonGroup {id: displayedTextGroup}QQC2.ButtonGroup {id: currentDesktopSelectedGroup}QQC2.CheckBox {id: showWindowOutlinesKirigami.FormData.label: i18nc("@title:group prefix for checkbox group", "General:")text: i18nc("@option:check", "Show window outlines")}QQC2.CheckBox {id: showWindowIconstext: i18nc("@option:check", "Show application icons on window outlines")enabled: showWindowOutlines.checked}QQC2.CheckBox {id: showOnlyCurrentScreentext: i18nc("@option:check", "Show only current screen")}QQC2.CheckBox {id: wrapPagetext: i18nc("@option:check", "Navigation wraps around")}Item {Kirigami.FormData.isSection: true}QQC2.ComboBox {id: pagerLayoutKirigami.FormData.label: i18nc("@title:listbox", "Layout:")model: [i18nc("@item:inlistbox The pager layout", "Default"), i18nc("@item:inlistbox The pager layout", "Horizontal"), i18nc("@item:inlistbox The pager layout", "Vertical")]visible: root.isActivityPager}Item {Kirigami.FormData.isSection: truevisible: root.isActivityPager}QQC2.RadioButton {id: noTextRadioKirigami.FormData.label: i18nc("@title:group prefix for radiobutton group", "Text display:")QQC2.ButtonGroup.group: displayedTextGrouptext: i18nc("@option:radio text display", "No text")checked: root.cfg_displayedText === 2onToggled: if (checked) root.cfg_displayedText = 2;}QQC2.RadioButton {id: desktopNumberRadioQQC2.ButtonGroup.group: displayedTextGrouptext: isActivityPager ? i18nc("@option:radio text display", "Activity number") : i18nc("@option:radio text display", "Desktop number")checked: root.cfg_displayedText === 0onToggled: if (checked) root.cfg_displayedText = 0;}QQC2.RadioButton {id: desktopNameRadioQQC2.ButtonGroup.group: displayedTextGrouptext: isActivityPager ? i18nc("@option:radio text display", "Activity name") : i18nc("@option:radio text display", "Desktop name")checked: root.cfg_displayedText === 1onToggled: if (checked) root.cfg_displayedText = 1;}Item {Kirigami.FormData.isSection: true}QQC2.RadioButton {id: doesNothingRadioKirigami.FormData.label: root.isActivityPager? i18nc("@label Start of the sentence 'Selecting current activity does nothing/shows the desktop'", "Selecting current Activity:"): i18nc("@label Start of the sentence 'Selecting current virtual desktop does nothing/shows the desktop'", "Selecting current virtual desktop:")QQC2.ButtonGroup.group: currentDesktopSelectedGrouptext: i18nc("option:check completes the sentence 'Selecting current activity/virtual desktop does nothing'", "Does nothing")checked: root.cfg_currentDesktopSelected === 0onToggled: if (checked) root.cfg_currentDesktopSelected = 0;}QQC2.RadioButton {id: showsDesktopRadioQQC2.ButtonGroup.group: currentDesktopSelectedGrouptext: i18nc("option:check completes the sentence 'Selecting current activity/virtual desktop shows the desktop'", "Shows the desktop")checked: root.cfg_currentDesktopSelected === 1onToggled: if (checked) root.cfg_currentDesktopSelected = 1;}}}