mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
refactor: 重构项目结构,拆分回调函数并新增功能模块
- 将 callbacks.c 拆分为 cb_edit.c、cb_file.c、cb_main.c 三个模块,提高代码可维护性 - 新增 ui_utils.c 提供通用 UI 辅助函数 - 新增历史记录功能(撤销/重做)和主题切换支持 - 增加合并预览标签页,优化路径有效性检查和环境变量展开 - 更新 Makefile 以支持新的源文件结构
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
#ifndef CB_FILE_H
|
||||
#define CB_FILE_H
|
||||
|
||||
#include <iup.h>
|
||||
|
||||
// 文件和历史记录回调
|
||||
int btn_browse_cb(Ihandle *self);
|
||||
int btn_undo_cb(Ihandle *self);
|
||||
int btn_redo_cb(Ihandle *self);
|
||||
int btn_export_cb(Ihandle *self);
|
||||
int btn_import_cb(Ihandle *self);
|
||||
int list_dropfiles_cb(Ihandle *self, const char *filename, int num, int x, int y);
|
||||
|
||||
#endif // CB_FILE_H
|
||||
Reference in New Issue
Block a user