7import QtQuick.Controls as QQC2
10import org.kde.config as Config
11import org.kde.kirigami as Kirigami
12import org.kde.kirigamiaddons.formcard as FormCard
13import org.kde.kirigamiaddons.statefulapp as StatefulApp
14import org.kde.kirigamiaddons.statefulapp.private as Private
15import org.kde.coreaddons as Core
44Kirigami.ApplicationWindow {
53 property alias windowName: windowStateSaver.configGroupName
70 property StatefulApp.AbstractKirigamiApplication application: Private.DefaultKirigamiApplication
72 Config.WindowStateSaver {
77 target: root.application
79 function onOpenKCommandBarAction(): void {
80 kcommandbarLoader.active = true;
83 function onShortcutsEditorAction(): void {
84 const openDialogWindow = pageStack.pushDialogLayer(
Qt.createComponent(
"org.kde.kirigamiaddons.statefulapp.private",
'ShortcutsEditor'), {
86 model: root.application.shortcutsModel,
89 height:
Kirigami.Units.gridUnit * 30,
90 title:
i18ndc(
"kirigami-addons6",
"@title:window",
"Shortcuts"),
94 function onOpenAboutPage(): void {
95 const openDialogWindow = pageStack.pushDialogLayer(
Qt.createComponent(
"org.kde.kirigamiaddons.formcard",
"AboutPage"), {
99 height:
Kirigami.Units.gridUnit * 30,
100 title:
i18ndc(
"kirigami-addons6",
"@title:window",
"About %1", Core.AboutData.displayName),
102 openDialogWindow.Keys.escapePressed.connect(function() {
103 openDialogWindow.closeDialog();
107 function onOpenAboutKDEPage(): void {
108 const openDialogWindow = pageStack.pushDialogLayer(
Qt.createComponent(
"org.kde.kirigamiaddons.formcard",
"AboutKDE"), {
111 width:
Kirigami.Units.gridUnit * 30,
112 height:
Kirigami.Units.gridUnit * 30,
113 title:
i18ndc(
"kirigami-addons6",
"@title:window",
"About KDE"),
115 openDialogWindow.Keys.escapePressed.connect(function() {
116 openDialogWindow.closeDialog();
122 id: kcommandbarLoader
124 sourceComponent: Private.KQuickCommandBarPage {
125 application: root.application
126 onClosed: kcommandbarLoader.active =
false
127 parent: root.QQC2.Overlay.overlay
129 onActiveChanged:
if (active) {
QString i18ndc(const char *domain, const char *context, const char *text, const TYPE &arg...)