Updated SevenStart

This commit is contained in:
wackyideas 2022-09-02 01:00:01 +02:00
parent 11d45faf9f
commit ccbd602d6e
2 changed files with 3216 additions and 7 deletions

File diff suppressed because it is too large Load diff

After

Width:  |  Height:  |  Size: 115 KiB

View file

@ -44,10 +44,32 @@ Item {
property QtObject globalFavorites: rootModel.favoritesModel property QtObject globalFavorites: rootModel.favoritesModel
property QtObject systemFavorites: rootModel.systemFavoritesModel property QtObject systemFavorites: rootModel.systemFavoritesModel
PlasmaCore.DataSource {
id: menu_executable
engine: "executable"
connectedSources: []
onNewData: {
var exitCode = data["exit code"]
var exitStatus = data["exit status"]
var stdout = data["stdout"]
var stderr = data["stderr"]
exited(sourceName, exitCode, exitStatus, stdout, stderr)
disconnectSource(sourceName)
}
function exec(cmd) {
if (cmd) {
connectSource(cmd)
}
}
signal exited(string cmd, int exitCode, int exitStatus, string stdout, string stderr)
}
function action_menuedit() { function action_menuedit() {
processRunner.runMenuEditor(); processRunner.runMenuEditor();
} }
function action_taskman() {
menu_executable.exec("ksysguard");
}
Component { Component {
id: compactRepresentation id: compactRepresentation
@ -56,7 +78,9 @@ Item {
Component { Component {
id: menuRepresentation id: menuRepresentation
MenuRepresentation {} MenuRepresentation {
}
} }
Kicker.RootModel { Kicker.RootModel {
@ -67,14 +91,14 @@ Item {
appNameFormat: plasmoid.configuration.appNameFormat appNameFormat: plasmoid.configuration.appNameFormat
flat: true flat: true
sorted: true sorted: true
showSeparators: false showSeparators: true
appletInterface: plasmoid appletInterface: plasmoid
paginate: true paginate: false
pageSize: plasmoid.configuration.numberColumns * plasmoid.configuration.numberRows pageSize: plasmoid.configuration.numberColumns * plasmoid.configuration.numberRows
showAllApps: true showAllApps: false
showRecentApps: false showRecentApps: true
showRecentDocs: false showRecentDocs: false
showRecentContacts: false showRecentContacts: false
showPowerSession: false showPowerSession: false
@ -168,7 +192,7 @@ Item {
visible: false visible: false
imagePath: "widgets/viewitem" imagePath: "widgets/menuitem"
prefix: "hover" prefix: "hover"
} }
@ -179,7 +203,12 @@ Item {
imagePath: "widgets/panel-background" imagePath: "widgets/panel-background"
} }
PlasmaCore.Svg {
id: arrowsSvg
imagePath: "widgets/arrows"
size: "16x16"
}
PlasmaComponents.Label { PlasmaComponents.Label {
id: toolTipDelegate id: toolTipDelegate
@ -197,6 +226,7 @@ Item {
Component.onCompleted: { Component.onCompleted: {
plasmoid.setAction("menuedit", i18n("Edit Applications...")); plasmoid.setAction("menuedit", i18n("Edit Applications..."));
plasmoid.setAction("taskman", i18n("Task Manager"));
rootModel.refreshed.connect(reset); rootModel.refreshed.connect(reset);