Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/ConfigGeneral.qml
Show All 16 Lines | |||||
17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | 17 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA . * | ||
18 | ***************************************************************************/ | 18 | ***************************************************************************/ | ||
19 | 19 | | |||
20 | import QtQuick 2.0 | 20 | import QtQuick 2.0 | ||
21 | import QtQuick.Controls 1.0 | 21 | import QtQuick.Controls 1.0 | ||
22 | import QtQuick.Dialogs 1.2 | 22 | import QtQuick.Dialogs 1.2 | ||
23 | import QtQuick.Layouts 1.0 | 23 | import QtQuick.Layouts 1.0 | ||
24 | 24 | | |||
25 | import org.kde.plasma.core 2.0 as PlasmaCore | ||||
26 | | ||||
25 | import org.kde.plasma.private.kicker 0.1 as Kicker | 27 | import org.kde.plasma.private.kicker 0.1 as Kicker | ||
26 | 28 | | |||
27 | Item { | 29 | Item { | ||
28 | id: configGeneral | 30 | id: configGeneral | ||
29 | 31 | | |||
30 | width: childrenRect.width | 32 | width: childrenRect.width | ||
31 | height: childrenRect.height | 33 | height: childrenRect.height | ||
32 | 34 | | |||
33 | property bool isDash: (plasmoid.pluginName == "org.kde.plasma.kickerdash") | 35 | readonly property bool vertical: (plasmoid.formFactor == PlasmaCore.Types.Vertical) | ||
36 | readonly property bool isDash: (plasmoid.pluginName == "org.kde.plasma.kickerdash") | ||||
34 | 37 | | |||
35 | property alias cfg_useCustomButtonImage: useCustomButtonImage.checked | 38 | property alias cfg_useCustomButtonImage: useCustomButtonImage.checked | ||
36 | property alias cfg_customButtonImage: customButtonImage.text | 39 | property alias cfg_customButtonImage: customButtonImage.text | ||
40 | property alias cfg_iconSize: iconSize.value | ||||
37 | 41 | | |||
38 | property alias cfg_appNameFormat: appNameFormat.currentIndex | 42 | property alias cfg_appNameFormat: appNameFormat.currentIndex | ||
39 | property alias cfg_limitDepth: limitDepth.checked | 43 | property alias cfg_limitDepth: limitDepth.checked | ||
40 | property alias cfg_alphaSort: alphaSort.checked | 44 | property alias cfg_alphaSort: alphaSort.checked | ||
41 | 45 | | |||
42 | property alias cfg_recentOrdering: recentOrdering.currentIndex | 46 | property alias cfg_recentOrdering: recentOrdering.currentIndex | ||
43 | property alias cfg_showRecentApps: showRecentApps.checked | 47 | property alias cfg_showRecentApps: showRecentApps.checked | ||
44 | property alias cfg_showRecentDocs: showRecentDocs.checked | 48 | property alias cfg_showRecentDocs: showRecentDocs.checked | ||
45 | property alias cfg_showRecentContacts: showRecentContacts.checked | 49 | property alias cfg_showRecentContacts: showRecentContacts.checked | ||
46 | 50 | | |||
47 | property alias cfg_useExtraRunners: useExtraRunners.checked | 51 | property alias cfg_useExtraRunners: useExtraRunners.checked | ||
48 | property alias cfg_alignResultsToBottom: alignResultsToBottom.checked | 52 | property alias cfg_alignResultsToBottom: alignResultsToBottom.checked | ||
49 | 53 | | |||
50 | ColumnLayout { | 54 | ColumnLayout { | ||
51 | anchors.left: parent.left | 55 | anchors.left: parent.left | ||
52 | GroupBox { | 56 | GroupBox { | ||
53 | Layout.fillWidth: true | 57 | Layout.fillWidth: true | ||
54 | 58 | | |||
55 | title: i18n("Icon") | 59 | title: i18n("Icon") | ||
56 | 60 | | |||
57 | flat: true | 61 | flat: true | ||
58 | 62 | | |||
63 | ColumnLayout { | ||||
64 | | ||||
59 | RowLayout { | 65 | RowLayout { | ||
60 | CheckBox { | 66 | CheckBox { | ||
61 | id: useCustomButtonImage | 67 | id: useCustomButtonImage | ||
62 | 68 | | |||
63 | text: i18n("Use custom image:") | 69 | text: i18n("Use custom image:") | ||
64 | } | 70 | } | ||
65 | 71 | | |||
66 | TextField { | 72 | TextField { | ||
Show All 29 Lines | 101 | onFileUrlChanged: { | |||
96 | customButtonImage.text = fileUrl; | 102 | customButtonImage.text = fileUrl; | ||
97 | } | 103 | } | ||
98 | } | 104 | } | ||
99 | 105 | | |||
100 | Kicker.SystemSettings { | 106 | Kicker.SystemSettings { | ||
101 | id: systemSettings | 107 | id: systemSettings | ||
102 | } | 108 | } | ||
103 | } | 109 | } | ||
110 | | ||||
111 | RowLayout { | ||||
112 | Label { | ||||
113 | visible: vertical | ||||
114 | text: i18n("Size:") | ||||
115 | } | ||||
116 | | ||||
117 | Label { | ||||
118 | visible: vertical | ||||
119 | text: i18n("Small") | ||||
120 | } | ||||
121 | | ||||
122 | Slider { | ||||
123 | Layout.fillWidth: true | ||||
124 | visible: vertical | ||||
125 | id: iconSize | ||||
126 | | ||||
127 | minimumValue: 0 | ||||
128 | maximumValue: 5 | ||||
129 | stepSize: 1 | ||||
130 | | ||||
131 | tickmarksEnabled: true | ||||
132 | } | ||||
133 | | ||||
134 | Label { | ||||
135 | visible: vertical | ||||
136 | text: i18n("Large") | ||||
137 | } | ||||
138 | } | ||||
139 | } | ||||
104 | } | 140 | } | ||
105 | 141 | | |||
106 | GroupBox { | 142 | GroupBox { | ||
107 | Layout.fillWidth: true | 143 | Layout.fillWidth: true | ||
108 | 144 | | |||
109 | title: i18n("Behavior") | 145 | title: i18n("Behavior") | ||
110 | 146 | | |||
111 | flat: true | 147 | flat: true | ||
▲ Show 20 Lines • Show All 105 Lines • Show Last 20 Lines |