Changeset View
Changeset View
Standalone View
Standalone View
applets/pager/package/contents/ui/configGeneral.qml
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | * Copyright 2013 David Edmundson <davidedmundson@kde.org> | 2 | * Copyright 2013 David Edmundson <davidedmundson@kde.org> | ||
3 | * Copyright 2016 Eike Hein <hein@kde.org> | ||||
3 | * | 4 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | 5 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License as published by | 6 | * it under the terms of the GNU General Public License as published by | ||
6 | * the Free Software Foundation; either version 2 of the License, or | 7 | * the Free Software Foundation; either version 2 of the License, or | ||
7 | * (at your option) any later version. | 8 | * (at your option) any later version. | ||
8 | * | 9 | * | ||
9 | * This program is distributed in the hope that it will be useful, | 10 | * This program is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
Show All 16 Lines | 27 | Item { | |||
27 | 28 | | |||
28 | width: childrenRect.width | 29 | width: childrenRect.width | ||
29 | height: childrenRect.height | 30 | height: childrenRect.height | ||
30 | 31 | | |||
31 | //FIXME enable when we're back to being a group box | 32 | //FIXME enable when we're back to being a group box | ||
32 | // flat: true | 33 | // flat: true | ||
33 | // title: i18n("Appearance") | 34 | // title: i18n("Appearance") | ||
34 | 35 | | |||
36 | property bool isActivityPager: (plasmoid.pluginName == "org.kde.plasma.activitypager") | ||||
37 | | ||||
35 | property int cfg_displayedText | 38 | property int cfg_displayedText | ||
36 | property alias cfg_showWindowIcons: showWindowIcons.checked | 39 | property alias cfg_showWindowIcons: showWindowIcons.checked | ||
37 | property int cfg_currentDesktopSelected | 40 | property int cfg_currentDesktopSelected | ||
38 | 41 | | |||
39 | onCfg_displayedTextChanged: { | 42 | onCfg_displayedTextChanged: { | ||
40 | switch (cfg_displayedText) { | 43 | switch (cfg_displayedText) { | ||
41 | case 0: | 44 | case 0: | ||
42 | displayedTextGroup.current = desktopNumberRadio; | 45 | displayedTextGroup.current = desktopNumberRadio; | ||
Show All 37 Lines | 82 | Layouts.GridLayout { | |||
80 | columns: 2 | 83 | columns: 2 | ||
81 | QtControls.Label { | 84 | QtControls.Label { | ||
82 | text: i18n("Display:") | 85 | text: i18n("Display:") | ||
83 | Layouts.Layout.alignment: Qt.AlignVCenter|Qt.AlignRight | 86 | Layouts.Layout.alignment: Qt.AlignVCenter|Qt.AlignRight | ||
84 | } | 87 | } | ||
85 | QtControls.RadioButton { | 88 | QtControls.RadioButton { | ||
86 | id: desktopNumberRadio | 89 | id: desktopNumberRadio | ||
87 | exclusiveGroup: displayedTextGroup | 90 | exclusiveGroup: displayedTextGroup | ||
88 | text: i18n("Desktop number") | 91 | text: isActivityPager ? i18n("Activity number") : i18n("Desktop number") | ||
89 | onCheckedChanged: if (checked) cfg_displayedText = 0; | 92 | onCheckedChanged: if (checked) cfg_displayedText = 0; | ||
90 | } | 93 | } | ||
91 | Item { | 94 | Item { | ||
92 | width: 2 | 95 | width: 2 | ||
93 | height: 2 | 96 | height: 2 | ||
94 | Layouts.Layout.rowSpan: 2 | 97 | Layouts.Layout.rowSpan: 2 | ||
95 | } | 98 | } | ||
96 | QtControls.RadioButton { | 99 | QtControls.RadioButton { | ||
97 | id: desktopNameRadio | 100 | id: desktopNameRadio | ||
98 | exclusiveGroup: displayedTextGroup | 101 | exclusiveGroup: displayedTextGroup | ||
99 | text: i18n("Desktop name") | 102 | text: isActivityPager ? i18n("Activity name") : i18n("Desktop name") | ||
100 | onCheckedChanged: if (checked) cfg_displayedText = 1; | 103 | onCheckedChanged: if (checked) cfg_displayedText = 1; | ||
101 | } | 104 | } | ||
102 | QtControls.RadioButton { | 105 | QtControls.RadioButton { | ||
103 | id: noTextRadio | 106 | id: noTextRadio | ||
104 | exclusiveGroup: displayedTextGroup | 107 | exclusiveGroup: displayedTextGroup | ||
105 | text: i18n("No text") | 108 | text: i18n("No text") | ||
106 | onCheckedChanged: if (checked) cfg_displayedText = 2; | 109 | onCheckedChanged: if (checked) cfg_displayedText = 2; | ||
107 | } | 110 | } | ||
Show All 35 Lines |