mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
b35fac5358
- 将 callbacks.c 拆分为 cb_edit.c、cb_file.c、cb_main.c 三个模块,提高代码可维护性 - 新增 ui_utils.c 提供通用 UI 辅助函数 - 新增历史记录功能(撤销/重做)和主题切换支持 - 增加合并预览标签页,优化路径有效性检查和环境变量展开 - 更新 Makefile 以支持新的源文件结构
19 lines
549 B
C
19 lines
549 B
C
#ifndef UI_UTILS_H
|
|
#define UI_UTILS_H
|
|
|
|
#include <iup.h>
|
|
#include "globals.h"
|
|
|
|
// 辅助函数声明
|
|
int get_first_selected_index(Ihandle *list);
|
|
void set_single_selection(Ihandle *list, int index);
|
|
void refresh_ui_from_raw(Ihandle *list, StringList *raw);
|
|
void record_history();
|
|
int custom_input_dialog(const char *title, const char *label_text, char *buffer, int buffer_size);
|
|
Ihandle *get_current_list();
|
|
void remove_from_raw_data(StringList *list, const char *str);
|
|
void toggle_edit_buttons(int enable);
|
|
void apply_theme();
|
|
|
|
#endif // UI_UTILS_H
|