mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
cf19a37a97
- 新增 CMake 测试框架配置,支持 safe_string、string_ext 和 path_manager 模块的单元测试 - 实现 Windows API Mock 机制,便于测试编码转换函数 - 添加 error_code 模块的字符串表示函数,支持英文错误日志 - 在 UI 回调函数中集成国际化翻译,覆盖新建、编辑、导入导出等操作提示 - 扩展 string_list 功能,新增重复路径检查函数 - 更新翻译文件,同步所有用户界面的中英文文本
24 lines
640 B
C
24 lines
640 B
C
#ifndef CALLBACKS_INTERNAL_H
|
|
#define CALLBACKS_INTERNAL_H
|
|
|
|
#include <iup.h>
|
|
#include "core/app_context.h"
|
|
#include "utils/i18n.h"
|
|
|
|
// 内部辅助函数声明(供各 callbacks_*.c 文件共享)
|
|
// 这些函数不对外暴露,仅在 controller 层内部使用
|
|
|
|
// 获取主对话框句柄
|
|
Ihandle *get_main_dlg(void);
|
|
|
|
// 从对话框获取应用上下文
|
|
AppContext *get_app_context_from_dlg(Ihandle *dlg);
|
|
|
|
// 获取当前活动的数据列表(根据 Tab 页切换)
|
|
StringList *get_current_raw_data(Ihandle *dlg);
|
|
|
|
// 获取当前活动的列表 UI 控件
|
|
Ihandle *get_current_list(Ihandle *dlg);
|
|
|
|
#endif // CALLBACKS_INTERNAL_H
|