531 Commits

Author SHA1 Message Date
Yixue Wang
79efd518a9 chore: correct typo
Correct typo founded to found.

Log: correct typo
2024-01-04 16:49:51 +08:00
Yixue Wang
6c492486a5 optimize: use invokeMethod instead of singleShot
Use invokeMethod to invoke method in event loop later.

Log: use invokeMethod instead of singleShot
2024-01-04 16:49:51 +08:00
ck
c2aedfe052 chore: get dconfig value with fallback value
Fallback to default value if dconfig::value failed
if not specify a fallback, default is QVariant()
2023-11-21 14:51:50 +08:00
chenhongtao
70d73662ec chore: when debug open this log
it fursh too much

Log:
2023-11-21 05:30:19 +00:00
YeShanShan
0f59177248 fix: Can't hide when DockPopupWindow deactivate
We hide the popupwindow when receiving QEvent::WindowDeactivate.

Issue: https://github.com/linuxdeepin/developer-center/issues/5405
2023-09-11 10:59:58 +08:00
tsic404
3da8943417 fix: not show with launcher when hide
add lost launcherFront dbus signal

log: as title
2023-08-04 16:59:05 +08:00
tsic404
9011e4a125 fix: plugin set show on dock more times, also need same times call unshow
Duplication was kept when saving the configuration, the same plugin was saved multiple times,
but only one was removed when it was removed

log: remove duplication when save dconfig
2023-08-02 02:02:40 +00:00
tsic404
068f35e405 chore: remove std namespace
log: as title
2023-07-24 06:52:40 +00:00
tsic404
9de057e2cc refactor: add taskmanager from dde-application-manager
1. taskmanager used to identify which entry should map to window
  in x11 environmrnt, listen to xevent in anohter thread, and handle those event
when window create, destory, changed. use some way to identify which entry(desktopfile)
should mapped to changed window.
  in wayland, connected plsamawindow signal(window created destoried.
2. use taskmanager instead of dbus in old dock code

log: as title
2023-07-18 07:35:19 +00:00
tsic404
5f6cacdf2a refactor: Rewrite the calling method of dock settings
Rewrite the calling method of dock settings, using the new dconfig interface instead of AM's dbus interface

log: as title
2023-07-18 07:35:19 +00:00
tsic404
eb33819302 refactor: rewrite encapsulation of the dconfig
log: as title
2023-07-18 07:35:19 +00:00
YeShanShan
5894cc8a7d fix: DockPopupWindow losing active status
It causes that child widgets doesn't have focus even though
calling setFocus.
  It was introduced by ec5c447264087420d8ec80a18e7f2bcc4f683a74.
because that DArrowRectangle has activateWindow when show.

Issue: https://pms.uniontech.com/bug-view-172773.html
2023-05-24 16:50:36 +08:00
tsic404
83f264720c fix: popupwindow misjudgment
content should not more width than screen otherwise popupwindows must be out of bounds screen

log: as title
2023-05-11 13:50:17 +08:00
tsic404
15e5a0fadb fix: popupwindow is out of bounds at the edge of the screen
set the minimum value of x of popupwindow to the current screen
and the maximum value to the maximum x of the current screen

log:
2023-05-11 05:03:37 +00:00
chenhongtao
24ff57eb70 fix: popupwindow need click destkop twice to hide
Log: only not hide it when focus widget is QLineEdit
2023-05-06 16:01:32 +08:00
tsic404
e6dbaa69bb fix: update appitem position when showing from hide
dock request to hide, set old position to appitem.
so need to update appitem position when show from hide state

log:
2023-04-21 01:36:08 +00:00
chenhongtao
c2ba4e4971 fix: when there is focus on dockpopupwindow, it hide
Log: fix when there is focus and dockpopupwindow hide
2023-04-12 09:08:32 +00:00
Yutao Meng
ec5c447264 feat: DockPopupWindow改用DBlurEffectWidget实现
DockPopupWindow改为使用DBlurEffectWidget来实现新的设计,以及摆脱原来DArrowRectangle出现的侧边任务栏PopupWindow圆角显示不对称的问题.

Log: DockPopupWindow改用DBlurEffectWidget实现

Signed-off-by: Yutao Meng <mengyutao@uniontech.com>
2023-04-11 08:40:17 +00:00
tsic404
6242e642bc fix: when multiscreen connected non-primary display unable to click popupwindow
when devicePixelRatio > 1, there is a gap between multiple screens,
before currentPos multiplying by the devicePixelAatio need to subtract the topleft of the current screen
and then replus the current screen topleft

log: fix wrong multiScreen click pos
2023-04-11 13:25:56 +08:00
wangyixue
b69a220b05 fix: disk popup does not hide
Disk popup does hide after all disks are ejected. Hide popup of a
pluin in itemRemoved, and notify the DockPopupWindow to hide too.

Log: fix disk popup does not hide
Issue: 3813
2023-04-04 11:20:47 +08:00
tsic404
4a67d10770 chore: fix build warning
fix package warning
1. replace deprecated QPalette::ColorRole Background and Foreground
2. replace deprecated Qt::SystemLocaleLongDate
3. replace deprecated QMouseEvent constructor
4. CMakeLists.txt rectification

log: remove build warnings
2023-03-26 19:16:00 +08:00
tsic404
e7b1bf420e fix: 修复预览花屏问题
更改传递tmp下文件描述符为管道文件描述符,使用管道传递预览图片数据

log: 修复预览花屏问题
2023-03-16 20:25:20 +08:00
tsic404
2f185bf3ce chore: resolve v23 merge conflicts
log:
2023-02-16 15:08:28 +08:00
donghualin
ebd1522aea fix: 修复高缩放率下固定区域图标和回收站图标显示异常的问题
图标加载后,需要将图标缩放成合适的大小

Log: 修复高缩放率下图标显示异常
Influence: 1.25倍缩放率下,选择非默认主题,观察任务栏显示桌面、多任务试图和回收站的图标大小是否正常
Bug: https://pms.uniontech.com/bug-view-182673.html
Change-Id: I8d02cec5f990523acb9f75763fa1cb1e24c93e9c
2023-01-13 09:41:24 +08:00
donghualin
f7812cfb66 fix: 修复移除蓝牙后弹框依然显示的问题
移除设备后弹窗不再显示

Log:
Influence: 点击任务栏的蓝牙图标,弹出蓝牙弹窗,然后移除蓝牙,观察蓝牙的弹窗是否存在
Bug: https://pms.uniontech.com/bug-view-181945.html
Change-Id: Idcef18077d9f822b2ea3aca93442a2d098ea146b
2023-01-12 13:54:07 +08:00
donghualin
e7dbbb0140 fix: 点击插件弹出自己的列表
1、删除已经移到插件中的文件
2、点击插件图标,弹出当前插件对应的列表

Log:
Influence: 点击插件,观察是否弹出插件自己对应的列表,如果没有弹出列表,则触发这个插件的功能
Task: https://pms.uniontech.com/task-view-222353.html
Change-Id: Ia8797ccbe630d56d79ab9138d5aa982b66f74c57
2023-01-12 13:54:06 +08:00
donghualin
bc840d233d feat: 加载基本插件
加载pluginmanager插件,其他的插件由pluginmanager插件来加载

Log:
Influence: 插件加载
Task: https://pms.uniontech.com/task-view-222353.html
Change-Id: Ibe3cb59c5e3da27d7547d9bea8e05ebcd03c5a87
2023-01-12 13:51:25 +08:00
ssk-wh
0bfd5f5543 chore: 修复编译失败问题
DRegionMonitor从dtk的widget移动到了gui模块,但为了兼容,widget模块中还存在,要避免项目同时加载了两个模块中的DRegionMonitor类

Log: 编译问题
Influence: 编译问题
Change-Id: I8bd5d7350f6bda3d21b32685d086c79e3781b766
2022-12-30 02:54:37 +00:00
donghualin
35b4788180 fix: 修复高缩放率下图标显示异常的问题
设置qApp的Qt::AA_UseHighDpiPixmaps属性为true,设置高分屏支持

Log: 修复高缩放率下图标显示异常的问题
Influence: 设置高缩放率,观察任务栏图标显示
Bug: https://gerrit.uniontech.com/c/dde-network-core/+/180802
Change-Id: I76b6621c405c4a01d39b68817fe920f8e6671609
2022-12-19 15:05:53 +08:00
donghualin
80dfd4a2b8 fix: 修复无法通过点击插件图标隐藏快捷面板的问题
设置不检测的QWidget,当鼠标在不检测的QWidget内部点击的时候,无需关闭当前快捷面板

Log:
Influence: 从插件图标打开快捷面板,再次点击该插件图标,观察快捷面板是否隐藏
Bug: https://pms.uniontech.com/bug-view-175201.html
Change-Id: Ia523a7a414cdbd9cbd088ab0729e3b01414b8a93
2022-12-15 19:58:58 +08:00
donghualin
5e4c288cea fix: 修复智能隐藏下切换模式显示错乱的问题
原因:在切换模式的时候,需要重新计算任务栏的大小,但是由于时尚模式和高效模式下的尺寸不一样,所以在计算图标的时候会以切换之前的尺寸为参考来进行计算,导致计算的结果错误
修复:在切换模式的时候,提前设置任务栏的尺寸(上下为高度,左右为宽度),这样在下次计算图标的时候获取到的尺寸始终是以正确的尺寸进行计算,任务栏显示正常

Log: 修复智能隐藏下切换模式显示错乱
Influence: 任务栏设置为智能隐藏,从高效模式切换到时尚模式,观察任务栏显示是否正常
Bug: https://pms.uniontech.com/bug-view-176321.html
Change-Id: Ia66cb3e96d4f42c42acc921315e9457d582a82c1
2022-12-14 01:33:00 +00:00
donghualin
477bc09965 fix: 修复重启AM后任务栏崩溃的问题
1、重启AM后,需要重新更新每个子部件的dockInter,因为这些字部件的dockInter是从MultiScreenWorker类中获取的,而MultiScreenWorker类中的dockInter已经被释放重新获取了;
2、重新启动AM后,由于任务栏会重新执行positionChanged的方法,在这个过程中会执行300毫秒的动画,在动画执行完成后,会判断当前服务是否重启过,如果重启过服务,则重新刷新界面

Log: 修复重启AM后任务栏崩溃的问题
Influence: 重启AM服务,观察任务栏是否重启
Task: https://pms.uniontech.com/task-view-225201.html
Change-Id: I1d5337fe7a0101450dfce7338d32aad73c14f697
2022-12-14 01:33:00 +00:00
范朋程
3efc00ac29 fix: 修复控制中心调节透明度对任务栏无作用的问题
控制中心使用了Appearance的接口,任务栏需要适配

Log: 修复控制中心调节透明度对任务栏无作用的问题
Influence: 任务栏透明度调节
Task: https://pms.uniontech.com/task-view-226127.html
Change-Id: I3c2edcb82155bdc65220c25c9e139d34c0e92d34
2022-12-13 19:12:46 +08:00
范朋程
16d8ee9253 feat: 隐藏显示动画调整
任务栏智能隐藏或一直隐藏时,鼠标移动到屏幕边缘过一段时间再唤起任务栏
DConfig配置:delayIntervalOnHide,默认值0,单位毫秒

Log: 隐藏显示动画调整
Change-Id: I3a93a868e790566b6548f83ff740f5913db9bcc8
2022-12-06 10:05:28 +00:00
范朋程
2d958dd670 chore: V23接口改造适配
V23接口改造适配

Log: V23接口改造适配
Influence: 无
Task: https://pms.uniontech.com/task-view-207483.html
Change-Id: Ide530c023ea41f86fad2e8001ec67f1afaa897ab
2022-12-06 14:40:35 +08:00
caixr23
3e26d6ca35
fix: 修复任务栏图标模糊问题 (#729)
高分屏支持设置错误

Log: 修复任务栏图标模糊问题
Bug: https://pms.uniontech.com/bug-view-174459.html
Influence: 缩放后任务栏-各插件图标,右键菜单图标
2022-11-30 08:46:54 +00:00
donghualin
7a254eb8ea fix: 修复wayland下智能隐藏偶尔失效的问题
在改变隐藏模式的时候,无需检测鼠标位置即可

Log:
Influence: 进入wayland,任务栏设置为智能隐藏,从任务栏打开一个窗口,观察智能隐藏是否有效果
Bug: https://pms.uniontech.com/bug-view-154513.html
Change-Id: I959ba137ae383cd81fb4c5b6df0750a814372581
2022-11-30 13:40:40 +08:00
donghualin
8cb6cb89d7 feat: 增加回收站和电源插件在控制中心的显示和隐藏
响应DConfig配置文件的变化,根据当前新增或删除的配置来新增或删除插件

Log:
Influence: 从控制中心勾选或者取消勾选回收站和电源插件,观察任务栏的变化
Task: https://pms.uniontech.com/task-view-216841.html
Change-Id: Ia79ae924180d07e1b11f26bd119c83a8932cb80d
2022-11-30 13:08:19 +08:00
donghualin
224066836a fix: 修复控制中心显示多条重复控件的问题
原因:插件在多次调用itemAdded方法,导致条件到列表中的控件重复
修改:过滤掉重复加载的插件,保证同一个插件在控制中心只显示一次

Log:
Influence: 控制中心-个性化,观察蓝牙或者任务栏等插件是否只显示一次
Bug: https://pms.uniontech.com/bug-view-171581.html
Change-Id: I52912c0c51159df1f84ed16dcbe891c346a6bfaa
2022-11-30 12:21:41 +08:00
donghualin
c7df15ce0e feat: 插件增加标记
插件接口类中增加flag接口,用于返回不同的插件的属性,在各插件的实现中实现这个接口

Log:
Influence: 任务栏插件
Task: https://pms.uniontech.com/task-view-220099.html
Change-Id: I9e8b8e0f5f9818856b70a76bbda9eb31dc4ebf65
2022-11-28 14:40:55 +08:00
donghualin
a41df224f6 fix: 增加对控制中心设置不同主题下图标的接口
1、任务栏插件接口中增加根据主题来获取不同图标的接口
2、声音、蓝牙、电源、虚拟键盘、回收站等插件完善控制中心的接口
3、任务栏图标的显示根据不同的主题来获取

Log: 完善对控制中心设置不同主题的接口
Influence: 在控制中心切换主题,观察图标是否发生变化
Bug: https://pms.uniontech.com/bug-view-172365.html
Change-Id: Ia02193c9ebcf10559195c6fb8fe6227f581e165b
2022-11-23 16:08:34 +08:00
donghualin
9b33a95fab fix: 修复高缩放率下无法点击快捷面板的问题
计算DockPopupWindow位置和大小的时候,需要考虑缩放率

Log:
Influence: 在1.25倍缩放率下,展开快捷面板,点击网络插件展开按钮,观察是否可以展开
Task: https://pms.uniontech.com/task-view-218215.html
Change-Id: I6c6c6dfe9a01ec65a80b93b5438b06fd3f97b050
2022-11-21 16:24:02 +08:00
donghualin
8e241834e0 style: 修改函数接口调用
将获取主屏幕的函数从qApp->primaryScreen()修改为内部封装好的接口

Log:
Influence: 无
Task: https://pms.uniontech.com/task-view-96831.html
Change-Id: I25f7c4dfd76bd32b37a24de68bd4778132a38b15
2022-11-17 08:56:52 +00:00
donghualin
ac9de7ef51 fix: 修复点击快捷面板之外的区域快捷面板不关闭的问题
将DockPopupWindow中的DRegionMonitor换成XEventMonitor,监控它的鼠标点击和释放鼠标的事件

Log:
Influence: 进入wayland,打开快捷面板,点击快捷面板之外的其他区域,观察快捷面板是否关闭
Bug: https://pms.uniontech.com/bug-view-171545.html
Bug: https://pms.uniontech.com/bug-view-171583.html
Change-Id: I5dda27170316132812c546d8c362d3dc4546e35a
2022-11-17 16:08:42 +08:00
donghualin
8a01a93424 Revert "fix: 修改任务栏加载老版本插件的方式"
This reverts commit 7658f813f69b96f8ba79b546208d0a7da3a27ff4.

Change-Id: I7678bf40141d86e956111c57a85dfda7c19197f7
2022-11-11 10:29:41 +08:00
donghualin
7658f813f6 fix: 修改任务栏加载老版本插件的方式
老版本插件的加载通过插件的版本号进行判断,若插件版本不在版本列表中,则无需加载

Log: 优化任务栏加载老版本插件的方式
Influence: 任务栏启动的时候,观察老版本的插件(例如U盘插件等其他v20插件)是否正常加载
Task: https://pms.uniontech.com/task-view-112073.html
Change-Id: I57b56276ee0cef14b59ff4b8bb8e223e0177f3bd
2022-11-08 02:27:20 +00:00
donghualin
cf376ebb3f style: 消除编译警告信息
将代码中的过期的不建议使用的函数或类替换成建议使用的函数或类

Log: 消除编译警告
Influence: 无
Task: https://pms.uniontech.com/task-view-96831.html
Change-Id: Ie42a3eed97013adb047105bcf75e07ff8e0277a0
2022-11-04 06:29:16 +00:00
donghualin
ae74a6133f fix: 实现高效模式下托盘和快捷插件拖动功能
高效模式下和时尚模式下托盘区域共用一个TrayModel,在拖动图标的时候,时尚模式和高效模式保持相同的状态

Log: 实现高效模式下图标的拖动功能
Influence: 高效模式,从托盘或快捷面板拖动图标到任务栏
Task: https://pms.uniontech.com/task-view-112073.html
Change-Id: I279b572231ea8efc9bd7f1ee0e628e9ee3eb064e
2022-11-02 06:58:03 +00:00
donghualin
ee248287d3 feat: 适配v20插件加载
增加适配器,适配v20插件为v23接口,保证能正常加载v20插件

Log: 增加对v20插件的正常适配
Influence: 加载v20插件
Task: https://pms.uniontech.com/task-view-112073.html
Change-Id: If0b3c83cc808f62c0b15554fe6d58f90dc376175
2022-11-01 16:08:21 +08:00
donghualin
cb96a7bab8 fix: 修复wayland下窗口预览为空的问题
将获取窗口预览图的接口修改为CaptureWindow接口来获取,在wayland和x11下接口统一

Log: 修复wayland下窗口预览图为空的问题
Influence: 进入wayland,鼠标放入任务栏已经打开的窗口图标上,观察预览图是否显示
Bug: https://pms.uniontech.com/bug-view-140919.html
Bug: https://pms.uniontech.com/bug-view-150475.html
Change-Id: Idc18a356c8df19a73130362e839a61ed26108d23
2022-10-12 02:21:41 +00:00