diff --git a/panels/dock/AppletDockItem.qml b/panels/dock/AppletDockItem.qml index 547f347bf..d7f45c247 100644 --- a/panels/dock/AppletDockItem.qml +++ b/panels/dock/AppletDockItem.qml @@ -7,6 +7,7 @@ import org.deepin.ds 1.0 AppletItem { id: appletDockItem + Accessible.id: "AppletDockItem" property int dockOrder: 0 property bool shouldVisible: Applet.visible && Applet.supported diff --git a/panels/dock/AppletItemButton.qml b/panels/dock/AppletItemButton.qml index 523b6fd86..3fdf33339 100644 --- a/panels/dock/AppletItemButton.qml +++ b/panels/dock/AppletItemButton.qml @@ -10,6 +10,7 @@ import org.deepin.dtk IconButton { id: control + Accessible.id: "AppletItemButton_IconButton" property bool isActive property real radius: 4 property bool autoClosePopup: false diff --git a/panels/dock/ShellSurfaceItemProxy.qml b/panels/dock/ShellSurfaceItemProxy.qml index f4876f3ca..21c0aa75b 100644 --- a/panels/dock/ShellSurfaceItemProxy.qml +++ b/panels/dock/ShellSurfaceItemProxy.qml @@ -36,6 +36,7 @@ Item { ShellSurfaceItem { id: impl width: parent.width + Accessible.id: "ShellSurfaceItemProxy" height: parent.height shellSurface: root.shellSurface inputEventsEnabled: root.inputEventsEnabled diff --git a/panels/dock/appruntimeitem/package/ShowRuntimeMenu.qml b/panels/dock/appruntimeitem/package/ShowRuntimeMenu.qml index b228b2ef9..71358e3dd 100644 --- a/panels/dock/appruntimeitem/package/ShowRuntimeMenu.qml +++ b/panels/dock/appruntimeitem/package/ShowRuntimeMenu.qml @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. +// SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd. // // SPDX-License-Identifier: GPL-3.0-or-later @@ -33,6 +33,7 @@ ApplicationWindow { ListView { id: listView + Accessible.id: "ShowRuntimeMenu_ListView" anchors.fill: parent anchors.topMargin: 30 model: WindowManagerInstance diff --git a/panels/dock/appruntimeitem/package/appruntimeitem.qml b/panels/dock/appruntimeitem/package/appruntimeitem.qml index b6a2e442f..0825db437 100644 --- a/panels/dock/appruntimeitem/package/appruntimeitem.qml +++ b/panels/dock/appruntimeitem/package/appruntimeitem.qml @@ -20,6 +20,7 @@ AppletItem { property bool isMenuVisible: false PanelToolTip { + Accessible.id: "appruntimeitem_Pane" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "Appruntime" } id: toolTip @@ -28,6 +29,7 @@ AppletItem { toolTipY: DockPanelPositioner.y } AppletItemButton { + Accessible.id: "appruntimeitem_Button" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "Button" } id: button diff --git a/panels/dock/cardleft/package/CardLeftDockArea.qml b/panels/dock/cardleft/package/CardLeftDockArea.qml index e006208e6..9eaf6c54d 100644 --- a/panels/dock/cardleft/package/CardLeftDockArea.qml +++ b/panels/dock/cardleft/package/CardLeftDockArea.qml @@ -12,6 +12,7 @@ import org.deepin.ds.dock 1.0 import org.deepin.dtk 1.0 as D AppletDockItem { + Accessible.id: "CardLeftDockArea_Pane" id: root readonly property bool fashionMode: Panel.fashionMode @@ -218,6 +219,7 @@ AppletDockItem { } AppletItemBackground { + Accessible.id: "CardLeftDockArea_Pane_2" x: root.hoverInset y: root.hoverInset width: parent.width - root.hoverInset @@ -268,6 +270,7 @@ AppletDockItem { SwipeView { id: swipeView + Accessible.id: "CardLeftDockArea_SwipeView" anchors.left: parent.left anchors.right: parent.right @@ -302,6 +305,7 @@ AppletDockItem { readonly property bool surfaceHovered: SwipeView.isCurrentItem && surfaceItem.hovered ShellSurfaceItemProxy { + Accessible.id: "CardLeftDockArea_Pane_3" id: surfaceItem width: parent.width height: parent.height @@ -360,6 +364,7 @@ AppletDockItem { } Item { + Accessible.id: "CardLeftDockArea_Item" anchors.fill: parent z: 1 @@ -410,6 +415,7 @@ AppletDockItem { // the menu reuse the shared panel windows, whose WaylandOutputs are set up // by the tray applet. PanelToolTip { + Accessible.id: "CardLeftDockArea_Pane_4" id: cardToolTip property alias shellSurface: cardToolTipContent.shellSurface @@ -418,6 +424,7 @@ AppletDockItem { toolTipY: DockPanelPositioner.y ShellSurfaceItemProxy { + Accessible.id: "CardLeftDockArea_Pane_5" id: cardToolTipContent anchors.centerIn: parent @@ -427,6 +434,7 @@ AppletDockItem { } PanelMenu { + Accessible.id: "CardLeftDockArea_Menu" id: cardMenu property alias shellSurface: cardMenuContent.shellSurface @@ -440,6 +448,7 @@ AppletDockItem { anchors.fill: parent ShellSurfaceItemProxy { + Accessible.id: "CardLeftDockArea_Pane_6" id: cardMenuContent anchors.centerIn: parent diff --git a/panels/dock/multitaskview/package/multitaskview.qml b/panels/dock/multitaskview/package/multitaskview.qml index 2e2b524c2..04c939338 100644 --- a/panels/dock/multitaskview/package/multitaskview.qml +++ b/panels/dock/multitaskview/package/multitaskview.qml @@ -17,6 +17,7 @@ AppletDockItem { Accessible.name: toolTip.text PanelToolTip { + Accessible.id: "multitaskview_Pane" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "MultitaskingView" } id: toolTip diff --git a/panels/dock/package/main.qml b/panels/dock/package/main.qml index 16ebeb97a..d5a09cdd7 100644 --- a/panels/dock/package/main.qml +++ b/panels/dock/package/main.qml @@ -472,6 +472,7 @@ Window { Item { id: dockContainer + Accessible.id: "main_Item" width: dock.useColumnLayout ? dock.dockSize : parent.width height: dock.useColumnLayout ? parent.height : dock.dockSize property bool touchLongPressed: false @@ -505,6 +506,7 @@ Window { anchors.fill: parent active: dock.fashionDock.enabled && Panel.hideState === Dock.Show sourceComponent: DockSpotlight { + Accessible.id: "main_Pane" containsMouse: Panel.containsMouse cursorPosition: dockContainer.mapFromItem(null, Panel.cursorPosition) itemSize: dock.dockItemMaxSize @@ -635,6 +637,7 @@ Window { Accessible.name: qsTr("Dock Left Area") OverflowContainer { Accessible.role: Accessible.Pane + Accessible.id: "main_Pane_2" Component.onCompleted: { Accessible.id = "LeftLoader" } id: leftLoader anchors.fill: parent @@ -684,6 +687,7 @@ Window { } OverflowContainer { + Accessible.id: "main_Pane_8" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "CenterLoader" } id: centerLoader @@ -706,6 +710,7 @@ Window { } Item { + Accessible.id: "main_Pane_12" id: dockRightPart implicitWidth: rightLoader.implicitWidth implicitHeight: rightLoader.implicitHeight @@ -714,6 +719,7 @@ Window { anchors.right: parent.right anchors.bottom: parent.bottom OverflowContainer { + Accessible.id: "main_Pane_11" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "RightLoader" } id: rightLoader diff --git a/panels/dock/showdesktop/package/showdesktop.qml b/panels/dock/showdesktop/package/showdesktop.qml index 2b18f14e1..360052207 100644 --- a/panels/dock/showdesktop/package/showdesktop.qml +++ b/panels/dock/showdesktop/package/showdesktop.qml @@ -21,6 +21,7 @@ AppletItem { implicitHeight: shouldVisible ? (useColumnLayout ? showDesktopWidth : Panel.rootObject.dockSize) : 0 PanelToolTip { + Accessible.id: "showdesktop_Pane" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "ShowDesktop" } id: toolTip diff --git a/panels/dock/taskmanager/package/AppItem.qml b/panels/dock/taskmanager/package/AppItem.qml index 32755fa34..5341ff668 100644 --- a/panels/dock/taskmanager/package/AppItem.qml +++ b/panels/dock/taskmanager/package/AppItem.qml @@ -80,6 +80,7 @@ Item { } AppItemPalette { + Accessible.id: "AppItem_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "ItemPalette" } id: itemPalette @@ -230,6 +231,7 @@ Item { } } LaunchAnimation { + Accessible.id: "AppItem_Pane_2" id: launchAnimation launchSpace: { switch (Panel.position) { @@ -262,6 +264,7 @@ Item { } WindowIndicator { + Accessible.id: "AppItem_Pane_3" Accessible.role: Accessible.Indicator id: windowIndicator dotWidth: root.useColumnLayout ? Math.max(iconSize / 16, 2) : Math.max(iconSize / 3, 2) @@ -321,6 +324,7 @@ Item { } AppItemTitle { + Accessible.id: "AppItem_Pane_5" Accessible.role: Accessible.StaticText Component.onCompleted: { Accessible.id = "TitleLoader" } id: titleLoader @@ -571,6 +575,7 @@ Item { } MouseArea { + Accessible.id: "AppItem_Pane_6" id: mouseArea anchors.fill: parent hoverEnabled: false @@ -633,6 +638,7 @@ Item { } PanelToolTip { + Accessible.id: "AppItem_Pane_7" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "ToolTip" } id: toolTip @@ -641,6 +647,7 @@ Item { } PanelToolTip { + Accessible.id: "AppItem_Pane_8" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "MoveToTrash" } id: dragToolTip diff --git a/panels/dock/taskmanager/package/FolderPopup.qml b/panels/dock/taskmanager/package/FolderPopup.qml index 83103efc1..93ea1b28e 100644 --- a/panels/dock/taskmanager/package/FolderPopup.qml +++ b/panels/dock/taskmanager/package/FolderPopup.qml @@ -101,6 +101,7 @@ PanelPopup { font: D.DTK.fontManager.t6 } Flickable { + Accessible.id: "FolderPopup_Flickable" id: flick anchors.fill: parent anchors.topMargin: 44 @@ -112,12 +113,16 @@ PanelPopup { clip: true boundsBehavior: Flickable.StopAtBounds flickableDirection: Flickable.VerticalFlick - ScrollBar.vertical: ScrollBar { policy: ScrollBar.AsNeeded } + ScrollBar.vertical: ScrollBar { + Accessible.id: "FolderPopup_ScrollBar" + policy: ScrollBar.AsNeeded + } Grid { columns: root.columns Repeater { model: root.contents ItemDelegate { + Accessible.id: "FolderPopup_ItemDelegate" id: entryDelegate required property var modelData width: flick.width / root.columns diff --git a/panels/dock/taskmanager/package/TaskManager.qml b/panels/dock/taskmanager/package/TaskManager.qml index 31c4e6440..52a7138bf 100644 --- a/panels/dock/taskmanager/package/TaskManager.qml +++ b/panels/dock/taskmanager/package/TaskManager.qml @@ -118,6 +118,7 @@ ContainmentItem { } OverflowContainer { + Accessible.id: "TaskManager_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "AppContainer" } id: appContainer @@ -228,6 +229,7 @@ ContainmentItem { } AppItem { + Accessible.id: "TaskManager_Pane_2" Accessible.role: Accessible.ListItem id: appItem anchors.fill: parent // This is mandatory for draggable item center in drop area diff --git a/panels/dock/taskmanager/x11preview.cpp b/panels/dock/taskmanager/x11preview.cpp index 4f84b2fe9..f811d6b3a 100644 --- a/panels/dock/taskmanager/x11preview.cpp +++ b/panels/dock/taskmanager/x11preview.cpp @@ -320,6 +320,7 @@ class AppItemWindowDeletegate : public QAbstractItemDelegate virtual QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const override { auto closeButton = new DIconButton(parent); + closeButton->setObjectName("closewindowbutton"); closeButton->setIcon(DDciIcon::fromTheme("close")); closeButton->setEnabledCircle(true); QPalette palette = closeButton->palette(); @@ -639,6 +640,7 @@ void X11WindowPreviewContainer::updatePreviewTitle(const QString& title) void X11WindowPreviewContainer::initUI() { m_view = new PreviewsListView(this); + m_view->setObjectName("windowpreviewlist"); QVBoxLayout* mainLayout = new QVBoxLayout; QHBoxLayout* titleLayout = new QHBoxLayout; titleLayout->setContentsMargins(5, 0, 5, 0); diff --git a/panels/dock/tray/SurfacePopup.qml b/panels/dock/tray/SurfacePopup.qml index e9c4dce4c..2a8b28f04 100644 --- a/panels/dock/tray/SurfacePopup.qml +++ b/panels/dock/tray/SurfacePopup.qml @@ -18,6 +18,7 @@ Item { signal popupCreated(var surfaceId) PanelToolTip { + Accessible.id: "SurfacePopup_Pane" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "ToolTip" } id: toolTip @@ -28,6 +29,7 @@ Item { property alias shellSurface: surfaceLayer.shellSurface ShellSurfaceItemProxy { + Accessible.id: "SurfacePopup_Pane_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "SurfaceLayer" } id: surfaceLayer @@ -52,6 +54,7 @@ Item { } } PanelMenu { + Accessible.id: "SurfacePopup_Menu_3" Accessible.role: Accessible.PopupMenu Component.onCompleted: { Accessible.id = "Menu" } id: menu @@ -61,6 +64,7 @@ Item { property alias shellSurface: menuSurfaceLayer.shellSurface ShellSurfaceItemProxy { + Accessible.id: "SurfacePopup_Pane_5" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "MenuSurfaceLayer" } id: menuSurfaceLayer @@ -84,6 +88,7 @@ Item { id: subMenuLoader active: false sourceComponent: SurfaceSubPopup { + Accessible.id: "SurfacePopup_Dialog_2" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "SurfaceSubPopup" } objectName: "stashed's subPopup" diff --git a/panels/dock/tray/SurfaceSubPopup.qml b/panels/dock/tray/SurfaceSubPopup.qml index c69e1aecd..f9b855a03 100644 --- a/panels/dock/tray/SurfaceSubPopup.qml +++ b/panels/dock/tray/SurfaceSubPopup.qml @@ -47,6 +47,7 @@ Item { } PanelMenu { + Accessible.id: "SurfaceSubPopup_Menu_2" Accessible.role: Accessible.PopupMenu Component.onCompleted: { Accessible.id = "Popup" } id: popup @@ -56,6 +57,7 @@ Item { property alias shellSurface: popupSurfaceLayer.shellSurface ShellSurfaceItemProxy { + Accessible.id: "SurfaceSubPopup_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "PopupSurfaceLayer" } id: popupSurfaceLayer diff --git a/panels/dock/tray/TrayItemSurfacePopup.qml b/panels/dock/tray/TrayItemSurfacePopup.qml index 4ef8a52f1..f5fea96d3 100644 --- a/panels/dock/tray/TrayItemSurfacePopup.qml +++ b/panels/dock/tray/TrayItemSurfacePopup.qml @@ -27,6 +27,7 @@ Item { } PanelPopup { + Accessible.id: "TrayItemSurfacePopup_Dialog" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "Popup" } id: popup @@ -41,6 +42,7 @@ Item { Item { anchors.fill: parent ShellSurfaceItemProxy { + Accessible.id: "TrayItemSurfacePopup_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "PopupContent" } id: popupContent @@ -54,6 +56,7 @@ Item { } PanelMenu { + Accessible.id: "TrayItemSurfacePopup_Menu" Accessible.role: Accessible.PopupMenu Component.onCompleted: { Accessible.id = "PopupMenu" } id: popupMenu @@ -75,6 +78,7 @@ Item { Item { anchors.fill: parent ShellSurfaceItemProxy { + Accessible.id: "TrayItemSurfacePopup_Pane_4" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "PopupMenuContent" } id: popupMenuContent @@ -99,6 +103,7 @@ Item { id: subMenuLoader active: false sourceComponent: SurfaceSubPopup { + Accessible.id: "TrayItemSurfacePopup_Dialog_3" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "SurfaceSubPopup" } objectName: "tray's subPopup" @@ -125,6 +130,7 @@ Item { } PanelToolTip { + Accessible.id: "TrayItemSurfacePopup_Pane_7" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "ToolTip" } id: toolTip @@ -133,6 +139,7 @@ Item { toolTipY: DockPanelPositioner.y ShellSurfaceItemProxy { + Accessible.id: "TrayItemSurfacePopup_Pane_6" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "ToolTipContent" } id: toolTipContent diff --git a/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml b/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml index e6b787b77..7f5cc3969 100644 --- a/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml +++ b/panels/dock/tray/package/ActionLegacyTrayPluginDelegate.qml @@ -15,6 +15,7 @@ import org.deepin.ds.dock 1.0 import org.deepin.ds.dock.tray 1.0 as DDT AppletItemButton { + Accessible.id: "ActionLegacyTrayPluginDelegate_Button" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "AppletItemButton" } id: root @@ -85,6 +86,7 @@ AppletItemButton { } ShellSurfaceItemProxy { + Accessible.id: "ActionLegacyTrayPluginDelegate_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "SurfaceItem" } id: surfaceItem diff --git a/panels/dock/tray/package/ActionShowStashDelegate.qml b/panels/dock/tray/package/ActionShowStashDelegate.qml index cb8088fd6..13af87fc9 100644 --- a/panels/dock/tray/package/ActionShowStashDelegate.qml +++ b/panels/dock/tray/package/ActionShowStashDelegate.qml @@ -115,6 +115,7 @@ AppletItemButton { } PanelToolTip { + Accessible.id: "ActionShowStashDelegate_Pane" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "ApplicationTray" } id: toolTip diff --git a/panels/dock/tray/package/ActionToggleCollapseDelegate.qml b/panels/dock/tray/package/ActionToggleCollapseDelegate.qml index 1fbd87b70..8f6375515 100644 --- a/panels/dock/tray/package/ActionToggleCollapseDelegate.qml +++ b/panels/dock/tray/package/ActionToggleCollapseDelegate.qml @@ -53,6 +53,7 @@ AppletItemButton { ] PanelToolTip { + Accessible.id: "ActionToggleCollapseDelegate_Pane" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "CollapseTray" } id: toolTip diff --git a/panels/dock/tray/package/StashContainer.qml b/panels/dock/tray/package/StashContainer.qml index 476dd707a..9166ed634 100644 --- a/panels/dock/tray/package/StashContainer.qml +++ b/panels/dock/tray/package/StashContainer.qml @@ -62,6 +62,7 @@ Item { // Delegates StashedItemDelegateChooser { + Accessible.id: "StashContainer_Pane" columnCount: root.columnCount rowCount: root.rowCount itemPadding: root.itemPadding @@ -71,6 +72,7 @@ Item { // tooltip and menu DDT.SurfacePopup { + Accessible.id: "StashContainer_Dialog" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "StashSurfacePopup" } id: stashSurfacePopup diff --git a/panels/dock/tray/package/StashedItemDelegateChooser.qml b/panels/dock/tray/package/StashedItemDelegateChooser.qml index fc9e99406..05624f059 100644 --- a/panels/dock/tray/package/StashedItemDelegateChooser.qml +++ b/panels/dock/tray/package/StashedItemDelegateChooser.qml @@ -24,9 +24,11 @@ LQM.DelegateChooser { LQM.DelegateChoice { roleValue: "dummy" StashedItemPositioner { + Accessible.id: "StashedItemDelegateChooser_Pane_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "StashedItemPositioner" } contentItem: DummyDelegate { + Accessible.id: "StashedItemDelegateChooser_Pane" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "DummyDelegate" } } @@ -35,10 +37,12 @@ LQM.DelegateChooser { LQM.DelegateChoice { roleValue: "legacy-tray-plugin" StashedItemPositioner { + Accessible.id: "StashedItemDelegateChooser_Pane_4" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "StashItemPositioner" } id: stashItemPositioner contentItem: ActionLegacyTrayPluginDelegate { + Accessible.id: "StashedItemDelegateChooser_Pane_3" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "TrayDelegate" } id: trayDelegate @@ -116,6 +120,7 @@ LQM.DelegateChooser { Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "StashedItemPositioner" } contentItem: ActionShowStashDelegate { + Accessible.id: "StashedItemDelegateChooser_Pane_5" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "ActionShowStashDelegate" } } @@ -127,6 +132,7 @@ LQM.DelegateChooser { Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "StashedItemPositioner" } contentItem: ActionToggleCollapseDelegate { + Accessible.id: "StashedItemDelegateChooser_Pane_8" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "ActionToggleCollapseDelegate" } isHorizontal: root.isHorizontal diff --git a/panels/dock/tray/package/TrayContainer.qml b/panels/dock/tray/package/TrayContainer.qml index 019ceb928..9ad6bb49c 100644 --- a/panels/dock/tray/package/TrayContainer.qml +++ b/panels/dock/tray/package/TrayContainer.qml @@ -72,6 +72,7 @@ import org.deepin.ds.dock.tray 1.0 as DDT Item { id: root + Accessible.id: "TrayContainer_Item" required property DDT.TraySortOrderModel model @@ -125,6 +126,7 @@ Item { // Delegates TrayItemDelegateChooser { + Accessible.id: "TrayContainer_Pane" id: trayItemDelegateChooser isHorizontal: root.isHorizontal collapsed: root.collapsed diff --git a/panels/dock/tray/package/TrayItemDelegateChooser.qml b/panels/dock/tray/package/TrayItemDelegateChooser.qml index b446d1ee9..ca52dc006 100644 --- a/panels/dock/tray/package/TrayItemDelegateChooser.qml +++ b/panels/dock/tray/package/TrayItemDelegateChooser.qml @@ -22,10 +22,12 @@ LQM.DelegateChooser { LQM.DelegateChoice { roleValue: "dummy" TrayItemPositioner { + Accessible.id: "TrayItemDelegateChooser_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "TrayItemPositioner" } visualSize: dummyDelegate.visualSize contentItem: DummyDelegate { + Accessible.id: "TrayItemDelegateChooser_Pane_2" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "DummyDelegate" } id: dummyDelegate @@ -35,11 +37,13 @@ LQM.DelegateChooser { LQM.DelegateChoice { roleValue: "legacy-tray-plugin" TrayItemPositioner { + Accessible.id: "TrayItemDelegateChooser_Pane_5" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "TraySurfacePositioner" } id: traySurfacePositioner visualSize: traySurfaceDelegate.visualSize contentItem: ActionLegacyTrayPluginDelegate { + Accessible.id: "TrayItemDelegateChooser_Pane_4" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "TraySurfaceDelegate" } id: traySurfaceDelegate @@ -51,6 +55,7 @@ LQM.DelegateChooser { // trayItem's popup DDT.TrayItemSurfacePopup { + Accessible.id: "TrayItemDelegateChooser_Dialog" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "SurfacePopup" } id: surfacePopup @@ -70,6 +75,7 @@ LQM.DelegateChooser { Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "TrayItemPositioner" } contentItem: ActionShowStashDelegate { + Accessible.id: "TrayItemDelegateChooser_Pane_6" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "ActionShowStashDelegate" } } @@ -81,6 +87,7 @@ LQM.DelegateChooser { Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "TrayItemPositioner" } contentItem: ActionToggleCollapseDelegate { + Accessible.id: "TrayItemDelegateChooser_Pane_8" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "ActionToggleCollapseDelegate" } isHorizontal: root.isHorizontal @@ -91,10 +98,12 @@ LQM.DelegateChooser { LQM.DelegateChoice { roleValue: "action-toggle-quick-settings" TrayItemPositioner { + Accessible.id: "TrayItemDelegateChooser_Pane_12" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "TrayItemPositioner" } visualSize: Qt.size(quickSettingsDelegate.width, quickSettingsDelegate.height) ActionToggleQuickSettingsDelegate { + Accessible.id: "TrayItemDelegateChooser_Pane_11" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "QuickSettingsDelegate" } id: quickSettingsDelegate diff --git a/panels/dock/tray/package/tray.qml b/panels/dock/tray/package/tray.qml index 18c35486f..2b6cd0aaf 100644 --- a/panels/dock/tray/package/tray.qml +++ b/panels/dock/tray/package/tray.qml @@ -37,6 +37,7 @@ AppletItem { } PanelPopup { + Accessible.id: "tray_Dialog" Accessible.role: Accessible.Dialog id: stashedPopup width: stashedContainer.width @@ -58,6 +59,7 @@ AppletItem { id: stashedContainer padding: 10 contentItem: StashContainer { + Accessible.id: "tray_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "StashContainer" } id: stashContainer @@ -133,6 +135,7 @@ AppletItem { TrayContainer { + Accessible.id: "tray_Pane_3" Accessible.role: Accessible.Pane id: trayContainter isHorizontal: !tray.useColumnLayout diff --git a/panels/dock/tray/quickpanel/DragItem.qml b/panels/dock/tray/quickpanel/DragItem.qml index 79a704a66..cbcc1e209 100644 --- a/panels/dock/tray/quickpanel/DragItem.qml +++ b/panels/dock/tray/quickpanel/DragItem.qml @@ -122,6 +122,7 @@ Item { anchors.centerIn: parent anchors.verticalCenterOffset: -root.fallbackIconSize.height / 3 * 2 sourceComponent: ShellSurfaceItemProxy { + Accessible.id: "DragItem_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "ShellSurfaceItemProxy" } shellSurface: root.fallbackDragImage diff --git a/panels/dock/tray/quickpanel/PanelPluginPage.qml b/panels/dock/tray/quickpanel/PanelPluginPage.qml index 7fb9cb611..9661df09d 100644 --- a/panels/dock/tray/quickpanel/PanelPluginPage.qml +++ b/panels/dock/tray/quickpanel/PanelPluginPage.qml @@ -75,6 +75,7 @@ Item { model: root.model delegate: PluginItem { + Accessible.id: "PanelPluginPage_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "PluginItem" } id: pluginItem @@ -104,6 +105,7 @@ Item { // TODO same with SideBar of dde-launchpad. component SettingButton: ActionButton { id: btn + Accessible.id: "PanelPluginPage_ActionButton" implicitWidth: DStyle.Style.toolButton.width implicitHeight: DStyle.Style.toolButton.height diff --git a/panels/dock/tray/quickpanel/PanelTrayItem.qml b/panels/dock/tray/quickpanel/PanelTrayItem.qml index 81d4f6431..21682eed3 100644 --- a/panels/dock/tray/quickpanel/PanelTrayItem.qml +++ b/panels/dock/tray/quickpanel/PanelTrayItem.qml @@ -14,6 +14,7 @@ import org.deepin.dtk 1.0 Control { id: root + Accessible.id: "PanelTrayItem_Control" property bool useColumnLayout: false required property var shellSurface property int itemMargins @@ -32,6 +33,7 @@ Control { } PanelToolTip { + Accessible.id: "PanelTrayItem_Pane" Accessible.role: Accessible.ToolTip Component.onCompleted: { Accessible.id = "QuickActions" } id: toolTip @@ -94,6 +96,7 @@ Control { property alias hovered: surfaceLayer.hovered ShellSurfaceItemProxy { + Accessible.id: "PanelTrayItem_Pane_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "SurfaceLayer" } id: surfaceLayer diff --git a/panels/dock/tray/quickpanel/PluginItem.qml b/panels/dock/tray/quickpanel/PluginItem.qml index a12b16926..bdd187a6b 100644 --- a/panels/dock/tray/quickpanel/PluginItem.qml +++ b/panels/dock/tray/quickpanel/PluginItem.qml @@ -27,6 +27,7 @@ Control { } DragItem { + Accessible.id: "PluginItem_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "DragLayer" } id: dragLayer @@ -52,6 +53,7 @@ Control { } ShellSurfaceItemProxy { + Accessible.id: "PluginItem_Pane_3" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "SurfaceLayer" } id: surfaceLayer diff --git a/panels/dock/tray/quickpanel/QuickPanel.qml b/panels/dock/tray/quickpanel/QuickPanel.qml index 614f73b76..de5b4ca57 100644 --- a/panels/dock/tray/quickpanel/QuickPanel.qml +++ b/panels/dock/tray/quickpanel/QuickPanel.qml @@ -59,6 +59,7 @@ Item { } PanelTrayItem { + Accessible.id: "QuickPanel_Pane" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "PanelTrayItem" } id: panelTrayItem @@ -76,6 +77,7 @@ Item { } PanelPopup { + Accessible.id: "QuickPanel_Dialog" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "Popup" } id: popup @@ -85,12 +87,14 @@ Item { popupY: DockPanelPositioner.y QuickPanelPage { + Accessible.id: "QuickPanel_Pane_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "PopupContent" } id: popupContent model: quickpanelModel DDT.SurfacePopup { + Accessible.id: "QuickPanel_Dialog_3" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "SurfacePopup" } objectName: "quickpanel" @@ -109,6 +113,7 @@ Item { // trayItem's popup DDT.TrayItemSurfacePopup { + Accessible.id: "QuickPanel_Dialog_6" Accessible.role: Accessible.Dialog Component.onCompleted: { Accessible.id = "TrayItemSurfacePopup" } id: trayItemSurfacePopup diff --git a/panels/dock/tray/quickpanel/QuickPanelPage.qml b/panels/dock/tray/quickpanel/QuickPanelPage.qml index 580a59c9f..af74e77e8 100644 --- a/panels/dock/tray/quickpanel/QuickPanelPage.qml +++ b/panels/dock/tray/quickpanel/QuickPanelPage.qml @@ -35,10 +35,12 @@ Item { StackView { id: panelView + Accessible.id: "QuickPanelPage_StackView" property int contentHeight: currentItem ? currentItem.height : 10 width: currentItem ? currentItem.width : 10 height: panelView.contentHeight initialItem: PanelPluginPage { + Accessible.id: "QuickPanelPage_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "PanelPage" } id: panelPage @@ -55,6 +57,7 @@ Item { Component { id: subPluginPageLoader SubPluginPage { + Accessible.id: "QuickPanelPage_Pane_3" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "SubPluginPage" } width: panelPage.width diff --git a/panels/dock/tray/quickpanel/SubPluginPage.qml b/panels/dock/tray/quickpanel/SubPluginPage.qml index f12e4bd05..92aee64b7 100644 --- a/panels/dock/tray/quickpanel/SubPluginPage.qml +++ b/panels/dock/tray/quickpanel/SubPluginPage.qml @@ -46,6 +46,7 @@ Item { Layout.rightMargin: 12 ActionButton { id: actionBtn + Accessible.id: "SubPluginPage_ActionButton" Layout.preferredWidth: 20 Layout.preferredHeight: 20 icon.name: "arrow_ordinary_left" @@ -89,6 +90,7 @@ Item { // content ShellSurfaceItemProxy { + Accessible.id: "SubPluginPage_Pane" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "SurfaceLayer" } id: surfaceLayer diff --git a/panels/notification/bubble/package/Bubble.qml b/panels/notification/bubble/package/Bubble.qml index dbc7f892e..8ec9f352e 100644 --- a/panels/notification/bubble/package/Bubble.qml +++ b/panels/notification/bubble/package/Bubble.qml @@ -10,6 +10,7 @@ import org.deepin.ds.notification 1.0 import org.deepin.dtk 1.0 as D NotifyItemContent { + Accessible.id: "Bubble_AlertMessage" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "Bubble" } id: control diff --git a/panels/notification/bubble/package/main.qml b/panels/notification/bubble/package/main.qml index 29b486ba8..0bcd1ea86 100644 --- a/panels/notification/bubble/package/main.qml +++ b/panels/notification/bubble/package/main.qml @@ -183,6 +183,7 @@ Window { } delegate: BubbleDelegate { + Accessible.id: "main_Pane" Accessible.role: Accessible.ListItem Component.onCompleted: { Accessible.id = "BubbleDelegate" } maxCount: model.bubbleCount diff --git a/panels/notification/center/GroupNotify.qml b/panels/notification/center/GroupNotify.qml index cfd8c7b9b..542e4497b 100644 --- a/panels/notification/center/GroupNotify.qml +++ b/panels/notification/center/GroupNotify.qml @@ -10,6 +10,7 @@ import org.deepin.ds.notification import org.deepin.ds.notificationcenter NotifyItem { + Accessible.id: "GroupNotify_AlertMessage" Accessible.role: Accessible.ListItem Component.onCompleted: { Accessible.id = "NotifyItem" } id: root @@ -40,6 +41,7 @@ NotifyItem { Control { id: impl + Accessible.id: "GroupNotify_Control" anchors.fill: parent focus: true @@ -59,6 +61,7 @@ NotifyItem { contentItem: RowLayout { NotifyHeaderTitleText { + Accessible.id: "GroupNotify_AlertMessage_2" Accessible.role: Accessible.StaticText Component.onCompleted: { Accessible.id = "NotifyHeaderTitleText" } text: root.appName @@ -73,6 +76,7 @@ NotifyItem { } AnimationSettingButton { + Accessible.id: "GroupNotify_Button" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "Fold" } id: foldBtn @@ -95,6 +99,7 @@ NotifyItem { } } AnimationSettingButton { + Accessible.id: "GroupNotify_Button_5" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "More" } id: groupMoreBtn @@ -118,6 +123,7 @@ NotifyItem { } } AnimationSettingButton { + Accessible.id: "GroupNotify_Button_6" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "ClearAll" } id: groupClearBtn diff --git a/panels/notification/center/NormalNotify.qml b/panels/notification/center/NormalNotify.qml index 36f89578b..47c900e37 100644 --- a/panels/notification/center/NormalNotify.qml +++ b/panels/notification/center/NormalNotify.qml @@ -10,6 +10,7 @@ import org.deepin.ds.notification import org.deepin.ds.notificationcenter NotifyItem { + Accessible.id: "NormalNotify_AlertMessage" Accessible.role: Accessible.ListItem Component.onCompleted: { Accessible.id = "NotifyItem" } id: root @@ -36,6 +37,7 @@ NotifyItem { Control { id: impl + Accessible.id: "NormalNotify_Control" anchors.fill: parent focus: true @@ -54,6 +56,7 @@ NotifyItem { } contentItem: NotifyItemContent { + Accessible.id: "NormalNotify_AlertMessage_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "NotifyContent" } id: notifyContent diff --git a/panels/notification/center/NotifyCenter.qml b/panels/notification/center/NotifyCenter.qml index 117401cce..eb9c014ec 100644 --- a/panels/notification/center/NotifyCenter.qml +++ b/panels/notification/center/NotifyCenter.qml @@ -46,6 +46,7 @@ FocusScope { objectName: "notificationCenter" anchors.fill: parent NotifyHeader { + Accessible.id: "NotifyCenter_AlertMessage" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "Header" } id: header @@ -74,6 +75,7 @@ FocusScope { } NotifyView { + Accessible.id: "NotifyCenter_AlertMessage_2" Accessible.role: Accessible.List Component.onCompleted: { Accessible.id = "View" } id: view @@ -99,6 +101,7 @@ FocusScope { } DropShadowText { + Accessible.id: "NotifyCenter_Pane_2" Accessible.role: Accessible.StaticText Component.onCompleted: { Accessible.id = "NoRecentNotifications" } text: qsTr("No recent notifications") diff --git a/panels/notification/center/NotifyHeader.qml b/panels/notification/center/NotifyHeader.qml index bc185edfe..813b46810 100644 --- a/panels/notification/center/NotifyHeader.qml +++ b/panels/notification/center/NotifyHeader.qml @@ -72,6 +72,7 @@ FocusScope { } NotifyHeaderTitleText { + Accessible.id: "NotifyHeader_AlertMessage" Accessible.role: Accessible.StaticText Component.onCompleted: { Accessible.id = "NotificationCenter" } id: titleText @@ -82,6 +83,7 @@ FocusScope { } AnimationSettingButton { + Accessible.id: "NotifyHeader_Button" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "Fold" } id: collapseBtn @@ -107,6 +109,7 @@ FocusScope { } AnimationSettingButton { + Accessible.id: "NotifyHeader_Button_3" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "More" } id: moreBtn @@ -149,6 +152,7 @@ FocusScope { } AnimationSettingButton { + Accessible.id: "NotifyHeader_Button_4" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "ClearAll" } id: clearAllBtn diff --git a/panels/notification/center/NotifyHeaderTitleText.qml b/panels/notification/center/NotifyHeaderTitleText.qml index 7fa965ede..96dc0b53f 100644 --- a/panels/notification/center/NotifyHeaderTitleText.qml +++ b/panels/notification/center/NotifyHeaderTitleText.qml @@ -9,6 +9,7 @@ import org.deepin.ds.notification import org.deepin.ds.notificationcenter DropShadowText { + Accessible.id: "NotifyHeaderTitleText_Pane" Accessible.role: Accessible.StaticText Component.onCompleted: { Accessible.id = "DropShadowText" } property font tFont: DTK.fontManager.t4 diff --git a/panels/notification/center/NotifySettingMenu.qml b/panels/notification/center/NotifySettingMenu.qml index 1e42589b6..9f47f7512 100644 --- a/panels/notification/center/NotifySettingMenu.qml +++ b/panels/notification/center/NotifySettingMenu.qml @@ -9,6 +9,7 @@ import org.deepin.ds.notificationcenter Menu { id: root + Accessible.id: "NotifySettingMenu_Menu" closePolicy: Popup.CloseOnPressOutside | Popup.CloseOnEscape modal: true diff --git a/panels/notification/center/NotifyStaging.qml b/panels/notification/center/NotifyStaging.qml index affa3d673..6401b3155 100644 --- a/panels/notification/center/NotifyStaging.qml +++ b/panels/notification/center/NotifyStaging.qml @@ -90,6 +90,7 @@ FocusScope { model: notifyModel delegate: OverlapNotify { + Accessible.id: "NotifyStaging_AlertMessage" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "OverlapNotify" } id: overlapNotify diff --git a/panels/notification/center/NotifyView.qml b/panels/notification/center/NotifyView.qml index 5e4751c0b..00440aaa2 100644 --- a/panels/notification/center/NotifyView.qml +++ b/panels/notification/center/NotifyView.qml @@ -26,6 +26,7 @@ Control { signal gotoHeaderLast() // Signal to cycle Shift+Tab back to header last button NotifySetting { + Accessible.id: "NotifyView_AlertMessage" id: notifySetting notifyModel: root.notifyModel } @@ -60,6 +61,7 @@ Control { contentItem: ListView { id: view + Accessible.id: "NotifyView_ListView" clip: true spacing: 10 snapMode: ListView.NoSnap @@ -127,6 +129,7 @@ Control { model: root.notifyModel delegate: NotifyViewDelegate { + Accessible.id: "NotifyView_AlertMessage_2" id: notifyDelegate notifyModel: root.notifyModel view: view @@ -251,6 +254,7 @@ Control { } background: BoundingRectangle { + Accessible.id: "NotifyView_Pane_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "BoundingRectangle" } } diff --git a/panels/notification/center/NotifyViewDelegate.qml b/panels/notification/center/NotifyViewDelegate.qml index a74277cdb..51df6bb53 100644 --- a/panels/notification/center/NotifyViewDelegate.qml +++ b/panels/notification/center/NotifyViewDelegate.qml @@ -56,6 +56,7 @@ DelegateChooser { DelegateChoice { roleValue: "group" GroupNotify { + Accessible.id: "NotifyViewDelegate_AlertMessage" Accessible.role: Accessible.ListItem Component.onCompleted: { Accessible.id = "GroupNotify" } id: groupNotify @@ -93,6 +94,7 @@ DelegateChooser { DelegateChoice { roleValue: "normal" NormalNotify { + Accessible.id: "NotifyViewDelegate_AlertMessage_2" Accessible.role: Accessible.ListItem Component.onCompleted: { Accessible.id = "NormalNotify" } id: normalNotify @@ -167,6 +169,7 @@ DelegateChooser { DelegateChoice { roleValue: "overlap" OverlapNotify { + Accessible.id: "NotifyViewDelegate_AlertMessage_3" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "OverlapNotify_2" } id: overlapNotify @@ -190,6 +193,7 @@ DelegateChooser { contentRowCount: model.contentRowCount enableDismissed: false notifyContent.clearButton: AnimationSettingButton { + Accessible.id: "NotifyViewDelegate_Button" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "CleanAll" } id: clearBtn diff --git a/panels/notification/center/OverlapNotify.qml b/panels/notification/center/OverlapNotify.qml index 89e02e4b8..b5736bc00 100644 --- a/panels/notification/center/OverlapNotify.qml +++ b/panels/notification/center/OverlapNotify.qml @@ -10,6 +10,7 @@ import org.deepin.ds.notification import org.deepin.ds.notificationcenter NotifyItem { + Accessible.id: "OverlapNotify_AlertMessage" Accessible.role: Accessible.ListItem Component.onCompleted: { Accessible.id = "NotifyItem" } id: root @@ -81,6 +82,7 @@ NotifyItem { Control { id: impl + Accessible.id: "OverlapNotify_Control" anchors.fill: parent focus: true @@ -102,6 +104,7 @@ NotifyItem { width: parent.width implicitHeight: notifyContent.height + indicator.height NotifyItemContent { + Accessible.id: "OverlapNotify_AlertMessage_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "NotifyContent" } id: notifyContent @@ -147,6 +150,7 @@ NotifyItem { } OverlapIndicator { + Accessible.id: "OverlapNotify_Pane_2" Accessible.role: Accessible.Indicator Component.onCompleted: { Accessible.id = "Indicator" } id: indicator diff --git a/panels/notification/center/package/main.qml b/panels/notification/center/package/main.qml index 0ee598a90..74a852159 100644 --- a/panels/notification/center/package/main.qml +++ b/panels/notification/center/package/main.qml @@ -214,6 +214,7 @@ Window { } NotifyStaging { + Accessible.id: "main_AlertMessage" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "NotifyStaging" } id: notifyStaging @@ -242,6 +243,7 @@ Window { } NotifyCenter { + Accessible.id: "main_AlertMessage_2" Accessible.role: Accessible.Pane Component.onCompleted: { Accessible.id = "NotifyCenter" } id: notifyCenter diff --git a/panels/notification/osd/kblayout/package/main.qml b/panels/notification/osd/kblayout/package/main.qml index 47fe1c284..1a9d41a13 100644 --- a/panels/notification/osd/kblayout/package/main.qml +++ b/panels/notification/osd/kblayout/package/main.qml @@ -56,6 +56,7 @@ AppletItem { delegate: D.ItemDelegate { id: itemView + Accessible.id: "main_ItemDelegate" width: view.width height: 48 palette.windowText: undefined diff --git a/panels/notification/plugin/NotifyAction.qml b/panels/notification/plugin/NotifyAction.qml index 1ed92a9b6..6e550b885 100644 --- a/panels/notification/plugin/NotifyAction.qml +++ b/panels/notification/plugin/NotifyAction.qml @@ -167,6 +167,7 @@ Control { event.accepted = true } actionMenu: NotifyActionMenu { + Accessible.id: "NotifyAction_Menu" onActionInvoked: function(actionId) { console.log("Action invoked from menu with ID:", actionId) root.actionInvoked(actionId) diff --git a/panels/notification/plugin/NotifyItemContent.qml b/panels/notification/plugin/NotifyItemContent.qml index ac0021b18..31db6d1af 100644 --- a/panels/notification/plugin/NotifyItemContent.qml +++ b/panels/notification/plugin/NotifyItemContent.qml @@ -10,6 +10,7 @@ import org.deepin.dtk.style 1.0 as DStyle import org.deepin.ds.notification NotifyItem { + Accessible.id: "NotifyItemContent_AlertMessage" Accessible.role: Accessible.ListItem Component.onCompleted: { Accessible.id = "NotifyItem" } id: root @@ -75,6 +76,7 @@ NotifyItem { anchors.fill: parent Item { + Accessible.id: "NotifyItemContent_Item" anchors.fill: parent z: -1 enabled: root.enableDismissed @@ -117,6 +119,7 @@ NotifyItem { // Show when mouse hovers or notification item has focus active: !(root.strongInteractive && root.actions.length > 0) && (root.closeVisible || closePlaceHolder.hovered) sourceComponent: SettingActionButton { + Accessible.id: "NotifyItemContent_Button" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "CloseBtn" } id: closeBtn @@ -283,6 +286,7 @@ NotifyItem { Layout.alignment: Qt.AlignLeft | Qt.AlignTop Text { id: bodyText + Accessible.id: "NotifyItemContent_Text" Layout.alignment: Qt.AlignLeft | Qt.AlignTop // text 宽度若让Layout通过implicitWidth计算会导致ListView的add动画出现位置错误,故这里手动计算Text的宽度 Layout.preferredWidth: NotifyStyle.contentItem.width - appIcon.width @@ -337,6 +341,7 @@ NotifyItem { Layout.alignment: Qt.AlignRight | Qt.AlignBottom Layout.topMargin: 8 sourceComponent: NotifyAction { + Accessible.id: "NotifyItemContent_AlertMessage_2" Accessible.role: Accessible.Button Component.onCompleted: { Accessible.id = "NotifyAction" } actions: root.actions diff --git a/tests/at/spi/expected_names.yaml b/tests/at/spi/expected_names.yaml index 4565179cc..ead1fcd73 100644 --- a/tests/at/spi/expected_names.yaml +++ b/tests/at/spi/expected_names.yaml @@ -16,6 +16,18 @@ widgets: source_file: panels/dock/taskmanager/x11preview.cpp class_name: '' line: 215 +- variable: closeButton + type: DIconButton * + object_name: closewindowbutton + source_file: panels/dock/taskmanager/x11preview.cpp + class_name: '' + line: 323 +- variable: m_view + type: PreviewsListView * + object_name: windowpreviewlist + source_file: panels/dock/taskmanager/x11preview.cpp + class_name: X11WindowPreviewContainer + line: 643 qml_elements: - element_type: PanelPopup id: popup @@ -247,7 +259,7 @@ qml_elements: accessible_role: Accessible.Pane source_file: panels/dock/taskmanager/package/AppItem.qml parent_type: '' - line: 78 + line: 76 - element_type: WindowIndicator id: windowIndicator accessible_id: WindowIndicator @@ -261,21 +273,21 @@ qml_elements: accessible_role: Accessible.StaticText source_file: panels/dock/taskmanager/package/AppItem.qml parent_type: '' - line: 308 + line: 309 - element_type: PanelToolTip id: toolTip accessible_id: ToolTip accessible_role: Accessible.ToolTip source_file: panels/dock/taskmanager/package/AppItem.qml parent_type: Repeater - line: 565 + line: 568 - element_type: PanelToolTip id: dragToolTip accessible_id: MoveToTrash accessible_role: Accessible.ToolTip source_file: panels/dock/taskmanager/package/AppItem.qml parent_type: Repeater - line: 573 + line: 577 - element_type: OverflowContainer id: appContainer accessible_id: AppContainer @@ -296,14 +308,14 @@ qml_elements: accessible_role: Accessible.ToolTip source_file: panels/dock/tray/SurfacePopup.qml parent_type: '' - line: 22 + line: 20 - element_type: ShellSurfaceItemProxy id: surfaceLayer accessible_id: SurfaceLayer accessible_role: Accessible.Pane source_file: panels/dock/tray/SurfacePopup.qml parent_type: PanelToolTip - line: 32 + line: 31 - element_type: PanelMenu id: menu accessible_id: Menu @@ -317,42 +329,42 @@ qml_elements: accessible_role: Accessible.Pane source_file: panels/dock/tray/SurfacePopup.qml parent_type: PanelMenu - line: 65 + line: 66 - element_type: SurfaceSubPopup id: '' accessible_id: SurfaceSubPopup accessible_role: Accessible.Dialog source_file: panels/dock/tray/SurfacePopup.qml parent_type: Loader - line: 88 + line: 90 - element_type: PanelMenu id: popup accessible_id: Popup accessible_role: Accessible.PopupMenu source_file: panels/dock/tray/SurfaceSubPopup.qml parent_type: PanelMenuWindow - line: 51 + line: 49 - element_type: ShellSurfaceItemProxy id: popupSurfaceLayer accessible_id: PopupSurfaceLayer accessible_role: Accessible.Pane source_file: panels/dock/tray/SurfaceSubPopup.qml parent_type: PanelMenu - line: 60 + line: 59 - element_type: PanelPopup id: popup accessible_id: Popup accessible_role: Accessible.Dialog source_file: panels/dock/tray/TrayItemSurfacePopup.qml parent_type: '' - line: 31 + line: 29 - element_type: ShellSurfaceItemProxy id: popupContent accessible_id: PopupContent accessible_role: Accessible.Pane source_file: panels/dock/tray/TrayItemSurfacePopup.qml parent_type: PanelPopup - line: 45 + line: 44 - element_type: PanelMenu id: popupMenu accessible_id: PopupMenu @@ -366,7 +378,7 @@ qml_elements: accessible_role: Accessible.Pane source_file: panels/dock/tray/TrayItemSurfacePopup.qml parent_type: PanelMenu - line: 79 + line: 80 - element_type: SurfaceSubPopup id: '' accessible_id: SurfaceSubPopup @@ -380,14 +392,14 @@ qml_elements: accessible_role: Accessible.ToolTip source_file: panels/dock/tray/TrayItemSurfacePopup.qml parent_type: '' - line: 129 + line: 133 - element_type: ShellSurfaceItemProxy id: toolTipContent accessible_id: ToolTipContent accessible_role: Accessible.Pane source_file: panels/dock/tray/TrayItemSurfacePopup.qml parent_type: PanelToolTip - line: 137 + line: 142 - element_type: AppletItemButton id: root accessible_id: AppletItemButton @@ -632,14 +644,14 @@ qml_elements: accessible_role: Accessible.Button source_file: panels/dock/tray/quickpanel/QuickPanel.qml parent_type: '' - line: 63 + line: 61 - element_type: PanelPopup id: popup accessible_id: Popup accessible_role: Accessible.Dialog source_file: panels/dock/tray/quickpanel/QuickPanel.qml parent_type: '' - line: 80 + line: 79 - element_type: QuickPanelPage id: popupContent accessible_id: PopupContent @@ -653,14 +665,14 @@ qml_elements: accessible_role: Accessible.Dialog source_file: panels/dock/tray/quickpanel/QuickPanel.qml parent_type: QuickPanelPage - line: 95 + line: 97 - element_type: TrayItemSurfacePopup id: trayItemSurfacePopup accessible_id: TrayItemSurfacePopup accessible_role: Accessible.Dialog source_file: panels/dock/tray/quickpanel/QuickPanel.qml parent_type: '' - line: 113 + line: 116 - element_type: PanelPluginPage id: panelPage accessible_id: PanelPage @@ -709,14 +721,14 @@ qml_elements: accessible_role: Accessible.ListItem source_file: panels/notification/center/GroupNotify.qml parent_type: '' - line: 14 + line: 12 - element_type: NotifyHeaderTitleText id: '' accessible_id: NotifyHeaderTitleText accessible_role: Accessible.StaticText source_file: panels/notification/center/GroupNotify.qml parent_type: NotifyItem - line: 63 + line: 62 - element_type: AnimationSettingButton id: foldBtn accessible_id: Fold @@ -730,14 +742,14 @@ qml_elements: accessible_role: Accessible.Button source_file: panels/notification/center/GroupNotify.qml parent_type: NotifyItem - line: 99 + line: 100 - element_type: AnimationSettingButton id: groupClearBtn accessible_id: ClearAll accessible_role: Accessible.Button source_file: panels/notification/center/GroupNotify.qml parent_type: NotifyItem - line: 122 + line: 125 - element_type: NotifyItem id: root accessible_id: NotifyItem @@ -997,4 +1009,179 @@ qml_elements: source_file: shell/SceneWindow.qml parent_type: ApplicationWindow line: 24 +- element_type: IconButton + id: control + accessible_id: AppletItemButton_IconButton + accessible_role: '' + source_file: panels/dock/AppletItemButton.qml + parent_type: '' + line: 11 +- element_type: ListView + id: '' + accessible_id: ShowRuntimeMenu_ListView + accessible_role: '' + source_file: panels/dock/appruntimeitem/package/ShowRuntimeMenu.qml + parent_type: '' + line: 34 +- element_type: SwipeView + id: '' + accessible_id: CardLeftDockArea_SwipeView + accessible_role: '' + source_file: panels/dock/cardleft/package/CardLeftDockArea.qml + parent_type: '' + line: 271 +- element_type: Item + id: '' + accessible_id: CardLeftDockArea_Item + accessible_role: '' + source_file: panels/dock/cardleft/package/CardLeftDockArea.qml + parent_type: '' + line: 365 +- element_type: Item + id: '' + accessible_id: main_Item + accessible_role: '' + source_file: panels/dock/package/main.qml + parent_type: '' + line: 473 +- element_type: Item + id: '' + accessible_id: TrayContainer_Item + accessible_role: '' + source_file: panels/dock/tray/package/TrayContainer.qml + parent_type: '' + line: 73 +- element_type: ActionButton + id: '' + accessible_id: PanelPluginPage_ActionButton + accessible_role: '' + source_file: panels/dock/tray/quickpanel/PanelPluginPage.qml + parent_type: '' + line: 106 +- element_type: Control + id: '' + accessible_id: PanelTrayItem_Control + accessible_role: '' + source_file: panels/dock/tray/quickpanel/PanelTrayItem.qml + parent_type: '' + line: 15 +- element_type: StackView + id: panelView + accessible_id: QuickPanelPage_StackView + accessible_role: '' + source_file: panels/dock/tray/quickpanel/QuickPanelPage.qml + parent_type: '' + line: 36 +- element_type: ActionButton + id: '' + accessible_id: SubPluginPage_ActionButton + accessible_role: '' + source_file: panels/dock/tray/quickpanel/SubPluginPage.qml + parent_type: '' + line: 47 +- element_type: Control + id: '' + accessible_id: GroupNotify_Control + accessible_role: '' + source_file: panels/notification/center/GroupNotify.qml + parent_type: '' + line: 42 +- element_type: Control + id: '' + accessible_id: NormalNotify_Control + accessible_role: '' + source_file: panels/notification/center/NormalNotify.qml + parent_type: '' + line: 38 +- element_type: Menu + id: '' + accessible_id: NotifySettingMenu_Menu + accessible_role: '' + source_file: panels/notification/center/NotifySettingMenu.qml + parent_type: '' + line: 10 +- element_type: ListView + id: view + accessible_id: NotifyView_ListView + accessible_role: '' + source_file: panels/notification/center/NotifyView.qml + parent_type: '' + line: 62 +- element_type: Control + id: '' + accessible_id: OverlapNotify_Control + accessible_role: '' + source_file: panels/notification/center/OverlapNotify.qml + parent_type: '' + line: 83 +- element_type: D.ItemDelegate + id: '' + accessible_id: main_ItemDelegate + accessible_role: '' + source_file: panels/notification/osd/kblayout/package/main.qml + parent_type: '' + line: 57 +- element_type: Item + id: '' + accessible_id: NotifyItemContent_Item + accessible_role: '' + source_file: panels/notification/plugin/NotifyItemContent.qml + parent_type: '' + line: 78 +- element_type: Text + id: '' + accessible_id: NotifyItemContent_Text + accessible_role: '' + source_file: panels/notification/plugin/NotifyItemContent.qml + parent_type: '' + line: 286 +- element_type: ShellSurfaceItem + id: '' + accessible_id: ShellSurfaceItemProxy + accessible_role: '' + source_file: panels/dock/ShellSurfaceItemProxy.qml + parent_type: '' + line: 36 +- element_type: AppletItem + id: '' + accessible_id: AppletDockItem + accessible_role: '' + source_file: panels/dock/AppletDockItem.qml + parent_type: '' + line: 8 +- element_type: ShellSurfaceItem + id: '' + accessible_id: ShellSurfaceItemProxy + accessible_role: '' + source_file: panels/dock/ShellSurfaceItemProxy.qml + parent_type: '' + line: 36 +- element_type: AppletItem + id: '' + accessible_id: AppletDockItem + accessible_role: '' + source_file: panels/dock/AppletDockItem.qml + parent_type: '' + line: 8 +- element_type: Flickable + id: flick + accessible_id: FolderPopup_Flickable + accessible_role: '' + source_file: panels/dock/taskmanager/package/FolderPopup.qml + parent_type: '' + line: 103 +- element_type: ScrollBar + id: '' + accessible_id: FolderPopup_ScrollBar + accessible_role: '' + source_file: panels/dock/taskmanager/package/FolderPopup.qml + parent_type: '' + line: 116 +- element_type: ItemDelegate + id: entryDelegate + accessible_id: FolderPopup_ItemDelegate + accessible_role: '' + source_file: panels/dock/taskmanager/package/FolderPopup.qml + parent_type: Repeater + line: 124 transient_elements: []