Files
network-debugger/MODIFICATIONS.md
T

31 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 修改事项
以下为本次相对于 e9b3100(初始提交)的改动记录。
## 1. 接收区字体大小:Ctrl + 鼠标滚轮调整
- 新增 `RecvEdit` 类(继承 `QPlainTextEdit`),重写 `wheelEvent`
按住 **Ctrl + 滚轮** 即可放大/缩小接收区字体(范围 8~40pt)。
- 接收区改用 `RecvEdit` 并通过 `QFont` 设置字体,替换原来的 stylesheet 方式。
## 2. 导出/导入配置扩展
- `export_config` 现在经 `collect_config` 导出以下内容:
- 接收设置:显示格式(ASCII/HEX)、时间戳、INFO 勾选;
- 发送设置:内容格式(文本/HEX)、回车发送、回车换行、定时发送及间隔;
- 应答设置:自动应答、解析格式、回应格式勾选;
- 字体大小、应答规则、批量发送。
- **保存日志(chk_save_log)不参与导出/导入**,避免日志目录误恢复。
- `import_config` 通过 `apply_config` 统一恢复上述设置,兼容旧的 `reply_rules` / `batch_rows` 配置文件格式。
## 3. 关闭自动保存、重启自动恢复配置
- `MainWindow` 持有串口/TCP/UDP 三个面板引用。
- `closeEvent` 时把各面板配置写入同目录 `app_config.json`
- 启动时自动读取并恢复,无需每次手动导入配置。
## 4. TCP 服务端发送改为广播所有客户端
- `NetPanel.actual_send` 服务端分支不再限定于下拉框选中的客户端,改为发送给**所有已连接客户端**。
## 5. 窗口置顶功能
- 新增顶栏"窗口置顶"勾选框。
- 使用 Windows `SetWindowPos` API(Win32)调整 z 序实现置顶,无闪烁;
为 API 声明了 `argtypes` 防止 64 位句柄被截断,API 失败时回退到 `setWindowFlag`
- 置顶状态随 `app_config.json` 自动保存/恢复。