mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
3df2988915
- 新增第三个 Tab「合并预览」,只读展示系统+用户 PATH 完整列表 - 选项卡切换时自动刷新合并列表 - 支持无效/重复路径高亮 - 新增中英文翻译 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
30 lines
797 B
C
30 lines
797 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);
|
|
|
|
// 刷新撤销/重做按钮的启用状态
|
|
void refresh_undo_redo_buttons(Ihandle *dlg);
|
|
|
|
// 同步合并预览列表
|
|
void sync_merged_list(Ihandle *dlg);
|
|
|
|
#endif // CALLBACKS_INTERNAL_H
|