为了简化QGIS手册中图标的使用,在 /source/substitutions.txt
文件在 QGIS-Documentation repository 下面列出了一些替代品。因此,当您想要在文档中使用来自qgis应用程序的图标时,很可能已经有了可以/应该使用的替换。
如果不存在替换:
检查文档存储库中是否有图标 /static/common
文件夹。如果没有图像,则需要从中查找和复制图标图像文件 QGIS repository (often under https://github.com/qgis/QGIS/tree/master/images/themes/default folder) and paste (in .png
format) under /static/common
文件夹。为了方便和更新,建议尽可能保留文件名。
在中创建对替换的引用 /source/substitutions.txt
以下示例后面的文件。替换文本应采用camelcase格式:
.. |splitLayer| image:: /static/common/split_layer.png
:width: 1.5em
运行 scripts/find_set_subst.py
脚本更新RST文件中的替换定义并包括新的替换。
(可选)将对图标的引用及其替换添加到下面的列表中。
偶像 | 替代 | 偶像 | 替代 |
---|---|---|---|
![]() |
|expandTree| |
![]() |
|collapseTree| |
![]() |
|expandNewTree| |
![]() |
|formView| |
![]() |
|deselectAll| |
![]() |
|editCopy| |
![]() |
|filePrint| |
||
![]() |
|identifyByRectangle| |
![]() |
|identifyByPolygon| |
![]() |
|identifyByFreehand| |
![]() |
|identifyByRadius| |
标准配置有基本安装,但不与初始安装一起加载