refactor: 将IUP控件从IupMatrix迁移到IupFlatList

简化代码结构并移除对iupcontrols库的依赖。主要变更包括:
- 用IupFlatList替换IupMatrix,简化列表操作API
- 移除iupcontrols.dll和iupimglib.dll依赖,减少部署文件大小
- 更新CMake配置和安装脚本以匹配新的依赖关系
- 重写列表操作函数以使用IupFlatList的API(VALUE、COUNT等属性)
- 调整回调函数签名以匹配新控件的事件参数
- 简化UI创建代码,移除不再需要的图标和属性设置
This commit is contained in:
2026-03-19 20:03:29 +08:00
parent 6a22202ce5
commit c92d20b4b3
11 changed files with 133 additions and 293 deletions
+1 -2
View File
@@ -6,8 +6,7 @@
// 编辑相关回调
int btn_new_cb(Ihandle *self);
int btn_edit_cb(Ihandle *self);
int list_dblclick_cb(Ihandle *self, int lin, int col, char *status);
int matrix_edition_cb(Ihandle *self, int lin, int col, int mode, int update);
int list_dblclick_cb(Ihandle *self, int item, char *text);
int btn_del_cb(Ihandle *self);
int btn_up_cb(Ihandle *self);
int btn_down_cb(Ihandle *self);