[1297] 另存为对话框 stem/tmu 互相可选 - #4550
Open
da-liii wants to merge 3 commits into
Open
Conversation
Co-Authored-By: Claude <noreply@anthropic.com>
- stem 方向:chooser_stem_save_as_filters(原 chooser_style_filters 改名) 追加 TMU files (*.tmu) 过滤器 - tmu 方向:action_save_as 过滤器列表追加 STEM files (*.stem) - ImGui 选择器 action_save_as extensions 追加 stem,与 Qt 保持一致 Co-Authored-By: Claude <noreply@anthropic.com>
- chooser_save_as_target 覆盖 .tmu(返回 tmu 不改写建议名),tmu buffer 切 STEM/TM 过滤器时经 chooser_normalize_suffix 规范最终文件名, 消除切过滤器不改名静默存原格式及 foo.tmu.tm 双后缀 - 修正 perform_dialog 头部陈旧注释(clang-format 断行 + 仍写 tmu/tm) - test_style_filters 改名 test_stem_save_as_filters,新增 test_rewrite_tmu - ImGui extensions 加注释说明 parity 性质(暂无消费者) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
需求
1279 之后另存为对话框按当前 buffer 格式收窄过滤器,stem/tmu 两个方向互不可达:
STEM files (*.stem)与TS files (*.ts)TMU files (*.tmu)与TM files (*.tm)本 PR 让两个方向互相可选:stem 格式的 save_as 增加 tmu,tmu 格式的 save_as 增加 stem。
改动
chooser_stem_save_as_filters()(原chooser_style_filters改名)追加TMU files (*.tmu);默认仍是 STEM,切到 TMU 过滤器时沿用 1279 既有路径按所选过滤器后缀规范文件名set_type的action_save_as分支追加STEM files (*.stem);默认后缀仍是 tmu,切到 STEM 过滤器输无后缀文件名时按 QTBUG-59401 补全逻辑追加.stemaction_save_as的 extensions 追加stem,与 Qt 保持一致(桌面端为 stub,不影响行为)has-faithful-format?已同时包含 stem/tmu测试
qt_chooser_filters_test9 项全部通过(更新test_style_filters为三项过滤器断言)🤖 Generated with Claude Code