Warning, /plasma/plasma-desktop/applets/pager/package/contents/ui/configGeneral.qml is written in an unsupported language. File is not indexed.
0001 /*
0002 * SPDX-FileCopyrightText: 2013 David Edmundson <davidedmundson@kde.org>
0003 * SPDX-FileCopyrightText: 2016 Eike Hein <hein@kde.org>
0004 *
0005 * SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007
0008 import QtQuick 2.5
0009 import QtQuick.Controls 2.5 as QQC2
0010
0011 import org.kde.kirigami 2.5 as Kirigami
0012 import org.kde.plasma.plasmoid 2.0
0013 import org.kde.kcmutils as KCM
0014
0015 KCM.SimpleKCM {
0016 readonly property bool isActivityPager: Plasmoid.pluginName === "org.kde.plasma.activitypager"
0017
0018 property int cfg_displayedText
0019 property alias cfg_showWindowIcons: showWindowIcons.checked
0020 property int cfg_currentDesktopSelected
0021 property alias cfg_pagerLayout: pagerLayout.currentIndex
0022 property alias cfg_showOnlyCurrentScreen: showOnlyCurrentScreen.checked
0023 property alias cfg_wrapPage: wrapPage.checked
0024
0025 Kirigami.FormLayout {
0026 QQC2.ButtonGroup {
0027 id: displayedTextGroup
0028 }
0029
0030 QQC2.ButtonGroup {
0031 id: currentDesktopSelectedGroup
0032 }
0033
0034
0035 QQC2.CheckBox {
0036 id: showWindowIcons
0037
0038 Kirigami.FormData.label: i18n("General:")
0039
0040 text: i18n("Show application icons on window outlines")
0041 }
0042
0043 QQC2.CheckBox {
0044 id: showOnlyCurrentScreen
0045 text: i18n("Show only current screen")
0046 }
0047
0048 QQC2.CheckBox {
0049 id: wrapPage
0050 text: i18n("Navigation wraps around")
0051 }
0052
0053
0054 Item {
0055 Kirigami.FormData.isSection: true
0056 }
0057
0058
0059 QQC2.ComboBox {
0060 id: pagerLayout
0061
0062 Kirigami.FormData.label: i18n("Layout:")
0063
0064 model: [i18nc("The pager layout", "Default"), i18n("Horizontal"), i18n("Vertical")]
0065 visible: isActivityPager
0066 }
0067
0068
0069 Item {
0070 Kirigami.FormData.isSection: true
0071 visible: isActivityPager
0072 }
0073
0074
0075 QQC2.RadioButton {
0076 id: noTextRadio
0077
0078 Kirigami.FormData.label: i18n("Text display:")
0079
0080 QQC2.ButtonGroup.group: displayedTextGroup
0081 text: i18n("No text")
0082 checked: cfg_displayedText === 2
0083 onToggled: if (checked) cfg_displayedText = 2;
0084 }
0085
0086 QQC2.RadioButton {
0087 id: desktopNumberRadio
0088 QQC2.ButtonGroup.group: displayedTextGroup
0089 text: isActivityPager ? i18n("Activity number") : i18n("Desktop number")
0090 checked: cfg_displayedText === 0
0091 onToggled: if (checked) cfg_displayedText = 0;
0092 }
0093
0094 QQC2.RadioButton {
0095 id: desktopNameRadio
0096 QQC2.ButtonGroup.group: displayedTextGroup
0097 text: isActivityPager ? i18n("Activity name") : i18n("Desktop name")
0098 checked: cfg_displayedText === 1
0099 onToggled: if (checked) cfg_displayedText = 1;
0100 }
0101
0102
0103 Item {
0104 Kirigami.FormData.isSection: true
0105 }
0106
0107
0108 QQC2.RadioButton {
0109 id: doesNothingRadio
0110
0111 Kirigami.FormData.label: isActivityPager ? i18n("Selecting current Activity:") : i18n("Selecting current virtual desktop:")
0112
0113 QQC2.ButtonGroup.group: currentDesktopSelectedGroup
0114 text: i18n("Does nothing")
0115 checked: cfg_currentDesktopSelected === 0
0116 onToggled: if (checked) cfg_currentDesktopSelected = 0;
0117 }
0118
0119 QQC2.RadioButton {
0120 id: showsDesktopRadio
0121 QQC2.ButtonGroup.group: currentDesktopSelectedGroup
0122 text: i18n("Shows the desktop")
0123 checked: cfg_currentDesktopSelected === 1
0124 onToggled: if (checked) cfg_currentDesktopSelected = 1;
0125 }
0126 }
0127 }