[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=1.6.2
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 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.
    * 🛡️ 安全合规与测试 Mock 优化：添加 .bandit 与 .flake8 配置文件排除本地备份和测试目录，将 except Exception 盲捕获改写为特定异常以符合安全扫描规程（Bandit 0 警告）；同时升级 CLI 环境下的 Mock Qt/QGIS 类，保障 88 个单元测试 100%% 通过。/ Security & test validation: added .bandit and .flake8 files to exclude developer and testing folders, resolved bare exceptions to pass bandit checks with 0 warnings, and updated CLI test mocks to keep 88 unittest cases passing.
    * 🐛 移除局部 PyQt5 导入警告：将 mindmap_view.py 等文件中的局部 PyQt5 导入提升至模块级，彻底消除了扫描器的 PyQt 导入警告。/ Refactored local imports: elevated local PyQt5 imports in mindmap_view.py to module level to eliminate PyQt static import warnings.
    Version 1.5.2:
    * 🔒 深度安全加固与异常规整：消除项目内所有残留的参数拼接子进程调用，支持非 Windows 下安全的包含文件夹定位；全面重写了 20 多个 Bare Except 静默拦截块，通过引入针对性捕获与 logging 日志输出，提升底层逻辑稳定性和排查追踪性。/ Deep security hardening: eliminated all residual string subprocess calls, supported safe platform-agnostic folder opening; refactored 20+ silent try-except-pass blocks with targeted exception types and logging.
    Version 1.5.1:
    * 🔒 安全加固：subprocess.Popen 调用改为列表参数形式，消除命令注入风险（Bandit B602/B603）；非 Windows 平台文件夹打开改用跨平台 subprocess 替代 os.startfile（Bandit B606）；修复 bare except pass 静默吞掉异常的问题（Bandit BLE001）。/ Security hardening: replaced f-string subprocess calls with list args to eliminate injection risk; replaced os.startfile with cross-platform subprocess on non-Windows; replaced bare except pass with proper logging.
    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.
