[general]
name=SuperLayer
qgisMinimumVersion=3.0
qgisMaximumVersion=4.99
description=使用列表、文件夹树、思维导图、矩形树图或图层属性看板管理工程图层，支持右键菜单移动/复制/备份物理文件、样式管理、删除图层与删除文件等高级操作。/ Manage engineering layers using lists, folder trees, mind maps, rectangular tree diagrams, or layer property dashboards. Advanced operations include moving, copying, or backing up physical files via the right-click menu, style management, and deleting layers or files.
version=2.1.0
author=OpenQGIS
email=OpenQGIS@outlook.com
about=使用思维导图或矩形树图查看 QGIS 图层，支持多选批量更新数据源/CRS/编码/可见比例尺；右键菜单提供移动、复制、备份物理文件（可选是否从新路径加载）；样式管理支持保存与清除默认样式；并可直接删除图层或永久删除物理文件（含确认保护）。/ View QGIS layers using mind maps or rectangular tree diagrams, supporting batch updates for multiple data sources/CRS/notations/visible scales; the right-click menu provides options to move, copy, or back up physical files (with optional re-loading from new paths); Style management allows saving or clearing default styles; and you can directly delete layers or permanently delete physical files (with protection confirmation).
tracker=https://github.com/OpenQGIS/SuperLayer/issues
repository=https://github.com/OpenQGIS/SuperLayer
tags=layers, properties, table, metadata, report, board, style, mindmap
homepage=https://github.com/OpenQGIS/SuperLayer
category=Plugins
icon=icons/SuperLayer.png
changelog=
    Version 2.1.0:
    - ✨拖拽图层或文件夹物理重定位时，弹窗提供“移动”、“复制”、“备份”三个选项，并匹配专属 SVG 图标。/ Added Move, Copy, Backup selection dialog with matching SVG icons when dragging layers or folders.
    - ✨选择操作弹窗中直观列出所操作图层的所有关联物理伴生文件（如 .shp, .prj, .dbf, .pdf 等），保障操作透明。/ Listed all companion physical files (such as .shp, .prj, .dbf, .pdf) in the selection dialog.
    - ❗ 优化取消按钮背景色为深灰色，提升弹窗视觉层级；修复 PyQt5/PyQt6 addButton 图标签名类型不匹配问题。/ Darkened the cancel button background for better hierarchy and fixed QMessageBox.addButton icon signature compatibility.

    Version 2.0.0:
    - ✨新增“只展示显示的图层”过滤功能，点击过滤按钮可即时刷新视图过滤隐藏图层。 / Added "Show visible layers only" filter to immediately refresh the view and filter hidden layers.
    - ❗ 优化隐藏图层的图标展示，维持图层树与批量修改看板的视觉一致性。 / Optimized hidden layer icons to maintain visual consistency between the tree and the batch modification board.
    - 🐛修复矩形树状图面板中超长文件名换行时文字显示不全的剪裁问题。 / Fixed text clipping issue for wrapping extremely long filenames in the Treemap.
    - 🐛 修复在图层目录树中拖放文件夹物理迁移时偶发的 AttributeError 异常。 / Fixed occasional AttributeError when dragging and dropping folders for physical migration in the tree.

    Version 1.9.0:
    - ✨ 新增文件夹右键“迁移文件夹”功能与思维导图内拖拽移动文件夹位置。 / Added right-click "Migrate Folder" action and support for drag-and-drop folder relocation in the mindmap view.
    - ✨ 新增思维导图框选图层（框选模式）功能，并支持通过拖动快速迁移图层。 / Added marquee selection in the mindmap view and support for dragging on the layer name column to quickly migrate layers.
    - ✨ 新增批量修改面板的只展示显示图层过滤选项。 / Added a filter option in the batch modification board to show visible layers only.
    - 🚀 优化图层取消显示时的图标展示，使其仍保留具体的图层类型图标。 / Improved hidden layer rendering to retain specific layer type icons instead of hiding them behind a hide icon.
    - 🚀 重构右键菜单显示与隐藏图层动作，支持根据当前图层可见性状态动态排序并使用更美观的组件图标。 / Reordered show/hide layer actions dynamically based on layer visibility and upgraded their icons to modern component SVGs.

    Version 1.7.9:
    - 🚀 优化并规范图层格式识别逻辑，支持更多种栅格格式（如 jpg, jpeg, png 等）与 SQLite 衍生后缀的配色自动归类及正确显示。 / Standardized and optimized layer format classification to recognize a broader range of raster and database extensions for color unification.

    Version 1.7.8:
    - 🐛 修复图层树可见性改变信号同步触发时导致 QGIS 崩溃的 Bug，改用 QTimer 防抖异步刷新。 / Fixed QGIS crash issue during legend visibilityChanged synchronization by implementing a debounced QTimer-based asynchronous refresh.

    Version 1.7.7:
    - 🐛 修复矩形树状图文本绘制时由于坐标宽度为浮点数引发的 TypeError 错误。 / Fixed TypeError in treemap rendering caused by floating-point width arguments in QFontMetrics.elidedText().

    Version 1.7.6:
    - 🐛 修复路径导图中 SQLite/SpatiaLite 格式未匹配固定色彩的 Bug，支持该格式在各视图配色完美同步。 / Fixed colors mismatch bug for SQLite/SpatiaLite layers in the mind map, ensuring unified format-based color mapping across all views.

    Version 1.7.5:
    - ✨ 统一图层文件格式固定色彩，过滤标签栏、路径导图及矩形树状图配色完全匹配。 / Unified format-based color mappings across the filter tag bar, mind map nodes, and treemap blocks.

    Version 1.7.4:
    - ✨ 新增图层显示/隐藏控制功能，并为未启用的图层展示闭眼图标。 / Added layer visibility control (show/hide) actions and display a closed-eye icon for disabled layers.

    Version 1.7.3:
    - 🐛 修复矩形树状图超长图层名无法显示文字的 Bug，支持名字自动换行与截断。 / Fixed text display issue for extremely long layer names in the Treemap, supporting auto-wrapping and truncation.

    Version 1.7.2:
    * 🔍 新增右键缩放与双击行为重构：新增“缩放到图层”、“缩放到文件夹”、“缩放到图层组”右键选项，并移除双击自动缩放逻辑（改为仅选中激活）。对临时与在线图层自适应结合 QGIS 原生缩放和回退保护。/ Added right-click Zoom to Layer/Folder/Group actions, disabled automatic zoom on double-click, and integrated native QGIS zoom fallback for temporary/online layers.
    * 🛡️ GeoPackage 内部删除保护：将 GPKG 数据库图层的“删除文件”替换为“删除数据库内图层”，调用 OGR deleteLayer 仅删除库内表，防范误删整个物理数据库。/ Protected GPKG layers by replacing "Delete File" with "Delete Layer inside Database" to drop specific tables via OGR without deleting the entire database file.
    * 📂 物理文件夹重命名迁移：将“重命名父文件夹名”从图层右键移出，在文件夹和图层组右键节点提供“重命名文件夹”物理更名与路径自动更新支持。/ Moved folder renaming to folder node right-click menus, enabling directory renaming with automatic project layer path updating.
    * 🌐 多语言支持与本地化适配：新增阿拉伯语、德语、英语、西班牙语、法语、意大利语、日语、韩语、葡萄牙语、俄语及中文等12种语言的完整国际化支持，智能识别 QGIS 区域设置并自适应切换界面语言。/ Added full localization and multi-language support for 12 languages including English, Chinese, Arabic, German, Spanish, French, Italian, Japanese, Korean, Portuguese, and Russian, automatically adapting to QGIS locale settings.
    Version 1.6.2:
    * 🔄 添加英文描述。/ Add English description.
    Version 1.6.1:
    * 🔄 QGIS 4 与 Qt 6 全面适配：重构所有 Qt 导入模块，全面迁移至完全限定枚举（如 Qt.AlignmentFlag.AlignLeft 等），将 dialog/menu.exec_() 重命名为 exec()，并解决 QFontMetrics.width() 兼容性问题。/ Full QGIS 4 and Qt 6 compatibility: refactored all Qt imports to prioritize qgis.PyQt, migrated all Qt enums to fully scoped formats, renamed exec_() to exec(), and fixed QFontMetrics.width() compatibility.

    Version 1.5.0:
    * 🗂️ 右键菜单全面重构：拆分为「移动」「复制」「备份」三个独立文件操作动作，分别通过鼠标悬停提示明示加载路径差异（从新路径/从原始路径加载）。/ Refactored context menu: separated Move, Copy, and Backup file actions with distinct hover tooltips indicating load path behavior.
    * 🎨 新增「样式管理」子菜单：支持「保存为默认样式」（调用 QGIS 官方 API）与「清除默认样式」（删除磁盘 .qml 文件并重置渲染器）。/ Added Style Management submenu with Save/Clear default style actions using QGIS native API and on-disk .qml management.
    * 🗑️ 新增「删除图层」与「删除文件」：前者仅从 QGIS 工程移除图层，后者永久删除磁盘物理文件（含全部伴生文件）并附带确认弹窗保护。/ Added Remove Layer (QGIS-only) and Delete Files (permanent disk deletion with confirmation dialog) context menu actions.
    * 🖼️ 新增专属图标：为所有新菜单项挂载对应 SVG 图标（Delete_Layer.svg、Delete_Files.svg、Style_Manage.svg、Save_stlye.svg、delete_stlye.svg、Copy_Folder_Link.svg）。/ Mounted dedicated SVG icons for all new menu actions.
    * 🐛 修复思维导图拖拽线段 RuntimeError：scene.clear() 销毁 QGraphicsLineItem 后引发的悬空引用崩溃，通过 sip.isdeleted() 双重守卫解决。/ Fixed mindmap drag line RuntimeError caused by dangling C++ reference after scene.clear() via sip.isdeleted() double-guard.
    Version 1.4.0:
    * ✨ 深度整合 QgsDockWidget 属性看板：完美在 QToolBar 及 stacked_widget 中集成“属性看板”选项页，支持一键切换与数据自动刷新。/ Integrated the Layer Board page into QgsDockWidget with custom toolbars, stacked views, and auto-refresh mechanisms.
    * ⚙️ 图层多选与批量操作增强：图层列表与物理树视图全面支持 ExtendedSelection 多选模式，极大提升图层批量移动和管理效率。/ Enabled ExtendedSelection multi-selection on list and tree views for high-efficiency batch layer operations.
    * 🛡️ 栅格图层操作安全隔离：右键菜单中智能识别栅格与矢量图层，自动屏蔽不支持的编辑与属性表操作，从根本上杜绝软件闪退。/ Separated vector and raster menu options in context menus to prevent potential crashes on unsupported layer types.
    * ⚠️ 磁盘异常拦截与提示：物理文件重命名、移动及数据源替换操作添加 try-except 异常捕获，通过 QMessageBox 优雅展示警告信息。/ Added try-except wrapper and error dialogs for physical file operations (rename, move, swap source) to ensure operation safety.
    * 🎨 界面美化与用户体验优化：表格视图开启交替行背景色，工具栏视图切换按 ActionGroup 进行单选互斥，界面更加清晰专业。/ Enabled alternating row background colors and mutually-exclusive QActionGroup toggles in the toolbar for cleaner user experience.
    Version 1.3.0:
    * ✨ 新增全功能图层属性看板（属性看板页）：支持批量修改图层名称、数据源、CRS、可见比例尺范围及数据源字符编码。/ Added fully-featured Layer Board page to batch-update layer names, sources, CRS, scale visibility, and source encoding.
    * ✨ 双击就地编辑与非法输入校验：表格内双击即可安全修改图层参数，支持黄色高亮标记脏单元格，并支持统一保存（Commit）或放弃修改（Discard）。/ Enabled cell double-click inline editing with validation, yellow unsaved highlight, and Commit/Discard logic.
    * ✨ 原生图层样式面板深度嵌入：右侧面板动态载入 QGIS 原生的 RendererProperties 样式编辑器，优化最大宽度限制及并排对齐，一键应用并触发画布重绘。/ Embedded native QGIS style properties panel with standard layouts and trigger canvas redraws.
    * ✨ 数据管理与日志审计：支持一键导出看板全部数据至 CSV，并在日志选项卡中异步输出带自动滚动的操作日志。/ Provided CSV data export and operations log output with auto-scrolling capability.
    Version 1.2.0:
    * ✨ 高分屏矢量高清渲染与边缘裁剪：思维导图全面升级 SVG 矢量直绘并施加裁剪边界，彻底解决了 Inkscape 隐藏图层溢出并污染连接线的 Bug。/ Upgraded high-DPI SVG rendering with painter clipping boundaries to prevent icon spillover.
    * ✨ 特殊图层精准分流矩阵：完全剥离“在线图层”、“虚拟图层”、“内存与临时图层”与“无效图层”（挂载 Invalid_Layer.svg 图标）至独立分支展示。/ Decoupled online, virtual, memory, and invalid layers into dedicated branches with custom SVGs.
    * ✨ 数据库容器树状拆解：针对 GPKG、GDB 及 ZIP 压缩包容器内部的图层，自动拆解出二级节点并挂载专属图标。/ Split ZIP, GPKG, and GDB databases into secondary tree nodes.
    * ✨ 文件夹右键定位功能：支持在物理树和思维导图的文件夹节点上右键激活“打开文件夹位置”菜单（修复了 Windows 盘符相对路径导致跳转至我的文档的 Bug）。/ Added folder context menus to open location in Explorer (fixing Documents folder fallback).
    * ✨ 超长目录路径智能省略与悬停：实现超长路径的 30 字符智能首尾省略算法，并支持鼠标悬停气泡（Tooltip）展现完整绝对路径。/ Introduced smart middle truncation for paths exceeding 30 characters with a hover tooltip.
    Version 1.1.0:
    * 🐛 修复双击图层缩放时引发的闪退问题。/ Resolved application crash during double-click layer zoom.
    * 🎨 集成显示自定义插件图标以提升界面美化外观。/ Integrated custom plugin icon for improved GUI appearance.
    Version 1.0.2:
    * ✨ 增强界面交互与操作安全性：支持图层列表多选批量操作与表格交替背景色以提升可读性。/ Enhanced interface interaction and safety: enabled multi-selection and alternating row colors for list/tree views.
    * ⚙️ 优化右键菜单对不同图层类型的支持以防止操作冲突。/ Optimized context menus for different layer types.
    * ⚠️ 为文件重命名、物理移动和更改数据源等物理文件操作引入错误弹窗提示。/ Added warning dialogs for file operations like rename, move, and swap source.
    * 🔒 实现工具栏视图切换的单选互斥效果。/ Improved toolbar view toggles to be mutually exclusive.
    Version 1.0.1:
    * 🚀 提升界面绘制性能与文件操作安全性：优化矩形树图在大数据量下的渲染流畅度与鼠标悬浮交互体验。/ Optimized rendering performance and file operation safety: improved treemap rendering fluency and hover experience.
    * 📂 重构文件移动与重命名模块，支持大小写不敏感的文件检测与 QGIS 复杂图层源路径安全解析。/ Refactored file movements/renames to support case-insensitive matching and QGIS source parameters.
    * 🔄 引入事务回滚与防重名覆盖机制以确保物理磁盘文件安全。/ Preventing accidental file overwrites and ensuring rollback safety.
    Version 1.0.0:
    * 🎉 首次发布：实现SuperLayer，支持图层按列表、文件夹树或矩形树图（以文件大小占比展示）进行可视化管理。/ Initial release: introduced SuperLayer with list, tree, and squarified treemap views.
    * 📊 提供物理文件大小的实时计算与清理功能。/ Supporting real-time computation of physical file size.
