Commit Graph

74 Commits

Author SHA1 Message Date
wangyixue de4dc37e39 chore: update changelog
Release 5.6.17.
2023-09-08 16:40:52 +08:00
deepin-ci-robot 69e79f8e3a chore: update changelog
Release 5.6.16.
2023-08-22 15:17:45 +08:00
ck b211db014e chore: add DtkBuildHelper depends
dtkcommon-dev >= 5.6.16
2023-08-21 14:08:54 +08:00
wangyixue cd822bb2c8 chore: update changelog
Release 5.6.15.
2023-08-14 11:00:48 +08:00
deepin-ci-robot 5f457d2225 chore: update changelog
Release 5.6.14.
2023-07-27 16:17:11 +08:00
wangyixue 6588a86d71 chore: update changelog
Release 5.6.12.
2023-06-25 16:38:19 +08:00
ck dcede1f96d chore: Adapt Qt6 && Dtk6 compilation
Since xdgiconloader is not adapted to Qt6, libxdg is disabled by default when compiling Dtk6
Do not install dconfig file in dtkgui to avoid conficts with dtk6gui
C++ 17 by default
DVERSION ==> DTK_VERSION
cmake_minimum_required 3.13
tools install to CMAKE_INSTALL_LIBEXECDIR
2023-06-19 13:13:09 +08:00
ck dd10f593b7 chore: bump version to 5.6.11
update changelog
2023-05-08 15:07:16 +08:00
ck 5327c027c3 chore: update to 5.6.10
Log: update changelog
2023-04-17 17:27:00 +08:00
ck 99e450c1cd chore: update to 5.6.9
Log: update changelog
2023-04-03 10:28:08 +08:00
ck a3677d4bbf chore: install meta file
1. move `dconfig_meta_files` to src/CMakeLists.txt
2. add to debian install files
2023-04-03 10:07:03 +08:00
wangyixue 419e11629b chore: update changelog
Bump version to 5.6.8.
2023-02-22 15:44:58 +08:00
wangyixue cca33d94c8 chore: update changelog
Release 5.6.6.

Log: update changelog
2023-02-21 11:58:30 +08:00
zccrs 66ab7451f2 feat: Support animation for DDciIcon
See also https://github.com/linuxdeepin/deepin-specifications/pull/1,
This implementation complies with the specification by DSG on animation
dci's icons.

New class: DDciIconImage DDciIconImagePlayer DDciIconPlayer
2023-02-14 13:17:17 +08:00
ck 78cb5939ea chore: update changelog
update changelog
Log: update changelog
Influence: none

Change-Id: I67b88d621e4bda0dad68519f04e90e5e362ea6c9
2023-02-02 16:04:51 +08:00
renbin 5ca5df6ccf feat: Support RAW image formats.
1. Dynamically load libraw.so to support RAW image fomats.
2. Improve some implementations, Update unit cases and docs.
3. Move image-handler from folder example to tool.

Log: Support RAW image formats.
Influence: Add build dependency libraw-dev.
2023-02-02 02:33:30 +00:00
ck 6a8bbff79e chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Ib5b8e6af0bde8751ab75d179af18021ea8b3d144
2023-01-10 10:29:46 +08:00
wangyixue a69ed2efdc chore: add export target support
Export target Dtk::Gui. Users can simply use target_link_libraries.

Log: add export target support
2022-12-29 09:52:49 +08:00
ck edd51cbd8a chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I98f818c3f64b509dce012024da2a7f98400e2a2b
2022-12-12 17:49:34 +08:00
renbin 2600e5ea59 feat: Add the DImagehandler class.
Add the DImagehandler class, provide functions such as reading image,
rotating image, getting image metadata. DImagehandler dynamically load
libfreeimage to support extended image formats.

Log: Add the DImagehandler class.
Influence: Add build dependency libfreeimage-dev.
2022-12-12 06:16:33 +00:00
ck b1a1654f69 chore: update changelog
5.6.2.2

Log: none
Influence: none
2022-11-30 11:54:26 +08:00
chenhongtao 750478f24e feat(doc): add package libdtkgui-doc
build the package for doc

Log: build the pacakge of doc for dtkgui
2022-09-02 06:18:11 +00:00
ck d1188cf35b fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: Ic71784120cacd66f763a72f38937fc0d99fb0454
2022-08-18 13:13:56 +08:00
ShootingStarDragons 7f227daf8a feat(tocmake): tocmake
I change the source code from qmake to cmake. Move the files
which will be install to the /usr/include to $root/include, which will
help to mattern match and easylier to do install. and the change will
break the build of qmake

Log: from qmake to cmake

Influence: qmake is breaked
2022-08-17 16:59:12 +08:00
Wang Zichong c58b078b79 chore: build doxygen documentation
追加基于 doxygen 的文档构建

Log:
2022-08-09 07:58:58 +00:00
Cloud 20fd72d9d3 fix: build failed when the .git folder exist
build failed when the .git folder exist

Log: fix build failed when the .git folder exist
2022-07-25 08:58:53 +00:00
ck a479eaa5a8 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Iefda76009421210bfb0132576e973757407fafd4
2022-07-19 10:22:35 +08:00
ck 4976a77764 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I6ba374db79ab7e5448317008cf97f26c5ba23b29
2022-07-19 10:22:35 +08:00
ck 3cba7f1fce chore: update changelog version
update verion to 5.6.1

Log: none
Influence: none
Change-Id: I39e316f1e556d2fe67fc68bce5bcf2a303f25cbd
2022-07-19 10:22:35 +08:00
wang fei 0f52bb9546 chore: 更新changelog
develop/snipe 分支更新changelog 到 5.6.0.1

Log:
Influence: changelog
Change-Id: I4da222f8d3b65b85acb3d507acff51c219453aa1
2022-07-19 10:22:35 +08:00
ck 7eefcfe8ae fix(build): can't build with source format '3.0 (quilt)'
debian: switch packaging format from "quilt" to "native"

Log:
Influence: build
Change-Id: I2fdda4245fcc0e467b9d815c846d791791950b3f
2022-07-19 10:22:35 +08:00
Chen Bin e9c615b5dc feat: Add the webp plugin dependence
DCI icons need the support of webp plugin when parsing
some icons, otherwise the images will not be displayed
normally.

Log:
Influence: Dtkgui dependence
Change-Id: I9c4a780dc23fdf2e96c9e23e6580b4efd56f695b
2022-07-19 10:22:35 +08:00
zccrs 2b30030af2 feat: 根据DCI标准添加DDciIcon类
DDciIcon 类为 Dci 文件和 Dci 图标资源提供了一个
严格标准的图标实例。通过将标准的 DCI 图标文件或图标
数据解析成可添加到 Dtk 控件中的图标资源。通常的这类
标准的图标资源都包含{ 深浅主题、图标状态、以及不同类
型 }。该类将根据当前需要的状态,将对应的图标展现出来。

 DDciIcon 所需要的原始数据文件最少需要一个 Normal
状态下的图标资源,否则此 Icon 将被视为是空图标。对于
有不同状态的图标资源,DDciIcon 在绘制时会优选选择使
用其自带的内容,但对于目标状态和图标状态不同的图标资源,
其绘制会根据画笔的前景色进行统一处理。

针对图标种类,DDciIcon 存储一个当前图标的变量,如果在
绘制时未指定目标图标种类,则会获取默认的当前图标种类变量
进行绘制,默认的当前图标种类为 TextType,不同的图标种
类其绘制方式也不一样,种类包含{ TextType、ActionType、
IconType }。详细描述请查阅DTK相关文档。

Log:
Influence: 无
Change-Id: Ia85d64e0885674d8b8ff8c17587f3781ac54d6b2
(cherry picked from commit 62f7b1d290841372a6dbe6e03a034bec093febb6)
2022-07-19 10:22:35 +08:00
zccrs b40b8b42a8 feat: Add DIconTheme class
DIconTheme 提供从图标主题中查找 QIcon 的功能,与 QIcon::fromTheme
不同的是,DIconTheme 默认不会通过 Qt platform theme 进行图标加载,
而是直接创建内置图标引擎,或者是 XdgIconLoaderEngine,这样可以保证
在任何桌面环境下使用此接口的程序都能正确的查找到图标,这对 DTK 程序
而言非常重要,因为它们一般都还会依赖 DBuiltinIconEngine 提供的功能。

Log:
Influence: 无
Change-Id: I34ff035ffc7b3cfece780fe2676553638904a00d
2022-07-19 10:22:35 +08:00
Wang Penga 8350799750 feat: 添加获取特效开关的接口
专有设备性能优化,需要获取环境变量判断当前是否开启了特效。

Log:
Change-Id: I674091c0580edeb5600cdc27ac0c40d3c76908b8
2021-10-15 15:33:16 +08:00
wangpenga b1c55d7fa4 chore: update abi json file
按照新的规则要求更新abi文件。

Log:
Change-Id: Ia7c771466a66b445aa7bf5b64f75a57e2973902d
2021-06-22 17:03:36 +08:00
Chen Bin 2161407cbc feat: 添加gtest单元测试
1.增加部分文件的单元测试文件
2.提高单元测试覆盖率到70以上

Log: 新增dtkgui单元测试
Change-Id: Icd8e3702ece36f6af565e2b9453015218da35953
2021-03-24 15:39:22 +08:00
ck 307f0e94ff fix: 完善dtkgui依赖dtkcommon
libdtdtkgui5依赖libdtkcommon, 因为filedrag的dbus配置文件移动到dtkcommon中

Log: 新增dtkcommon依赖
Change-Id: Ib5bc516a932b3883b624cb1bc02243b7959aeb9c
2021-03-03 10:11:59 +08:00
sunkang 63f1ce54b4 fix: 适配dtkgui多版本共存的处理
1. 删除src/dbus/com.deepin.dtk.FileDrag.conf 文件,此文件转移到libdtkcommon中

Log:
Change-Id: I9346141589524a209f31e8b195dfe0721778d23e
(cherry picked from commit 2a11ae19920829a411e4faabec8cbc56e50b654b)
2021-03-01 19:08:19 +08:00
ck 7925668a88 fix: 添加dtkcommon的依赖
gui添加dtkcommon依赖

Log: 修复gerrit打包失败,添加dtkcommon依赖
Change-Id: I4f866862f67697995446f54d6a269bdf07b3d22e
2021-02-25 13:27:14 +08:00
chengyulong 58e254702f feat: 增加单元测试覆盖率
对项目目录结构进行优化,增加lcov计算单元测试覆盖率。

Log: 增加lcov计算单元测试覆盖率
Change-Id: I4454aee03a1dffb8e9bc443b967aa84e7dc57a60
2021-02-04 18:11:59 +08:00
justforlxz 278f960381
feat(DGuiApplicationHelper): add setAttribute function
Support the use of setAttribute function for some settings

Log:
Change-Id: I794e300d7bff1d4ce58527e39555f7addaf247df
2021-02-04 10:30:43 +08:00
zccrs d2ff5d299c fix: 取消废弃paletteType
补充paletteType属性的定义,将其与themeType的含义分开,跟
最初设计的一样,paletteType仅和setPaletteType设置过的值
有关,在上次重构代码的基础上只废弃setThemeType接口。
上次重构的提交:2d18a7955d9540e2b8cd735cb3ef962f495cbb3f

Log:
Change-Id: I0df74f1f1654870e49a715dea496f5013dea67a7
2021-01-25 15:14:52 +08:00
chengyulong 13a42f4a9a feat: 添加GTest测试单元
添加DRegionMonitor、DForeignWindow测试case

Log: 添加GTest测试
Change-Id: I46a680bb1baaec3616c238c0fac7797bdd1daecc
2021-01-18 14:48:44 +08:00
zccrs 43075064f8 refactor: 使DGuiApplication跟随QGuiApplication对象销毁
DGuiApplication中有大量的内容与QGuiApplication绑定, 因此
需要在QGuiApplication销毁时清理当前的实例, 以便当一个新的
QGuiApplication被创建时可以正常使用DGuiApplication. 主要
是为了支持在程序运行期间销毁并重新创建QGuiApplication对象
的场景, 如在deepin-turbo的booster中会预先创建一个
QGuiApplication对象(主要是预加载数据), 之后可能会删除这个
对象, 当booster开始加载一个程序时, 在程序的代码中会再次创建
QGuiApplication对象.

另外修复在非dxcb插件环境下使用DGuiApplicationHelper::applicationTheme
时可能会陷入死循环.

Log:
Change-Id: I169235cae8fd802805de6757f4e2668e65f7dfc9
2021-01-14 17:22:21 +08:00
zccrs 357df725cb refactor: 重构DFontManager类
不再提instance方法获取单例对象, 程序级别的DFontManager
转移到DGuiApplicationHelper中提供.
重构DFontManager类, 删除一些无用信号, 提供直接指定baseFont
的属性.

Log:
Change-Id: I7591acbb0b1223ae1ad4b0b8d7e0c4bbeb3b4035
2021-01-11 17:17:02 +08:00
zccrs 2d18a7955d refactor: 整理DTK程序调色板相关的代码逻辑
简化程序自定义调色板与DPlatformTheme的关系, 当使用
setApplicationPalette或setThemeType自定义调色板之后,
将不再考虑DPlatformTheme中设置的themeName等属性.

废弃了paletteType属性, 避免在使用上跟themeType
产生误解.

废弃了窗口级别的DPlatformTheme相关接口, 只允许使用
sytemTheme获取系统级别的平台主题信息, 另外将applicationTheme
等价于systemTheme, 程序和窗口级别主题设置不再允许通过
DPlatformTheme从外部获取, 在实际需求中, 在程序内部
按需实现自定义即可.

Log:
Change-Id: Ideea8673bb3bdec44a8978c9f4556a971c4723b5
2021-01-04 13:26:45 +08:00
zccrs a4faf581f3 feat: add Q_GADGET for DPalette
允许在Qt元对象系统中使用DPalette, 同QPalette可用于qml中.

Log:
Change-Id: I10ca98b98800336d0584420ceb461ac197f84b97
2021-01-04 13:15:09 +08:00
sunkang 550a8c58ea fix: 修复example生成的临时desktop文件没有删除导致的启动器显示问题
修复example生成的临时desktop文件没有删除导致的启动器显示问题

Log:

Change-Id: Iae77bed7fa3ab15ddfb76a95318e11e527d0ea7e
2020-12-30 13:51:48 +08:00
sunkang 8389d05326 feat: 新增一个函数用于判断当前桌面环境是否是平板电脑
添加一个函数用于判断当前桌面是否是平板电脑的环境

Log:

Change-Id: Icb8d76f12d5f0df3146a33a9dbd91b384049af46
2020-12-29 17:51:30 +08:00