mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-09 18:02:52 +08:00
55d0f80743
- 添加 import_export 模块,实现 JSON 格式的导入导出 - 在界面中添加导入和导出按钮,并配置回调函数 - 更新配置文件,增加相关文本和状态提示 - 在非管理员权限下禁用导入按钮
35 lines
830 B
C
35 lines
830 B
C
#ifndef CALLBACKS_H
|
|
#define CALLBACKS_H
|
|
|
|
#include <iup.h>
|
|
|
|
// 按钮回调
|
|
int btn_new_cb(Ihandle *self);
|
|
int btn_edit_cb(Ihandle *self);
|
|
int btn_browse_cb(Ihandle *self);
|
|
int btn_del_cb(Ihandle *self);
|
|
int btn_up_cb(Ihandle *self);
|
|
int btn_down_cb(Ihandle *self);
|
|
int btn_clean_cb(Ihandle *self);
|
|
int btn_import_cb(Ihandle *self);
|
|
int btn_export_cb(Ihandle *self);
|
|
int btn_ok_cb(Ihandle *self);
|
|
int btn_cancel_cb(Ihandle *self);
|
|
int btn_help_cb(Ihandle *self);
|
|
|
|
// 搜索回调
|
|
int txt_search_cb(Ihandle *self);
|
|
|
|
// 双击回调
|
|
int list_dblclick_cb(Ihandle *self, int item, char *text);
|
|
|
|
// 拖拽回调
|
|
int list_dropfiles_cb(Ihandle *self, const char *filename, int num, int x, int y);
|
|
|
|
// 键盘按键回调
|
|
int list_k_any_cb(Ihandle *self, int c);
|
|
|
|
// 载入数据与更新UI
|
|
void load_all_paths(void);
|
|
|
|
#endif // CALLBACKS_H
|