Commit Graph

21 Commits

Author SHA1 Message Date
Wang Zichong c9a2ad0b37 feat: DPinyin::firstLetters support set ToneStyle
允许为 firstLetters() 设置声调选项,便于获取完全不带声调的拼音首字母

Log:
2025-09-18 15:35:03 +08:00
ck 918c40f616 fix(dlog): JournalAppender not work
BUILD_WITH_SYSTEMD not defined
2024-10-18 14:14:35 +08:00
ck 844a68df95 fix(build): skip failed unit test
- gsettings schema remvove from dtkcommon, Skip
- if DSYSINFO_PREFIX empty, Skip
- add_definitions ==> target_compile_definitions
- setting cache variable move to dtkcore.cmake
2023-09-19 16:56:18 +08:00
ck b9cf2a22be chore: tweak CMakeLists
- use DtkBuildHelper functions
- tests/CMakeLists.txt tweak
2023-08-16 09:28:02 +08:00
ck 4c50be9afb chore: ut linked dtkcore instead of source code
- use linked dtkcore target instead of source code
- test-revoverage.sh tweak
- setup_code_coverage && check_and_add_definitions functions(will move to dtkcommon)
2023-08-15 15:17:32 +08:00
ck 0ef910387a chore: add some unit test
- DDBusInterface DNotifySender DDBusExtendedAbstractInterface
- DExpected && DError
- DSysInfo/DLicenseInfo/DSingleton ut split from ut_dutil.cpp
- DSGApplication DStandardPaths DCapManager
- DThreadUtils warnings
- DLogManager
2023-07-21 10:45:08 +08:00
ck d0b7680edb chore: make test-recoverage.sh runable again
- set -e : exit if command has a non-zero exit status
- fix test target name ut-DtkCore
2023-07-11 13:30:15 +08:00
ck 868218a1db refactor!: deprecate some interfaces in dtk6
- dconfig_meta_files/dconfig_override_files remove in dtk6
- not install deprecated class headers
- remove deprecated interfaces in dtk6
2023-07-05 10:19:56 +08:00
heyuming 2df5ca70dd feat: add DThreadUtils class
Log: 添加DThreadUtils类
2023-06-16 14:15:25 +08:00
ck f5fd6cf9a8 feat: support dtk6core build
cmake -DDVERSION=6.0.0 to build libdtk6core
install qdbusxml2cpp-fix to DCore/bin to avoid conficts
do not build doc when build dtk6
remove Core5Compat depends
DVERSION ==> DTK_VERSION
tools install to CMAKE_INSTALL_LIBEXECDIR
2023-06-16 08:32:50 +08:00
chenhongtao db8fd1bf7b fix(dccinterface): fix cannot get the right type
Log: fix cannot get the right type
2023-05-31 07:46:03 +00:00
wangyixue d8c7f501a0 fix(cmake): wrong use of option and wrong macro
* BUILD_VERSION should be a string, not a boolean option;
 * Should use CMAKE_INSTALL_PREFIX as DSG_PREFIX_PATH in test,
   CMAKE_PREFIX_PATH might be a list. And there's difference between
   two variables;
 * Trim some trailing spaces.

Log: fix wrong use of option and wrong macro
2023-05-22 16:44:37 +08:00
heyuming 2b73ff6f92 fix: fix bug of unit test under clang
Log: 修复单元测试在clang下的错误
2023-02-28 09:30:17 +08:00
heyuming d1605f7da2 feat: support Qt6
Log: 支持Qt6
2023-02-14 13:22:03 +08:00
Ye ShanShan 33de26ff1c fix: Losing dconfig info when compiling and packaging
Add adjust for linux when compile.
  Add `D_DSG_APP_DATA_FALLBACK` macro when packaging.
  see the commit: 7b13e5c4b8

Log: none
Influence: none
Change-Id: Ie047dbd2d8158ed5242dfb5bcc7fa4e02ee1d925
2023-02-03 08:52:09 +00:00
ck 4cfda53c9c feat: add chinese2pinyin polyphonic support
1. update dpinyin.dict with polyphonic support
2. add pinyin and firstLetters function
3. add ch2py tools to convert Chinese to Pinyin

dict data reference https://github.com/mozillazg/pinyin-data (zdict.txt MIT)
Bug: https://pms.uniontech.com/bug-view-143063.html,https://pms.uniontech.com/bug-view-182013.html

Log: Chinese2Pinyin polyphonic support
Influence: Chinese to Pinyin
Change-Id: I5fd05c071f68908949e2b1abbbd11feed302abd4
2023-01-18 17:36:05 +08:00
heyuming c65d974733 test: fix DVtableHook and DConfig's unit testing
Log: 修复DVtableHook和DConfig的单元测试
2023-01-17 09:46:12 +08:00
chenhongtao 068a6d9688 fix(shell): wrong target
A mistake, since the target name changed, the target name in shell
should also change

Log: fix recoveryshell
2022-09-06 06:16:31 +00:00
chenhongtao 552c42794e chore(package): unit test, coverage
use better optionname and use test , make test link to -lgcov , then
coverage can be caculated. And use ctest , the cmake command to run
tests

fix test-recoverage bash scipts

Log: option name changed , use ctest command, fix test-recoverage script
2022-08-30 08:14:36 +00:00
Chen Bin 9cdc9e7741 feat: add the permission management for files
Use DCapManager class to unify privilege management on
whether to open files or not.

By registering a special file engine, the scope of action
after registration is global unless called the unregister
function manually.

By default, the application can still access some directories
and files with permissions after it is started, but when it
access files beyond the scope of these directories, it will
not get any information.

The default directory includes: Home path; Cache path; DSG path
XDG path etc.

Log:
Influence: null
Change-Id: I0fed6051addc56001b382fc34f73b046c0e4aca2
2022-08-26 11:45:17 +08:00
ShootingStarDragons db5ae947fe feat(tocmake): tocmake
Change the build system to cmake

Log: use cmake
2022-08-16 07:50:54 +00:00