mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
ea3d678d22
refactor(core): 移除未使用的get_app_context函数 refactor(os_env): 修改backup_registry函数以返回错误码并备份到指定目录 refactor(path_manager): 增强路径管理函数的错误处理
21 lines
756 B
C
21 lines
756 B
C
#ifndef UI_UTILS_H
|
|
#define UI_UTILS_H
|
|
|
|
#include <iup.h>
|
|
#include "utils/string_ext.h"
|
|
|
|
// 刷新单个列表框样式
|
|
// 功能说明:
|
|
// 1. 路径有效性检查:无效路径显示红色前景色 (255 0 0)
|
|
// 2. 重复检查:重复路径显示橙色前景色 (255 128 0),只检查当前项之前的项
|
|
// 3. 斑马纹背景:奇偶行交替显示不同背景色 (白/灰)
|
|
// 注意: 该函数需要IUP控件已设置NAME属性
|
|
void refresh_single_list_style(Ihandle *list);
|
|
|
|
// 同步字符串列表到 UI 列表框
|
|
// 将StringList中的所有项同步到IUP FlatList控件中
|
|
// 会先清空列表然后重新添加所有项,最后刷新样式
|
|
void sync_string_list_to_ui(Ihandle *list_ui, const StringList *str_list);
|
|
|
|
#endif // UI_UTILS_H
|