Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/package/contents/ui/main.qml
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 29 | Item { | |||
---|---|---|---|---|---|
76 | } | 76 | } | ||
77 | 77 | | |||
78 | Kicker.RootModel { | 78 | Kicker.RootModel { | ||
79 | id: rootModel | 79 | id: rootModel | ||
80 | 80 | | |||
81 | autoPopulate: false | 81 | autoPopulate: false | ||
82 | 82 | | |||
83 | appNameFormat: plasmoid.configuration.appNameFormat | 83 | appNameFormat: plasmoid.configuration.appNameFormat | ||
84 | flat: isDash ? true : plasmoid.configuration.limitDepth | 84 | flat: kicker.isDash ? true : plasmoid.configuration.limitDepth | ||
85 | sorted: plasmoid.configuration.alphaSort | 85 | sorted: plasmoid.configuration.alphaSort | ||
86 | showSeparators: !isDash | 86 | showSeparators: !kicker.isDash | ||
87 | appletInterface: plasmoid | 87 | appletInterface: plasmoid | ||
88 | 88 | | |||
89 | showAllApps: isDash | 89 | showAllApps: kicker.isDash | ||
90 | showAllAppsCategorized: true | 90 | showAllAppsCategorized: true | ||
91 | showTopLevelItems: !isDash | 91 | showTopLevelItems: !kicker.isDash | ||
92 | showRecentApps: plasmoid.configuration.showRecentApps | 92 | showRecentApps: plasmoid.configuration.showRecentApps | ||
93 | showRecentDocs: plasmoid.configuration.showRecentDocs | 93 | showRecentDocs: plasmoid.configuration.showRecentDocs | ||
94 | showRecentContacts: plasmoid.configuration.showRecentContacts | 94 | showRecentContacts: plasmoid.configuration.showRecentContacts | ||
95 | recentOrdering: plasmoid.configuration.recentOrdering | 95 | recentOrdering: plasmoid.configuration.recentOrdering | ||
96 | 96 | | |||
97 | onShowRecentAppsChanged: { | 97 | onShowRecentAppsChanged: { | ||
98 | plasmoid.configuration.showRecentApps = showRecentApps; | 98 | plasmoid.configuration.showRecentApps = showRecentApps; | ||
99 | } | 99 | } | ||
▲ Show 20 Lines • Show All 55 Lines • ▼ Show 20 Line(s) | 153 | Kicker.RunnerModel { | |||
155 | 155 | | |||
156 | appletInterface: plasmoid | 156 | appletInterface: plasmoid | ||
157 | 157 | | |||
158 | favoritesModel: globalFavorites | 158 | favoritesModel: globalFavorites | ||
159 | 159 | | |||
160 | runners: { | 160 | runners: { | ||
161 | var runners = new Array("services"); | 161 | var runners = new Array("services"); | ||
162 | 162 | | |||
163 | if (isDash) { | 163 | if (kicker.isDash) { | ||
164 | runners = runners.concat(new Array("desktopsessions", "PowerDevil", | 164 | runners = runners.concat(new Array("desktopsessions", "PowerDevil", | ||
165 | "calculator", "unitconverter")); | 165 | "calculator", "unitconverter")); | ||
166 | } | 166 | } | ||
167 | 167 | | |||
168 | if (plasmoid.configuration.useExtraRunners) { | 168 | if (plasmoid.configuration.useExtraRunners) { | ||
169 | runners = runners.concat(plasmoid.configuration.extraRunners); | 169 | runners = runners.concat(plasmoid.configuration.extraRunners); | ||
170 | } | 170 | } | ||
171 | 171 | | |||
172 | return runners; | 172 | return runners; | ||
173 | } | 173 | } | ||
174 | 174 | | |||
175 | deleteWhenEmpty: isDash | 175 | deleteWhenEmpty: kicker.isDash | ||
176 | } | 176 | } | ||
177 | 177 | | |||
178 | Kicker.DragHelper { | 178 | Kicker.DragHelper { | ||
179 | id: dragHelper | 179 | id: dragHelper | ||
180 | 180 | | |||
181 | dragIconSize: units.iconSizes.medium | 181 | dragIconSize: units.iconSizes.medium | ||
182 | } | 182 | } | ||
183 | 183 | | |||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Line(s) | |||||
258 | } | 258 | } | ||
259 | 259 | | |||
260 | function enableHideOnWindowDeactivate() { | 260 | function enableHideOnWindowDeactivate() { | ||
261 | plasmoid.hideOnWindowDeactivate = true; | 261 | plasmoid.hideOnWindowDeactivate = true; | ||
262 | } | 262 | } | ||
263 | 263 | | |||
264 | Component.onCompleted: { | 264 | Component.onCompleted: { | ||
265 | if (plasmoid.hasOwnProperty("activationTogglesExpanded")) { | 265 | if (plasmoid.hasOwnProperty("activationTogglesExpanded")) { | ||
266 | plasmoid.activationTogglesExpanded = !isDash | 266 | plasmoid.activationTogglesExpanded = !kicker.isDash | ||
267 | } | 267 | } | ||
268 | 268 | | |||
269 | windowSystem.focusIn.connect(enableHideOnWindowDeactivate); | 269 | windowSystem.focusIn.connect(enableHideOnWindowDeactivate); | ||
270 | plasmoid.hideOnWindowDeactivate = true; | 270 | plasmoid.hideOnWindowDeactivate = true; | ||
271 | 271 | | |||
272 | if (plasmoid.immutability !== PlasmaCore.Types.SystemImmutable) { | 272 | if (plasmoid.immutability !== PlasmaCore.Types.SystemImmutable) { | ||
273 | plasmoid.setAction("menuedit", i18n("Edit Applications..."), "kmenuedit"); | 273 | plasmoid.setAction("menuedit", i18n("Edit Applications..."), "kmenuedit"); | ||
274 | } | 274 | } | ||
Show All 9 Lines |