2022-08-22 10:18:29 +08:00
|
|
|
|
## Deepin Tool Kit Widget
|
|
|
|
|
|
|
|
|
|
|
|
Deepint Tool Kit Core(DtkWidget) 提供各种UOS风格dtk基础控件.
|
|
|
|
|
|
|
|
|
|
|
|
您应该首先阅读 [Deepin应用程序规范](\ref doc/Specification).
|
|
|
|
|
|
|
|
|
|
|
|
## 依赖
|
|
|
|
|
|
|
|
|
|
|
|
### 编译依赖
|
|
|
|
|
|
|
|
|
|
|
|
* Qt >= 5.6
|
|
|
|
|
|
|
|
|
|
|
|
## 安装
|
|
|
|
|
|
|
|
|
|
|
|
### 从源代码构建
|
|
|
|
|
|
|
|
|
|
|
|
1. 确保已经安装了所有的编译依赖.
|
2022-09-21 10:02:39 +08:00
|
|
|
|
```bash
|
2022-09-20 17:50:14 +08:00
|
|
|
|
$ sudo apt build-dep ./
|
2022-09-21 10:02:39 +08:00
|
|
|
|
```
|
2022-09-20 17:50:14 +08:00
|
|
|
|
如果需要使用 `qtcreator` 的设计功能,可以 :
|
2022-08-22 10:18:29 +08:00
|
|
|
|
```bash
|
2022-09-20 17:50:14 +08:00
|
|
|
|
$ sudo apt install qttools5-dev
|
|
|
|
|
|
|
|
|
|
|
|
# build
|
2022-09-21 10:02:39 +08:00
|
|
|
|
$ cmake ./plugin/dtkuiplugin -B build -DINSTALL_PLUGIN=ON -DCMAKE_INSTALL_PREFIX=/usr
|
2022-09-20 17:50:14 +08:00
|
|
|
|
$ cmake --build build -j$(nproc)
|
|
|
|
|
|
|
|
|
|
|
|
# install
|
2022-09-21 10:02:39 +08:00
|
|
|
|
$ cd build
|
2022-09-20 17:50:14 +08:00
|
|
|
|
$ sudo make install
|
2022-08-22 10:18:29 +08:00
|
|
|
|
```
|
2022-09-20 17:50:14 +08:00
|
|
|
|
2. 构建 `dtkwidget` :
|
2022-08-22 10:18:29 +08:00
|
|
|
|
|
|
|
|
|
|
```bash
|
2022-09-20 17:50:14 +08:00
|
|
|
|
$ cmake -B build
|
|
|
|
|
|
$ cmake --build build -j$(nproc)
|
2022-08-22 10:18:29 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
3. 安装:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
2022-09-21 10:02:39 +08:00
|
|
|
|
$ cd build
|
2022-09-20 17:50:14 +08:00
|
|
|
|
$ sudo make install
|
2022-08-22 10:18:29 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## 帮助
|
|
|
|
|
|
|
|
|
|
|
|
任何使用问题都可以通过以下方式寻求帮助:
|
|
|
|
|
|
|
|
|
|
|
|
* [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)
|
|
|
|
|
|
|
2022-10-21 17:37:56 +08:00
|
|
|
|
## 使用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)**: 星火商店
|
2022-10-23 09:44:11 +08:00
|
|
|
|
- **[WingHexExplorer](https://github.com/Wing-summer/WingHexExplorer)**: 使用DtkWidget构建的强大的十六进制编辑器
|
|
|
|
|
|
- **[WingTool](https://github.com/Wing-summer/WingTool)**: 使用DtkWidget构建的基于插件的工具箱
|
|
|
|
|
|
- **[ScreenLight](https://github.com/Wing-summer/ScreenLight)**: 使用DtkWidget构建的用于调节屏幕亮度的小工具
|
2022-10-21 17:37:56 +08:00
|
|
|
|
|
2022-08-22 10:18:29 +08:00
|
|
|
|
## 协议
|
|
|
|
|
|
|
2022-09-21 17:55:41 +08:00
|
|
|
|
DTK工具包遵循协议 [LGPL-3.0-or-later](LICENSE).
|