Compare commits

..

516 Commits

Author SHA1 Message Date
github-actions[bot] 05a48ef125 chore: New release 5.7.25
Log:
2025-10-30 14:01:08 +00:00
yeshanshan 81442f521c feat: add support for custom line edit icon margin
Added PM_LineEditIconMargin pixel metric handling to support custom
icon margins in line edit widgets. The implementation checks for a
"_d_dtk_lineeditIconMargin" property on the widget and returns the
custom margin value if valid. This allows applications to specify
precise icon spacing in line edit fields for better UI customization and
visual consistency.

Influence:
1. Test line edit widgets with custom icon margin property set
2. Verify default behavior when no custom margin is specified
3. Test with various valid margin values (positive integers)
4. Verify behavior with invalid margin values (negative numbers, invalid
types)
5. Check UI layout consistency with custom icon margins applied

feat: 添加支持自定义行编辑图标边距

添加了 PM_LineEditIconMargin 像素度量处理,以支持在行编辑部件中自定义图
标边距。该实现检查部件上的 "_d_dtk_lineeditIconMargin" 属性,如果有效则
返回自定义边距值。这允许应用程序为行编辑字段指定精确的图标间距,以实现更
好的 UI 定制和视觉一致性。

Influence:
1. 测试设置了自定义图标边距属性的行编辑部件
2. 验证未指定自定义边距时的默认行为
3. 使用各种有效边距值(正整数)进行测试
4. 验证无效边距值(负数、无效类型)时的行为
5. 检查应用自定义图标边距后的 UI 布局一致性

PMS: BUG-334965
2025-10-28 19:09:04 +08:00
yeshanshan 67dc851fd0 fix: improve dialog sizing and remove unused event filter
1. Enhanced dialog width calculation to respect maximum width constraint
2. Added dynamic height calculation based on layout's total height for
the given width
3. Removed unused event filter for title and message labels that handled
font changes
4. The event filter was unnecessary as Qt's layout system already
handles text wrapping properly

Influence:
1. Test dialog resizing with various content lengths
2. Verify dialog respects maximum width settings
3. Check that text wrapping works correctly in title and message labels
4. Test dialog appearance with different font sizes
5. Ensure dialog maintains minimum size requirements

fix: 改进对话框尺寸计算并移除未使用的事件过滤器

1. 增强对话框宽度计算以遵循最大宽度约束
2. 添加基于布局总高度的动态高度计算
3. 移除用于标题和消息标签字体变化的未使用事件过滤器
4. 该事件过滤器不再必要,因为Qt的布局系统已能正确处理文本换行

Influence:
1. 测试不同内容长度时的对话框调整大小
2. 验证对话框遵循最大宽度设置
3. 检查标题和消息标签中的文本换行是否正确工作
4. 测试不同字体大小下的对话框外观
5. 确保对话框保持最小尺寸要求

PMS: BUG-331061
2025-10-28 08:26:01 +00:00
yeshanshan 04913bf8b4 fix: adjust feature item widget height calculation
Changed setFixedHeight to setMinimumHeight for feature item widgets to
handle varying text content more flexibly. Previously used fixed height
could cause layout issues when description text required more vertical
space than the hardcoded values allowed.

This change ensures that feature items can expand vertically when needed
to accommodate longer descriptions while maintaining the minimum height
requirements for standard content.

Influence:
1. Test feature display dialog with short descriptions (should maintain
original height)
2. Test with longer descriptions that require more vertical space
(should expand properly)
3. Verify layout consistency across different description lengths
4. Check that the minimum height constraints are still respected

fix: 调整特性项目控件高度计算

将特性项目控件的高度设置从固定高度改为最小高度,以更灵活地处理不同长度
的文本内容。之前使用的固定高度在描述文本需要更多垂直空间时可能导致布局
问题。

此更改确保特性项目在需要显示较长描述时可以垂直扩展,同时为标准内容保持最
小高度要求。

Influence:
1. 测试特性显示对话框在短描述时的显示(应保持原有高度)
2. 测试需要更多垂直空间的长描述(应能正确扩展)
3. 验证不同描述长度下的布局一致性
4. 检查最小高度约束是否仍然有效

PMS: BUG-311285
2025-10-23 09:12:25 +00:00
yeshanshan 431d8244b9 fix: handle font change events in dialog
Fix dialog size not updating when system font changes
Add font change event handling to recalculate dialog size
Ensure proper layout when font size or family changes

Influence:
1. Test dialog appearance when system font settings change
2. Verify dialog size adapts correctly to different font sizes
3. Check layout integrity after font changes
4. Test with various font families and sizes

fix: 处理对话框中的字体变更事件

修复系统字体变更时对话框大小不更新的问题
添加字体变更事件处理以重新计算对话框大小
确保字体大小或字体家族变更时的正确布局

Influence:
1. 测试系统字体设置变更时对话框的显示效果
2. 验证对话框大小是否正确适应不同的字体大小
3. 检查字体变更后的布局完整性
4. 测试不同字体家族和大小的显示效果

PMS: BUG-331061
2025-10-23 17:09:31 +08:00
yeshanshan 731810a0b2 fix: correct button order in settings dialog
Fixed incorrect button order in the settings dialog by changing
insertButton index from 1 to 0 for cancel button. This ensures the
cancel button is placed at the correct position in the button layout,
preventing potential UI issues and improving user interface consistency.

Influence:
1. Verify settings dialog button layout is correct
2. Test cancel button functionality in settings dialog
3. Check button accessibility names are properly set
4. Confirm dialog interaction flows work as expected

fix: 修复设置对话框中按钮顺序问题

修复了设置对话框中按钮顺序错误的问题,将取消按钮的insertButton索引从1改
为0。这确保了取消按钮在按钮布局中处于正确位置,防止了潜在的UI问题并提高
了用户界面的一致性。

Influence:
1. 验证设置对话框按钮布局是否正确
2. 测试设置对话框中取消按钮的功能
3. 检查按钮的可访问性名称是否正确设置
4. 确认对话框交互流程正常工作

PMS: BUG-338153
2025-10-23 08:41:46 +00:00
yeshanshan ce163f1bd0 feat: improve navigation widget styling
1. Removed manual palette setting for item background transparency
2. Added item spacing configuration with zero spacing
3. Set background type with rounded background and no normal state
4. These changes simplify the styling approach and use DStyle's built-
in capabilities

Log: Improved navigation widget visual appearance with better spacing
and background styling

Influence:
1. Verify navigation items display correctly with proper spacing
2. Check background rendering in different states (hover, selected)
3. Test navigation selection behavior remains consistent
4. Verify visual consistency with other UI components
5. Test navigation widget in different themes

feat: 改进导航部件样式

1. 移除了手动设置项目背景透明度的调色板配置
2. 添加了零间距的项目间距配置
3. 设置了圆角背景且无正常状态的背景类型
4. 这些更改简化了样式方法,使用 DStyle 的内置功能

Log: 改进了导航部件的视觉外观,具有更好的间距和背景样式

Influence:
1. 验证导航项目是否正确显示,间距合适
2. 检查不同状态(悬停、选中)下的背景渲染
3. 测试导航选择行为是否保持一致
4. 验证与其他UI组件的视觉一致性
5. 测试不同主题下的导航部件显示

PMS: BUG-310829
2025-10-20 02:49:36 +00:00
github-actions[bot] 65ff769712 chore: New release 5.7.24
Log:
2025-10-16 12:12:37 +00:00
transifex-integration[bot] 7676ee45c3 i18n: Translate dtkwidget.ts in sq
100% translated source file: 'dtkwidget.ts'
on 'sq'.
2025-10-16 11:38:17 +00:00
Robertkill 13e07788c3 fix: clear DCi icon state when setting other icon types
Fixed an issue where DCi icon state was not properly cleared
when setting other icon types (QIcon, QStyle::StandardPixmap,
DStyle::StandardPixmap). This could cause incorrect icon rendering when
switching between different icon types.

The changes ensure that when setting a non-DCi icon, the DCi icon state
is properly reset to avoid conflicts between different icon systems.
When setting a DCi icon, the QAbstractButton icon is cleared to prevent
interference.

Log: Fixed icon display issues when switching between different icon
types

Influence:
1. Test switching between QIcon, standard pixmap icons, and DCi icons
2. Verify icons display correctly after type changes
3. Test button appearance in different states (normal, hover, pressed)
4. Check icon rendering consistency across different button types

fix: 设置其他图标类型时正确清除 DCi 图标状态

修复了在设置其他图标类型(QIcon、QStyle::StandardPixmap、
DStyle::StandardPixmap)时未正确清除 DCi 图标状态的问题。这可能导致在不
同图标类型之间切换时出现错误的图标渲染。

这些更改确保在设置非 DCi 图标时,DCi 图标状态被正确重置,以避免不同图
标系统之间的冲突。当设置 DCi 图标时,QAbstractButton 图标被清除以防止
干扰。

Log: 修复在不同图标类型之间切换时的图标显示问题

Influence:
1. 测试在 QIcon、标准像素图标和 DCi 图标之间的切换
2. 验证类型更改后图标正确显示
3. 测试按钮在不同状态(正常、悬停、按下)下的外观
4. 检查不同按钮类型之间的图标渲染一致性

PMS: BUG-337027
2025-10-16 16:02:46 +08:00
ComixHe 93b3065760 feat: support Qt 6.10
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-10-13 14:28:15 +08:00
github-actions[bot] e627358800 chore: New release 5.7.23
Log:
2025-09-25 17:43:26 +08:00
yeshanshan f3907549c0 feat: enhance window effect support detection
Added supportWindowEffect() function to check for both compositing and
blur window capabilities
Updated color picker button enable state to require both composite and
blur window support
Added connection to handle hasBlurWindowChanged signal for dynamic
enable state updates

This change ensures the color picker button is only enabled when both
compositing and blur window effects are supported by the window manager,
providing better user experience by preventing the button from being
enabled in environments where the picker functionality wouldn't work
properly due to missing window effects.

Log: Color picker button now requires both compositing and blur window
support to be enabled

Influence:
1. Test color picker button enable/disable state when changing window
manager compositing settings
2. Verify button state when blur window support is enabled/disabled
3. Test in environments with different window manager capabilities
4. Verify picker functionality works correctly when button is enabled

feat: 增强窗口效果支持检测

新增 supportWindowEffect() 函数检查合成和模糊窗口支持能力
更新颜色选择器按钮启用状态,要求同时具备合成和模糊窗口支持
添加处理 hasBlurWindowChanged 信号的连接,实现动态启用状态更新

此更改确保颜色选择器按钮仅在窗口管理器同时支持合成和模糊窗口效果时启用,
提供更好的用户体验,防止在缺少窗口效果的环境中启用按钮而导致功能无法正常
工作。

Log: 颜色选择器按钮现在需要同时支持合成和模糊窗口效果才能启用

Influence:
1. 测试更改窗口管理器合成设置时颜色选择器按钮的启用/禁用状态
2. 验证模糊窗口支持启用/禁用时的按钮状态
3. 在不同窗口管理器能力的环境中进行测试
4. 验证按钮启用时选择器功能正常工作

PMS: BUG-329555
2025-09-16 19:45:26 +08:00
yeshanshan d08e74d508 fix: fix search icon color inconsistency in DSearchEdit
The search icon button in DSearchEdit had inconsistent foreground
colors because the action button was drawn by Qt without using the
control's palette foreground color. This change replaces QAction with
QWidgetAction to ensure the search icon inherits the correct palette
colors from the parent widget.

Changed QAction to QWidgetAction and created a DIconButton widget as the
default widget for the action. This allows the search icon to properly
inherit the palette foreground color from DSearchEdit instead of using
Qt's default styling. Also updated all visibility control calls to use
defaultWidget()->setVisible() instead of action->setVisible().

Log: Fixed search icon color inconsistency in search edit controls

Influence:
1. Test search edit control in different themes to verify icon color
consistency
2. Verify search icon visibility transitions during focus changes
3. Test search functionality remains unchanged
4. Check accessibility name is preserved for the icon button
5. Verify placeholder text behavior during mode transitions

fix: 修复DSearchEdit中搜索图标颜色不一致问题

DSearchEdit中的搜索图标按钮存在前景色不一致的问题,因为操作按钮由Qt绘
制,没有使用控件的调色板前景色。本次修改将QAction替换为QWidgetAction,确
保搜索图标正确继承父部件的调色板颜色。

将QAction改为QWidgetAction,并创建DIconButton小部件作为操作的
默认小部件。这使得搜索图标能够正确从DSearchEdit继承调色板前景
色,而不是使用Qt的默认样式。同时更新了所有可见性控制调用,使用
defaultWidget()->setVisible()代替action->setVisible()。

Log: 修复搜索编辑控件中搜索图标颜色不一致问题

Influence:
1. 在不同主题下测试搜索编辑控件,验证图标颜色一致性
2. 验证焦点变化时搜索图标可见性转换
3. 测试搜索功能保持不变
4. 检查图标按钮的无障碍名称是否保留
5. 验证模式转换时的占位符文本行为

PMS: BUG-315583
2025-09-11 09:41:42 +08:00
github-actions[bot] 6caffc027f chore: New release 5.7.22
Log:
2025-09-04 20:06:20 +08:00
yeshanshan 5ca6b4261c fix: prevent potential tab index out of bounds crash
Added safety checks to prevent accessing invalid tab indices
1. Added Q_ASSERT(tab) in layoutTab to ensure tab pointer is valid
2. Added d->validIndex(selected) check in paintEvent before accessing
selected tab
3. Prevents crashes when tab index might be out of bounds during layout
or painting operations

fix: 修复标签索引越界可能导致的崩溃问题

添加安全检查防止访问无效的标签索引
1. 在layoutTab中添加Q_ASSERT(tab)确保标签指针有效
2. 在paintEvent中添加d->validIndex(selected)检查,确保在访问选中标签前索
引有效
3. 防止在布局或绘制操作中因标签索引越界而导致崩溃

PMS: BUG-331085
2025-09-02 11:35:08 +08:00
transifex-integration[bot] 26f2baf371
i18n: [dtkwidget] Updates for project Deepin Tool Kit (#681)
* i18n: Translate dtkwidget.ts in ja

70% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ja'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

---------

Log:
2025-08-21 16:39:10 +08:00
github-actions[bot] 816584d751 chore: New release 5.7.21
Log:
2025-08-14 20:28:24 +08:00
yeshanshan bd6a9cdb28 fix: resolve various compilation warnings
1. Fixed unused parameter warnings by removing parameter names in lambda
captures
2. Added Qt version check for deprecated AA_UseHighDpiPixmaps attribute
3. Fixed documentation comment syntax in DFontComboBox
4. Added nullptr check for QGuiApplication::inputMethod()
5. Added parent parameter in DPrintPreviewWidget constructor
6. Fixed pixel metric switch case with static cast
7. Updated meta type registration for Qt6 compatibility
8. Removed unused variable casts in test cases
9. Added Qt version check for QContextMenuEvent constructor

Influence:
1. Verify UI elements still render correctly after DPI attribute changes
2. Test input method behavior on tablet devices
3. Check print preview functionality
4. Validate combo box and text edit test cases still pass
5. Confirm no new warnings appear during compilation

fix: 修复各种编译警告

1. 在lambda捕获中移除未使用的参数名以消除警告
2. 添加Qt版本检查处理废弃的AA_UseHighDpiPixmaps属性
3. 修复DFontComboBox中的文档注释语法
4. 为QGuiApplication::inputMethod()添加nullptr检查
5. 在DPrintPreviewWidget构造函数中添加父控件参数
6. 使用静态转换修复像素度量switch case
7. 更新元类型注册以兼容Qt6
8. 移除测试用例中未使用的变量转换
9. 为QContextMenuEvent构造函数添加Qt版本检查

Influence:
1. 验证DPI属性变更后UI元素仍能正确渲染
2. 测试平板设备上的输入法行为
3. 检查打印预览功能
4. 确保组合框和文本编辑测试用例仍能通过
5. 确认编译时不再出现新的警告
2025-08-14 11:39:42 +00:00
transifex-integration[bot] 88a59ef567
i18n: [dtkwidget] Updates for project Deepin Tool Kit (#677)
* i18n: Translate dtkwidget.ts in ms

100% translated source file: 'dtkwidget.ts'
on 'ms'.

* i18n: Translate dtkwidget.ts in nl

100% translated source file: 'dtkwidget.ts'
on 'nl'.

* i18n: Translate dtkwidget.ts in fi

100% translated source file: 'dtkwidget.ts'
on 'fi'.

* i18n: Translate dtkwidget.ts in hu

100% translated source file: 'dtkwidget.ts'
on 'hu'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in it

100% translated source file: 'dtkwidget.ts'
on 'it'.

* i18n: Translate dtkwidget.ts in ca

100% translated source file: 'dtkwidget.ts'
on 'ca'.

* i18n: Translate dtkwidget.ts in zh_HK

100% translated source file: 'dtkwidget.ts'
on 'zh_HK'.

* i18n: Translate dtkwidget.ts in ja

69% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ja'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in pl

100% translated source file: 'dtkwidget.ts'
on 'pl'.

* i18n: Translate dtkwidget.ts in hi_IN

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'hi_IN'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sq

100% translated source file: 'dtkwidget.ts'
on 'sq'.

* i18n: Translate dtkwidget.ts in nb

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'nb'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ne

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ne'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in de

100% translated source file: 'dtkwidget.ts'
on 'de'.

* i18n: Translate dtkwidget.ts in ug

100% translated source file: 'dtkwidget.ts'
on 'ug'.

* i18n: Translate dtkwidget.ts in pt

95% of minimum 10% translated source file: 'dtkwidget.ts'
on 'pt'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in hr

65% of minimum 10% translated source file: 'dtkwidget.ts'
on 'hr'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in uk

100% translated source file: 'dtkwidget.ts'
on 'uk'.

* i18n: Translate dtkwidget.ts in bg

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'bg'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in cs

100% translated source file: 'dtkwidget.ts'
on 'cs'.

* i18n: Translate dtkwidget.ts in am_ET

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'am_ET'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in bn

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'bn'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in br

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'br'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in es

100% translated source file: 'dtkwidget.ts'
on 'es'.

* i18n: Translate dtkwidget.ts in ko

37% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ko'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in bo

100% translated source file: 'dtkwidget.ts'
on 'bo'.

* i18n: Translate dtkwidget.ts in az

100% translated source file: 'dtkwidget.ts'
on 'az'.

* i18n: Translate dtkwidget.ts in ast

23% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ast'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in fa

25% of minimum 10% translated source file: 'dtkwidget.ts'
on 'fa'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sr

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'sr'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ru

100% translated source file: 'dtkwidget.ts'
on 'ru'.

* i18n: Translate dtkwidget.ts in fr

100% translated source file: 'dtkwidget.ts'
on 'fr'.

* i18n: Translate dtkwidget.ts in sk

22% of minimum 10% translated source file: 'dtkwidget.ts'
on 'sk'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ro

88% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ro'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in gl_ES

100% translated source file: 'dtkwidget.ts'
on 'gl_ES'.

* i18n: Translate dtkwidget.ts in eu

36% of minimum 10% translated source file: 'dtkwidget.ts'
on 'eu'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in ar

89% of minimum 10% translated source file: 'dtkwidget.ts'
on 'ar'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in sl

100% translated source file: 'dtkwidget.ts'
on 'sl'.

* i18n: Translate dtkwidget.ts in tr

100% translated source file: 'dtkwidget.ts'
on 'tr'.

* i18n: Translate dtkwidget.ts in zh_CN

100% translated source file: 'dtkwidget.ts'
on 'zh_CN'.

* i18n: Translate dtkwidget.ts in zh_TW

100% translated source file: 'dtkwidget.ts'
on 'zh_TW'.

* i18n: Translate dtkwidget.ts in lt

31% of minimum 10% translated source file: 'dtkwidget.ts'
on 'lt'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in id

24% of minimum 10% translated source file: 'dtkwidget.ts'
on 'id'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in da

33% of minimum 10% translated source file: 'dtkwidget.ts'
on 'da'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in es

100% translated source file: 'dtkwidget.ts'
on 'es'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in pt_BR

100% translated source file: 'dtkwidget.ts'
on 'pt_BR'.

* i18n: Translate dtkwidget.ts in zh_HK

100% translated source file: 'dtkwidget.ts'
on 'zh_HK'.

* i18n: Translate dtkwidget.ts in zh_TW

100% translated source file: 'dtkwidget.ts'
on 'zh_TW'.

* i18n: Translate dtkwidget.ts in zh_CN

100% translated source file: 'dtkwidget.ts'
on 'zh_CN'.

* i18n: Translate dtkwidget.ts in lo

15% of minimum 10% translated source file: 'dtkwidget.ts'
on 'lo'.

Sync of partially translated files: 
untranslated content is included with an empty translation 
or source language content depending on file format

* i18n: Translate dtkwidget.ts in lo

100% translated source file: 'dtkwidget.ts'
on 'lo'.

---------

Log:
2025-08-14 14:23:35 +08:00
yeshanshan 725e0a0c83 fix: update transifex configuration
1. Removed minimum_perc and mode settings from main section
2. Updated resource identifier from 'dwidget' to hash-based identifier
3. Cleaned up whitespace in the configuration file

The changes were made to align with Transifex's updated configuration
requirements and to standardize resource identifiers across the project.
The hash-based identifier provides better uniqueness and consistency.

Influence:
1. Verify translations are still being properly synced with Transifex
2. Check that translation files are being generated correctly
3. Ensure no regression in translation functionality

fix: 更新Transifex配置

1. 从main部分移除了minimum_perc和mode设置
2. 将资源标识符从'dwidget'更新为基于哈希的标识符
3. 清理了配置文件中的空白字符

这些更改是为了符合Transifex更新的配置要求,并使项目中的资源标识符标准
化。基于哈希的标识符提供了更好的唯一性和一致性。

Influence:
1. 验证翻译仍能正确与Transifex同步
2. 检查翻译文件是否正确生成
3. 确保翻译功能没有回归
2025-08-14 13:28:31 +08:00
yeshanshan 72b17970f1 feat: update translation configurations and translations
1. Added .tx/transifex.yaml configuration file for translation
management
2. Updated license and copyright information in translation files
3. Improved Arabic translations with corrected terms and completed
missing translations
4. Updated Chinese translations for "Acknowledgements" term
5. Added various language translations (Japanese, German, French,
Italian, etc)
6. Removed SPDX headers from translation files to avoid duplication

Log: Updated translation configurations and improved translations

Influence:
1. Verify all translations display correctly in UI
2. Check translation management works with Transifex
3. Test language switching functionality
4. Validate license/copyright information in about dialogs

feat: 更新翻译配置和翻译内容

1. 新增.tx/transifex.yaml翻译管理配置文件
2. 更新翻译文件中的许可证和版权信息
3. 改进阿拉伯语翻译,修正术语并补全缺失翻译
4. 更新中文"鸣谢"翻译为"致谢"
5. 新增多种语言翻译(日语、德语、法语、意大利语等)
6. 移除翻译文件中的SPDX头以避免重复

Log: 更新翻译配置并改进翻译内容

Influence:
1. 验证所有翻译在界面中正确显示
2. 检查与Transifex的翻译管理功能
3. 测试语言切换功能
4. 验证关于对话框中的许可证/版权信息
2025-08-13 14:27:58 +08:00
yeshanshan 0214421522 fix: prevent background type from overriding custom item spacing
1. Changed DStyledItemDelegate to initialize itemSpacing with -1 as
default value
2. Added spacing() method to handle negative spacing values
3. Modified setBackgroundType to only set spacing when no custom spacing
was set (spacing < 0)
4. Updated all spacing references to use the new spacing() method

Log: Fixed issue where setting background type would override custom
item spacing values

Influence:
1. Test setting custom item spacing values before/after changing
background types
2. Verify spacing behavior with different background types
(RoundedBackground, ClipCornerBackground)
3. Check layout calculations with custom spacing values
4. Test list view rendering in both LeftToRight and TopToBottom flows

fix: 修复设置背景类型会覆盖自定义间距值的问题

1. 修改 DStyledItemDelegate 默认将 itemSpacing 初始化为 -1
2. 新增 spacing() 方法处理负间距值
3. 修改 setBackgroundType 仅在未设置自定义间距时(spacing < 0)才设置
间距
4. 更新所有间距引用使用新的 spacing() 方法

Log: 修复了设置背景类型会覆盖自定义间距值的问题

Influence:
1. 测试在更改背景类型前后设置自定义间距值
2. 验证不同背景类型(RoundedBackground, ClipCornerBackground)下的间距行为
3. 检查使用自定义间距值时的布局计算
4. 测试列表视图在 LeftToRight 和 TopToBottom 两种流式布局下的渲染效果
2025-08-13 05:55:47 +00:00
yeshanshan bee46d591d Revert "fix: prevent itemSpacing override in setBackgroundType"
This reverts commit 3a4600cd30.
2025-08-13 05:55:47 +00:00
github-actions[bot] 50b00b0d9d chore: New release 5.7.20
Log:
2025-07-31 12:31:04 +00:00
yeshanshan 32d0f1ee53 fix: resolve Qt6 compatibility issues
1. Replace deprecated qAsConst with std::as_const for Qt6 compatibility
2. Update key sequence handling to use | operator instead of + for Qt6
3. Fix touch event handling for Qt6 API changes
4. Replace stateChanged with checkStateChanged for Qt6 checkbox signals
5. Add version checks for Qt6-specific API changes
6. Fix various other Qt6 deprecation warnings

These changes ensure the codebase works correctly with both Qt5 and
Qt6, addressing API changes and deprecations in Qt6 while maintaining
backward compatibility. Key technical changes include:
- Using Qt version checks for API differences
- Standardizing on newer APIs where possible
- Maintaining compatibility with both major Qt versions

fix: 解决Qt6兼容性问题

1. 使用std::as_const替代已弃用的qAsConst以兼容Qt6
2. 更新键序列处理,在Qt6中使用|运算符而非+
3. 修复Qt6中触摸事件处理的API变更
4. 将stateChanged替换为checkStateChanged以适配Qt6复选框信号
5. 添加Qt6特定API变更的版本检查
6. 修复其他Qt6弃用警告

这些修改确保代码库能正确工作在Qt5和Qt6环境下,解决了Qt6中的API变更和弃用
问题,同时保持向后兼容性。关键技术变更包括:
- 针对API差异使用Qt版本检查
- 尽可能标准化使用新API
- 保持对两个主要Qt版本的兼容性
2025-07-28 16:05:40 +08:00
yeshanshan 3a4600cd30 fix: prevent itemSpacing override in setBackgroundType
1. Removed automatic itemSpacing adjustment in
DListView::setBackgroundType
2. Added itemSpacing() method in DStyledItemDelegate to dynamically
calculate spacing based on background type
3. Changed itemSpacing member to spacing with default value -1 to
indicate custom spacing
4. Updated all references to use the new itemSpacing() method

The changes prevent the itemSpacing value from being unintentionally
overwritten when setting backgroundType, while maintaining backward
compatibility with the default spacing values for different background
types. This gives more control to developers to set custom spacing
values that won't be overridden by background type changes.

fix: 修复设置背景类型时覆盖itemSpacing值的问题

1. 移除了DListView::setBackgroundType中自动调整itemSpacing的逻辑
2. 在DStyledItemDelegate中添加itemSpacing()方法根据背景类型动态计算间距
3. 将itemSpacing成员改为spacing并设置默认值-1表示自定义间距
4. 更新所有引用以使用新的itemSpacing()方法

这些修改防止了在设置backgroundType时意外覆盖itemSpacing值的问题,同时保
持了对不同背景类型默认间距值的向后兼容性。这为开发者提供了更多控制权,可
以设置不会被背景类型更改覆盖的自定义间距值。
2025-07-23 10:50:11 +08:00
kuchune a21622a82a chore(CI): add debian check workflow
add debian check workflow

log: 增加debian检查工作流
2025-07-08 09:42:12 +00:00
github-actions[bot] cff2623eb2 chore: New release 5.7.19
Log:
2025-07-03 13:23:18 +00:00
yeshanshan 290b84eb53 fix: add security hardening flags and optimize build settings
1. Added security hardening compilation flags in debian/rules including:
   - Stack protection (-fstack-protector-all)
   - Relocation hardening (-Wl,-z,relro/now/noexecstack)
   - Warning flags (-Wall)
2. Simplified dtkwidget.cmake by removing redundant linker flags
3. Maintained essential security flags while cleaning up build
configuration
4. These changes improve binary security while keeping build process
efficient

fix: 添加安全加固标志并优化构建设置

1. 在debian/rules中添加安全加固编译标志包括:
   - 栈保护 (-fstack-protector-all)
   - 重定位加固 (-Wl,-z,relro/now/noexecstack)
   - 警告标志 (-Wall)
2. 简化dtkwidget.cmake,移除冗余链接器标志
3. 在保持基本安全标志的同时清理构建配置
4. 这些改动在保持构建效率的同时提高了二进制安全性
2025-07-03 21:03:48 +08:00
github-actions[bot] f20be8bedc chore: New release 5.7.18
Log:
2025-06-27 09:19:14 +00:00
yeshanshan 2d88b9ec79 fix: make version optional in release workflow and update spec file
1. Changed version parameter to be optional in GitHub workflow to allow
more flexible release process
2. Updated rpm spec file formatting for consistency and added %{?dist}
macro for proper package naming

The changes allow for:
- More flexible release process where version can be omitted
- Better formatted spec file with proper dist macro for package naming

fix: 使发布工作流中的版本可选并更新spec文件

1. 将GitHub工作流中的版本参数改为可选,以实现更灵活的发布流程
2. 更新rpm spec文件格式以保持一致性,并添加%{?dist}宏以正确命名包

这些更改允许:
- 更灵活的发布流程,可以省略版本号
- 格式更好的spec文件,带有正确的dist宏用于包命名
2025-06-27 16:44:07 +08:00
github-actions[bot] 468c8e7b1f chore(rpm): New release 5.7.17
Log:
2025-06-19 10:22:21 +08:00
asterwyx d65f32d9f1 chore: update .syncexclude
Exclude CHANGELOG.md.
2025-06-18 17:00:40 +08:00
Ye ShanShan d377893d9f feat: update window control icons and drawing logic
1. Replaced window_normal.dci with window_restore.dci and
window_quit_full.dci icons
2. Updated icon references in dtk-icon-theme.qrc resource file
3. Simplified title bar button drawing functions to use new icons
instead of manual drawing
4. Modified DStyle implementation to use the new icon assets
5. Improved visual consistency by using pre-made icons rather than
programmatic drawing

The changes were made to:
- Standardize window control icons across the application
- Replace programmatic drawing with higher quality vector icons
- Make the UI more maintainable by using consistent icon assets
- Prepare for future theme support by using icon resources

feat: 更新窗口控制图标和绘制逻辑

1. 用 window_restore.dci 和 window_quit_full.dci 图标替换了
window_normal.dci
2. 更新了 dtk-icon-theme.qrc 资源文件中的图标引用
3. 简化了标题栏按钮绘制函数,使用新图标替代手动绘制
4. 修改了 DStyle 实现以使用新的图标资源
5. 通过使用预制图标而非程序绘制提高了视觉一致性

这些修改的目的是:
- 标准化应用程序中的窗口控制图标
- 用更高质量的矢量图标替代程序绘制
- 通过使用一致的图标资源提高UI可维护性
- 通过使用图标资源为未来主题支持做准备
2025-06-18 14:33:42 +08:00
Yixue Wang 9618f0c4d4 feat(ci): Add auto release workflow
Log: as title
2025-06-11 11:47:29 +08:00
Yixue Wang 888f22cd21 feat: Support VERSION file
Use VERSION file to manage DTK version. VERSION file defines package version. It also decides the initial value of cached variable DTK_VERSION which controls the project version in cmake build system. VERSION file is not synchronized to DTK6, as DTK6 has its own VERSION file. One can still pass version to DTK_VERSION when running cmake configure. This is helpful for developers.

Signed-off-by: Yixue Wang <wangyixue@deepin.org>
2025-06-11 11:47:29 +08:00
Ye ShanShan 809f6d3f0f chore: bump version to 5.7.16
update changelog to 5.7.16
2025-05-19 09:26:18 +00:00
Ye ShanShan f31f35a717 chore: bump version to 5.7.15
update changelog to 5.7.15
2025-05-08 10:48:41 +00:00
Ye ShanShan 70e23381ad fix: correct text elision behavior with shortcuts
Fixed the text elision behavior in DLabel to properly handle cases
where the label contains shortcut mnemonics. The change modifies the
Qt::TextShowMnemonic flag to only be applied when the label actually has
a shortcut (d->hasShortcut). This prevents incorrect text display when
eliding labels without shortcuts.

fix: 修正带快捷键标签的文本省略行为

修复了 DLabel 中文本省略行为,正确处理包含快捷键助记符的情况。修改了
Qt::TextShowMnemonic 标志,使其仅在标签实际具有快捷键(d->hasShortcut)时
应用。这防止了在没有快捷键的标签上出现错误的文本显示。

pms: BUG-285143
2025-04-29 10:45:24 +08:00
Ye ShanShan d6ed6eaae0 style: adjust website link style in about dialog
1. Removed fixed font-size from website link template to use consistent
font sizing
2. Added font binding for website label using font manager with T8 size
and Medium weight
3. This ensures consistent typography across the application and better
accessibility

style: 调整关于对话框中网站链接样式

1. 从网站链接模板中移除固定字体大小,改用一致的字体大小设置
2. 为网站标签添加字体管理器绑定,使用T8大小和中等等级
3. 确保应用程序中一致的排版和更好的可访问性

pms: BUG-314767
2025-04-28 10:44:10 +00:00
Ye ShanShan 120663aa05 chore: reuse warning
as title.
2025-04-25 15:35:16 +08:00
Ye ShanShan 955b9205fd fix: watermark can't select picture for PrintPreivew
incorrect format for dialog's filter.

pms: BUG-311847
2025-04-18 14:42:45 +08:00
ComixHe be61a18045 build: compiling failed with Qt 6.9
Signed-off-by: ComixHe <heyuming@deepin.org>
2025-04-18 14:19:42 +08:00
Ye ShanShan 00b28ebdec chore: bump version to 5.7.14
update changelog to 5.7.14
2025-04-17 13:58:17 +00:00
Ye ShanShan fe16c8e9dc fix: wheel event is accepted in qt6
QApplication::notify has change the default action
``` qapplication.cpp
we.setAccepted(true);
we.m_spont = wheel->spontaneous() && w == receiver;
res = d->notify_helper(w, &we);
eventAccepted = we.isAccepted();
```
Event is accepted if we don't call parent class event function,
it cause event will not be passed on to it's parentWidget.
and it's different with qt5.

pms: BUG-306251
2025-04-09 08:39:34 +00:00
覃本学 4fc03629b2 fix: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
原本使用的色板中button的颜色,现改为带透明度的黑色和白色

Log: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
Bug: https://pms.uniontech.com/bug-view-250757.html
Influence: DTK SwitchButton按钮 (开关)
Change-Id: Ifb231a3a9ec548d6970d240eaf2667e50ffed9f3
2025-04-08 06:57:38 +00:00
wangshaojun ce495514e1 fix: DToolTip宽度计算
DToolTip的SizeHint指定了用单行计算,当DToolTip设置了自动换行,并且文本包含换行符时,会导致计算的宽度错误

Log:
Influence: DToolTip
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I690a85f34b961a531444d32fe43b3a50ef38dc51
2025-03-31 03:45:21 +00:00
wangshaojun 7387db734f fix: DFloatingMessage宽度计算
DFloatingMessage的子控件MessageLabel支持自动换行,当文本内容包含换行符的时候,通过TextSingleLine计算的Size会与实际不符,导致整个控件宽度过大

Log:
Influence: DFloatingMessage的显示效果
Bug: https://pms.uniontech.com/bug-view-308569.html
Change-Id: I571a4c24d84cabfabaaf4a70bca8ec931347b157
2025-03-27 09:16:40 +00:00
Ye ShanShan 9d758fe456 chore: bump version to 5.7.13
update changelog to 5.7.13
2025-03-20 18:07:33 +08:00
Ye ShanShan c611da8a15 fix: accessing wild pointer for DAboutDialog
acknowledgementLabel is wild pointer if DDialog::clearContents
is called.
aboutDialog->setLicenseEnabled is not need to call when reactive
the dialog

pms: TASK-368399
2025-03-19 11:30:15 +08:00
zhangkun add9c2ad31 feat: increase fallback for password character
0x26ab code points support fewer fonts, so we added 0x25CF with a wider range of adaptability as a fallback

pms: BUG-305575
2025-03-18 19:27:09 +08:00
Ye ShanShan 599571424d chore: bump version to 5.7.12
update changelog to 5.7.12
2025-03-06 17:41:46 +08:00
Ye ShanShan 65b8848ff9 fix: failed to save too long filename for DPrintPreviewWidget
Truncate file name to limit file's length.

pms: BUG-297841
2025-03-06 16:30:18 +08:00
Ye ShanShan 5a2e699eb7 chore: remove warning in qt6
as title.

pms: TASK-368399
2025-03-06 09:19:59 +08:00
jingshenghao b4454775dd feat: Add files generated by qdbusXML2cpp and DCONG2cpp
Add files generated by qdbusXML2cpp and DCONG2cpp

Log: Add files generated by qdbusXML2cpp and DCONG2cpp
2025-03-04 20:04:21 +08:00
jingshenghao 80e141384d doc: update docs for dwatermarkhelper
更新dwatermarkhelper的文档,添加示例代码

Log: update docs

Issue:
2025-03-04 20:04:21 +08:00
Ye ShanShan 59839f91e4 chore: bump version to 5.7.11
update changelog to 5.7.11
2025-02-27 21:06:39 +08:00
Ye ShanShan da171354d4 fix: window filickering caused by animation for DDrawer
WM's animation is confliclt with Widget.
We disable DDrawer's animation when window is invisible, and
can use D_DTK_DISABLE_ANIMATIONS to disable it's animation.

pms:BUG-242611
2025-02-25 11:24:55 +08:00
Ye ShanShan 9be9d310f4 fix: app crashed for DBlurEffectWidget in qt6
it's maybe a feature for qt6, we can't modify backingStore when
readying the widget.

``` QWidget::paintEvent(QPaintEvent *event)
QPainter pa(this);
// pa.end() // it's ok when modifing backingStore.
QImage image(window()->backingStore()->handle()->toImage());
image.detach();
```

pms:BUG-304317
2025-02-24 14:52:45 +08:00
Ye ShanShan a6a0bd630e fix: titlebar can't drag after close DAboutDialog
There is no need to get dpr based on the window.
It causes the window can't get mouse event if using
new DAboutDialog(window)).

pms:BUG-304097
2025-02-21 11:47:14 +08:00
Ye ShanShan 4284bc78bc fix: PrintPreview can't switch orientation
it's introduced when adapting to qt6 in the commit 637e3eb.

pms:BUG-298085
2025-02-17 12:50:42 +08:00
Ye ShanShan 73dd1e89fd chore: bump version to 5.7.10
update changelog to 5.7.10
2025-02-13 11:01:12 +00:00
覃本学 68e8a18dc1 fix: 修复 桌面/文管文件,打开属性窗口闪烁
窗管渲染动画问题,动画太快则会闪烁,窗管暂时无解决方案,经讨论后采用规避方案,优化动画时间和动画播放曲线
更改后在问题机L410, 还有L420自测均未再复现

Log: 修复 桌面/文管文件,打开属性窗口闪烁
Bug: https://pms.uniontech.com/bug-view-242611.html
     https://pms.uniontech.com/bug-view-242571.html
Influence: DTK DDrawer控件
Change-Id: I72bb837f6a4b1393555e7a55c382d5878147a4fd
2025-02-13 08:57:08 +00:00
deepin-ci-robot fddc7cd1e2 chore: update changelog
Release 5.7.9.
2025-01-23 09:48:05 +00:00
Ye ShanShan 3f6e005d05 fix: missing QT_QPA_PLATFORM for DApplication
it's useful for children process. and like revert the commit
cbcb732b75
2025-01-23 15:35:41 +08:00
deepin-ci-robot d545362250 chore: update changelog
Release 5.7.8.
2025-01-14 12:05:33 +00:00
YeShanShan 91ab817865 fix: access wild pointer for targetWindowHandle
ad title.

pms: BUG-368399
2025-01-14 10:26:51 +08:00
deepin-ci-robot 7345335cc0 chore: update changelog
Release 5.7.7.
2025-01-09 18:33:50 +08:00
deepin-ci-robot ee8238297e chore: update changelog
Release 5.7.6.
2025-01-02 06:40:48 +00:00
覃本学 d0f28c519a fix: 调整滑动条横条和刻度颜色
调整滑动条横条和刻度颜色

Log: 调整滑动条横条和刻度颜色
Bug: https://pms.uniontech.com/bug-view-254295.html
Influence: 调整滑动条横条和刻度颜色
2025-01-02 13:42:06 +08:00
renbin fb8711bdff fix: resident floating message cannot be closed
windowHandle() is not created by default,
use close() instead.

Bug: PMS-297669
2025-01-02 01:45:32 +00:00
deepin-ci-robot 367371aac6 chore: update changelog
Release 5.7.5.
2024-12-17 09:54:39 +08:00
ck cda1bbbbcc fix: webengineView abnormal in DMainWindow
`DPlatformWindowHandle::setWindowSurfaceType(QWindow::OpenGLSurface)`
needs to be called before constructing DMainWindow when use
webengineview
2024-12-09 15:46:52 +08:00
deepin-ci-robot b3410a0241 chore: update changelog
Release 5.7.4.
2024-12-06 11:03:21 +08:00
zhangkun 5b338f0cbc fix: some windows have dual title bars
- 使用windowhandle的close()去关闭窗口
- DDialog和DMainWindow适配Treeland

pms: BUG-286173
2024-11-28 12:02:27 +08:00
renbin 3fb2ebda49 fix: ddialog's lambda func may cause segfault
During call DDialog::exec(), the onButtonClickedClose
flag is set to true by default.
At this point, DDialog connect lambda function captures the
**temporary variable**, and does not disconnect the signal
after the exec() call ends.
As a result of calling the same dialog object multiple times,
other addresses may be **overwritten** by previous temporary
variable writes, causing segfault (crashes).

Use done() to set the return value instead of via connect
lambda function.

Log: Fixed a bug that may cause segfault.
2024-11-22 02:58:54 +00:00
deepin-ci-robot 04bc2b3610 chore: update changelog
Release 5.7.3.
2024-11-22 02:31:41 +00:00
deepin-ci-robot 6081d41904 chore: update changelog
Release 5.7.2.
2024-11-15 05:48:24 +00:00
ck b105f2c31a chore: use testAttribute instead of environment test
DGuiApplicationHelper::testAttribute(DGuiApplicationHelper::IsWaylandPlatform)
2024-11-13 08:10:29 +00:00
deepin-ci-robot 0fefe175b3 chore: update changelog
Release 5.7.1.
2024-10-31 02:26:32 +00:00
覃本学 9d77c29c2c feat: 动效增加开关
动效增加开关,通过DGuiApplication::testAttribute(DGuiApplication::HasAnimations)接口和环境变量DTK_DISABLE_ANIMATION_***控制动效总开关和单个动效开关

Log: 动效增加开关
2024-10-25 09:39:27 +00:00
zhangkun 9fa7f1e55b feat: ExpandButton in titlebar is not affected by the compact mode
Height fixed 48

Bug: https://pms.uniontech.com/bug-view-280091.html
2024-10-25 03:27:22 +00:00
zhangkun c23fc68f25 fix: Compile issues
Conditional compilation package incomplete

Log:
2024-10-25 03:14:54 +00:00
Zhang Dingyuan 1332c15217 feat: support Qt 6.8
support qt 6.8

Log:
2024-10-22 11:23:45 +00:00
wangfei 87fd9f385a fix: wrong status of switch button
correct the wrong initial status of switch button

Bug: https://pms.uniontech.com/bug-view-276221.html
Log:
2024-10-10 02:47:53 +00:00
wangfei a9c047dfc0 fix: display exception of checkbox & radiobutton
add dci assets about checkbox and radiobutton

Bug: https://pms.uniontech.com/bug-view-276189.html
Log:
2024-10-10 02:47:17 +00:00
wangfei 83976886f6 fix: obsolete interfaces
replace obsolete interfaces to compatible to qt6

Log:
2024-10-08 09:21:21 +00:00
wangfei 1d8279345e Revert "chore: 使用dci icon重绘toolbutton, 增加动画 (#594)"
This reverts commit 4e5c37c017.
2024-09-26 15:56:05 +08:00
Whale107 b968087637 fix: adjust switchbutton dci icon (#603)
adjust switchbutton dci icon

Log:
2024-09-23 06:50:04 +00:00
Whale107 6cfb9aba46 chore: 增加应用内通知动画 (#592)
增加应用内通知动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 35841b5899 chore: 使用dci icon重绘switchButton, 增加动画 (#593)
使用dci icon重绘switchButton, 增加动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 4e5c37c017 chore: 使用dci icon重绘toolbutton, 增加动画 (#594)
使用dci icon重绘toolbutton, 增加动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 bc3a6eaa3b chore: 增加ButtonBox hover 和切换动画 (#595)
增加ButtonBox hover 和切换动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 78fccaa520 chore: 增加滚动区域滚轮滚动到顶部或底部的回弹效果 (#596)
增加滚动区域滚轮滚动到顶部或底部的回弹效果

Log:
2024-09-23 06:50:04 +00:00
Whale107 996af1a1a9 fix: adjust indeterminateprogressbar color (#597)
adjust indeterminateprogressbar color

Log:
2024-09-23 06:50:04 +00:00
Whale107 58f4534c92 chore: 新增搜索框图标移动动画 (#590)
新增搜索框图标移动动画

Log:
2024-09-23 06:50:04 +00:00
Whale107 8ec72aeef9 chore: 新增进度条动效和一个新进度条类 (#589)
新增进度条动效和一个新进度条类

Log:
2024-09-23 06:50:04 +00:00
Zhang Dingyuan 38e3cc14be feat: support treeland notitlebar mode
check environment DDE_CURRENT_COMPOSITOR is TreeLand to override
DWayland.

Log:
2024-08-29 13:25:54 +08:00
Whale107 553522e30c
fix: 如果窗口打开时即为最大化状态,则最大化图标显示错误 (#601)
窗口打开时没有windowstatechanged事件,不会去设置窗口状态,在showEvent中处理一下

Log:
Bug: https://pms.uniontech.com/bug-view-262201.html
Influence: mainwindow最大化
2024-08-29 01:33:05 +00:00
deepin-ci-robot 6ab28edbfb chore: update changelog
Release 5.6.34.
2024-08-21 23:16:45 +08:00
deepin-ci-robot 88bd12d1af chore: update changelog
Release 5.6.33.
2024-08-20 03:43:33 +00:00
Whale107 3a01bae5e6
fix: 控制中心标题栏返回按钮消失 (#588)
DTK清除多余space使用的方法有问题,应使用itemAt而不是takeAt

Log: 控制中心标题栏返回按钮消失
Bug: https://pms.uniontech.com/bug-view-264379.html
Influence: 控制中心-标题栏
2024-07-15 05:58:31 +00:00
覃本学 09e10948c3 fix: DTitleBar动态设置Icon时间距异常
spacerItem多次设置,改为设置前先移除之前的

Log:
2024-07-08 09:30:05 +08:00
zty199 8df23f459d fix: wrong product icon size in DAboutDialog
when compiled with Qt6, product icon size is set to windowHandle().baseSize()
which is not the same as compiled with Qt5 (fixed size 128x128)

Log: use 128x128 pixmap in DAboutDialog::setProductIcon
2024-07-01 07:27:04 +00:00
zty199 bed8dbf3b9 fix: DMessageManager::sendMessage cause crash
in sendMessage_helper, seems that content could be nullptr when QWebEngineView is DMainWindow's centralWidget

Log: add judgment whether content is nullptr in sendMessage_helper
2024-07-01 14:59:38 +08:00
deepin-ci-robot a505059b54 chore: update changelog
Release 5.6.31.
2024-06-27 17:57:11 +08:00
deepin-ci-robot f6f23e5169 chore: update changelog
Release 5.6.30.
2024-05-31 15:28:17 +08:00
Cjq 4b1e714cf8
fix: 解决wayland下,DDialog窗口透明问题的问题 (#578)
wayland下,当进程设置DGuiApplicationHelper::ColorCompositing后,DDialog需要
主动设置模糊窗口效果

Log:
Bug: https://pms.uniontech.com/bug-view-249975.html
Influence: wayland下,DDialog窗口模糊
2024-05-29 05:47:00 +00:00
zhangkun 0f2c010bf8 feat: modify the spacing between the title and the top
Set the space for title layout to 0

Issue: https://github.com/linuxdeepin/developer-center/issues/8418
2024-05-28 15:52:39 +08:00
deepin-ci-robot e0d36238e5 chore: update changelog
Release 5.6.29.
2024-05-16 02:27:28 +00:00
ck e6dd474f22 fix: crash when follower was destroyed
Bug: https://pms.uniontech.com/bug-view-254383.html
2024-05-13 09:31:50 +00:00
rewine 096e9939e5 fix: support build on qt 6.7
log: QKeyMapper::possibleKeys return QList<KeyboardModifiers> in qt 6.7
2024-05-11 18:12:02 +08:00
Yutao Meng 44bf1633ce revert: "fix: 自定义页码切换问题"
Do not reset custom page ranges when changing printers, page
size or anything else like this.

Issue: https://github.com/linuxdeepin/developer-center/issues/7983
Log: revert f53dfffb63
2024-05-11 05:08:59 +00:00
覃本学 9ad1443b0b fix: 修复大多数按钮不响应enter事件
修复大多数按钮不响应enter事件,仅支持DApplication应用

Log: 修复大多数按钮不响应enter事件
Bug: https://pms.uniontech.com/bug-view-253935.html
Influence: 按钮响应键盘回车事件
2024-05-09 08:55:37 +00:00
deepin-ci-robot 4259087590 chore: update changelog
Release 5.6.28.
2024-04-30 15:46:16 +08:00
wangfei 374b679186 fix: window menu icon
revert new icon to old menu icon

Issue: https://github.com/linuxdeepin/developer-center/issues/8297
2024-04-28 13:02:24 +08:00
deepin-ci-robot 33e531f734 chore: update changelog
Release 5.6.27.
2024-04-23 09:24:50 +08:00
zhangkun 410bd874aa fix: Split window position error
Move to inside the screen when exceeding the edge of the screen

Issue: https://github.com/linuxdeepin/developer-center/issues/4840
2024-04-12 10:08:02 +08:00
ssk-wh 12bdf18b15 fix: fix the problem of text position in dstyleditemdelegate
as title

log: as title
issue: https://github.com/linuxdeepin/developer-center/issues/7673
2024-04-09 10:38:24 +08:00
Yixue Wang 3120a8d784 fix: next action rect position error
Spacing should be counts of pixel without any content between two
line. for two dot, spacing = dot1 - dot2 - 1, not dot1 - dot2.

Log: fix next action rect position error
Issue: https://github.com/linuxdeepin/developer-center/issues/6379
2024-04-01 14:44:33 +08:00
Yixue Wang cf84e0f544 chore: disable broken workflow build
Disable debian build cause dtkwidget may depends on qt6.6, but debian's
version is 6.4.

Log: disable broken workflow build
2024-04-01 13:19:00 +08:00
deepin-ci-robot 03bf76a074 chore: update changelog
Release 5.6.26.
2024-03-27 14:26:01 +08:00
Yixue Wang b9cc28f708 feat: don't hide alert message automatically.
Don't hide alert message automatically when follower hides.

Log: don't hide alert message automatically.
Issue: https://github.com/linuxdeepin/developer-center/issues/5622
2024-03-25 13:08:08 +08:00
覃本学 881ff56727 chore: 调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式
调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式

Log: 调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式
Task: https://pms.uniontech.com/task-view-331465.html
Influence: 窗口标题栏 更多/最小化/最大化/关闭按钮
2024-03-20 16:51:32 +08:00
deepin-ci-robot aff498c773 chore: update changelog
Release 5.6.25.
2024-03-11 15:23:35 +08:00
wangfei 9215ab2c54 fix: black circle in PasswordLineEdit
change 0x25CF to 0x26AB(medium black circle) on the password character

Issue: https://github.com/linuxdeepin/developer-center/issues/7335
2024-03-07 09:29:19 +08:00
wangfei f8fb76f1df Revert "fix: black circle in PasswordEdit"
This reverts commit a6b5b14699.
2024-03-07 09:29:19 +08:00
wangfei 82e9562493 chore: Adapt to Qt 6.6.1
replace the obsolete interface

Log: Adapt to Qt 6.6.1
2024-03-06 11:50:54 +08:00
wangfei a6b5b14699 fix: black circle in PasswordEdit
set the size of black circle to 6 pixel by changing the font,
set the letter spacing to 200 under PercentageSpacing type.

Issue: https://github.com/linuxdeepin/developer-center/issues/7335
2024-03-05 15:39:11 +08:00
ck e2ffdc6c5a fix: dconfig frequent construction and destruction
Frequent construction and destruction will connect / disconnect dbus...
2024-03-04 16:37:01 +08:00
Mars-CB c0f0268e53 fix: 修复dslider刻度标签内容过长时,显示不下的问题
内容过长时,取省略号替代

Log:
Task: https://pms.uniontech.com/task-view-325247.html
Influence: DSlider刻度标签显示
Change-Id: I47993df919b5fcc238db42b609b6183d5011e14a
(cherry picked from commit 0b89d4cbcc9817b7829dfc5d196284f5c8de9945)
2024-02-28 16:54:04 +08:00
覃本学 cd1f2fd92a fix: 修复关于对话框在应用名称很长时内容有被截断的情况
调整关于对话框布局

Log: 修复关于对话框在应用名称很长时内容有被截断的情况
Bug: https://pms.uniontech.com/bug-view-240835.html
Influence: 关于对话框布局
2024-02-28 15:45:09 +08:00
覃本学 9ee2004d16 fix: 调整关于对话框链接颜色
调整关于对话框链接颜色

Log: 调整关于对话框链接颜色
Task: https://pms.uniontech.com/task-view-303535.html
Influence: 关于对话框链接颜色
2024-02-28 15:45:09 +08:00
覃本学 9f16214bc3 chore: 调整关于对话框界面布局和样式
调整关于对话框界面布局和样式

Log: 调整关于对话框界面布局和样式
Task: https://pms.uniontech.com/task-view-303535.html
Influence: 关于对话框
2024-02-28 15:45:09 +08:00
ck f99368a715 chore: bump version to 5.6.23
update changelog
2024-02-22 17:10:28 +08:00
ck 2571caf0bc feat: sidebar widget with blur widget behind
add a blur widget(behindwindowblend) behind sidebar widget
add a vline right of sidebar
2024-02-22 17:10:28 +08:00
ck 2edd4a79a2 chore: use hasBlurWindow instead of hasComposite
hasBlurWindow is more accurate
2024-02-22 17:10:28 +08:00
deepin-ci-robot 0a97de24b8 chore: update changelog
Release 5.6.22.
2024-01-12 14:39:59 +08:00
chenhongtao 894d840e41 chore: remove unused headers in header
Log:
2024-01-10 10:04:34 +08:00
ck 866198ec8b fix: double click edit incorrect format
Issue: https://github.com/linuxdeepin/developer-center/issues/6780
2024-01-09 17:50:50 +08:00
deepin-ci-robot 419439305b chore: update changelog
Release 5.6.21.
2024-01-09 14:48:57 +08:00
ck 2024fe2ee1 chore: logical judgment errors
default is attribute is UseInactiveColorGroup
2023-12-29 09:35:53 +08:00
ck c401931342 chore: nullptr check in dstyleditemdelegate
nullptr check
2023-12-29 09:35:53 +08:00
deepin-ci-robot a151867963 chore: update changelog
Release 5.6.20.
2023-11-28 17:54:58 +08:00
ck 13505358b6 feat: move ddesktopservices to dtkgui
move ddesktopservices from dtkwidget to dtkgui

Issue: linuxdeepin/dtk#134
2023-11-28 13:40:36 +08:00
ZHANGTINGAN 01043dfa1b fix: DApplication初始化过程中会覆盖原有事件掩码,导致丢失事件
DApplication应用初始化时通过设置xcb窗口属性,设置了XCB_EVENT_MASK_PROPERTY_CHANGE事件掩码,此时Xorg会对发送给客户端的事件根据事件掩码来过滤,例如关闭文件选择对话框时发送的类型为focusIn的clientMessageEvent就不会发送给客户端。修改为先判断当前事件掩码是否含有XCB_EVENT_MASK_PROPERTY_CHANGE掩码,有的话不进行处理,没有的话在原有掩码上追加该掩码

Bug: https://pms.uniontech.com/bug-view-220369.html
2023-11-13 15:10:13 +08:00
ck 9fdb27a91f fix: DArrowRectangle left/right style incorrect
radiusArrowStyleEnable 后 border 少了一些绘制路径

Issue: https://github.com/linuxdeepin/dtk/issues/92
2023-11-10 16:50:57 +08:00
覃本学 b15940de6b fix: 修复DLicenseDialog内存泄漏
listModel没挂父对象也没有主动销毁

Log: 修复DLicenseDialog内存泄漏
Influence: DLicenseDialog
2023-11-09 10:31:12 +08:00
Yixue Wang 371cc125cc fix: export inexistent classes in config
Some classes is totally dropped in dtk6. These should not be exported
in config file.

Log: fix exporting inexistent classes in config
2023-10-27 14:02:55 +08:00
Yixue Wang fcd33acfa9 fix: redefinition of verticalTabs
Function verticalTabs is exposed by qtabbar_p.h as constexpr static
inline, original definition in dtabbar.cpp will lead to an redefinition
error. Just rename dtk's implementation.

Note: Probably we should replace private implementaion with Qt's
implementation after all versions of Qt expose this function.
Log: fix redefinition of verticalTabs
2023-10-27 13:34:45 +08:00
Yixue Wang f5eafba7ff chore: add synchronization workflow
Add synchronization workflow to synchronize to DTK6.

Log: add synchronization workflow
2023-10-27 09:41:21 +08:00
ck 42e319184c feat: styleHint tweak
SH_UnderlineShortcut
Whether shortcuts are underlined.

SH_Menu_KeyboardSearch
Whether disable the typing to search for menu items
2023-10-25 14:00:57 +08:00
deepin-ci-robot a694fae2ee chore: update changelog
Release 5.6.19.
2023-10-24 02:33:26 +08:00
He Xin f5d75bf95a feat: change DTK_STATIC_TRANSLATION to the default setting.
change DTK_STATIC_TRANSLATION to the default setting.
默认设置DTK_STATIC_TRANSLATION,以便第三方dtk应用可以较方便携带翻译文件
2023-10-19 10:45:11 +08:00
deepin-ci-robot 59b0befeef chore: update changelog
Release 5.6.18.
2023-10-18 15:16:21 +08:00
syn 012d67a362 doc: update docs for denhancedwidget
更新denhancedwidget的文档,添加示例代码

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-10-16 10:47:11 +08:00
zhangkun e0b3d0bbc3 fix: 修复打印预览,切换打印机的时候预览图颜色显示异常
颜色选项默认选择第一项,第一项有可能是彩色或黑白,QCombobox在设置与之前相同的项的时候其CurrentIndexChanged信号不会被触发,正因如此,导致预览图没有及时没刷新,修改为在为组合框添加item的时候,将其currentIndex设置为-1,保证后续的CurrentIndexChanged信号及时被触发

Log: 修复打印预览,切换打印机的时候预览图颜色显示异常
Bug: https://pms.uniontech.com/bug-view-220315.html
Influence: 打印预览切换打印机时预览图的颜色表现
2023-10-13 15:42:47 +08:00
ck 7d85d0bc97 feat: use DIconTheme::findQIcon
Replacing QIcon::fromTheme.

Issue: linuxdeepin/developer-center#4112
2023-10-12 15:16:45 +08:00
Felix Yan 3a2f266613 chore: correct typos about action slots
Log:
2023-10-02 12:15:14 +08:00
renbin b948f4e034 fix: ColorMode may be inconsistent with settings.
The current ColorMode is inconsistent with the set
currentIndex after switch the printer.
Refresh the current print ColorMode after reset
the ColorMode combobox.

Log: ColorMode may be inconsistent with settings.
Bug: https://pms.uniontech.com/bug-view-219201.html
Influence: PrintPreview
2023-09-13 08:47:08 +08:00
wangyixue dafa34ed8a chore: update changelog
Release 5.6.17.
2023-09-08 23:15:48 +08:00
ck 93d4407f4c fix: example sidebar not show
setSidebarWidget will show sidebar widget
2023-09-08 16:54:46 +08:00
xzl 3635a3ba77 chore: support Qt 6.4.2
Log:
2023-09-08 16:48:05 +08:00
ck 5f0e347e32 chore: do not show alert message if text is empty
show an empty alert frame makes no sense
2023-09-08 15:05:03 +08:00
YeShanShan 0ba6eb1b3d feat: Add UT for DWaterMarkWidget
Add UT.
2023-09-07 12:12:10 +08:00
xzl 65308b9f3c fix: remove not working test case
Log:
2023-09-05 13:03:57 +08:00
ck f3d1a4423b feat: DFontSizeManager tweak
- add T11 (default 8 px)
- T5 17px ==> 16px

Issue: https://github.com/linuxdeepin/dtk/issues/116
2023-09-05 10:56:41 +08:00
wangfei 8a4bacc437 fix: sidebar expand/collapse status error
diff expand/collapse from sidebar visible

Issue: https://github.com/linuxdeepin/developer-center/issues/5297
2023-08-28 09:20:38 +08:00
deepin-ci-robot edd36a92da chore: update changelog
Release 5.6.16.
2023-08-22 15:17:45 +08:00
wangyixue 0403aecf3b fix: update dependency libfreetype-dev
libfreetype6-dev is a transitional package. Debian sid now uses
libfreetype-dev. Change libfreetype6-dev to libfreetype-dev.

Log: update dependency libfreetype-dev
2023-08-21 17:15:46 +08:00
xzl 72c59d8292 chore: add test for dwatermarkhelper
Log:
2023-08-18 15:37:01 +08:00
xzl 0312b95efa feat: add ut_dpalettehelper
Log:
2023-08-18 11:24:06 +08:00
wangyixue b2e211292d chore: update changelog
Release 5.6.15.
2023-08-14 11:01:49 +08:00
ck e5108b00bc chore: move loadtranslator to dtkgui
dependcy: https://github.com/linuxdeepin/dtkgui/pull/183
load qt and app translation files in dtkgui
dtkwidget only load dtkwidget_xx.qm
2023-08-12 10:37:07 +08:00
LyYeeeYuwu eeb4563233 doc: update docs for dcrumbedit
更新dcrumbedit的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-10 09:54:50 +08:00
homehome a6cbb1c4a9 doc: update docs for dcircleprogress
更新dcircleprogress的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-03 16:09:41 +08:00
syn 67b3dc243e doc: update docs for dtooltip
更新dtooltip的文档,添加示例代码和图片

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-03 10:56:09 +08:00
LyYeeeYuwu 772ca04bde doc: update docs for dfontcombobox
更新dfontcombobox的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-08-02 19:29:27 +08:00
YeShanShan 06f65568da feat: Add UT for DComboBox
Add UT.
2023-07-31 11:36:14 +08:00
xzl 290e075c63 chore: remove useless files
Log:
2023-07-29 21:58:21 +08:00
deepin-ci-robot 879a19c30a chore: update changelog
Release 5.6.14.
2023-07-27 16:17:11 +08:00
wangyixue 63cb178bc7 chore: deprecate dhidpihelper
DHiDPIHelper has nothing to do with dtkwidget. Move the only function
loadNxPixmap to Dtk::Gui::DIcon. Deprecate the implementation in
dtkwidget.

Log: deprecate dhidpihelper
2023-07-27 13:47:42 +08:00
xzl 8421ade36e fix: fix the bug of the test-recoverage.sh
Log:
2023-07-27 10:43:56 +08:00
LyYeeeYuwu cb360f23d6 doc: update docs for dtextedit
更新dtextedit的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-26 13:20:42 +00:00
xzl 5fc7371d91 feat: add some UT
Log:
2023-07-21 14:14:06 +08:00
xzl 49a0919930 fix: to fix unused qrc file in UT
Log:
2023-07-21 09:49:01 +08:00
xzl 75ad5f10cb fix: fix memory leak in danchors.cpp
Log:
2023-07-18 15:34:35 +08:00
xzl 2fa6097c85 Revert "fix: 修改内存泄露问题"
This reverts commit 7efd5d2f03.
2023-07-18 15:34:35 +08:00
homehome b608210a56 doc: update docs for dmessagemanager
更新dmessagemanager的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-14 02:30:05 +00:00
SPUER 40b70e80f0 chore: reduce compilation warnings
解决部分文档编译警告

解决cpp文件中部分注释编译警告

Issue: https://github.com/linuxdeepin/dtk/issues/96
2023-07-14 01:37:10 +00:00
LyYeeeYuwu 105bbeeaab doc: update docs for dprogressbar
更新dprogressbar的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-14 09:11:09 +08:00
homehome ac719a9bf1 doc: update docs for dcoloredprogressbar
更新dcoloredprogressbar的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 08:22:24 +00:00
homehome f7132b15a7 doc: update docs for dbaseline
更新dbaseline的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 08:02:05 +00:00
LyYeeeYuwu 913e39c63e doc: update docs for dsearchedit
更新dsearchedit的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 07:49:23 +00:00
syn 909d3e06df doc: update docs for dspinbox
更新dspinbox的文档,添加示例代码及运行图片

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 07:03:56 +00:00
homehome 2f19f9113e fix: the 'ValueChanged' signal was never emitted in dcircleprogress
Due to a lack of signal triggering in dcircleprogress,the 'ValueChanged' signal was never emitted.

Log:为dcircleprogress修复了一个接口bug,在setValue()函数内部设置信号发射,解决了ValueChanged信号不会发射的问题
2023-07-11 14:37:36 +08:00
Skye-rs c2063d8316 doc: update docs for dtoolbutton
更新dtoolbutton的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 05:35:29 +00:00
LyYeeeYuwu 1e7568bd3b doc: update docs for dframe
更新dframe的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 05:15:56 +00:00
LyYeeeYuwu 454855b4bc doc: update docs for dwarningbutton
更新dwarningbutton的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-11 01:53:55 +00:00
deepin-admin-bot 31356222e8 chore: Sync by 559e91167d
sync by github workflow

Log: none
Influence: none
2023-07-10 06:29:54 +00:00
xzl 28fe13924b fix: remove ut to support DTK6.0
Log: 移除了部分DTK6.0不支持的ut,以便通过编译,后续需要补充
2023-07-07 16:20:45 +08:00
LyYeeeYuwu d490659575 doc: update docs for dbuttonbox
更新dbuttonbox的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-07 02:14:08 +00:00
Skye-rs 3e2272e47e doc: update docs for dipv4lineedit
更新dipv4lineedit的文档

Log: update docs
Issue: https://github.com/linuxdeepin/dtk/issues/94#issue-1773136810
2023-07-07 01:57:29 +00:00
syn b888a7917f doc: update docs for diconbutton
更新diconbutton的文档,添加示例代码及运行图片

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-07 01:29:29 +00:00
syn 163831d9be doc: update docs for dbaseexpand
更新dbaseexpand的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-06 04:32:09 +00:00
homehome 9e3b78c05f doc: update docs for dwaterprogress
更新dwaterprogress的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-06 03:59:37 +00:00
homehome 0fb6c31af1 doc: update docs for dsuggestbutton
更新dsuggestbutton的文档

Log: update docs

Issue: https://github.com/linuxdeepin/dtk/issues/94
2023-07-06 03:45:04 +00:00
Skye-rs 2c51f40f28 doc: A small change to Dcombobox
改正dcombobox.cpp中一处注释

Log: Correction of a comment in Dcombobox
2023-07-06 02:03:08 +00:00
Skye-rs e054ff19a5 doc: update docs for dcombobox
更新dcombobox文档

Log: update docs
Issue: https://github.com/linuxdeepin/dtk/issues/94#issue-1773136810
2023-07-05 10:00:54 +08:00
heyuming eb5e0f0a11 refactor!: deprecate some interfaces in dtk6
Log: 在dtk6中废弃一些接口
2023-07-04 18:26:14 +08:00
homehome 80a6fc7875 doc: update docs for dtabbar
更新dtabbar的文档

Log: update docs

Issue: linuxdeepin/dtk #94
2023-07-04 08:49:08 +00:00
homehome aa1818415f doc: update docs for dpasswordedit
更新dpasswordedit的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-07-03 08:59:15 +00:00
YeShanShan 05b122cfd5 fix: Button background lightness display error
Adjust color's lightness by ColorType.

Issue: https://github.com/linuxdeepin/dtk/issues/82
2023-06-26 13:02:08 +08:00
heyuming 53ee4fb198 chore: update changelog
Release 5.6.13

Log:
2023-06-26 10:21:54 +08:00
wangyixue f357008be5 fix: titlebar buttons don't recover
Titlebar has a targetWindow and it will sync disableFlags with window's
motif functions. Do not set disableFlags according to the current
state of buttons. Because when targetWindow(That is also top level
window of titlebar) is disabled, all its children will always return
false when invoking isEnabled.
Also, never explicitly disable any button unless you know when to
enable it again. Let top level window manages it. DisableFlags only
apply to configuration, will not reveal buttons' state.

Log: fix titlebar buttons don't recover
2023-06-26 10:08:19 +08:00
heyuming c2efc57609 fix: unit test error under qt6
Log: 修复qt6下的单元测试错误
2023-06-25 16:46:58 +08:00
heyuming 5a8a34a6c6 fix: fix compile error under qt6
Log: 修复Qt6下的编译错误
2023-06-21 17:01:10 +08:00
heyuming 5804bb2dd9 chore: remove old dependency
Log: 移除旧依赖
2023-06-21 15:56:17 +08:00
heyuming e19d7fbe7a fix: unit test error under qt5
Log: 修复qt5下单元测试的错误
2023-06-21 15:47:24 +08:00
ck caa5e197d7 fix: Attempted to overwrite a QRandomGenerator to system() or global().
QRandomGenerator::global() no need to call seed
2023-06-21 11:32:16 +08:00
wangyixue 5a11d970b1 fix: compile error of unit test
ut_dstyleditemdelegate.cpp does not using namespace Dtk::Gui; Add
this to it.

Log: fix compile error of unit test
2023-06-20 16:44:36 +08:00
heyuming 011f3f4028 fix: correct copy assignment operator
Log: 纠正拷贝赋值运算符
2023-06-19 16:13:19 +08:00
heyuming 940ea4ef40 feat(others): support Qt6
Log: 适配Qt6
2023-06-19 13:18:51 +08:00
heyuming 637e3eb52a feat(lib): support Qt6
Log:适配Qt6
2023-06-19 13:15:20 +08:00
heyuming 060450076f feat(build): support Qt6
Log: 支持Qt6
2023-06-16 17:32:43 +08:00
ck 428675ebb8 fix: TextEdit color group not update
control's palette not changed whene window activate changed

Bug: https://pms.uniontech.com/bug-view-196603.html
2023-06-16 16:15:19 +08:00
heyuming 2382ebaba2 fix: DApplication casting error
Log: 修复DApplication的转换错误
2023-06-14 10:09:43 +08:00
wangfei 77956103b0 chore: update translations abouut license
update translations about license

Log: update translations about license
2023-06-08 11:03:28 +08:00
ck 7532e97c1d fix: abnormal font size
if qApp->font() dpi is invalid(<=0) fallback to d_defaultDpi
see qt_defaultDpiX / qt_defaultDpiY(qfont.cpp)

Issue: https://github.com/linuxdeepin/dtk/issues/17
2023-05-30 16:45:27 +08:00
caixiangrong 24f758e5db fix: 修改分屏菜单位置错误
只Qt::Widget的窗口并有父窗口的计算使用父窗口rect

Log: 修改分屏菜单位置错误
Bug: https://pms.uniontech.com/bug-view-199083.html
Influence: 锁屏界面/任务栏等网络插件窗口显示,窗口分屏提示窗口
2023-05-30 16:39:17 +08:00
wangfei 21eafa9b28 chore: Change the text of the title in dlicensedialog
Change "open-source software" to "Open-Source Software"

Log: Change the text of the title in dlicensedialog
2023-05-18 15:52:35 +08:00
wangfei bb7bb1db80 chore: Add properties about license in dapplication interface
add properties about license feature in dapplication interface.

Log: Add properties about license
2023-05-17 16:42:01 +08:00
wangfei a5b2f57b18 chore: change the text of the title on licensedialog
change the text "Credits" to "open-source software"

Log: change the text of the title on licensedialog
2023-05-17 16:40:07 +08:00
ck 25a9e60c09 chore: bump version to 5.6.12
update changelog
2023-05-15 11:42:41 +08:00
wangfei cf93158b9e chore: change the licenses of example
change the licenses of the example

Log: change the licences of the example
2023-05-12 17:36:45 +08:00
wangfei d152e0aa78 fix(licensedialog): it does't work by clicking enter action
connect two signals between enter action and listview on license dialog.

Log: fix the issue that it doesn't work by clicking enter action
2023-05-12 17:33:33 +08:00
wangfei c3a0ef938c chore: update translations about license feature
add translations about license feature

Log: update translations about license feature
2023-05-11 13:17:01 +08:00
deepin-admin-bot 30992ff1b0 chore: Sync by 2e5e092ba3
sync by github workflow

Log: none
Influence: none
2023-05-10 02:24:49 +00:00
wangfei f585d1f9df feat: add license dialog widget
add dlicensedialog interface and function.

Log: add license dialog widget
2023-05-10 09:07:01 +08:00
ck 42612a2fd1 chore: use activatableServiceNames
Use the activatableServiceNames instead of isServiceRegistered
to detect new version dbus interfaces exists
2023-05-09 14:46:59 +08:00
ck eb2fff404f chore: bump version to 5.6.11
update changelog
2023-05-08 15:07:20 +08:00
wangfei dcb6217d4b fix: adjust floatbutton's size in compact mode
In compact mode, add the margins to sizehint.

Log: modify floatbutton's content size to 36*36
Issue: https://github.com/linuxdeepin/dtk/issues/36
2023-05-05 11:13:02 +08:00
wangfei 85a476724d chore: update translation files
delete some deprecate words.
add some words about custom toolbar.

Log: update translation files
2023-05-05 11:12:11 +08:00
rewine 802ed1d930 fix: must set CMAKE_INSTALL_PREFIX before GNUInstallDirs
Log:
Never modify the value of CMAKE_INSTALL_PREFIX after including GNUInstallDirs
Otherwise incorrect CMAKE_INSTALL_FULL_XXXX values will be computed
2023-04-28 07:39:52 +00:00
wangfei 0f0f79f6ca fix: the redundant field "version" has been added
remove the redundant field "version: " in about dialog

Issue: https://github.com/linuxdeepin/dtk/issues/62
2023-04-26 13:40:14 +08:00
bluesky f0323b6608 fix: titlebar was not updated when titlebarHeight was changed
修复titlebarHeight属性被修改时,标题栏没有实时生效。

Issue: https://github.com/linuxdeepin/dtk/issues/51
2023-04-26 13:14:50 +08:00
donghualin 2f8df6c939 fix: 修复ArrowRectanble设置位置错误
当给ArrowRectanble设置parent的时候,调用show方法没有计算顶层窗口的位置导致最终计算的窗口错误

Log: 修复锁屏界面竖屏无法显示网络列表
Influence: 登陆界面和锁屏界面的网络列表
Bug: https://pms.uniontech.com/bug-view-195913.html
2023-04-24 14:50:18 +08:00
YeShanShan 7692c1572e feat: Deprecate DApplicationSettings
The feature has been moved to DGuiApplicationHelper in the
commit 19492cbfb71954a4939028b37ce66981d34e324e
2023-04-24 13:58:34 +08:00
Felix Yan 45c20d90e5 fix: suppress cmake warning for missing directory specified
Fixes the following warning:

```
CMake Warning:
  No source or binary directory provided.  Both will be assumed to be the
  same as the current working directory, but note that this warning will
  become a fatal error in future CMake releases.
```
2023-04-21 13:22:03 +08:00
Felix Yan 29cdb8b79f fix: remove unused librsvg dependency from dtkwidget.spec
It's no longer in use.
2023-04-21 13:21:34 +08:00
bluesky 0354aa60f1 doc: update DSwitchButton docs
更新DSwitchButton控件的文档

Log: update docs
2023-04-21 10:30:49 +08:00
wangfei 359121fea6 chore: init option by baseStyleOption() in diconbutton
init option by virtual function baseStyleOption() in diconbutton

Log: init option by baseStyleOption() in diconbutton
2023-04-20 16:31:31 +08:00
wangfei 47c5b4576f Revert "fix: icon size is abnormal when dpi > 1"
This reverts commit de8d8f9920.
2023-04-20 16:30:09 +08:00
wangyixue 89a20b8120 feat: add DMPRISControl example
Add example in collections for DMPRISControl widget.
2023-04-18 10:10:56 +08:00
wangyixue 287fd228c5 fix: DMPRISControl style conflicts with design
* Icon is too small compared to design, replace the icon with new
icon that is 36x36 and fix the button size (52x52) and icon size.
* Spacing between media control buttons is smaller than design. Set
fixed spacing in control buttons layout (Default is 80px).
* Add DMPRISControl example in collections.

Log: fix DMPRISControl style conflicts with design
2023-04-18 10:10:56 +08:00
ck 1521966be9 chore: update to 5.6.10
Log: update changelog
2023-04-17 18:03:29 +08:00
Felix Yan 2efad74dcd fix: don't set CMAKE_BUILD_TYPE in CMakeLists.txt
Distributions actually prefer CMAKE_BUILD_TYPE being `None` (the default value) so that their CFLAGS/LDFLAGS are used instead of the cmake presets. Let's do not overwrite it with "Release".
2023-04-17 17:56:00 +08:00
Felix Yan dd2e38e77c fix: remove unused cmake option from PKGBUILD
`HUNTER_ENABLED` isn't mentioned elsewhere in this project.
2023-04-17 17:32:32 +08:00
Felix Yan 0a9216852a fix: remove unused librsvg dependency from PKGBUILD
It's not mentioned anymore in this project.
2023-04-17 17:29:16 +08:00
YeShanShan 34ecd23d86 fix: DFloatingButton can't display dciicon
Option's `features` is overridden.
2023-04-17 15:45:58 +08:00
deepin-admin-bot 099a440836 chore: Sync by 2dd22560f7
sync by github workflow

Log: none
Influence: none
2023-04-14 08:42:25 +00:00
deepin-admin-bot 4c4f49199b chore: Sync by c5d10d3aeb
sync by github workflow

Log: none
Influence: none
2023-04-14 08:32:43 +00:00
YeShanShan 1f516707cf fix: TextAction doesn't display in center
We calculate text rect including origin text and action text
in AliginVCenter layout, and then paint it.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/408
2023-04-13 15:54:08 +08:00
YeShanShan acaeb90360 fix: Modify ButtonMargin from 10 to 8
According to designer.
  It results display error for dde-control-center's shutcut keys
for `10`, so we change it back.

Issue: https://github.com/linuxdeepin/dtkwidget/pull/373
2023-04-13 15:53:48 +08:00
wangfei b1954f2ec2 Fix: Qt::ToolButtonTextUnderIcon does't work
set a fixed layout mode Qt::ToolButtonTextBesideIcon in codebase

Log: delete fixed layout Qt::ToolButtonTextBesideIcon
Issue: https://github.com/linuxdeepin/dtkwidget/issues/403
2023-04-12 16:49:49 +08:00
YeShanShan dbf50f00c5 fix: ListView's widget switching hide and show frequently
It's apparent when we set a widget for DStandardItem, and
hovering it, it look obvious when changing Widget's cursor.
  We hide widget depending on the different of last and current
frame, When we hover one item, Viewport also to be repaint,
and it's area is an item hovered, this caused we made a
calculation error.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/364
2023-04-11 09:14:35 +08:00
wangfei de8d8f9920 fix: icon size is abnormal when dpi > 1
ButtonIconSize does't multiply ratio in dstyle, which lead to
both pixmap size and rect size disagree.

Log: modify ButtonIconSize's default value
Issue: https://github.com/linuxdeepin/dtkwidget/issues/390
2023-04-07 10:09:02 +08:00
YeShanShan d9e2e16cd6 fix: Build error for Qt 5.15~6.1
PM_LineEditIconSize is introduced in qt6.2 or patch,
the iconSize is always 20 in NormalMode or CompactMode.
Building error is introduced in 'ec55b744d6ae766911d01948c56eac8b18fc5289'

Log:
2023-04-04 13:32:27 +08:00
wangfei 091b978048 fix: SwitchButtonHandle isn't expanded when switchbutton is expanded
set the handle's width to half of switchbutton's width;
set the handle's height to switchbutton's height.

Log: modify the handle's size in switchbutton
Issue: https://github.com/linuxdeepin/dtkwidget/issues/389
2023-04-04 09:54:11 +08:00
ck 9c56701109 chore: update to 5.6.9
Log: update changelog
2023-04-03 10:28:26 +08:00
ssk-wh 92573ab37e feat: 增加覆盖指定界面的水印类DWaterMarkHelper
可通过DWaterMarkHelper的接口设置水印样式,并通过registerWidget添加水印

Log:
Influence: 无
Task: https://pms.uniontech.com/task-view-243575.html
Change-Id: I84cf4d3fb0eb17deb0ab9c2e7b154bf884167a0b
2023-04-03 10:10:47 +08:00
YeShanShan ec55b744d6 fix: Modify SearchEdit's icon
`search_indicator` and `search_action`'s size is 36 * 36, and
they have more than white space, now we update those icon in
dtkgui and qt5integration, and remove unnecessary avoidance.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
Log: It depends dtkgui and qt5integration.
2023-04-03 10:07:25 +08:00
tsic404 3447fb3c8b chore(CI): add OBS workflows
add OBS workflows and modify PKGBUILD support OBS build

log:
2023-03-29 09:40:37 +08:00
bluesky 1e6cb03ba8 fix: update updateTitlebarHeight
修改updateTitlebarHeight函数,取消titlebarHeight等于50的判断,配置文件默认值为-1

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 09:09:19 +00:00
wang fei 2db46873a9 fix: adjust daboutdialog's ui
adjust the ui of daboutdialog

Log: adjust daboutdialog's ui
Issue: https://github.com/linuxdeepin/dtkwidget/issues/361
Influence: daboutdialog
2023-03-28 10:54:49 +08:00
ck 2d9f4dad45 chore: tx config tweak
update group name
tx --version : TX Client, version=1.6.5
tx pull --all --branch master
2023-03-28 10:51:33 +08:00
bluesky 3d9e9f91a8 feat: add the ability to configure the default height of the DTitleBar
新增通过DConfig配置DTitleBar的功能

Issue: https://github.com/linuxdeepin/dtkwidget/issues/367
2023-03-28 02:20:05 +00:00
wang fei d0222e84fc fix: modify listview for compact mode
In compact mode:
modify margins to margin(10, 6, 10, 6)
modify icon size to QSize(24, 24)

Log: modify listview in compact mode
Issue: https://github.com/linuxdeepin/dtkwidget/issues/324
Influence: compact mode
2023-03-24 11:14:54 +08:00
jiawen 3dd052196f doc: update docs
更新dwindowoption docs

Log: update docs

Task: linuxdeepin/dtkwidget/issues/360
2023-03-18 08:54:33 +00:00
YeShanShan accac81a38 fix: Adjust icon size for subclass of lineedit
DLineEditPrivate provides a default size for subclass.
2023-03-17 14:46:48 +08:00
YeShanShan 2712141845 fix: Modify edit widgets to adapt CompactMode
Adjust the interval between widget to 10 for edit.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/325
2023-03-17 14:46:48 +08:00
YeShanShan 03f6b462a8 fix: Adjust SwitchButtonhandler's width in CompactMode
SwitchButtonhandlerWidth is different,
  It's SwitchButtonGroove's width is 40 in CompactMode, and 50 in NormalMode,
It's just by 5 / 3 * PM_SwitchButtonHandleWidth.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-17 14:46:21 +08:00
xzl 4a681b4501 chore: set BUILD_DOCS OFF
Log:
2023-03-16 18:33:28 +08:00
YeShanShan 0e725e4097 fix: Modify PushButton to adapt CompactMode
Use `ButtonMargin` as Arrow's margin with frame, and changes it
from 8 to 10.
  Modify Indicator in CompactMode.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:46:58 +08:00
Ye ShanShan 3887d00daf fix: Modify size style for toolbar
Adjust toolbar iconsize from 24 to 16.
  Add example for toolbutton.

Log: 依赖qt5integration升级
Issue: https://github.com/linuxdeepin/dtkwidget/issues/326
2023-03-16 16:37:01 +08:00
wang fei 44aea4b9ad chore: remove log about sidebar
remove userless log obout sidebar

Log: remove log about sidebar
Influence: none
2023-03-16 05:36:56 +00:00
YeShanShan 7a8cf71ff7 fix: Restore window's size for example
Restore window size
2023-03-16 10:38:51 +08:00
YeShanShan 6afbc61abe fix: Modify style for example's titlebar
Clipping TitleBar control and modifing radius from 16 to DMainWindow's radius.

Issue: https://github.com/linuxdeepin/dtkwidget/issues/323
2023-03-16 10:38:29 +08:00
ck 46ac16a586 fix: DAbstractDialog translucent background
if windowmanager not support blur window effect
do not set `Qt::WA_TranslucentBackground` attribute
setblurEnabled will not work

Issue: https://github.com/linuxdeepin/dtkwidget/issues/358
Log: fix Dialog translucent background
2023-03-15 14:10:11 +08:00
xzl 13e2126112 docs: update readme
add docs link

Log:
2023-03-14 16:14:35 +08:00
wang fei 9eaa40cbfc docs: add dfeaturedisplaydialog image to docs
add image to docs

Log: add dfeaturedisplaydialog image to docs
Influence: docs
2023-03-13 05:27:52 +00:00
wang fei c447104da1 fix: add color-only mode in dprintpreviewdialog
add support for color-only mode to dprintpreviewdialog

Log: add color-only mode in dprintpreviewdialog
Issue: https://github.com/linuxdeepin/dtkwidget/issues/354
Influence: print preview
2023-03-13 05:27:25 +00:00
wang fei 9d03dc792a chore: Remove redundant code about acknowledgement in daboutdialog
1. add obsolete interfaces about acknowledgement
2. remove redundant code about acknowledgement

Log: remove redundant code about acknowledgement in daboutdialog
2023-03-13 09:45:52 +08:00
renbin cbd8237ed9 chore: DPrintPreviewDialog add update setting interface.
Add interface updateDialogSettingInfo, apps can update print dialog
settings at construction time.
Add docs and UT, fix a bug that may cause a memory leak.

Log: DPrintPreviewDialog add update setting interface.
Influence: Add update setting interface.
2023-03-10 09:27:36 +00:00
bluesky 7ccb3ece4a docs: add example for dboxwidget
给dboxwidget添加例子

Log:
2023-03-09 08:58:04 +00:00
bluesky 70d7427547 docs: update docs
更新dboxwidget的文档

Log:
2023-03-09 11:08:28 +08:00
bluesky a9b927c52e docs: add example for dfilechooseredit
给dfilechooseredit添加例子

Log:
2023-03-07 11:41:56 +08:00
bluesky 6f05486d53 docs: update docs for dfilechooseredit
更新dfilechooseredit的文档

Log:
2023-03-05 22:07:31 +08:00
wang fei 1b0a29a457 chore: modify the result code of dprintpreviewdialog to accept or reject
give the explicit result code (accept or reject) when pressing print button
or cancel button of dprintpreviewdialog.

Log: modify the result code of dprintpreviewdialog to accept or reject
Influence: dprintpreviewdialog
Change-Id: Ic6ee36b7fc805ed16762bc203001d1248211fb1e
2023-03-02 05:03:49 +00:00
张坤 b97bff4d6d doc: update docs
更新dlineedit和dspinner的文档

Log: update docs
2023-02-23 01:43:53 +00:00
wangyixue bfb766aed1 chore: update changelog
Release 5.6.8.

Log: update changelog to 5.6.8
2023-02-22 15:14:17 +08:00
Ye ShanShan e8338437eb fix: DStyleOptionButton's incompatible
This is a supplement for 9b6e608005
It's default assignment constructor will call buillt
dtkwidget's  `dciIcon` conftructor, but `dciIcon` object is a
unassignment space, it causes app crashed.
2023-02-22 14:07:43 +08:00
ck cf1eceb9d9 chore: update changelog
update changelog
Log: update changelog

Influence: none
2023-02-17 14:24:19 +08:00
ck 5434c8ddc3 chore: hide custom toolbar in the example
Hide the custom toolbar section in the example

Log: none
2023-02-17 13:18:50 +08:00
wangyixue 5fe7575c52 fix: find_dependency error
Older version CMake find_dependency has a defeat that COMPONENTS
find will fail. Find single dependency separately to avoid this issue.

Log: fix find_dependency error
2023-02-17 11:24:51 +08:00
wang fei bd8c3e1042 chore: rename sidebarVisble to sidebarVisible
obsolete old interface sidebarVisible due to spelling mistake

Log: rename sidebarVisble to sidebarVisible
Influence: sidebar
Change-Id: I7c932f4fc8f43db2271d3562d446b4f663e11ad4
2023-02-17 01:56:39 +00:00
wang fei a937685fd1 fix: background widget is always shown when sidebar is hidden
change background widget's visibility when the signal of expandChanged is emitted

Log: resolve the issue that background widget is always shown when sidebar is hidden
Influence: sidebar
Change-Id: I0a2fc73614aecfb736f52f00cb6ca07459f48fb7
2023-02-16 06:09:52 +00:00
wang fei 339ece42c8 doc: update the doc of dfeaturedisplaydialog
update the interface doc of dfeaturedisplaydialog

Log: update the doc of dfeaturedisplaydialog
Influence: doc
Change-Id: I238fa7c5675bd3d51e3a7112fbe8ed549b3d3d51
2023-02-14 07:28:12 +00:00
xiangzelong 6d1f974dd9 docs: update docs
更新枚举的注释方式,规范化文档

Log:
2023-02-14 13:59:39 +08:00
Ye ShanShan 9b6e608005 fix: DStyleOptionButton's incompatible
It was introduced in e4fdfe5b36 .
  It cause incompatible that DStyleOptionButton add a member
variable `dciIcon`.
  App is crashed if libdtkwidget5 is different between App built
and running loaded, (app builds with 5.5, but loads 5.6 version).
  We shouldn't add member variable that defined in .h and which
breaks abi.
  If this case has exist, we can Use DApplication::builtDtkVersion()
to avoid to accessing the member in some lower version.
  We are lucky, because we have `features` to avoid to accessing
`dciIcon` member in lower version.
  FloatingButton doesn't need add DciIcon to features, because
DDciIcon has execute this code.

Log: none
Influence: App crash in some case
Change-Id: Iff4d596c6f90fa82f0d93ec9db0118d8d0bffa40
2023-02-14 13:32:36 +08:00
Ye ShanShan 3b880ba698 fix: Lossing LIBDTKWIDGTE_LIBRARY macro
It lossed when qmake to cmake, and it causes DApplication::
buildDtkVersion function is error, because it's value is assigned
when builing application.

Log: none
Influence: none
Change-Id: Ie636df17c485f7d43cd5458cf3a2f2627388a07a
2023-02-14 10:51:27 +08:00
chenhongtao cf02413fc9 chore: update changelog
Log: update to 5.6.6
2023-02-13 16:15:48 +08:00
wang fei f92823736a fix: the entrance of feature display is visible when no item is added
when no feature item is added, hide the entrance in about daboutdialog

Log: fix the issue about feature dialog has no content
Influence: feature display
Change-Id: Id13ce0b84ede3d084f219cfbd35e1d2a94e3b4bc
2023-02-10 17:11:21 +08:00
guoyao 825fea2470 chore: remove useless dependencies
as title

Log:
2023-02-10 13:31:02 +08:00
wang fei 92a7561e0f fix: 二次调起特性对话框崩溃
原因:特性对话框的父窗口是关于对话框时,
      随着关于对话框销毁,再次访问特性对话框对象就会崩溃。
修改:1.特性对话框不设置父窗口,随着应用退出销毁。
      2.特性对话框展示时,调整位置。

Log: 修复二次调起特性对话框崩溃问题
Influence: 特性对话框
Change-Id: I56671745ae6fb087133c34fcd50f54d4b9789e81
2023-02-07 14:34:45 +00:00
ice 7dae3b34b3 fix: correct file name
examples/collections/org.deepin.dtkwiget.feature-display.json 文件名拼写错误

Log:
2023-02-07 12:24:00 +00:00
bluesky 9e4b4a89ba doc: update docs for danchors
更新danchors的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-02-03 07:17:36 +00:00
ck 818a7f5541 chore: update changelog
update changelog
Log: update changelog
Influence: none

Change-Id: Ic7059641a79d7e6970c556e8882d3293b733ea62
2023-02-02 16:02:00 +08:00
xzl d2cb0fb1f8 docs: update the document of DFloatingButton
更新文档

Log: docs: update the document of DFloatingButton
2023-01-19 14:01:47 +08:00
xzl e734edc54b docs: update docs
更新文档

log: update docs
2023-01-18 17:21:31 +08:00
wang fei a3967280f8 fix: 增加titlebarSettingsImpl空指针判断
新建dtitlebar对象,未调用settings(),titlebarSettingsImpl是空的

Log: 增加titlebarSettingsImpl空指针判断
Influence: titlebar
Change-Id: I6f330f59556b86b34e94c8cb8997556c7bb59e8e
2023-01-18 05:21:38 +00:00
wangyixue d6b55d4121 refactor(cmake): improve cmake and add new feature
* remove redundant "dtkwidget" in include directory;
 * improve cmake, modify some variable names, use file() to collect
 source files for scalability;
 * add full target_link_libraries support.

Log: add full target_link_libraries support
Influence: all projects who include headers directly by path
2023-01-18 11:22:46 +08:00
ck 0386852043 feat: 自定义工具栏
1. 显示自定义工具栏;
2. 工具栏上调整控件位置;
3. 工具栏上添加和移除控件;
4. 恢复默认工具栏控件;
5. 工具栏生效。

Log: 添加自定义工具栏功能
Influence: none

Change-Id: Icb1d12d4c8881ace309e9b5cd5508bbca965c5fc
2023-01-17 16:47:22 +08:00
ck 116aab61ea chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I5c21fd35617b305dcaf508895175e01ef5621f3c
2023-01-16 10:14:50 +08:00
xzl ddea78cc18 chore: replace doxygen theme
替换doxygen主题安装方式

Log:
2023-01-14 23:32:54 -06:00
wang fei a9fc8277b6 feat: 特性介绍框文案翻译
特性介绍框需求相关文案翻译

Log: 增加特性介绍需求相关文案翻译
Task: https://pms.uniontech.com/task-view-227391.html
Influence: 特性介绍文案
Change-Id: Icd3bfeeea5ce60034bc59cf947718b24099f870a
2023-01-13 19:08:11 +08:00
wang fei 217cfc5514 feat: 增加特性展示功能
1. 增加特性对话框类接口;
2. dapplication增加特性对话框相关接口;
3. 重新布局关于对话框;

Log: 新增特性介绍功能
Task: https://pms.uniontech.com/task-view-227391.html
Influence: 特性介绍,关于介绍
Change-Id: Ie6244bd313bb385846f4c5c066108b65f5afcb4f
2023-01-13 02:01:37 +00:00
wangyixue cb689dc5ec fix: fix wrong position of first ComboBox popup
ComboBox popup at the wrong position the first time after application
launched. Fix this behavior.

Log: fix wrong position of ComboBox popup
Bug: https://pms.uniontech.com/bug-view-177525.html
2023-01-13 10:00:02 +08:00
Ye ShanShan 57b546fdd4 feat: Support multi split screen for dtitlebar
Adjust ui style.
  Move implement from dtitlebar.cpp to splitscreen.cpp.

Log: 标题栏支持多分屏
Task: https://pms.uniontech.com/task-view-180357.html
Influence: 依赖平台插件升级,标题栏最大化按钮悬浮时分屏功能
Change-Id: I3911fd178f5ceae41a0e3f5227e4abae153583e7
2023-01-11 16:07:20 +08:00
bluesky 3352244fe6 doc: update docs for ddialog
更新ddialog的文档

Log: update docs

Task: deepin-community/coding-quarter#26
2023-01-11 05:04:00 +00:00
Ye ShanShan fe89639b37 feat: Add compact support for some widgets
Modify dstyle's value when switch SizeMode;
  Add compact support for dialog, listview and other base widget.

Log: 支持基本控件的紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I8f83d1fddd723a51bd01561c3723a9c352e9d852
2023-01-11 12:19:42 +08:00
Ye ShanShan d9a63823d1 feat: Add TightMode support for TitleBar
Send StyleChange event for all widget when
received sizemode changed.
  Add SizeModeHelper for common function.
  Modify radius, Shadow of MainWindow.

Log: 支持紧凑模式切换
Task: https://pms.uniontech.com/task-view-227385.html
Influence: none
Change-Id: I3cb83d22db1b3b058ed34443263d8321af09281d
2023-01-10 11:12:17 +08:00
wangyixue 097b17d599 feat: add ToolTip support
Add ToolTip support for DListView and DLabel

Task: https://pms.uniontech.com/task-view-227383.html
Log: add ToolTip support
2023-01-05 13:13:04 +08:00
wangyixue 407bc55028 fix: add Dtk::Gui link for dtkuiplugin
Fix compile error for dtkuiplugin, add Dtk::Gui link.

Log: add Dtk::Gui link for dtkuiplugin
2023-01-05 13:13:04 +08:00
wangyixue 5648360acc fix: correct default constructor for DStyleHelper
Modify default value for m_style of DStyleHelper from nullptr to
QApplication::style in case we have a stack overflow.

Log: correct default constructor for DStyleHelper
2023-01-03 16:39:10 +08:00
deepin-admin-bot 991136161f chore: Sync by d45f73b2d0
sync by github workflow

Log: none
Influence: none
2022-12-28 07:54:39 +00:00
QinBenxue 40b6252706 docs: update groups and create new initial docs
新建文档分组和新建初始文件

Log:
2022-12-27 02:11:29 -06:00
QinBenxue bad6363a12 doc: update dlistview doc
更新 dlistview 示例和文档,修改cpp注释

Log:
2022-12-27 06:55:01 +00:00
QinBenxue 3adae89d29 doc: update doc for dsettingsdialog
更新dsettingsdialog文档示例

Log:
2022-12-27 05:03:31 +00:00
QinBenxue 356c8d4465 docs: update examples、 docs and images
更新dsettingsdialog示例和文档、图像

Log:
2022-12-26 02:26:57 +00:00
QinBenxue 288d3042dd docs: update example docs and images
更新 DBackgroundGroup 示例和示例图像

Log:
2022-12-26 01:22:22 +00:00
QinBenxue 849f5459fa docs: update docs and images
更新dslider的示例与文档标准化

Log:
2022-12-22 09:19:56 +00:00
xzl 54d04153e4 doc: add mainpage
添加主页

Log:
2022-12-22 16:33:01 +08:00
QinBenxue 4e9167f7af docs: update docs for widget
更新注释

Log:
2022-12-22 03:41:04 +00:00
QinBenxue f3efae1116 docs: update docs for widget
修改文档中的链接错误

Log:
2022-12-22 03:29:00 +00:00
QinBenxue 9545ac7144 docs: update docs and images
更新示例文档dtitlebar.zh_CN.dox, 源码注释dtitlebar.cpp, 新增示例图像

Log:
2022-12-21 09:10:17 +00:00
chenke fca5fea682 fix: hotSpot pos not scaled
map position from Native will scale with deviceRatio

Bug: https://pms.uniontech.com/bug-view-70386.html
Log: none
Influence: drag tabbar with high dpi
2022-12-21 13:35:55 +08:00
ck 9c8290899a feat: add linglong build support
add linglong.yaml to support linglong build
see https://linglong.dev/guide/ll-builder/manifests.html

Log: linglong
Influence: linglong
Change-Id: I0cffb32dcf483105f118832cb88133a499e3a2b5
2022-12-20 15:23:43 +08:00
QinBenxue 53821e6cf3 docs: update docs and images
更新示例文档和相关示例图

Log:
2022-12-20 07:06:54 +00:00
ck aff7e3613e chore: sound effect dbus service and path
<org_name>.<project_name>.<control_version>
org_name        : org.deepin
project_name    : dde
control_version : SoundEffect1

Log: soundEffect1
Influence: play or preview system effect sound
Change-Id: I930679464261fd891cbeb2f665ab996e183a5750
2022-12-20 11:39:36 +08:00
QinBenxue 585d4493b7 docs: update doc and images
更新示例文档和相关示例图像

Log:
2022-12-19 08:42:51 +00:00
QinBenxue 3957d70717 docs: update docs and images
更新示例文档和相关示意图

Log:
2022-12-14 19:29:35 +08:00
student-ice 4813eee0f4 docs: add docs for widgets
给dbackgroundgroup添加文档注释 #267

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-14 16:14:58 +08:00
QinBenxue 4406e3483c docs: update docs and images
更新示例文档和相关示意图

Log:
2022-12-13 16:38:44 +08:00
QinBenxue 0601207ed1 docs: update docs
更新文档和示例

Log:
2022-12-13 16:38:21 +08:00
ck 2cc522ffb8 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I09b426137a57ebb94a23f31d8a1b67973cf42c7d
2022-12-12 17:50:18 +08:00
renbin e850bebb4a feat: Add DImageViewer example.
Add DimageViewer example, improve crop image function.
Update dox file comment, hide internal implementation.

Log: Add DImageViewer example.
2022-12-12 06:49:59 +00:00
ck fd404f1ac5 chore: init hasManual once on showEvent
DGuiApplicationHelper::hasUserManual() will asyncCall and cached result

Log: none
Influence: manual help action
Change-Id: I7a82101bba862cbf52a033cfd2e4f7955c6238fe
2022-12-12 14:19:17 +08:00
student-ice a9ea09f438 docs: add docs for widgets
给darrowrectangle添加文档注释 #259

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-09 13:25:22 +00:00
xzl 21e1dbbb9e docs: remove daboutdialog.md update dox
remove daboutdialog.md update dox

Log:
2022-12-09 09:53:27 +08:00
xzl 6493c89d4f docs: update example
更新示例代码和图片

Log:
2022-12-08 17:25:03 +08:00
renbin 30225aa55c feat: Add DImageViewer crop image function.
Add DImageViewer crop image function, DGraphicsCropItem class.
Add crop image unit test cases, update dox file comments.

Log: Add DImageViewer crop image function.
2022-12-08 14:08:41 +08:00
QinBenxue aa98fbffed docs: update docs
更新文档

Log:
2022-12-08 03:39:06 +00:00
QinBenxue 9179e0f40b docs: update docs
更新文档

Log:
2022-12-07 16:50:27 +08:00
QinBenxue c41b2d78a4 docs: update docs
更新文档

Log:
2022-12-07 16:50:27 +08:00
QinBenxue 693f55bd44 docs: update docs
Log: 更新文档
2022-12-07 15:06:15 +08:00
wangyixue b28cb777de fix: crumbs get out of border in DCrumbEdit
Some crumbs will get out of panel frame border of DCrumbEdit when it's
too long or there are too many crumbs showing in a vertical line (often
happens when scrolling).
Draw border first and then draw viewport, set viewport margins.

Bug: https://pms.uniontech.com/bug-view-174437.html
Log: fix crumbs out of border
Influence: DCrumbEdit
2022-12-07 10:34:39 +08:00
wangyixue d27630f171 chore: fix linking error
Fix DtkWidget_LIBRARIES to find_library installed.

Log: fix linking error
2022-12-07 10:02:15 +08:00
wang fei e60b44d898 feat: 侧边栏功能
按钮控制侧边栏展开和收缩

Log: 添加侧边栏功能
Influence: 侧边栏和标题栏
Change-Id: I39790200db1606a6513a99a47ecaab17c2f171ee
2022-12-07 09:59:56 +08:00
student-ice 95cd82ab6c docs: add docs for widgets
给darrowlineexpand添加文档注释 #242

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-06 10:58:05 +08:00
student-ice b7da54204f docs: add docs for widgets
给darrowlinedrawer添加文档注释#240

Log: add docs

Task: deepin-community/coding-quarter#31
2022-12-05 05:35:13 -06:00
student-ice 650edaaa94 docs: add docs for widgets
给dlabel添加文档注释#237

Log: add docs

Task: deepin-community/coding-quarter#31
2022-12-02 01:16:38 -06:00
renbin b96acedda2 feat: Implements DImageViewer rotate, scale and gesture.
Implements the DImageViewer interface, including rotate, scale, gesture.
Add unit test cases and interface comment.

Log: Implements DImageViewer rotate, scale and gesture.
2022-12-02 05:43:40 +00:00
renbin a880020d62 feat: Implements DImageViewer set image and clear.
Implements the DImageViewer interface, including set image and clear.
And implements the DGraphicsitem classes, add unit test cases, update comment.

Log: Implements DImageViewer set image and clear.
2022-12-02 05:43:40 +00:00
ck f316b7250b fix: revert and fix option button icon invisible
This reverts commit 907f56b554.
icons.qrc can not delete : undefined symbol: _Z20qInitResources_iconsv
mv dci file from icons.qrc to dtk-icon-theme.qrc

Log: undefined symbol
Bug: https://pms.uniontech.com/bug-view-174963.html
Influence: symbol
2022-12-01 18:26:34 +08:00
student-ice e1f01e538b docs: add docs for widgets
给darrowbutton添加文档注释 #232

Log: add docs

Task: https://github.com/deepin-community/coding-quarter/issues/31
2022-12-01 03:39:50 -06:00
ck 907f56b554 fix: option button icon invisible
同名 qrc 资源文件被覆盖导致无法找到图标
注意:dtk 提供的 qrc 文件需要加上 dtk 前缀

Log: 修复图标无法显示的问题
Influence: 部分应用图标无法显示的问题
Bug: https://pms.uniontech.com/bug-view-174963.html
2022-12-01 17:03:03 +08:00
xzl 319a0e2218 chore: add ISSUE_TEMPLATE
添加issue模板

Log:
2022-11-30 23:39:38 -06:00
xzl 67a3738ce1 fix: fix document format
修复文档格式

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-12-01 10:58:39 +08:00
xzl b53e2e3c51 docs: update dalertcontrol document
添加dalertcontrol文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-30 03:44:38 -06:00
xzl 4df9612c9f docs: update dabstractdialog docs
更新dabstractdialog文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-30 00:45:10 -06:00
ck a0483c9fb3 chore: update changelog
5.6.2.2

Log: none
Influence: none
2022-11-30 12:13:19 +08:00
LinXuan 3b7903f11c docs: update daboutdialog document
更新daboutdialog文档

Log:
Task: https://pms.uniontech.com/task-view-216407.html
2022-11-29 17:05:53 +08:00
LinXuan f172bd324c docs: add doxygen theme
add doxygen theme

Log:
2022-11-28 16:39:42 +08:00
deepin-admin-bot 9bab976eed chore: Sync by 3de30af6dc
sync by github workflow

Log: none
Influence: none
2022-11-24 08:56:37 +00:00
Ye ShanShan 0f0530628b fix: Remove ASan check for debug
Removing asan check

Log: 移除库的asan检测
Influence: none
Change-Id: If37bca2925c43ff87701fe58f1136dab66cce2a8
2022-11-24 13:53:30 +08:00
Ye ShanShan 3e76148cd5 fix: DStyleItemDelegate filter ListView's event
QStyledItemDelagate::eventFilter can filter the object's Tab
key event, here We only need a Paint Event to post
UpdateWidgetVisibleEvent, and updateWidgetVisible, so we remove
the eventFilter of AbstractItemView

Log: DStyleItemDelegate拦截了QListView的部分事件,导致listview的Tab
事件和焦点异常
Bug: https://pms.uniontech.com/bug-view-164547.html
Influence: 使用了DListView的应用,其listview的tab键,焦点事件可能
异常,

Change-Id: I1d4d8c836b5c6b27e021a5d632b969daf3f5b348
2022-11-23 09:32:04 +08:00
renbin 347724293d feat: Change DImageViewer widget and image handler.
DImageViewer just show images, the image file handler will be moved to DtkGui.

Log: Change DImageViewer widget and image handler.
2022-11-22 09:45:15 +00:00
renbin 8cc5dee635 docs: Remove dox file licence comment.
Remove dox file license comment.

Log: Remove dox file license comment.
2022-11-22 09:45:15 +00:00
renbin 9dde038f09 feat: Add DImageViewer interface and interface documents.
Add DImageViewer interface and interface documents.

Log: Add DImageViewer interface and interface documents.
2022-11-22 09:45:15 +00:00
wang fei db8a17e3a9 fix: 打印文件设置纸张大小不生效
原因:匹配的是key字段,实际combobox内容是name字段
修改: 将匹配的key字段修改成name字段

Log: 修复打印文件设置纸张大小不生效
Bug: https://pms.uniontech.com/bug-view-171767.html
Influence: 打印纸张大小
Change-Id: I557072ca5592059031a71c4bbb4bb8e1ecabe154
2022-11-21 15:05:02 +08:00
deepin-admin-bot b54921846c chore: Sync by 6aa579e31c
sync by github workflow

Log: none
Influence: none
2022-11-18 02:14:59 +00:00
deepin-admin-bot b2c0a594cb chore: Sync by 50ad27fb2a
sync by github workflow

Log: none
Influence: none
2022-11-16 03:44:59 +00:00
Ye ShanShan e433e2204a fix: DTitleBar exists incompatible modify
old dtkwidget assume menu is not empty, but now it's not, and
we revert this code.
  Moving addDefaultMenuItems from `showMenu` to `showEvent`,
because some applications get menuItems and assert they are not
empty before  `showMenu`.
  delay to check UserManual avoid to request dbus in `showEvent`.

Log: 升级后DTitleBar提供的menu可能没有默认菜单项,导致部分应用异常,改回
原来版本的逻辑
Bug: https://pms.uniontech.com/bug-view-170639.html
Influence: 升级dtkwidget导致包管理器使用安装功能时崩溃

Change-Id: Ifae616c8ba5af3a2e28b1dbb00009e0a2872a989
2022-11-14 10:55:12 +08:00
deepin-admin-bot c411b7a040 chore: Sync by d15debb9d3
sync by github workflow

Log: none
Influence: none
2022-11-11 06:54:50 +00:00
wang fei 29c92d0818 fix: 维语环境下打印设置界面标题没有对整齐
1.修改label的水平宽度的策略为QSizePolicy::Maximum
2.布局中间加个弹簧

Log: 修复维语环境下打印设置界面标题没有对整齐问题
Bug: https://pms.uniontech.com/bug-view-163971.html
Influence: 打印设置-维语
Change-Id: I48bbe47544112267a1e8f8284db508af05f5e48f
2022-11-03 17:12:22 +08:00
Ye ShanShan 04e770f502 feat: Using loadTranslator of dtkgui
moving implement of loadTranslator to dtkgui.

Log: 加载翻译功能移至dtkgui,以便供dtkdeclarative使用
Bug: https://pms.uniontech.com/bug-view-157977.html
Influence: qml相关应用没有加载翻译
Change-Id: Ic31ea60854c0685add5617f795aea061e8a20e3b
2022-11-03 13:49:07 +08:00
wang fei f7f933f247 fix: 搜索框文字没有居中
搜索框文字偏左12px

Log: 修复搜索框文字没有居中问题
Bug: https://pms.uniontech.com/bug-view-167567.html
Influence: 搜索框
Change-Id: I8ca4b6eb019da4fbe93ddcb7a612242c6403cd77
2022-11-03 10:10:42 +08:00
wingsummer 0a4903ea26 doc: README
add projects from wing-summer

Log: add more projects to readme
2022-10-24 15:15:53 +08:00
chenhongtao 73f55c5e08 doc: README
add projects who use dtkwidget

Log: README
2022-10-21 10:01:42 +00:00
wang fei c20d9b3ef8 fix: 打印预览页面打开“添加水印”开关后再关闭,水印开关消失
原因:根据对象名字关闭控件,开关和下面功能控件一个对象名。
解决:增加一个对象名字控制下面的功能控件。

Log: 修复打印预览页面打开“添加水印”开关后再关闭,水印开关消失问题
Bug: https://pms.uniontech.com/bug-view-163737.html
Influence: 水印
Change-Id: I5b0f10347b668987cadf7b2542fbea8ea8b8b437
2022-10-20 09:38:11 +08:00
deepin-admin-bot b68c102bb4 chore: Sync by 6fbf8e00b9
sync by github workflow

Log: none
Influence: none
2022-10-14 05:25:11 +00:00
chenhongtao bb7e5fdc05 fix: fix: qcommandlinkbutton缩放后图标模糊
QCommandLinkButton在qt源码中进行了一次pixmap变换,这导致前端拿不到位图
这里将QCommandLinkButton 的icon直接返回了QIcon theme,避免了pixmap的变换

Log: qcommandlinkbutton 的高分屏模糊bug
Influence: qcommandlinkbutton
2022-10-14 10:51:40 +08:00
wang fei 01aae7443a fix: 打印预览页面范围输入框调整
当页面范围是All或Current Page, 隐藏输入框;
当页面范围是Select Pages, 显示输入框。

Log: 调整打印预览页面范围输入框
Bug:https://pms.uniontech.com/bug-view-158801.html
Influence: 打印预览-页面范围输入框
Change-Id: Ic33c920a7f279ddeaf3d6703a42918892b706f12

Change-Id: I2c69967cc34c29c6e0cd42e9c10e61380e9516a8
2022-10-10 03:36:04 +00:00
wang fei 69d57db724 fix: 打印预览水印项的圆角和其他项的不一致
原因:DBackgroundGroup的layout未设置margin为0,
      DBackgroundGroup的默认itemMargin为9,
      影响其圆角大小。
修改:设置DBackgroundGroup的layout的margin为0,在其子widget里设置margin。

Log: 修复打印预览水印项的圆角和其他项的不一致问题
Bug: https://pms.uniontech.com/bug-view-158803.html
Influence: 打印预览水印项UI
Change-Id: I88497151148d1f2c9e19e3192661275528bb5be0
2022-10-10 03:26:36 +00:00
Ye ShanShan 1d31804194 fix: Action's Widget shouldn't show in some time
DStanardAction's widget is not be repaint when the item moved
to unvisual area, it causes widget is show in origin position.
  We manually hide those widget which in unvisual area after
itemdelegate painting.
  Using qApp::postEvent to execute function after the PaintEvent.
  Add QPointer to watch the valid of widget

Log: DStandardAction设置了widget,在item移动到不显示的区域后,没有被重
绘,导致widget仍然显示,并且位置显示错误,解决action中widget被删除程序崩
溃的bug
Influence: 使用了DListView的应用,在item位置被移动后,原来位置仍然显示
之前的控件

Change-Id: Iedac60be4039ea451da52fd04defc1c446a487f7
2022-10-10 09:51:43 +08:00
wang fei 0f2d153fc7 chore: wayland下分屏窗口在暗主题上异常
setBackgroundColor里面增加个isFloatWindow的判断

Log: 修复wayland下分屏窗口在暗主题上异常问题
Influence: 分屏窗口UI
Change-Id: Icc2819bc2d3033b6233ce523336daa236683e003
2022-10-10 09:51:43 +08:00
Ye ShanShan e9375403c8 fix: FloatingButton Antialiasing doesn't obvious
Add Anitialiasing flag when drawing FloatingButton's panel.
  Change Opacity to 0.3.

Log: 在绘制FloatingButton面板时添加抗锯齿属性
Bug: https://pms.uniontech.com/bug-view-153687.html
Influence: 所有使用了FloatingButton和CE_FloatingWidget的应用,
都会减少阴影部分的锯齿

Change-Id: Ia2bcd272056ff1dc3b03c40f03d959aa056ab2d6
2022-10-10 09:51:43 +08:00
Ye ShanShan 584fffef2d fix: UT error
we remove DStandardItem::clone due to incompatible in V23,
item->clone() call QStandardItem's function actually, so it
isn't a DStandardItem, but the clone's intention need to be test.
  it doesn't need to cherry-pick to master.

Log: 单元测试失败
Bug: https://pms.uniontech.com/bug-view-156901.html
Influence: 无
Change-Id: Ibac6bc721104bb0bc2f16c3a63a12fbc20e88f22
2022-10-10 09:51:43 +08:00
ck dab8c0a590 fix: Edit focus blinks on right click
when calling the dbus in BlockWithGui mode , the event will
be passed to the edit, causing the edit to gain focus, and
the edit will lose focus when the menu pops up.
so Let the bullets fly

Bug: https://pms.uniontech.com/bug-view-154857.html
Log:
Inlfluence: DSearchEdit-ContextMenu-Focus
Change-Id: Ic2ee354e78dd2f2382da3d8c7877926f465d1946
2022-10-10 09:51:43 +08:00
ck 97889a8300 fix: DArrowRectangle FloatWidget mode UI incorrect
set GraphicsGlowEffect in FloatWidget mode on X11

Log:
Influence: x11 DArrowRectangle::FloatWidget ui
Change-Id: I3d9dba67b3f9c23beaf47b29d15a19999200cfbc
2022-10-10 09:51:43 +08:00
ck 9d4f8a4a17 fix: setBackgroundColor not work on wayland
wayland 下没有创建 handle,导致没有创建 blureffectwidget
需要有这个才可以让模糊的窗口在黑色背景下看清黑色的文字
增加判断只在 dwayalnd 下加上设置模糊的路径,不影响xcb逻辑

Log: 修复 wayland下 darrowrectangle 文字看不清的问题
Bug: https://pms.uniontech.com/bug-view-148535.html
Influence: wayland networkdialog
Change-Id: I9ca12630e30cca02503efa3f177f3626da749a6a
2022-10-10 09:51:43 +08:00
Felix Yan dfc16b476c chore: correct a typo in CMakeLists.txt
Correct a typo in CMakeLists.txt

Log: Correct a typo in CMakeLists.txt
2022-10-08 09:33:28 +08:00
rewine deaa98cc55 feat: Improve version information
1. 使用 CMakePackageConfigHelpers 生成 Config.cmake
2. 提供 DtkWidgetConfigVersion.cmake 供调用者检查版本
3. 使用 GNUInstallDir 提供的 FULL 版本变量配置 pkg-config 路径
4. 补充 pkg-config -L 参数
5. 增加引入 dtkcore 版本检查
2022-09-30 10:21:05 +08:00
chenhongtao 624ecf0e96 feat: 将shadow的变化绑定在信号上而不使用qicontheme
不使用qicontheme, 让阴影在其他主题上显示正常
使用信号槽一定程度减少调用的次数

Log: 使用信号槽而不是频繁qpaint,并不使用icontheme
2022-09-27 05:51:22 +00:00
chenhongtao 1b42cb9c7d doc(license): update license
README and license

Log: license
2022-09-26 01:29:21 +00:00
ck 50e9270907 chore: dtkguiplugin and readme
update readme and CMakeList.txt

Log: dtkguiplugin
Influence: none
Change-Id: Ib5aa55ef9464415ee2df6acabc4867431cb9bf95
2022-09-21 10:10:57 +08:00
ck 6c49fab783 chore: dtkwidget dedigner plugin tweaks
dtkwidget dedigner plugin tweaks and update readme

Log: plugin tweaks
Influence: none
2022-09-21 09:45:01 +08:00
ck 8e8eb018d5 chore: 使用 *.ts 添加翻译文件
原来使用 qmake 时,生成的 qm 文件在 src/translations 下
切换分支后,使用 src/translations/* 会重复生成相同的 qm 文件,
需要主动删除一下qm文件才可以(如 git clean -dfx),否则报错
CMake Error at Qt5LinguistToolsMacros.cmake:105 (add_custom_command):
Attempt to add a custom rule to output which already has a custom rule.

Log: none
Influence: cmake build
Change-Id: I089403b4f0406baa4f97e1270f5d092256f97fb2
2022-09-19 14:40:25 +08:00
Chen Bin 19dafe2da0 feat: Modify the menu icon
Change the icon of menu button to the Dci icon.

Log: Change icon
Influence: Menu button
Change-Id: Ie31f8e3e6c7141e340e4613e2f15b54b8faa83ea
2022-09-19 11:30:46 +08:00
wang fei bed17f1066 fix: 深色模式下,预览自适应图标缺少hover press
1. 图标由icon类型修改为action类型

Log: 修改深色模式下,预览自适应图标缺少hover,press状态问题
Bug: https://pms.uniontech.com/bug-view-158807.html
Influence: 预览自适应图标按钮UI
Change-Id: I951879b7a471715eb4bda6c0bfd483024a63af95
2022-09-16 15:50:24 +08:00
wang fei 53b3f02b23 fix: 打印预览右侧设置项多了背景底
1. 设置滚动区的背景色为base。
2. 图标是icon类型不会跟随mode变化,修改成action。
3. 外层backgroundGroup并未改动调色板,不用再去适应主题变化。

Log: 修复打印预览右侧设置项背景色问题
Bug: https://pms.uniontech.com/bug-view-158795.html
Influence: 打印预览背景色
Change-Id: If0bc237ff5641f49ec2855ed84b13e6bc5b88d41
2022-09-16 15:50:24 +08:00
wang fei fbecdac1a0 fix: error状态一开始就默认出现
初始化时setAlert为false

Log: 修复error状态一开始就默认出现问题
Bug: https://pms.uniontech.com/bug-view-158801.html
Influence: 打印预览页面范围输入状态
Change-Id: I47e5e5c0f8a8b082e973eb671dcab8208ca2e677
2022-09-16 15:49:57 +08:00
wang fei 48df5c340a fix: 打印预览页面设置间距不对
设置打印预览页边距UI的间距为10px

Log: 修复页面设置间距不对的问题
Bug: https://pms.uniontech.com/bug-view-158805.html
Influence: 打印预览页边距UI
Change-Id: I3553112e875a924cd1b322384c04a722ec48727b
2022-09-16 15:49:26 +08:00
wang fei 5914c900c9 fix: 自定义水印文字问题
非自定义时,隐藏输入框;
自定义时,显示输入框。

Log: 修复自定义水印文字问题
Bug: https://pms.uniontech.com/bug-view-158803.html
Influence: 自定义水印输入框
Change-Id: Ibff01f401db9c93e773fe8f16755554a1256f547
2022-09-16 15:49:00 +08:00
rewine 3b4fc0b888 fix: remove useless variable
log: 删除无用的 DtkWidget_INCLUDE_DIRS
2022-09-16 14:25:02 +08:00
rewine 1b3c54402e chore(mkspecs): define mkspecs self
Log: mkspecs path
2022-09-06 15:20:25 +08:00
chenhongtao 57f2ad7713 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 14:13:47 +08:00
chenhongtao 3102d4e6a6 fix: wrong option() usage in CMakeLists.txt
修复错误的 option() 用法

Log: wrong option
2022-09-02 06:47:35 +00:00
chenhongtao 96049a6d49 fix(translate): path of translate
Wrong path in translation , fixed

Log: fix Wrong path of translations
2022-09-02 14:09:10 +08:00
chenhongtao 849dad5b1c chore(optionname): change optionname to better one
change the option name

now can use cmake command "ctest" to run tests

Log: change option name and etc
2022-09-02 06:06:00 +00:00
deepin-admin-bot fefabd05e1 "chore: Sync by " 2022-08-30 09:08:22 +00:00
chenhongtao 656e293fad feat(doc): add package libdtkwidget-doc
build the package for doc

Log: build the package of doc for dtkwidget
2022-08-29 05:26:42 +00:00
Ye ShanShan 5616ffd249 fix: DListView's size calculates error
miss to cast for QList<DViewItemAction*>,
only cast DViewItemActionList, it causes sizeHint calculates error.

Log: DListView的sizeHint计算错误导致各项堆叠
Bug: 
Influence: 用到了DListView,并且使用到了DViewItemAction的所有应用
Change-Id: I13506bcfed970c9733a50130c92e421e71457805
2022-08-29 09:36:10 +08:00
Ye ShanShan 94d58125ff chore: Add zh_CN readme
add README.zh_CN.md

Log: 添加中文说明文档
Influence: none
Change-Id: If8acaa008a96ea22eb924b115dfc874c81a97818
2022-08-25 13:28:47 +08:00
chenhongtao f80f48076e feat(cmake): to cmake
from qmake to cmake

Log: tocmake
2022-08-19 17:18:33 +08:00
ck c9f7ac46b7 fix(build): invalid digit "8" in octal constant
when BUILD_VERSION start with 0 was recognized as octal

Log:
Influence: debian build
Change-Id: Iad52d8f5622bf9035132242c0fb578e6e8d16992
2022-08-18 13:13:05 +08:00
deepin-bot[bot] 920861caf9
chore: Sync by 8fb17418f4 (#157)
chore: Sync by 8fb17418f4
2022-08-16 09:20:00 +00:00
deepin-bot[bot] c44650742c
chore: Sync by ab82576125 (#156)
chore: Sync by ab82576125
2022-08-15 23:55:31 +00:00
deepin-bot[bot] 11911422e6
chore: Sync by 8945746226 (#154)
chore: Sync by 8945746226
2022-08-15 02:34:29 +00:00
deepin-bot[bot] a54cb524d5
chore: Sync by 64c2bdac28 (#153)
chore: Sync by 64c2bdac28
2022-08-15 02:16:15 +00:00
deepin-bot[bot] e7317344dc
chore: Sync by 1086c873ff (#151)
chore: Sync by 1086c873ff
2022-08-12 01:47:12 +00:00
deepin-bot[bot] 088eb5f929
chore: Sync by 8cd7951872 (#150)
chore: Sync by 8cd7951872
2022-08-11 08:34:38 +00:00
Chen Bin 5b8db6b928 feat: 添加水印的行距和间距的控制
1. 在插件属性类中增加相关变量控制行距和间距。
2. 打印预览内部目前不提供相关接口,仅提供属性支持。
3. 行距和间距都针对水印的当前大小进行比例计算。
4. 默认情况下,水印间距是一个固定值。

Log:
Influence: None
Task: https://pms.uniontech.com/story-view-22993.html
Change-Id: I14cb4ffd635e33e441d38a46bf324177af22d42a
2022-08-11 15:52:22 +08:00
Chen Bin f6826d4941 fix: 插件控制水印大小和角度无效
水印大小错误使用角度的设置,角度未触发 editFinished 信号。

Log:
Influence: None
Change-Id: I73acf06ce93764ae86aeb0c9707580a3c11402e4
2022-08-11 15:52:22 +08:00
Chen Bin 332c8d32fc fix: 增加宏定义以控制打印预览插件相关信息
增加 DTK_PRINTSUPPORT_PLUGIN 宏,应用可通过增加宏判断
来控制是否调用打印预览插件相关接口。

Log:
Influence: None
Change-Id: I21d4c06faf99717cada8543b12e4ed643b76722b
2022-08-11 15:52:22 +08:00
Chen Bin 7f2ce6c8af fix: 未提供当前水印类型的接口
重新调整设置信息类,能够在外部控制水印类型。
并修复水印页面设置状态无法更新的问题

Log:
Influence: 打印预览功能和兼容性
Change-Id: Id0ff9317e70ba0b2781642e96821894c6bbd9ef4
2022-08-11 15:52:22 +08:00
Chen Bin d0064bd09b feat(打印预览): 增加插件控制打印属性
1. 新增插件类控制打印属性的状态(显示、禁用和隐藏)以及默认属性
2. 修改打印对话框的源代码适配插件模式
3. 新增测试用例,测试上述场景。

Log:
Change-Id: I7af2de238070263be92d1b84f0f4ac136c1b1625
2022-08-11 15:52:22 +08:00
Chen Bin 8073631e3d feat: Enable DListView and DViewItemAction to support DciIcon
1. Add an interface to set the DCI icon in DListView.
2. Add drawing support for DCI icon in DStyledItemtDelegate.

Log:
Influence: None
Change-Id: If4ed076e8c2a819b28e5d046f885a22b6c0b8272
2022-08-11 05:06:38 +00:00
xzl 8d8912b04f chore: adapt REUSE license header
修改为开源合规

Log: 修改项目合规
2022-08-11 05:02:57 +00:00
ck a393c8525e fix: 调用语音助手服务不响应导致右键菜单卡死
语音助手在某些情况下会不响应,这是直接构造 QDBusInterface
会卡死,加一个 Ping 的操作,如果 300ms 内未响应则不添加
相关菜单

Bug: https://pms.uniontech.com/bug-view-151279.html
Log:
Influence: edit context menu
Change-Id: Id8e3f6f53a011b70fa12d95ff1cc3a6fec94021b
2022-08-05 10:14:14 +08:00
wang fei 22baf6384d chore: darrowrectangle更新模糊背景调整
1.传入的路径更改为outPath.united(path);
2.使用handle方式调用模糊接口;

Log:
Influence: darrowrectangle模糊
Change-Id: If87ab051052b4288106349376acbf61d8baf7e63
2022-08-05 10:14:14 +08:00
wang fei 7baffc4704 fix: 双击标记框内标记后面追加文字
当光标在内容末尾且鼠标双击位置在光标右边时,
编辑返回false,不再编辑追加文字。

Log: 修复双击标记框内标记后面追加文字问题
Bug: https://pms.uniontech.com/bug-view-139561.html
Influence: 标记框
Change-Id: Ia582ebf7f40b8180352bfdfec09ac5f615047212
2022-07-29 15:42:53 +08:00
Ye ShanShan 431f6730b8 fix: crashed when DListView drag item with Action
DStandardItem's `setActionList` can't be used with drag because of
Type doesn't support metatype's save and load.
  and DStandardItem doesn't release it's Action when destruction,
we use sharedpointer to manager action's life.
  Add clone override function to support that action can be access
after draged, and it need to setItemPrototype by model.

Log: 含有Action项的DListView拖动时程序崩溃
Influence: none
Change-Id: Idc489b94f4cf95850fe00a9ac8231fed80913a79
2022-07-29 00:34:15 +00:00
Ye ShanShan 08ca143ca1 feat: Add EventLoop for ut
Add EventLoop for ut, it's useful in some scene, for example,
when deleteLater called but we need check QPointer's value now.

Log: all ut run in event loop
Influence: none
Change-Id: I1f35069215d5a6beba51c1aa1dd21f51d2e582a3
2022-07-28 17:28:50 +08:00
Stallman Wang d563343e45
fix: build failed when the .git folder exist (#136) 2022-07-27 11:46:15 +08:00
deepin-bot[bot] d7566247dd
chore: Sync by fed570b6d7 (#139)
chore: Sync by fed570b6d7
2022-07-26 05:29:27 +00:00
justforlxz e1a4494706 fix: DWaterProgress not displayed text when initialized to -1
The default value is 0. In setValue function, the text content will not be updated because the value is equal.

Issue: https://github.com/linuxdeepin/developer-center/issues/3292
Log: 修复 DWaterProgress 进度初始化为 0 时文字不显示
2022-07-22 16:26:51 +08:00
ck 95ef4732aa chore: 示例代码微调
示例代码微调,去掉无效日志,头文件等

Log:
Influence: none
Change-Id: I2a0f0721246264d88d3e98f212722c4e1540b6fb
2022-07-22 16:04:07 +08:00
ck a794283f50 fix: change pagesize name to readable name
use QPageSize::name() instead of QPageSize::key()
a localized human-readable name for the page size.

Log:
Influence: printpreview pagesize
Change-Id: I897ef3cc35668a87aa744dbe54f3ae3849bc2206
2022-07-22 15:16:27 +08:00
deepin-bot[bot] 43ca55a48f
chore: Sync by (#131)
chore: Sync by
2022-07-21 09:41:41 +00:00
deepin-bot[bot] 04667f55b0
chore: Sync by (#128)
chore: Sync by
2022-07-19 10:18:33 +00:00
ck c41fdded54 chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: Icc274d75ceddc5bc93f7abb82fce8c320676ee98
2022-07-19 10:56:30 +08:00
ck a0f310f32c chore: update changelog
update changelog

Log: update changelog
Influence: none
Change-Id: I34dc0a957e93e33fbc03819e6ed0e0dcc9f6b6d1
2022-07-19 10:56:30 +08:00
wang fei 9e65390e76 chore: 更新changelog
develop/snipe 分支更新changelog 到 5.6.0.1

Log:
Influence: changelog
Change-Id: Ie5893e610e0584bd56e1f5695f5c10248ad37cfb
2022-07-19 10:56:30 +08:00
ck 8182757a50 feat: DArrowRectangle 在无特效时也可以显示圆角
增加强制圆角的接口,让无窗管环境时也可以显示圆角

Log:
Influence: session-shell 提示可以显示圆角
Change-Id: Ib43360d24755e7b7664ef7d1fe4f8cc67047cb3a
2022-07-19 10:56:30 +08:00
Ye ShanShan 714f836dc4 feat: Write translation locale into `dapp_locale`
Record translation's locale to dapp_locale, it copies from
qtcreator.

Log:
Task: https://pms.uniontech.com/task-view-149553.html
Influence: DApplication添加dapp_locale属性,供其它地方进行翻译文件
的加载,例如其它插件内,可根据此值加载对应语言的翻译文件。

Change-Id: Ibe7037053a13020ba43a0d62e925d4ac5a0fd8fc
2022-07-19 10:56:30 +08:00
wang fei 1bca99b5db chore: 更新changelog
develop/snipe 分支更新changelog 到 5.5.42.1

Log:
Influence: changelog
Change-Id: I1e564861b4c7a2e72d3b2b258bd80b4b6c69aeb9
2022-07-19 10:56:30 +08:00
Ye ShanShan a1d3287e56 fix: DFlowlayout contains space also item is hidden
space is not caculated when the item is hidden, otherwise it's
verticalSpacing or horizontalSpacing is added, and later widget
is on error position.
we ignore the item including it's geometry updating, when it is empty.

Log:
Influence: 使用了DFlowLayout布局并且含有space,其中有部分控件暂时隐藏,
导致位于后面的控件其位置显示错误,多余space大小。

Change-Id: I4b2971fcb3e0ea241b290610cf30f87fb1453504
2022-07-19 10:56:30 +08:00
Ye ShanShan 08073c4ed4 chore: DFlowLayout's ut error
ut error

Log: 
Influence: none
Change-Id: I4b3ff97e9588ff7678f74218c21f440270893042
2022-07-19 10:56:30 +08:00
ck 98ca4e9b96 chore: 去掉部分构造的默认参数
多个构造的参数都是默认值时容易出现有歧义,
如:DFloatingButton button;

Task: https://pms.uniontech.com/task-view-140403.html
Log:
Influence: none
Change-Id: Id4fa3c73b63f1b8024c07c0c6eebb2b3bc318941
2022-07-19 10:56:30 +08:00
Ye ShanShan e75ab3d28b fix: boundary calculation error for DFlowLayout
1.modify `expandingDirections()` function, can't return more space
when DFlowLayout is LeftToRight flow.
2.`maxWidth` or `maxHeight` is caculated error, it causes sizeHint to
caculate to zero in some scene.
adujument error when next item just fits in a row, for example,
3.A and B's with as follow: A(100) + B(100) == Panel(200), A and B
should be on the same row.

Log:
Influence: 使用了DFlowLayout的应用,当Flow为LeftToRight时,不再在垂直
方向填充多余的空间.

Change-Id: Ia9474fc606f1b35010ffa4966b74967aad940a58
2022-07-19 10:56:30 +08:00
ck f682c39003 chore(build): fix typo
fix typo

Log: 
Influence: 
Change-Id: Ic9f3662d200e284f0a243d96a1a5c987aeb218e4
2022-07-19 10:56:30 +08:00
Ye ShanShan 395ac835e8 refactor: openUrl relays on dtkgui
openUrl function has been moved to dtkgui.

Log: 
Influence: this commit relays on dtkgui.
Change-Id: I2fba790a3921f90a2d2b36b889e15fa7350d1dc6
2022-07-19 10:56:30 +08:00
Ye ShanShan 143e6d08cb refactor: user manual function implication relay on dtkgui
user manual function has been moved to dtkgui.

Log: 
Influence: this commit relays on dtkgui.
Change-Id: Ia42dd98854a13928f97c229ae840dd2a23623fa6
2022-07-19 10:56:30 +08:00
Chen Bin e4fdfe5b36 feat: 控件适配 DCI 图标格式
1. DIconButton等按钮控件适配 DCI 图标,用户
可传入DCI 图标实例构造出一个整合图标类型。

2. 统一适配 DCI 图标的绘制操作,在 DStyle 中
完成。并适配各个图标控件。

Log: 
Influence: 图标控件
Change-Id: I763268250485cbfe7f23da08050b6e941e7263d0
2022-07-19 10:56:30 +08:00
wang fei f0e1eced4b fix: 锁屏界面网络面板显示异常,底色有重叠黑影
darrowrectangle在updateClipPath时设置属性clipPath,
并且传递参数polygon

Log: 修复锁屏界面网络面板显示异常,底色有重叠黑影问题
Bug: https://pms.uniontech.com/bug-view-124427.html
Influence: wayland下darrowrectangle的UI
Change-Id: Ie398c651c743dae514ce86ee29e88c7de1c9645b
2022-07-13 09:20:11 +00:00
Gary Wang 26509c3480 chore: build doxygen documentation
追加基于 doxygen 的文档构建

Log:
2022-07-08 05:03:33 +00:00
WangFei 35ad9a9d25
fix: 设置导航栏一级菜单内容有遮挡 (#123)
一级菜单QPainter设置了字体,就用painter的
字体设置省略样式。

Log: 修复设置导航栏一级菜单内容遮挡问题
Bug: https://pms.uniontech.com/bug-view-145915.html
Influence: 设置导航栏
Change-Id: I364d06e313750e80a03aa4ecc7630975f7d34466
2022-07-08 10:30:13 +08:00
WangFei 5ef5ce8ece
fix: dspinbox不能显示警告信息 (#119)
showAlertMessasge(const QString&, int)的follower是dlineedit,
但是, dlinedit的布局里面是qlineedit,
所以在eventFilter里,检查follower的visibleRegion是空的,
修改follower为qlineedit。

Log: 修复dspinbox的showAlertMessage接口不起作用
Task: https://pms.uniontech.com/task-view-152843.html
Influence: dspinbox,lineedit警告信息
Change-Id: Ibc026ee110ee1e93e50f3788b923802488490110
2022-06-22 17:09:31 +08:00
justforlxz 8731e17ede feat: update archlinux build
update archlinux build

Log:
2022-06-21 17:44:11 +08:00
justforlxz 2a5ef1a4b2 feat: add archlinux build
sync from deepin-community

Log:
2022-06-21 13:07:39 +08:00
WangFei df844cf227
fix: 非激活listview内的字体样式未置灰 (#115)
1.判断listview窗体是否激活,设置其状态。
2.设置非激活状态下的colorgroup为QPalette::Inactive。

Log: 修复非激活listview内字体样式未置灰问题
Bug: https://pms.uniontech.com/bug-view-138395.html
Influence: listview非激活状态UI
Change-Id: I75561d5a5c6b7bac3766b3a2585544ff16ba9a5e
2022-06-15 11:20:01 +08:00
WangFei 550aab7ab5
fix: 双击文件标记框后会随机变色 (#116)
双击时保存当前文本内容和当前背景色。
如果文本没有变化,则仍然使用当前背景色。

Log: 修复双击文件标记框后会随机变色问题
Bug: https://pms.uniontech.com/bug-view-139561.html
Influence: 标记框
Change-Id: Ic0315f06bb2ee55da94e8cf9e1bdfd8a649e7922
2022-06-15 09:52:18 +08:00
WangFei 5ccf4f5505
fix: 设置界面backgrounGroup背景色问题 (#114)
设置backgroundGroup的useWidgetBackground为false

Log: 修复设置界面backgroundGroup背景色问题
Bug: https://pms.uniontech.com/bug-view-138331.html
Influence: 设置界面背景色
2022-06-13 09:43:08 +08:00
AlexOne e78a195b8a fix: 废弃的接口更新
旧的接口拼写错误,新版已经不再需要

Log:
Influence: none
2022-05-27 02:58:09 +00:00
993381 f32d3749c9
fix: 打印预览titlebar不跟随主题变化 (#109)
主动设置了titlebar的palette后,要在主题变化的时候再次主动更新

Log:
Bug: https://pms.uniontech.com/bug-view-129709.html
Influence: 标题栏随主题色变化

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-25 15:55:56 +08:00
deepin-bot[bot] ca848ac312
chore: Sync by 99dfe0471c (#107)
chore: Sync by 99dfe0471c
2022-05-19 03:38:51 +00:00
993381 bc050fca88
fix: wayland环境网络链接对话框点击无效 (#106)
网络连接对话框在设置了屏幕缩放的情况下会透过鼠标事件
导致点击不上按钮,原因是setMask之前要清空旧值

Log:
Bug: https://pms.uniontech.com/bug-view-130007.html
Influence: DarrowRectangle的点击操作

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-18 15:48:56 +08:00
993381 b479f9f513
chore: wayland无标题栏兼容旧版kwin (#104)
适配了无标题栏后,旧版kwin上的无标题栏会显示两列按钮
不支持无标题栏时dtk的标题栏不应该显示菜单

Log:
Influence:

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-17 11:36:29 +08:00
993381 57ee818e5f
chore: 更新README添加plugin的编译方法 (#102)
之前的plugin未添加编译依赖,现在在README文件中说明

Log:
Influence:

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-05-17 10:53:39 +08:00
deepin-bot[bot] 77acfbb4cd
File Sync from linuxdeepin/.github (#101)
chore: Sync by b5a441b9bb
2022-04-21 06:54:38 +00:00
wang fei 8ffcbd0750 fix: wayland下tooltips没有跟随输入框
增加对UpdateRequest事件类型的判断

Log: 修复wayland下tooltips未跟随输入框问题
Bug: https://pms.uniontech.com/bug-view-124413.html
Influence: 输入框警告信息
2022-04-20 12:46:33 +00:00
deepin-bot[bot] 619ae2a39a
chore: Sync by 41155231b0 (#100)
chore: Sync by 41155231b0
2022-04-18 09:42:12 +00:00
mike 1733c3f590
chore: 非chameleon风格时标题栏图标正常绘制 (#96)
非chameleon风格时标题栏按钮图标显示异常,特别是菜单按钮SP_TitleBarMenuButton
在qcommonstyle中显示的是qtlogo,此处按照dstyle的逻辑将icon直接设置好。

Log:
Influence: 非uos风格下标题栏图标
Change-Id: Ife805d7aa542619fafa76f2cdc3809831e0b2047

Co-authored-by: ck <chenke@uniontech.com>
2022-04-14 17:32:38 +08:00
mike d1ab823a1f
chore: DTextEdit crashed when NoTextInteraction was set (#97)
when NoTextInteraction was set, createStandardContextMenu() return nullptr.

Log: DTextEdit崩溃问题修复
Influence: DTextEdit-menu-crash
Change-Id: I632d90555809bcb844fab7e1fbbccf3e816e8b3a

Co-authored-by: ck <chenke@uniontech.com>
2022-04-14 17:31:45 +08:00
WangFei e3be8db577
chore: 打印预览默认pageSize的设置策略的修改 (#94)
根据A4的索引值index去设置当前默认pageSize

Log: 修改打印预览默认pageSize设置策略
Influence: 打印预览默认纸张大小
2022-04-07 10:31:36 +08:00
WangFei 73fb0a0faf
chore: 非active快捷键背景色调整 (#95)
在非active状态下,将颜色(109,109,109)
做blendColor调整后的颜色设为背景色

Log: 非active状态下,快捷键背景色调整
Influence: 快捷键样式
2022-04-01 16:53:58 +08:00
WangFei 30e1bee964
chore: DSearchCombobox控件popup后高度调整 (#92)
DSearchCombobox控件popup后高度调整为:
增加DSearchEdit高度和布局里的spacing及margin

Log: 调整DSearchCombobox控件popup后的高度
Influence: DSearchCombobox功能
2022-03-31 09:45:53 +08:00
WangFei 33055cb783
fix: 通过控制中心修改字体,全英文文件名称编辑最后一行显示超长 (#91)
修改DTextEdit的frame_radius为之前的1/2

Log: 修复通过控制中心修改字体,全英文文件名称编辑最后一行显示超长问题
Bug: https://pms.uniontech.com/bug-view-118769.html
Influence: 文本框字体显示
2022-03-24 13:03:53 +08:00
mike d20ee61002
fix: wayland DArrowRectangle mouse propagation (#89)
* fix: wayland DArrowRectangle mouse propagation

wayland 下绘制透明的区域没有鼠标穿透导致无法点击后面的控件。
如果 handle 无效,则使用 qwidget::setmask 并且不加模糊特效

Bug: https://pms.uniontech.com/bug-view-99340.html
Influence: wayland-DArrowRectangle-dde-calendar
Change-Id: I0ce66452e443acf88cd3b5b72514ed3bff3a8bd2

* Update darrowrectangle.cpp

删掉注释的代码。

Co-authored-by: ck <chenke@uniontech.com>
2022-03-17 14:00:58 +08:00
993381 faa0551e54
fix: wayland 下关闭按钮禁用后不能取消禁用状态 (#90)
之前适配了wayland的关闭按钮的禁用功能,未考虑全面

Log:
Influence: wayland 下所有 dtk 应用的关闭按钮的禁用状态
Bug: https://pms.uniontech.com/bug-view-117469.html

Co-authored-by: AlexOne <wangpenga@uniontech.com>
2022-03-16 18:28:36 +08:00
deepin-bot[bot] f350a44819
File Sync from linuxdeepin/.github (#88)
chore: Sync by d459ab5b73
2022-03-15 08:14:02 +00:00
wang fei 700b0b0aa2 feat: 长按最大化/还原按钮弹出分屏菜单
长按最大化/还原按钮超过300ms显示分屏菜单,
出现分屏菜单时不响应最大化/还原交互;
长按触发和鼠标移入触发显示分屏菜单后交互一致;
单击最大化/还原按钮交互不变;

Log: 增加长按最大化/还原按钮弹出分屏菜单功能
Task: https://pms.uniontech.com/zentao/task-view-101270.html
Influence: 分屏菜单显示
Change-Id: I1cd8ca87f21c54689cfb408063cbd207a33493d9
2022-03-09 21:06:34 +08:00
wang fei d5865437ff chore: 支持按住标题栏左上角图标拖动功能
设置DTitleBar的DIconButton的WA_TransparentForMouseEvents为true

Log: 屏蔽标题栏左上角图标鼠标事件
Influence: 标题栏的图标
Change-Id: I873035c2f6ebcf3285a2c0720b8849ed7920809f
2022-03-03 16:27:27 +08:00
wang fei 75c88fcac5 feat: 调整快捷键展示样式
修改keylabel的文本前景色为QPalette::ButtonText

Log: 调整快捷键展示样式
Task: https://pms.uniontech.com/task-view-101268.html
Influence: 快捷键样式
Change-Id: Idf031e1ad0c752844c43731a5f4899377d0d9ec7
2022-03-01 10:24:59 +08:00
AlexOne 4d4c41e396 fix: 禁用关闭按钮未能生效
禁用关闭按钮失败
之前改过,改了wayland平台的,但是x11还有问题

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-108083.html
Influence: 所有dtk应用的关闭按钮
Change-Id: Ieb1bcc45ec631fb55eddd8fde480b742ebc5df35
2022-02-24 13:09:23 +08:00
AlexOne 3fceb6325c chore: 按照要求修改单元测试文件名
按照要求修改单元测试文件名

Log:
Influence: none
Change-Id: I2804c65f306111397f43c1c780d19ca23e1cbdbc
2022-02-18 17:38:44 +08:00
AlexOne 2e5fb3280c chore: 修改单元测试生成目录
修改单元测试相关文件的目录结构

Log:
Influence: 单元测试目录结构
Change-Id: I4685e03a884eec2c876fc483748f9b169e0d4d40
2022-02-18 11:09:02 +08:00
AlexOne ee50d00688 fix: wayland平台关闭按钮无法禁用
wayland平台关闭按钮未适配,无法在设置Qt::WindowCloseButtonHint后
被禁用,对wayland平台单独处理后就可以禁用。

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-108083.html
Influence: dtk应用标题栏的关闭按钮
Change-Id: I8b25319d84c5300d97c9e9b5c2623e96b0262239
2022-02-10 13:31:38 +08:00
ck 0269489d12 fix: 备份还原选择文件时控制中心崩溃
备份还原使用了setfiledialog, 不应该由 dtk 释放. 释放是为了解决 bug-110730
该问题在插件中修复见 Change-Id:If7cba6

Bug: https://pms.uniontech.com/zentao/bug-view-112210.html
Influence: dcc-backup-filedialog-crashed
Log: 备份还原文件选择崩溃问题
Change-Id: Idc73a66fd72a8e10bbbb4e9dfd0e20242e2f1a54
2022-01-25 15:18:36 +08:00
ck f37840028f fix: max button icon error on wayland
on wayland maximized window windowstate is WindowMaximized | WindowActive
should use testFlag or isMaximized

Bug: https://pms.uniontech.com/zentao/bug-view-112159.html
Influence: wayland-dtitlebar-maxbtn
Log:
Change-Id: I32e566bc41523df4bd114e0e0907191f3440d09b
2022-01-24 15:14:24 +08:00
ck 852a032f3a fix: 特效开关时DArrowRectangle圆角未及时更新
响应特效变化型号更新path

Log: 
Influence: DArrowRectangle 圆角
Bug: https://pms.uniontech.com/zentao/bug-view-110554.html
Change-Id: I5b8446d73bb379fd378208270cea8f7310d43778
2022-01-24 09:50:42 +08:00
AlexOne 045f620afb fix: DDialog 对话框中的按钮按下位置偏移
DDialog 对话框中的按钮按下位置偏移,按不到对应的按钮
按理说 Dialog 是不需要设置默认位置的,所以不对 Dialog 做处理
这里对 dtk 的 dialog 进行标记,在插件里面区分处理

Log:
Bug: https://pms.uniontech.com/zentao/bug-view-103858.html
Influence: 所有使用Dialog的应用程序
Change-Id: I86a8e3d1ff7da2b69588a04c2870f62e0ede2d33
2022-01-18 18:05:24 +08:00
wang fei cede243cee fix: 窗口分屏菜单样式未统一
dark主题最大化和还原的图标用反了

Log: 修复窗口分屏菜单样式未统一的问题
Bug: https://pms.uniontech.com/zentao/bug-view-110577.html
Influence: 分屏菜单样式
Change-Id: I4fbd2669df1d940205c47dd5098b93427fb61bd7
2022-01-18 15:44:02 +08:00
1369 changed files with 56735 additions and 40212 deletions

20
.github/ISSUE_TEMPLATE/config.yml vendored Normal file
View File

@ -0,0 +1,20 @@
blank_issues_enabled: false
contact_links:
- name: BUG Report | 缺陷报告
url: https://github.com/linuxdeepin/dtk/issues/new?assignees=&labels=&template=bug-report.yml
about: Please create bug reports to the issue board in our dtk repo.
- name: docs-update | 文档补充
url: https://github.com/linuxdeepin/dtk/issues/new?assignees=&labels=&template=docs-update.yml
about: Please create docs-update to the issue board in our dtk repo.
- name: unit-test-report | 单元测试报告
url: https://github.com/linuxdeepin/dtk/issues/new?assignees=&labels=&template=unit-test-report.yml
about: Please create unit-test-report to the issue board in our dtk repo.
- name: Feature Request | 特性请求
url: https://github.com/linuxdeepin/developer-center/discussions/new?category=features-request-ideas-%E7%89%B9%E6%80%A7%E8%AF%B7%E6%B1%82-%E5%A4%B4%E8%84%91%E9%A3%8E%E6%9A%B4
about: Please create feature requests to the discussion board in our developer-center repo.
- name: General Discussion & Questions | 常规讨论与问答
url: https://github.com/linuxdeepin/developer-center/discussions/categories/q-a-%E9%97%AE%E7%AD%94%E6%9D%BF%E5%9D%97
about: Please use the discussion board in our developer-center repo.

17
.github/ISSUE_TEMPLATE/document.md vendored Normal file
View File

@ -0,0 +1,17 @@
---
name: Docs update
about: Document Normalization
title: 'Doc: [Document Type][file name]'
labels: 'Doc'
assignees: ''
---
## Target files (目标文件)
## Planned completion time (计划完成时间)
## Document Type (文档类型)
[] New documents
[] Standardized documents
[] Internationalization of documents
[] Example documents

15
.github/workflows/backup-to-gitlab.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: backup to gitlab
on: [push]
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
backup-to-gitlabwh:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitlabwh.yml@master
secrets: inherit
backup-to-gitee:
uses: linuxdeepin/.github/.github/workflows/backup-to-gitee.yml@master
secrets: inherit

13
.github/workflows/call-api-check.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: apiCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
api-check:
uses: linuxdeepin/.github/.github/workflows/api-check.yml@master
secrets: inherit

50
.github/workflows/call-auto-release.yml vendored Normal file
View File

@ -0,0 +1,50 @@
name: Auto Release
on:
workflow_dispatch:
inputs:
version:
description: 'Release version (e.g., 1.0.0)'
type: string
required: false
name:
description: 'The name of the person to release the version'
type: string
required: false
email:
description: 'The email of the person to release the version'
type: string
required: false
timezone:
description: 'The timezone in the debian changelog file'
required: false
type: string
default: 'Asia/Shanghai'
workflow_call:
inputs:
version:
description: 'Release version (e.g., 1.0.0)'
type: string
required: true
name:
description: 'The name of the person to release the version'
type: string
required: false
email:
description: 'The email of the person to release the version'
type: string
required: false
timezone:
description: 'The timezone in the debian changelog file'
required: false
type: string
default: 'Asia/Shanghai'
jobs:
auto_release:
uses: linuxdeepin/.github/.github/workflows/auto-release.yml@master
secrets: inherit
with:
version: ${{ inputs.version }}
name: ${{ inputs.name }}
email: ${{ inputs.email }}
timezone: ${{ inputs.timezone }}

16
.github/workflows/call-auto-tag.yml vendored Normal file
View File

@ -0,0 +1,16 @@
name: auto tag
on:
pull_request_target:
types: [opened, synchronize, closed]
paths:
- "debian/changelog"
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
auto_tag:
uses: linuxdeepin/.github/.github/workflows/auto-tag.yml@master
secrets: inherit

View File

@ -0,0 +1,13 @@
name: Call build-distribution
on:
push:
paths-ignore:
- ".github/workflows/**"
pull_request_target:
paths-ignore:
- ".github/workflows/**"
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/build-distribution.yml@master
secrets: inherit

9
.github/workflows/call-chatOps.yml vendored Normal file
View File

@ -0,0 +1,9 @@
name: chatOps
on:
issue_comment:
types: [created]
jobs:
chatopt:
uses: linuxdeepin/.github/.github/workflows/chatOps.yml@master
secrets: inherit

15
.github/workflows/call-clacheck.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: Call CLA check
on:
issue_comment:
types: [created]
pull_request_target:
types: [opened, closed, synchronize]
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
clacheck:
uses: linuxdeepin/.github/.github/workflows/cla-check.yml@master
secrets: inherit

11
.github/workflows/call-commitlint.yml vendored Normal file
View File

@ -0,0 +1,11 @@
name: Call commitlint
on:
pull_request_target:
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/commitlint.yml@master

13
.github/workflows/call-debian-check.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: debianCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
debian-check:
uses: linuxdeepin/.github/.github/workflows/debian-check.yml@master
secrets: inherit

View File

@ -0,0 +1,26 @@
name: deploy docs
on:
push:
branches: ["master"]
workflow_dispatch:
inputs:
tag:
required: true
type: string
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploydocs:
uses: linuxdeepin/.github/.github/workflows/deploy-dev-doc.yml@master
with:
ref: ${{ inputs.tag }}
secrets: inherit

14
.github/workflows/call-doc-check.yml vendored Normal file
View File

@ -0,0 +1,14 @@
name: doxygen-check
on:
pull_request_target:
paths-ignore:
- ".github/workflows/**"
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
check_job:
uses: linuxdeepin/.github/.github/workflows/doc-check.yml@master
secrets: inherit

View File

@ -0,0 +1,16 @@
name: Call License and README Check
on:
pull_request_target:
types: [opened, synchronize, reopened]
permissions:
pull-requests: write
contents: read
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
license-check:
uses: linuxdeepin/.github/.github/workflows/license-check.yml@master

13
.github/workflows/call-static-check.yml vendored Normal file
View File

@ -0,0 +1,13 @@
name: staticCheck
on:
pull_request_target:
types: [opened, synchronize, reopened]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
static-check:
uses: linuxdeepin/.github/.github/workflows/static-check.yml@master
secrets: inherit

View File

@ -0,0 +1,19 @@
name: Call synchronize to dtk6
on:
pull_request_target:
paths-ignore:
- "debian/**"
- "archlinux/**"
- "rpm/**"
- ".obs/**"
- ".github/**"
jobs:
call-synchronize:
uses: linuxdeepin/dtk/.github/workflows/synchronize-to-dtk6.yml@master
secrets: inherit
with:
dest_repo: linuxdeepin/dtk6widget
source_repo: ${{ github.event.pull_request.head.repo.full_name }}
source_ref: ${{ github.event.pull_request.head.ref }}
pull_number: ${{ github.event.pull_request.number }}

26
.github/workflows/cppcheck.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: cppcheck
on:
pull_request_target:
paths-ignore:
- ".github/workflows/**"
concurrency:
group: ${{ github.workflow }}-pull/${{ github.event.number }}
cancel-in-progress: true
jobs:
cppchceck:
name: cppcheck
runs-on: ubuntu-latest
steps:
- run: export
- uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
persist-credentials: false
- uses: linuxdeepin/action-cppcheck@main
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
pull_request_id: ${{ github.event.pull_request.number }}
allow_approve: false

21
.gitignore vendored
View File

@ -21,11 +21,26 @@ build*/
src/DtkWidgets
src/dtkwidget_config.h
cmake/DtkWidget/DtkWidgetConfig.cmake
cmake/DtkWidget
src/qt_lib_dtk*.pri
# misc
.vscode/
build
.cache
# cmake files
cmake/*
asan*
archlinux/source.tar.gz
archlinux/src
archlinux/pkg
archlinux/*.pkg.tar.zst
include/dtkwidget/global/dtkwidget_config.h
DtkWidgetConfig.cmake
qt_lib_dtkwidget.pri
dtkwidget.pc
*.qdoc
CMakeLists.txt.user
# Ignore Doxygen theme files
docs/doxygen-theme/

44
.obs/workflows.yml Normal file
View File

@ -0,0 +1,44 @@
test_build:
steps:
- link_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:CI
- configure_repositories:
project: deepin:CI
repositories:
- name: deepin_develop
paths:
- target_project: deepin:CI
target_repository: deepin_develop
architectures:
- x86_64
- aarch64
- name: archlinux
paths:
- target_project: deepin:CI
target_repository: archlinux
architectures:
- x86_64
filters:
event: pull_request
tag_build:
steps:
- branch_package:
source_project: deepin:Develop:dde
source_package: %{SCM_REPOSITORY_NAME}
target_project: deepin:Unstable:dde
filters:
event: tag_push
commit_build:
steps:
- trigger_services:
project: deepin:Develop:dde
package: %{SCM_REPOSITORY_NAME}
filters:
event: push

109
.reuse/dep5 Normal file
View File

@ -0,0 +1,109 @@
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: dtkwidget
Upstream-Contact: UnionTech Software Technology Co., Ltd. <>
Source: https://github.com/linuxdeepin/dtkwidget
# ci
Files: .github/* .gitlab-ci.yml output/results.txt .obs/* .tx/*
Copyright: None
License: CC0-1.0
# gitignore
Files: .gitignore .syncexclude
Copyright: None
License: CC0-1.0
# xml toml json conf yaml
Files: *.toml *.json *conf *.yaml .tx/transifex.yaml
Copyright: None
License: CC0-1.0
#interface
Files: include/DWidget/*
Copyright: None
License: CC0-1.0
#DBus
Files: src/widgets/dbus/* src/widgets/private/mpris/*
Copyright: None
License: CC0-1.0
# rpm
Files: rpm/*
Copyright: None
License: CC0-1.0
# debian
Files: debian/*
Copyright: None
License: LGPL-3.0-or-later
# Arch
Files: archlinux/*
Copyright: None
License: CC0-1.0
# README
Files: README.md README.zh_CN.md CHANGELOG.md
Copyright: UnionTech Software Technology Co., Ltd.
License: CC-BY-4.0
# Docs
Files: docs/*
Copyright: 2023 deepin doc doc go SIG
License: CC-BY-4.0
# Project file
Files: *.pro *.prf *.pri *.qrc *CMakeLists.txt *.cmake *.in VERSION
Copyright: None
License: CC0-1.0
# Printview
Files: tests/testcases/printpreview/*
Copyright: None
License: CC0-1.0
# others
Files: examples/collections/resources/data/*.txt
Copyright: None
License: CC0-1.0
# imag
Files: doc/images/* src/widgets/assets/images/* plugin/dtkuiplugin/images/*
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
# svg
Files: examples/collections/icons/texts/* plugin/dtkuidemo/logo_icon.svg
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
#example png
Files: examples/collections/images/*
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
#icon
Files: src/widgets/assets/icons/* src/widgets/assets/built-in-icons/*
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
#ui
Files: *.ui
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later
# test
Files: tests/data/*
Copyright: None
License: CC0-1.0
Files: toolGenerate/**/*
Copyright: None
License: CC0-1.0
# translations
Files: */translations/*.ts
Copyright: UnionTech Software Technology Co., Ltd.
License: LGPL-3.0-or-later

13
.syncexclude Normal file
View File

@ -0,0 +1,13 @@
# Paths that will be exclude from synchronize workflow
# Please use relative path which use project directory as root
# Notice that
# * .git
# * debian
# * archlinux
# * .obs
# * .github
# are always ignored
linglong.yaml
conanfile.py
VERSION
CHANGELOG.md

View File

@ -1,9 +1,7 @@
[main]
host = https://www.transifex.com
minimum_perc = 80
mode = developer
[deepin-tool-kit.dwidget]
[o:linuxdeepin:p:deepin-tool-kit:r:656c086e604038efa2bb99f59767da6f]
file_filter = src/translations/dtkwidget_<lang>.ts
source_file = src/translations/dtkwidget.ts
source_lang = en

2
.tx/deepin.conf Normal file
View File

@ -0,0 +1,2 @@
[transifex]
branch = m23

8
.tx/transifex.yaml Normal file
View File

@ -0,0 +1,8 @@
filters:
- filter_type: file
source_file: src/translations/dtkwidget.ts
file_format: QT
source_language: en
translation_files_expression: src/translations/dtkwidget_<lang>.ts
settings:
pr_branch_name: transifex_update_<br_unique_id>

View File

@ -1,3 +1,107 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [5.7.25] - 2025-10-30
### Added
- Add support for custom line edit icon margin
### Changed
- Improve navigation widget styling
### Fixed
- Correct button order in settings dialog
- Handle font change events in dialog
- Adjust feature item widget height calculation
- Improve dialog sizing and remove unused event filter
## [5.7.24] - 2025-10-16
### Added
- Support Qt 6.10
### Changed
- Translate dtkwidget.ts in sq
### Fixed
- Clear DCi icon state when setting other icon types
## [5.7.23] - 2025-09-25
### Changed
- Enhance window effect support detection
### Fixed
- Fix search icon color inconsistency in DSearchEdit
## [5.7.22] - 2025-09-04
### Changed
- I18n: [dtkwidget] Updates for project Deepin Tool Kit (#681)
### Fixed
- Prevent potential tab index out of bounds crash
## [5.7.21] - 2025-08-14
### Changed
- Revert "fix: prevent itemSpacing override in setBackgroundType"
- Update translation configurations and translations
- I18n: [dtkwidget] Updates for project Deepin Tool Kit (#677)
### Fixed
- Prevent background type from overriding custom item spacing
- Update transifex configuration
- Resolve various compilation warnings
## [5.7.20] - 2025-07-31
### Added
- Add debian check workflow
### Fixed
- Prevent itemSpacing override in setBackgroundType
- Resolve Qt6 compatibility issues
## [5.7.19] - 2025-07-03
### Added
- Add security hardening flags and optimize build settings
## [5.7.18] - 2025-06-27
### Fixed
- Make version optional in release workflow and update spec file
## [5.7.17] - 2025-06-19
### Changed
- Support VERSION file
- Add auto release workflow
- Update window control icons and drawing logic
- Update .syncexclude
<a name="2.0.14"></a>
## 2.0.14 (2019-05-23)

31
CMakeLists.txt Normal file
View File

@ -0,0 +1,31 @@
cmake_minimum_required(VERSION 3.13)
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" DTK_FILE_VERSION)
string(STRIP "${DTK_FILE_VERSION}" DTK_FILE_VERSION)
set(DTK_VERSION "${DTK_FILE_VERSION}" CACHE STRING "define project version")
project(DtkWidget
VERSION ${DTK_VERSION}
DESCRIPTION "DTK Widget module"
HOMEPAGE_URL "https://github.com/linuxdeepin/dtkwidget"
LANGUAGES CXX C
)
# Set install path
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set(CMAKE_INSTALL_PREFIX /usr)
endif()
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
if("${PROJECT_VERSION_MAJOR}" STREQUAL "5")
set(QT_VERSION_MAJOR 5)
include(dtkwidget.cmake)
elseif("${PROJECT_VERSION_MAJOR}" STREQUAL "6")
set(QT_VERSION_MAJOR "6")
set(DTK_VERSION_MAJOR "6")
include(dtkwidget.cmake)
else()
message(SEND_ERROR "not support Prject Version ${PROJECT_VERSION}.")
endif()

396
LICENSE
View File

@ -1,165 +1,305 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates
the terms and conditions of version 3 of the GNU General Public
License, supplemented by the additional permissions listed below.
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
0. Additional Definitions.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser
General Public License, and the "GNU GPL" refers to version 3 of the GNU
General Public License.
As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License.
"The Library" refers to a covered work governed by this License,
other than an Application or a Combined Work as defined below.
"The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided
by the Library, but which is not otherwise based on the Library.
Defining a subclass of a class defined by the Library is deemed a mode
of using an interface provided by the Library.
An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an
Application with the Library. The particular version of the Library
with which the Combined Work was made is also called the "Linked
Version".
A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version".
The "Minimal Corresponding Source" for a Combined Work means the
Corresponding Source for the Combined Work, excluding any source code
for portions of the Combined Work that, considered in isolation, are
based on the Application, and not on the Linked Version.
The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the
object code and/or source code for the Application, including any data
and utility programs needed for reproducing the Combined Work from the
Application, but excluding the System Libraries of the Combined Work.
The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License
without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
2. Conveying Modified Versions.
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
If you modify a copy of the Library, and, in your modifications, a
facility refers to a function or data to be supplied by an Application
that uses the facility (other than as an argument passed when the
facility is invoked), then you may convey a copy of the modified
version:
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
a) under this License, provided that you make a good faith effort to
ensure that, in the event an Application does not supply the
function or data, the facility still operates, and performs
whatever part of its purpose remains meaningful, or
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
b) under the GNU GPL, with none of the additional permissions of
this License applicable to that copy.
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
3. Object Code Incorporating Material from Library Header Files.
b) Accompany the object code with a copy of the GNU GPL and this license document.
The object code form of an Application may incorporate material from
a header file that is part of the Library. You may convey such object
code under terms of your choice, provided that, if the incorporated
material is not limited to numerical parameters, data structure
layouts and accessors, or small macros, inline functions and templates
(ten or fewer lines in length), you do both of the following:
4. Combined Works.
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
a) Give prominent notice with each copy of the object code that the
Library is used in it and that the Library and its use are
covered by this License.
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license
document.
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
4. Combined Works.
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
You may convey a Combined Work under terms of your choice that,
taken together, effectively do not restrict modification of the
portions of the Library contained in the Combined Work and reverse
engineering for debugging such modifications, if you also do each of
the following:
d) Do one of the following:
a) Give prominent notice with each copy of the Combined Work that
the Library is used in it and that the Library and its use are
covered by this License.
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
b) Accompany the Combined Work with a copy of the GNU GPL and this license
document.
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
c) For a Combined Work that displays copyright notices during
execution, include the copyright notice for the Library among
these notices, as well as a reference directing the user to the
copies of the GNU GPL and this license document.
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
d) Do one of the following:
5. Combined Libraries.
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
0) Convey the Minimal Corresponding Source under the terms of this
License, and the Corresponding Application Code in a form
suitable for, and under terms that permit, the user to
recombine or relink the Application with a modified version of
the Linked Version to produce a modified Combined Work, in the
manner specified by section 6 of the GNU GPL for conveying
Corresponding Source.
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
1) Use a suitable shared library mechanism for linking with the
Library. A suitable mechanism is one that (a) uses at run time
a copy of the Library already present on the user's computer
system, and (b) will operate properly with a modified version
of the Library that is interface-compatible with the Linked
Version.
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
e) Provide Installation Information, but only if you would otherwise
be required to provide such information under section 6 of the
GNU GPL, and only to the extent that such information is
necessary to install and execute a modified version of the
Combined Work produced by recombining or relinking the
Application with a modified version of the Linked Version. (If
you use option 4d0, the Installation Information must accompany
the Minimal Corresponding Source and Corresponding Application
Code. If you use option 4d1, you must provide the Installation
Information in the manner specified by section 6 of the GNU GPL
for conveying Corresponding Source.)
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
5. Combined Libraries.
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
You may place library facilities that are a work based on the
Library side by side in a single library together with other library
facilities that are not Applications and are not covered by this
License, and convey such a combined library under terms of your
choice, if you do both of the following:
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
a) Accompany the combined library with a copy of the same work based
on the Library, uncombined with any other library facilities,
conveyed under the terms of this License.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
b) Give prominent notice with the combined library that part of it
is a work based on the Library, and explaining where to find the
accompanying uncombined form of the same work.
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
6. Revised Versions of the GNU Lesser General Public License.
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
The Free Software Foundation may publish revised and/or new versions
of the GNU Lesser General Public License from time to time. Such new
versions will be similar in spirit to the present version, but may
differ in detail to address new problems or concerns.
Preamble
Each version is given a distinguishing version number. If the
Library as you received it specifies that a certain numbered version
of the GNU Lesser General Public License "or any later version"
applies to it, you have the option of following the terms and
conditions either of that published version or of any later version
published by the Free Software Foundation. If the Library as you
received it does not specify a version number of the GNU Lesser
General Public License, you may choose any version of the GNU Lesser
General Public License ever published by the Free Software Foundation.
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.
If the Library as you received it specifies that a proxy can decide
whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is
permanent authorization for you to choose that version for the
Library.

156
LICENSES/CC-BY-4.0.txt Normal file
View File

@ -0,0 +1,156 @@
Creative Commons Attribution 4.0 International
Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
Using Creative Commons Public Licenses
Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensors permission is not necessary for any reasonfor example, because of any applicable exception or limitation to copyrightthen that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
Creative Commons Attribution 4.0 International Public License
By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
Section 1 Definitions.
a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
Section 2 Scope.
a. License grant.
1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
A. reproduce and Share the Licensed Material, in whole or in part; and
B. produce, reproduce, and Share Adapted Material.
2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
3. Term. The term of this Public License is specified in Section 6(a).
4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
5. Downstream recipients.
A. Offer from the Licensor Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
b. Other rights.
1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
2. Patent and trademark rights are not licensed under this Public License.
3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
Section 3 License Conditions.
Your exercise of the Licensed Rights is expressly made subject to the following conditions.
a. Attribution.
1. If You Share the Licensed Material (including in modified form), You must:
A. retain the following if it is supplied by the Licensor with the Licensed Material:
i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
ii. a copyright notice;
iii. a notice that refers to this Public License;
iv. a notice that refers to the disclaimer of warranties;
v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
Section 4 Sui Generis Database Rights.
Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
Section 5 Disclaimer of Warranties and Limitation of Liability.
a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
Section 6 Term and Termination.
a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
2. upon express reinstatement by the Licensor.
c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
Section 7 Other Terms and Conditions.
a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
Section 8 Interpretation.
a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
Creative Commons may be contacted at creativecommons.org.

121
LICENSES/CC0-1.0.txt Normal file
View File

@ -0,0 +1,121 @@
Creative Commons Legal Code
CC0 1.0 Universal
CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
HEREUNDER.
Statement of Purpose
The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator
and subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").
Certain owners wish to permanently relinquish those rights to a Work for
the purpose of contributing to a commons of creative, cultural and
scientific works ("Commons") that the public can reliably and without fear
of later claims of infringement build upon, modify, incorporate in other
works, reuse and redistribute as freely as possible in any form whatsoever
and for any purposes, including without limitation commercial purposes.
These owners may contribute to the Commons to promote the ideal of a free
culture and the further production of creative, cultural and scientific
works, or to gain reputation or greater distribution for their Work in
part through the use and efforts of others.
For these and/or other purposes and motivations, and without any
expectation of additional consideration or compensation, the person
associating CC0 with a Work (the "Affirmer"), to the extent that he or she
is an owner of Copyright and Related Rights in the Work, voluntarily
elects to apply CC0 to the Work and publicly distribute the Work under its
terms, with knowledge of his or her Copyright and Related Rights in the
Work and the meaning and intended legal effect of CC0 on those rights.
1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not
limited to, the following:
i. the right to reproduce, adapt, distribute, perform, display,
communicate, and translate a Work;
ii. moral rights retained by the original author(s) and/or performer(s);
iii. publicity and privacy rights pertaining to a person's image or
likeness depicted in a Work;
iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;
v. rights protecting the extraction, dissemination, use and reuse of data
in a Work;
vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation
thereof, including any amended or successor version of such
directive); and
vii. other similar, equivalent or corresponding rights throughout the
world based on applicable law or treaty, and any national
implementations thereof.
2. Waiver. To the greatest extent permitted by, but not in contravention
of, applicable law, Affirmer hereby overtly, fully, permanently,
irrevocably and unconditionally waives, abandons, and surrenders all of
Affirmer's Copyright and Related Rights and associated claims and causes
of action, whether now known or unknown (including existing as well as
future claims and causes of action), in the Work (i) in all territories
worldwide, (ii) for the maximum duration provided by applicable law or
treaty (including future time extensions), (iii) in any current or future
medium and for any number of copies, and (iv) for any purpose whatsoever,
including without limitation commercial, advertising or promotional
purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
member of the public at large and to the detriment of Affirmer's heirs and
successors, fully intending that such Waiver shall not be subject to
revocation, rescission, cancellation, termination, or any other legal or
equitable action to disrupt the quiet enjoyment of the Work by the public
as contemplated by Affirmer's express Statement of Purpose.
3. Public License Fallback. Should any part of the Waiver for any reason
be judged legally invalid or ineffective under applicable law, then the
Waiver shall be preserved to the maximum extent permitted taking into
account Affirmer's express Statement of Purpose. In addition, to the
extent the Waiver is so judged Affirmer hereby grants to each affected
person a royalty-free, non transferable, non sublicensable, non exclusive,
irrevocable and unconditional license to exercise Affirmer's Copyright and
Related Rights in the Work (i) in all territories worldwide, (ii) for the
maximum duration provided by applicable law or treaty (including future
time extensions), (iii) in any current or future medium and for any number
of copies, and (iv) for any purpose whatsoever, including without
limitation commercial, advertising or promotional purposes (the
"License"). The License shall be deemed effective as of the date CC0 was
applied by Affirmer to the Work. Should any part of the License for any
reason be judged legally invalid or ineffective under applicable law, such
partial invalidity or ineffectiveness shall not invalidate the remainder
of the License, and in such case Affirmer hereby affirms that he or she
will not (i) exercise any of his or her remaining Copyright and Related
Rights in the Work or (ii) assert any associated claims and causes of
action with respect to the Work, in either case contrary to Affirmer's
express Statement of Purpose.
4. Limitations and Disclaimers.
a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.
b. Affirmer offers the Work as-is and makes no representations or
warranties of any kind concerning the Work, express, implied,
statutory or otherwise, including without limitation warranties of
title, merchantability, fitness for a particular purpose, non
infringement, or the absence of latent or other defects, accuracy, or
the present or absence of errors, whether or not discoverable, all to
the greatest extent permissible under applicable law.
c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without
limitation any person's Copyright and Related Rights in the Work.
Further, Affirmer disclaims responsibility for obtaining any necessary
consents, permissions or other rights required for any use of the
Work.
d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to
this CC0 or use of the Work.

View File

@ -0,0 +1,304 @@
GNU LESSER GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
This version of the GNU Lesser General Public License incorporates the terms and conditions of version 3 of the GNU General Public License, supplemented by the additional permissions listed below.
0. Additional Definitions.
As used herein, "this License" refers to version 3 of the GNU Lesser General Public License, and the "GNU GPL" refers to version 3 of the GNU General Public License.
"The Library" refers to a covered work governed by this License, other than an Application or a Combined Work as defined below.
An "Application" is any work that makes use of an interface provided by the Library, but which is not otherwise based on the Library. Defining a subclass of a class defined by the Library is deemed a mode of using an interface provided by the Library.
A "Combined Work" is a work produced by combining or linking an Application with the Library. The particular version of the Library with which the Combined Work was made is also called the "Linked Version".
The "Minimal Corresponding Source" for a Combined Work means the Corresponding Source for the Combined Work, excluding any source code for portions of the Combined Work that, considered in isolation, are based on the Application, and not on the Linked Version.
The "Corresponding Application Code" for a Combined Work means the object code and/or source code for the Application, including any data and utility programs needed for reproducing the Combined Work from the Application, but excluding the System Libraries of the Combined Work.
1. Exception to Section 3 of the GNU GPL.
You may convey a covered work under sections 3 and 4 of this License without being bound by section 3 of the GNU GPL.
2. Conveying Modified Versions.
If you modify a copy of the Library, and, in your modifications, a facility refers to a function or data to be supplied by an Application that uses the facility (other than as an argument passed when the facility is invoked), then you may convey a copy of the modified version:
a) under this License, provided that you make a good faith effort to ensure that, in the event an Application does not supply the function or data, the facility still operates, and performs whatever part of its purpose remains meaningful, or
b) under the GNU GPL, with none of the additional permissions of this License applicable to that copy.
3. Object Code Incorporating Material from Library Header Files.
The object code form of an Application may incorporate material from a header file that is part of the Library. You may convey such object code under terms of your choice, provided that, if the incorporated material is not limited to numerical parameters, data structure layouts and accessors, or small macros, inline functions and templates (ten or fewer lines in length), you do both of the following:
a) Give prominent notice with each copy of the object code that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the object code with a copy of the GNU GPL and this license document.
4. Combined Works.
You may convey a Combined Work under terms of your choice that, taken together, effectively do not restrict modification of the portions of the Library contained in the Combined Work and reverse engineering for debugging such modifications, if you also do each of the following:
a) Give prominent notice with each copy of the Combined Work that the Library is used in it and that the Library and its use are covered by this License.
b) Accompany the Combined Work with a copy of the GNU GPL and this license document.
c) For a Combined Work that displays copyright notices during execution, include the copyright notice for the Library among these notices, as well as a reference directing the user to the copies of the GNU GPL and this license document.
d) Do one of the following:
0) Convey the Minimal Corresponding Source under the terms of this License, and the Corresponding Application Code in a form suitable for, and under terms that permit, the user to recombine or relink the Application with a modified version of the Linked Version to produce a modified Combined Work, in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.
1) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (a) uses at run time a copy of the Library already present on the user's computer system, and (b) will operate properly with a modified version of the Library that is interface-compatible with the Linked Version.
e) Provide Installation Information, but only if you would otherwise be required to provide such information under section 6 of the GNU GPL, and only to the extent that such information is necessary to install and execute a modified version of the Combined Work produced by recombining or relinking the Application with a modified version of the Linked Version. (If you use option 4d0, the Installation Information must accompany the Minimal Corresponding Source and Corresponding Application Code. If you use option 4d1, you must provide the Installation Information in the manner specified by section 6 of the GNU GPL for conveying Corresponding Source.)
5. Combined Libraries.
You may place library facilities that are a work based on the Library side by side in a single library together with other library facilities that are not Applications and are not covered by this License, and convey such a combined library under terms of your choice, if you do both of the following:
a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities, conveyed under the terms of this License.
b) Give prominent notice with the combined library that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work.
6. Revised Versions of the GNU Lesser General Public License.
The Free Software Foundation may publish revised and/or new versions of the GNU Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library as you received it specifies that a certain numbered version of the GNU Lesser General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that published version or of any later version published by the Free Software Foundation. If the Library as you received it does not specify a version number of the GNU Lesser General Public License, you may choose any version of the GNU Lesser General Public License ever published by the Free Software Foundation.
If the Library as you received it specifies that a proxy can decide whether future versions of the GNU Lesser General Public License shall
apply, that proxy's public statement of acceptance of any version is permanent authorization for you to choose that version for the Library.
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for software and other kinds of works.
The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too.
When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions.
Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and modification follow.
TERMS AND CONDITIONS
0. Definitions.
“This License” refers to version 3 of the GNU General Public License.
“Copyright” also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
“The Program” refers to any copyrightable work licensed under this License. Each licensee is addressed as “you”. “Licensees” and “recipients” may be individuals or organizations.
To “modify” a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a “modified version” of the earlier work or a work “based on” the earlier work.
A “covered work” means either the unmodified Program or a work based on the Program.
To “propagate” a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well.
To “convey” a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays “Appropriate Legal Notices” to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion.
1. Source Code.
The “source code” for a work means the preferred form of the work for making modifications to it. “Object code” means any non-source form of a work.
A “Standard Interface” means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language.
The “System Libraries” of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A “Major Component”, in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it.
The “Corresponding Source” for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work.
The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source.
The Corresponding Source for a work in source code form is that same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures.
When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to “keep intact all notices”.
c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an “aggregate” if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
A “User Product” is either (1) a “consumer product”, which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, “normally used” refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product.
“Installation Information” for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made.
If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM).
The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying.
7. Additional Terms.
“Additional permissions” are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered “further restrictions” within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11).
However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice.
Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License.
An “entity transaction” is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it.
11. Patents.
A “contributor” is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's “contributor version”.
A contributor's “essential patent claims” are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, “control” includes the right to grant patent sublicenses in a manner consistent with the requirements of this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version.
In the following three paragraphs, a “patent license” is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To “grant” such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. “Knowingly relying” means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
A patent license is “discriminatory” if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License “or any later version” applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation.
If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program.
Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM “AS IS” WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the “copyright” line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an “about box”.
You should also get your employer (if you work as a programmer) or school, if any, to sign a “copyright disclaimer” for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <http://www.gnu.org/philosophy/why-not-lgpl.html>.

View File

@ -1,6 +1,12 @@
# Deepin Tool Kit Widget {#mainpage}
# Deepin Tool Kit Widget
Deepin Tool Kit (Dtk) is the base devlopment tool of all C++/Qt Developer work on Deepin.
Deepin Tool Kit Widget(DtkWidget) provides the base widgets on Deepin.
中文说明:[README_zh_CN.md](./README.zh_CN.md)
## Documentation
中文文档:[dtkwidget文档](https://linuxdeepin.github.io/dtkwidget/index.html)
## Dependencies
@ -14,20 +20,37 @@ Deepin Tool Kit (Dtk) is the base devlopment tool of all C++/Qt Developer work o
1. Make sure you have installed all dependencies.
```bash
sudo apt build-dep ./
```
If you need to use the designer plugin, you can:
```bash
$ sudo apt install qttools5-dev
# build
$ cmake ./plugin/dtkuiplugin -B build -DINSTALL_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=/usr
$ cmake --build build -j$(nproc)
# install
$ cd build
$ sudo make install
```
2. Build:
````
$ mkdir build
$ cd build
$ qmake ..
$ make
````
```bash
cmake -B build
cmake --build build -j$(nproc)
```
3. Install:
````
$ sudo make install
````
```bash
cd build
sudo make install
```
## Getting help
@ -43,8 +66,19 @@ Any usage issues can ask for help via
We encourage you to report issues and contribute changes
* [Contribution guide for developers](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers-en). (English)
* [开发者代码贡献指南](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers) (中文)
## Made with dtkwidget
List of some open source projects using dtkwidget: (Contact us or open a pull request to add yours)
* **[DMarked](https://github.com/DMarked/DMarked)**: Markdown Editor with dtkwidget
* **[DtkTimer](https://github.com/gfdgd-xi/timer)**: Clock with dtkwidget
* **[simple-image-filter](https://github.com/dependon/simple-image-filter)**: Image Process with dtkwidget
* **[SparkStore](https://github.com/Spark-Store/Spark-Store)**: SparkStore
* **[WingHexExplorer](https://github.com/Wing-summer/WingHexExplorer)**: Powerful Hexadecimal Editor with dtkwidget
* **[WingTool](https://github.com/Wing-summer/WingTool)**: A Productivity Plugin-based Toolbox with dtkwidget
* **[ScreenLight](https://github.com/Wing-summer/ScreenLight)**: A small tool to ajust the brightness of the screen with dtkwidget
## License
deepin-tool-kit is licensed under [GPLv3](LICENSE).
deepin-tool-kit is licensed under [LGPL-3.0-or-later](LICENSE).

82
README.zh_CN.md Normal file
View File

@ -0,0 +1,82 @@
## Deepin Tool Kit Widget
Deepin Tool Kit Widget(DtkWidget) 提供各种UOS风格dtk基础控件.
## 文档
中文文档:[dtkwidget文档](https://linuxdeepin.github.io/dtkwidget/index.html)
## 依赖
### 编译依赖
* Qt >= 5.6
## 安装
### 从源代码构建
1. 确保已经安装了所有的编译依赖.
```bash
sudo apt build-dep ./
```
如果需要使用 `qtcreator` 的设计功能,可以
```bash
$ sudo apt install qttools5-dev
# build
$ cmake ./plugin/dtkuiplugin -B build -DINSTALL_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=/usr
$ cmake --build build -j$(nproc)
# install
$ cd build
$ sudo make install
```
2. 构建 `dtkwidget` :
```bash
cmake -B build
cmake --build build -j$(nproc)
```
3. 安装:
```bash
cd build
sudo make install
```
## 帮助
任何使用问题都可以通过以下方式寻求帮助:
* [Gitter](https://gitter.im/orgs/linuxdeepin/rooms)
* [IRC channel](https://webchat.freenode.net/?channels=deepin)
* [Forum](https://bbs.deepin.org)
* [WiKi](https://wiki.deepin.org/)
## 参与贡献
我们鼓励您报告问题并作出更改
* [开发者代码贡献指南](https://github.com/linuxdeepin/developer-center/wiki/Contribution-Guidelines-for-Developers)
## 使用dtkwidget的项目
下面是使用dtkwidget的开源项目:(如果您想添加属于自己的开源项目请给我们提交PR)
* **[DMarked](https://github.com/DMarked/DMarked)**: 使用Dtk构建的Markdown编辑器
* **[DtkTimer](https://github.com/gfdgd-xi/timer)**: 使用DtkWidget构建的时钟
* **[simple-image-filter](https://github.com/dependon/simple-image-filter)**: 使用DtkWidget构建的图像处理软件
* **[SparkStore](https://github.com/Spark-Store/Spark-Store)**: 星火商店
* **[WingHexExplorer](https://github.com/Wing-summer/WingHexExplorer)**: 使用DtkWidget构建的强大的十六进制编辑器
* **[WingTool](https://github.com/Wing-summer/WingTool)**: 使用DtkWidget构建的基于插件的工具箱
* **[ScreenLight](https://github.com/Wing-summer/ScreenLight)**: 使用DtkWidget构建的用于调节屏幕亮度的小工具
## 协议
DTK工具包遵循协议 [LGPL-3.0-or-later](LICENSE).

1
VERSION Normal file
View File

@ -0,0 +1 @@
5.7.25

1
VERSION.in Normal file
View File

@ -0,0 +1 @@
@version@

38
archlinux/PKGBUILD Normal file
View File

@ -0,0 +1,38 @@
# Maintainer: justforlxz <justforlxz@gmail.com>
pkgname=dtkwidget-git
pkgver=5.7.25
pkgrel=1
sourcename=dtkwidget
sourcetars=("$sourcename"_"$pkgver".tar.xz)
sourcedir="$sourcename"
pkgdesc='Deepin graphical user interface library'
arch=('x86_64' 'aarch64')
url="https://github.com/linuxdeepin/dtkwidget"
license=('LGPL3')
depends=('dtkcore-git' 'dtkgui-git' 'qt5-svg'
'qt5-x11extras' 'dtkcommon-git' 'startup-notification')
makedepends=('git' 'qt5-tools' 'gtest' 'ninja' 'cmake' 'doxygen')
provides=('dtkwidget')
conflicts=('dtkwidget')
groups=('deepin-git')
source=("${sourcetars[@]}")
sha512sums=('SKIP')
build() {
cd $sourcedir
cmake . -GNinja \
-DMKSPECS_INSTALL_DIR=lib/qt/mkspecs/modules/\
-DBUILD_PLUGINS=OFF \
-DBUILD_DOCS=ON \
-DQCH_INSTALL_DESTINATION=share/doc/qt \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
ninja
}
package() {
cd $sourcedir
DESTDIR="$pkgdir" ninja install
}

View File

@ -1,3 +1,7 @@
# SPDX-FileCopyrightText: 2022 UnionTech Software Technology Co., Ltd.
#
# SPDX-License-Identifier: LGPL-3.0-or-later
from conans import ConanFile, tools
import os

529
debian/changelog vendored
View File

@ -1,3 +1,532 @@
dtkwidget (5.7.25) unstable; urgency=medium
* Release 5.7.25
-- yeshanshan <yeshanshan@uniontech.com> Thu, 30 Oct 2025 21:45:45 +0800
dtkwidget (5.7.24) unstable; urgency=medium
* Release 5.7.24
-- yeshanshan <yeshanshan@uniontech.com> Thu, 16 Oct 2025 19:45:32 +0800
dtkwidget (5.7.23) unstable; urgency=medium
* Release 5.7.23
-- yeshanshan <packages@deepin.org> Thu, 25 Sep 2025 16:49:19 +0800
dtkwidget (5.7.22) unstable; urgency=medium
* Release 5.7.22
-- yeshanshan <yeshanshan@uniontech.com> Thu, 04 Sep 2025 19:27:01 +0800
dtkwidget (5.7.21) unstable; urgency=medium
* Release 5.7.21
-- yeshanshan <packages@deepin.org> Thu, 14 Aug 2025 19:48:07 +0800
dtkwidget (5.7.20) unstable; urgency=medium
* Release 5.7.20
-- yeshanshan <yeshanshan@uniontech.com> Thu, 31 Jul 2025 19:59:37 +0800
dtkwidget (5.7.19) unstable; urgency=medium
* Release 5.7.19
-- yeshanshan <yeshanshan@uniontech.com> Thu, 03 Jul 2025 21:12:54 +0800
dtkwidget (5.7.18) unstable; urgency=medium
* Release 5.7.18
-- yeshanshan <yeshanshan@uniontech.com> Fri, 27 Jun 2025 17:08:45 +0800
dtkwidget (5.7.17) unstable; urgency=medium
* Release 5.7.17
-- yeshanshan <yeshanshan@uniontech.com> Thu, 19 Jun 2025 10:06:50 +0800
dtkwidget (5.7.16) unstable; urgency=medium
* Release 5.7.16
-- YeShanShan <yeshanshan@uniontech.com> Mon, 19 May 2025 17:22:07 +0800
dtkwidget (5.7.15) unstable; urgency=medium
* fix: correct text elision behavior with shortcuts
* style: adjust website link style in about dialog
* chore: reuse warning
* fix: watermark can't select picture for PrintPreivew
* build: compiling failed with Qt 6.9
* chore: bump version to 5.7.14
-- YeShanShan <yeshanshan@uniontech.com> Thu, 08 May 2025 17:53:16 +0800
dtkwidget (5.7.14) unstable; urgency=medium
* fix: wheel event is accepted in qt6
* fix: 修复SwitchButton在透明窗口上显示时颜色太亮,太突兀的问题
* fix: DToolTip宽度计算
* fix: DFloatingMessage宽度计算
-- YeShanShan <yeshanshan@uniontech.com> Thu, 17 Apr 2025 21:51:46 +0800
dtkwidget (5.7.13) unstable; urgency=medium
* fix: accessing wild pointer for DAboutDialog
* feat: increase fallback for password character
-- YeShanShan <yeshanshan@uniontech.com> Thu, 20 Mar 2025 17:06:12 +0800
dtkwidget (5.7.12) unstable; urgency=medium
* fix: failed to save too long filename for DPrintPreviewWidget
* chore: remove warning in qt6
* feat: Add files generated by qdbusXML2cpp and DCONG2cpp
* doc: update docs for dwatermarkhelper
-- YeShanShan <yeshanshan@uniontech.com> Thu, 06 Mar 2025 17:29:50 +0800
dtkwidget (5.7.11) unstable; urgency=medium
* fix: window filickering caused by animation for DDrawer
* fix: app crashed for DBlurEffectWidget in qt6
* fix: titlebar can't drag after close DAboutDialog
* fix: PrintPreview can't switch orientation
-- YeShanShan <yeshanshan@uniontech.com> Thu, 27 Feb 2025 20:47:56 +0800
dtkwidget (5.7.10) unstable; urgency=medium
* fix: 修复 桌面/文管文件,打开属性窗口闪烁
-- YeShanShan <yeshanshan@uniontech.com> Thu, 13 Feb 2025 17:18:34 +0800
dtkwidget (5.7.9) unstable; urgency=medium
* fix: missing QT_QPA_PLATFORM for DApplication
-- Deepin Packages Builder <packages@deepin.org> Thu, 23 Jan 2025 09:07:09 +0000
dtkwidget (5.7.8) unstable; urgency=medium
* fix: access wild pointer for targetWindowHandle
-- Deepin Packages Builder <packages@deepin.org> Tue, 14 Jan 2025 11:17:32 +0000
dtkwidget (5.7.7) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Thu, 09 Jan 2025 09:28:39 +0000
dtkwidget (5.7.6) unstable; urgency=medium
* fix: resident floating message cannot be closed(Bug: 297669)
* fix: 调整滑动条横条和刻度颜色(Bug: 254295)(Influence: 调整滑动条横条和刻度颜色)
-- Deepin Packages Builder <packages@deepin.org> Thu, 02 Jan 2025 05:43:53 +0000
dtkwidget (5.7.5) unstable; urgency=medium
* fix: webengineView abnormal in DMainWindow
-- Deepin Packages Builder <packages@deepin.org> Thu, 12 Dec 2024 03:03:54 +0000
dtkwidget (5.7.4) unstable; urgency=medium
* fix: ddialog's lambda func may cause segfault
* fix: some windows have dual title bars
-- Deepin Packages Builder <packages@deepin.org> Tue, 03 Dec 2024 02:00:46 +0000
dtkwidget (5.7.3) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Wed, 20 Nov 2024 02:19:06 +0000
dtkwidget (5.7.2) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Wed, 13 Nov 2024 01:53:26 +0000
dtkwidget (5.7.1) unstable; urgency=medium
* fix: 如果窗口打开时即为最大化状态,则最大化图标显示错误 (#601)
Thanks to Whale107(Bug: 262201)(Influence: mainwindow最大化)
* feat: support treeland notitlebar mode
* chore: 新增进度条动效和一个新进度条类 (#589)
Thanks to Whale107
* chore: 新增搜索框图标移动动画 (#590)
Thanks to Whale107
* fix: adjust indeterminateprogressbar color (#597)
Thanks to Whale107
* chore: 增加滚动区域滚轮滚动到顶部或底部的回弹效果 (#596)
Thanks to Whale107
* chore: 增加ButtonBox hover 和切换动画 (#595)
Thanks to Whale107
* chore: 使用dci icon重绘toolbutton, 增加动画 (#594)
Thanks to Whale107
* chore: 使用dci icon重绘switchButton, 增加动画 (#593)
Thanks to Whale107
* chore: 增加应用内通知动画 (#592)
Thanks to Whale107
* fix: adjust switchbutton dci icon (#603)
Thanks to Whale107
* Revert "chore: 使用dci icon重绘toolbutton, 增加动画 (#594)"
* fix: obsolete interfaces
* fix: display exception of checkbox & radiobutton(Bug: 276189)
* fix: wrong status of switch button(Bug: 276221)
-- Deepin Packages Builder <packages@deepin.org> Wed, 16 Oct 2024 03:30:46 +0000
dtkwidget (5.6.34) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Wed, 21 Aug 2024 09:47:27 +0000
dtkwidget (5.6.33) unstable; urgency=medium
* fix: DMessageManager::sendMessage cause crash
Thanks to zty199
* fix: wrong product icon size in DAboutDialog
Thanks to zty199
* fix: DTitleBar动态设置Icon时间距异常
* fix: 控制中心标题栏返回按钮消失 (#588)
Thanks to Whale107(Bug: 264379)(Influence: 控制中心-标题栏)
-- Deepin Packages Builder <packages@deepin.org> Tue, 20 Aug 2024 03:30:08 +0000
dtkwidget (5.6.31) unstable; urgency=medium
[ root ]
* UNRELEASED
-- Deepin Packages Builder <packages@deepin.org> Thu, 27 Jun 2024 09:11:34 +0000
dtkwidget (5.6.30) unstable; urgency=medium
* feat: modify the spacing between the title and the top(Issue: https://github.com/linuxdeepin/developer-center/issues/8418)
* fix: 解决wayland下DDialog窗口透明问题的问题 (#578)
Thanks to Cjq(Bug: 249975)(Influence: wayland下DDialog窗口模糊)
-- Deepin Packages Builder <packages@deepin.org> Thu, 30 May 2024 02:46:31 +0000
dtkwidget (5.6.29) unstable; urgency=medium
* fix: 修复大多数按钮不响应enter事件(Bug: 253935)(Influence: 按钮响应键盘回车事件)
* revert: "fix: 自定义页码切换问题"(Issue: https://github.com/linuxdeepin/developer-center/issues/7983)
* fix: support build on qt 6.7
-- Deepin Packages Builder <packages@deepin.org> Mon, 13 May 2024 03:02:55 +0000
dtkwidget (5.6.28) unstable; urgency=medium
* fix: window menu icon(Issue: https://github.com/linuxdeepin/developer-center/issues/8297)
-- Deepin Packages Builder <packages@deepin.org> Mon, 29 Apr 2024 08:23:39 +0000
dtkwidget (5.6.27) unstable; urgency=medium
* chore: disable broken workflow build
* fix: next action rect position error(Issue: https://github.com/linuxdeepin/developer-center/issues/6379)
* fix: fix the problem of text position in dstyleditemdelegate(issue: 7673)
* fix: Split window position error(Issue: https://github.com/linuxdeepin/developer-center/issues/4840)
-- Deepin Packages Builder <packages@deepin.org> Fri, 19 Apr 2024 08:55:35 +0000
dtkwidget (5.6.26) unstable; urgency=medium
* chore: 调整标题栏“更多/最小化/最大化/关闭按钮”的图标为最新1070图标样式(Task: 331465)(Influence: 窗口标题栏 更多/最小化/最大化/关闭按钮)
* feat: don't hide alert message automatically.(Issue: https://github.com/linuxdeepin/developer-center/issues/5622)
-- Deepin Packages Builder <packages@deepin.org> Tue, 26 Mar 2024 05:47:35 +0000
dtkwidget (5.6.25) unstable; urgency=medium
* chore: 调整关于对话框界面布局和样式(Task: 303535)(Influence: 关于对话框)
* fix: 调整关于对话框链接颜色(Task: 303535)(Influence: 关于对话框链接颜色)
* fix: 修复关于对话框在应用名称很长时内容有被截断的情况(Bug: 240835)(Influence: 关于对话框布局)
* fix: 修复dslider刻度标签内容过长时显示不下的问题(Task: 325247)(Influence: DSlider刻度标签显示)
* fix: dconfig frequent construction and destruction
* fix: black circle in PasswordEdit(Issue: https://github.com/linuxdeepin/developer-center/issues/7335)
* chore: Adapt to Qt 6.6.1
* Revert "fix: black circle in PasswordEdit"
* fix: black circle in PasswordLineEdit(Issue: https://github.com/linuxdeepin/developer-center/issues/7335)
-- Deepin Packages Builder <packages@deepin.org> Mon, 11 Mar 2024 01:16:27 +0000
dtkwidget (5.6.23) unstable; urgency=medium
* release 5.6.23
-- Mike Chen <chenke@deepin.org> Wed, 31 Jan 2024 09:29:11 +0800
dtkwidget (5.6.22) unstable; urgency=medium
* fix: double click edit incorrect format(Issue: https://github.com/linuxdeepin/developer-center/issues/6780)
* chore: remove unused headers in header
-- Deepin Packages Builder <packages@deepin.org> Wed, 10 Jan 2024 02:30:59 +0000
dtkwidget (5.6.21) unstable; urgency=medium
* chore: nullptr check in dstyleditemdelegate
* chore: logical judgment errors
-- Deepin Packages Builder <packages@deepin.org> Tue, 09 Jan 2024 01:45:43 +0000
dtkwidget (5.6.20) unstable; urgency=medium
* feat: styleHint tweak
* chore: add synchronization workflow
* fix: redefinition of verticalTabs
* fix: export inexistent classes in config
* fix: 修复DLicenseDialog内存泄漏(Influence: DLicenseDialog)
* fix: DArrowRectangle left/right style incorrect(Issue: #92)
* fix: DApplication初始化过程中会覆盖原有事件掩码导致丢失事件(Bug: 220369)
* feat: move ddesktopservices to dtkgui(Issue: #134)
-- Deepin Packages Builder <packages@deepin.org> Tue, 28 Nov 2023 05:40:53 +0000
dtkwidget (5.6.19) unstable; urgency=medium
* feat: change DTK_STATIC_TRANSLATION to the default setting.
Thanks to He Xin
-- Deepin Packages Builder <packages@deepin.org> Mon, 23 Oct 2023 07:33:18 +0000
dtkwidget (5.6.18) unstable; urgency=medium
* fix: ColorMode may be inconsistent with settings.(Bug: 219201)(Influence: PrintPreview)
* chore: correct typos about action slots
Thanks to Felix Yan
* feat: use DIconTheme::findQIcon(Issue: #4112)
* fix: 修复打印预览,切换打印机的时候预览图颜色显示异常
Thanks to zhangkun(Bug: 220315)(Influence: 打印预览切换打印机时预览图的颜色表现)
* doc: update docs for denhancedwidget
Thanks to syn(Issue: #94)
-- Deepin Packages Builder <packages@deepin.org> Wed, 18 Oct 2023 06:01:44 +0000
dtkwidget (5.6.17) unstable; urgency=medium
* Release 5.6.17
-- Deepin Packages Builder <packages@deepin.org> Fri, 08 Sep 2023 15:19:50 +0800
dtkwidget (5.6.16) unstable; urgency=medium
* feat: add ut_dpalettehelper
* chore: add test for dwatermarkhelper
* fix: update dependency libfreetype-dev
-- Deepin Packages Builder <packages@deepin.org> Tue, 22 Aug 2023 06:13:44 +0000
dtkwidget (5.6.15) unstable; urgency=medium
* chore: remove useless files
* feat: Add UT for DComboBox
* doc: update docs for dfontcombobox 更新dfontcombobox的文档
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dtooltip
Thanks to syn(Issue: #94)
* doc: update docs for dcircleprogress
Thanks to homehome(Issue: #94)
* doc: update docs for dcrumbedit
Thanks to LyYeeeYuwu(Issue: #94)
-- Yixue Wang <wangyixue@deepin.org> Fri, 11 Aug 2023 14:03:59 +0800
dtkwidget (5.6.14) unstable; urgency=medium
* fix: Button background lightness display error(Issue: #82)
* doc: update docs for dpasswordedit
Thanks to homehome(Task: 26)
* doc: update docs for dtabbar
Thanks to homehome(Issue: #94)
* refactor!: deprecate some interfaces in dtk6
* doc: update docs for dcombobox
Thanks to Skye-rs(Issue: #94, #1773136810)
* doc: A small change to Dcombobox
Thanks to Skye-rs
* doc: update docs for dsuggestbutton
Thanks to homehome(Issue: #94)
* doc: update docs for dwaterprogress
Thanks to homehome(Issue: #94)
* doc: update docs for dbaseexpand
Thanks to syn(Issue: #94)
* doc: update docs for diconbutton
Thanks to syn(Issue: #94)
* doc: update docs for dipv4lineedit
Thanks to Skye-rs(Issue: #94, #1773136810)
* doc: update docs for dbuttonbox
Thanks to LyYeeeYuwu(Issue: #94)
* fix: remove ut to support DTK6.0
* chore: Sync by https://github.com/linuxdeepin/.github/commit/559e91167d4919644f37bbcf123eb0651c1528ea(Influence: none)
* doc: update docs for dwarningbutton
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dframe
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dtoolbutton
Thanks to Skye-rs(Issue: #94)
* fix: the 'ValueChanged' signal was never emitted in dcircleprogress
Thanks to homehome
* doc: update docs for dspinbox
Thanks to syn(Issue: #94)
* doc: update docs for dsearchedit
Thanks to LyYeeeYuwu(Issue: #94)
* doc: update docs for dbaseline
Thanks to homehome(Issue: #94)
* doc: update docs for dcoloredprogressbar
Thanks to homehome(Issue: #94)
* doc: update docs for dprogressbar
Thanks to LyYeeeYuwu(Issue: #94)
* chore: reduce compilation warnings
Thanks to SPUER(Issue: #96)
* doc: update docs for dmessagemanager
Thanks to homehome(Issue: #94)
* Revert "fix: 修改内存泄露问题"
* fix: fix memory leak in danchors.cpp
* fix: to fix unused qrc file in UT
* feat: add some UT
* doc: update docs for dtextedit
Thanks to LyYeeeYuwu(Issue: #94)
* fix: fix the bug of the test-recoverage.sh
* chore: deprecate dhidpihelper
-- Deepin Packages Builder <packages@deepin.org> Thu, 27 Jul 2023 06:56:38 +0000
dtkwidget (5.6.13) unstable; urgency=medium
* chore: change the text of the title on licensedialog
* chore: Add properties about license in dapplication interface
* chore: Change the text of the title in dlicensedialog
* fix: 修改分屏菜单位置错误(Bug: 199083)(Influence: 锁屏界面/任务栏等网络插件窗口显示,窗口分屏提示窗口)
* fix: abnormal font size(Issue: #17)
* chore: update translations abouut license
* fix: DApplication casting error
* fix: TextEdit color group not update(Bug: 196603)
* feat(build): support Qt6
* feat(lib): support Qt6
* feat(others): support Qt6
* fix: correct copy assignment operator
* fix: compile error of unit test
* fix: Attempted to overwrite a QRandomGenerator to system() or global().
* fix: unit test error under qt5
* chore: remove old dependency
* fix: fix compile error under qt6
* fix: unit test error under qt6
* fix: titlebar buttons don't recover
-- Deepin Packages Builder <packages@deepin.org> Mon, 26 Jun 2023 10:12:00 +0800
dtkwidget (5.6.12) unstable; urgency=medium
* Release 5.6.12
* add DLicenseDialog
-- Deepin Packages Builder <packages@deepin.com> Mon, 15 May 2023 11:28:59 +0800
dtkwidget (5.6.11) unstable; urgency=medium
* Release 5.6.11
* FIX dtk#51 dtk#62 dtk#36
* FIX bug-195913 DArrowRectangle postion calc error
-- Deepin Packages Builder <packages@deepin.com> Mon, 08 May 2023 13:35:05 +0800
dtkwidget (5.6.10) unstable; urgency=medium
* Release 5.6.10
* FIX #364 #373 #389 #390 #403 #408
* FIX Build error for Qt 5.15~6.1
* FIX DFloatingButton can't display dci icon
-- Deepin Packages Builder <packages@deepin.com> Mon, 17 Apr 2023 17:14:10 +0800
dtkwidget (5.6.9) unstable; urgency=medium
* Release 5.6.9
-- Deepin Packages Builder <packages@deepin.com> Mon, 03 Apr 2023 10:13:53 +0800
dtkwidget (5.6.8) unstable; urgency=medium
* Release 5.6.8
-- Deepin Packages Builder <packages@deepin.com> Wed, 22 Feb 2023 14:21:55 +0800
dtkwidget (5.6.7) unstable; urgency=medium
* Release 5.6.7
-- Deepin Packages Builder <packages@deepin.com> Fri, 17 Feb 2023 13:13:24 +0800
dtkwidget (5.6.6) unstable; urgency=medium
* Release 5.6.6 update with broken dtkcore
* Update doc, for danchors
* fix the broken case if open the popup window second time
-- Deepin Packages Builder <packages@deepin.com> Thu, 06 Feb 2023 17:22:10 +0800
dtkwidget (5.6.5) unstable; urgency=medium
* Release 5.6.5
-- Deepin Packages Builder <packages@deepin.com> Thu, 02 Feb 2023 14:15:00 +0800
dtkwidget (5.6.4) unstable; urgency=medium
* Release 5.6.4
-- Deepin Packages Builder <packages@deepin.com> Tue, 10 Jan 2023 10:36:48 +0800
dtkwidget (5.6.3) unstable; urgency=medium
* Release 5.6.3
-- Deepin Packages Builder <packages@deepin.com> Mon, 12 Dec 2022 15:26:28 +0800
dtkwidget (5.6.2.2) unstable; urgency=medium
* Release 5.6.2.2
-- Deepin Packages Builder <packages@deepin.com> Wed, 30 Nov 2022 10:41:14 +0800
dtkwidget (5.6.1) unstable; urgency=medium
* snipe release 5.6.1
-- Deepin Packages Builder <packages@deepin.com> Mon, 11 Jul 2022 17:18:51 +0800
dtkwidget (5.6.0.1) unstable; urgency=medium
* develop/snipe 5.6.0.1
-- Deepin Packages Builder <packages@deepin.com> Fri, 01 Jul 2022 12:03:04 +0800
dtkwidget (5.5.42.1) unstable; urgency=medium
* Release 5.5.42.1
-- Deepin Packages Builder <packages@deepin.com> Tue, 14 Jun 2022 10:11:06 +0800
dtkwidget (5.0.0) unstable; urgency=medium
* Release 5.0.0

1
debian/compat vendored
View File

@ -1 +0,0 @@
9

20
debian/control vendored
View File

@ -2,18 +2,18 @@ Source: dtkwidget
Section: libdevel
Priority: optional
Maintainer: Deepin Packages Builder <packages@deepin.com>
Build-Depends: debhelper (>= 9), pkg-config, libudev-dev,
libqt5x11extras5-dev, libxext-dev, qttools5-dev-tools,
Build-Depends: debhelper-compat (= 12), pkg-config, libudev-dev,
libqt5x11extras5-dev, libxext-dev, qttools5-dev-tools, qttools5-dev,
x11proto-xext-dev, libxcb-util0-dev, libstartup-notification0-dev,
libmtdev-dev, qtbase5-private-dev, libegl1-mesa-dev, libudev-dev,
libfontconfig1-dev, libfreetype6-dev, libglib2.0-dev, libxrender-dev,
libfontconfig1-dev, libfreetype-dev, libglib2.0-dev, libxrender-dev,
libdtkcore-dev, libgsettings-qt-dev, libqt5svg5-dev, libxi-dev,
libdtkgui-dev, libcups2-dev, libgtest-dev
libdtkgui-dev, libcups2-dev, libgtest-dev, libdtkcore5-bin, cmake, doxygen
Standards-Version: 3.9.8
Package: libdtkwidget5
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, libdtkcommon,
Depends: ${shlibs:Depends}, ${misc:Depends}, libdtkdata,
libqt5widgets5(>= 5.11.3.33) | libqt5widgets5(<= 5.11.3.28)
Multi-Arch: same
Description: Deepin graphical user interface library
@ -47,9 +47,17 @@ Description: Deepin graphical user interface library
Package: dtkwidget5-examples
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends},
libdtkwidget5( =${binary:Version})
libdtkwidget5( =${binary:Version}), libdtkdata
Description: dtkwidget-examples is generated by dtkwidget.
DtkWidget is Deepin graphical user interface for deepin desktop development.
.
This package contains example application which are
needed for developing Deepin applications.
Package: dtkwidget-doc
Architecture: any
Description: Deepin graphical user interface library (Document)
DtkWidget is Deepin graphical user interface for deepin desktop development.
.
This package contains example application which are
needed for developing Deepin applications.

View File

@ -1 +1 @@
usr/lib/*/examples/*
usr/lib/*/*/*/examples/*

View File

@ -2,4 +2,4 @@ usr/lib/*/*.so
usr/include
usr/lib/*/pkgconfig/*.pc
usr/lib/*/cmake/*/*.cmake
usr/lib/*/qt5/*
usr/lib/*/qt5/mkspecs/modules/*

1
debian/libdtkwidget-doc.install vendored Normal file
View File

@ -0,0 +1 @@
usr/share/qt5/doc/dtkwidget.qch

30
debian/rules vendored
View File

@ -3,25 +3,30 @@ DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
export QT_SELECT = qt5
# 安全编译参数
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
export DEB_CXXFLAGS_MAINT_APPEND = -Wall
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,noexecstack -Wl,-E
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
ifneq (,$(wildcard .git/config))
CONFIG_VERSION=
VERSION = $(DEB_VERSION_UPSTREAM)
_PACK_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$1}')
_BUILD_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$2}' | sed 's/[^0-9]//g' | awk '{print int($$1)}')
ifeq ($(_BUILD_VER),)
CONFIG_VERSION = $(_PACK_VER)
else
VERSION = $(DEB_VERSION_UPSTREAM)
_PACK_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$1}')
_BUILD_VER = $(shell echo $(VERSION) | awk -F'[+_~-]' '{print $$2}' | sed 's/[^0-9]//g')
ifeq ($(_BUILD_VER),)
CONFIG_VERSION = $(_PACK_VER)
else
CONFIG_VERSION = $(_PACK_VER).$(_BUILD_VER)
endif
CONFIG_VERSION = $(_PACK_VER).$(_BUILD_VER)
endif
%:
dh $@ --parallel
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- -DBUILD_PLUGINS=OFF -DBUILD_DOCS=ON -DDTK_VERSION=$(_PACK_VER) -DDTK_STATIC_TRANSLATION=YES
#override_dh_auto_configure:
# dh_auto_configure -- LIB_INSTALL_DIR=/usr/lib/$(DEB_HOST_MULTIARCH)
#override_dh_makeshlibs:
@ -34,4 +39,3 @@ endif
override_dh_makeshlibs:
dh_makeshlibs -V "libdtkwidget5 (>= $(shell echo $(VERSION) | cut -d '.' -f 1,2))"

5429
debian/symbols.amd64 vendored

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.9 KiB

View File

@ -1,37 +0,0 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <chenbin@uniontech.com>
*
* Maintainer: Chen Bin <chenbin@uniontech.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*!
\page dtkwidget-index.html
\keyword DTK Widget Reference Documentation
\title DTK Widget Docs
DtkWidget is Deepin graphical user interface for deepin desktop development.
\list
\li \l {DTK Gui Docs}
\li \l {DTK Gui 模块}
\li \l {DTK Core Docs}
\li \l {DTK Core 模块}
\li \l {DTK Widget 模块}
\endlist
*/

View File

@ -1,26 +0,0 @@
/*
* Copyright (C) 2021 ~ 2021 Deepin Technology Co., Ltd.
*
* Author: Chen Bin <chenbin@uniontech.com>
*
* Maintainer: Chen Bin <chenbin@uniontech.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*!
\module dtkwidget
\title DTK Widget 模块
\brief DtkWidget is Deepin graphical user interface for deepin desktop development.
*/

89
docs/CMakeLists.txt Normal file
View File

@ -0,0 +1,89 @@
find_package (Doxygen REQUIRED)
set (QCH_INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/qt${QT_VERSION_MAJOR}/doc CACHE STRING "QCH install location")
set (DOXYGEN_GENERATE_HTML "YES" CACHE STRING "Doxygen HTML output")
set (DOXYGEN_GENERATE_XML "YES" CACHE STRING "Doxygen XML output")
set (DOXYGEN_GENERATE_QHP "YES" CACHE STRING "Doxygen QHP output")
set (DOXYGEN_FILE_PATTERNS *.cpp *.h *.zh_CN.md *.zh_CN.dox CACHE STRING "Doxygen File Patterns")
set (DOXYGEN_PROJECT_NUMBER ${CMAKE_PROJECT_VERSION} CACHE STRING "") # Should be the same as this project is using.
set (DOXYGEN_EXTRACT_STATIC YES)
set (DOXYGEN_OUTPUT_LANGUAGE "Chinese" CACHE STRING "Doxygen Output Language")
set (DOXYGEN_IMAGE_PATH ${CMAKE_CURRENT_LIST_DIR}/images/)
if("${QT_VERSION_MAJOR}" STREQUAL "5")
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Help)
else()
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS ToolsTools)
endif()
get_target_property(_qhelpgenerator_location Qt${QT_VERSION_MAJOR}::qhelpgenerator IMPORTED_LOCATION)
if("${_qhelpgenerator_location}" STREQUAL "")
set(_qhelpgenerator_location "qhelpgenerator")
endif()
set (DOXYGEN_QHG_LOCATION ${_qhelpgenerator_location} CACHE STRING "Doxygen QHG path")
set (DOXYGEN_QHP_NAMESPACE "org.deepin.dtk.widget")
set (DOXYGEN_QCH_FILE "dtkwidget.qch")
set (DOXYGEN_QHP_VIRTUAL_FOLDER "dtkwidget")
set (DOXYGEN_HTML_EXTRA_STYLESHEET "" CACHE STRING "Doxygen custom stylesheet for HTML output")
set (DOXYGEN_TAGFILES "qtcore.tags=qthelp://org.qt-project.qtcore/qtcore/" CACHE STRING "Doxygen tag files")
set (DOXYGEN_PREDEFINED
"D_DECL_DEPRECATED_X(x)="
"DCORE_BEGIN_NAMESPACE=namespace Dtk { namespace Core {"
"DCORE_END_NAMESPACE=}}"
"DCORE_USE_NAMESPACE=using namespace Dtk::Core;"
"DWIDGET_BEGIN_NAMESPACE=namespace Dtk { namespace Widget {"
"DWIDGET_END_NAMESPACE=}}"
"DWIDGET_USE_NAMESPACE=using namespace Dtk::Widget;"
)
set (BUILD_THEME OFF CACHE BOOL "Build doxgen theme")
if(BUILD_THEME)
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/doxygen-theme")
message(STATUS "doxygen-theme exist")
else()
execute_process(COMMAND git clone https://github.com/linuxdeepin/doxygen-theme.git --depth=1
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
TIMEOUT 60
)
execute_process(COMMAND bash themesetting.sh
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/doxygen-theme/
)
endif()
set (DOXYGEN_HTML_EXTRA_STYLESHEET "docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome.css"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-sidebar-only.css"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-sidebar-only-darkmode-toggle.css"
)
set (DOXYGEN_HTML_EXTRA_FILES "docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-darkmode-toggle.js"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-fragment-copy-button.js"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-paragraph-link.js"
"docs/doxygen-theme/doxygen-awesome-css/doxygen-awesome-interactive-toc.js"
)
set (DOXYGEN_GENERATE_TREEVIEW "YES")
set (DOXYGEN_DISABLE_INDEX "NO")
set (DOXYGEN_FULL_SIDEBAR "NO")
set (DOXYGEN_HTML_HEADER "docs/doxygen-theme/doxygen-awesome-css/header.html")
set (DOXYGEN_HTML_FOOTER "docs/doxygen-theme/doxygen-awesome-css/footer.html")
endif()
set (DOXYGEN_MACRO_EXPANSION "YES")
set (DOXYGEN_EXPAND_ONLY_PREDEF "YES")
# Exclude private classes.
set(DOXYGEN_EXCLUDE_PATTERNS
${PROJECT_SOURCE_DIR}/src/widgets/private/dimageviewer_p.h
${PROJECT_SOURCE_DIR}/src/widgets/private/dimagevieweritems_p.h
${PROJECT_SOURCE_DIR}/src/widgets/private/dsplitscreen_p.h
${PROJECT_SOURCE_DIR}/src/widgets/dimagevieweritems.cpp
)
doxygen_add_docs (doxygen
${PROJECT_SOURCE_DIR}/src
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/docs
ALL
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
COMMENT "Generate documentation via Doxygen"
)
install (FILES ${PROJECT_BINARY_DIR}/docs/html/dtkwidget.qch DESTINATION ${QCH_INSTALL_DESTINATION})

View File

Before

Width:  |  Height:  |  Size: 525 B

After

Width:  |  Height:  |  Size: 525 B

View File

Before

Width:  |  Height:  |  Size: 634 B

After

Width:  |  Height:  |  Size: 634 B

View File

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

View File

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 200 KiB

After

Width:  |  Height:  |  Size: 200 KiB

View File

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 218 KiB

View File

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

Before

Width:  |  Height:  |  Size: 158 KiB

After

Width:  |  Height:  |  Size: 158 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

View File

Before

Width:  |  Height:  |  Size: 146 KiB

After

Width:  |  Height:  |  Size: 146 KiB

View File

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View File

Before

Width:  |  Height:  |  Size: 297 KiB

After

Width:  |  Height:  |  Size: 297 KiB

View File

Before

Width:  |  Height:  |  Size: 150 KiB

After

Width:  |  Height:  |  Size: 150 KiB

View File

Before

Width:  |  Height:  |  Size: 175 KiB

After

Width:  |  Height:  |  Size: 175 KiB

View File

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

Before

Width:  |  Height:  |  Size: 140 KiB

After

Width:  |  Height:  |  Size: 140 KiB

View File

Before

Width:  |  Height:  |  Size: 40 KiB

After

Width:  |  Height:  |  Size: 40 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 181 KiB

After

Width:  |  Height:  |  Size: 181 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 73 KiB

After

Width:  |  Height:  |  Size: 73 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

View File

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 35 KiB

View File

Before

Width:  |  Height:  |  Size: 63 KiB

After

Width:  |  Height:  |  Size: 63 KiB

View File

Before

Width:  |  Height:  |  Size: 95 KiB

After

Width:  |  Height:  |  Size: 95 KiB

View File

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 68 KiB

View File

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 125 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

View File

Before

Width:  |  Height:  |  Size: 105 KiB

After

Width:  |  Height:  |  Size: 105 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

View File

Before

Width:  |  Height:  |  Size: 1023 KiB

After

Width:  |  Height:  |  Size: 1023 KiB

View File

Before

Width:  |  Height:  |  Size: 74 KiB

After

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
docs/images/dbaseline.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

View File

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 137 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

Before

Width:  |  Height:  |  Size: 80 KiB

After

Width:  |  Height:  |  Size: 80 KiB

Some files were not shown because too many files have changed in this diff Show More