mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
feat(ui): 统一管理IUP控件名称常量,增强可维护性
refactor(core): 移除未使用的get_app_context函数 refactor(os_env): 修改backup_registry函数以返回错误码并备份到指定目录 refactor(path_manager): 增强路径管理函数的错误处理
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
#ifndef UI_CONSTANTS_H
|
||||
#define UI_CONSTANTS_H
|
||||
|
||||
// 缓冲区大小常量
|
||||
#define PATH_BUFFER_SIZE 4096
|
||||
|
||||
// 控件名称常量 - 统一管理所有IUP控件名称字符串
|
||||
// 使用这些常量替代硬编码字符串,便于维护和减少拼写错误
|
||||
|
||||
// 列表控件
|
||||
#define CTRL_LIST_SYS "LIST_SYS"
|
||||
#define CTRL_LIST_USER "LIST_USER"
|
||||
|
||||
// 选项卡
|
||||
#define CTRL_TABS_MAIN "TABS_MAIN"
|
||||
|
||||
// 搜索框
|
||||
#define CTRL_TXT_SEARCH "TXT_SEARCH"
|
||||
|
||||
// 状态标签
|
||||
#define CTRL_LBL_STATUS "LBL_STATUS"
|
||||
|
||||
// 操作按钮
|
||||
#define CTRL_BTN_NEW "BTN_NEW"
|
||||
#define CTRL_BTN_EDIT "BTN_EDIT"
|
||||
#define CTRL_BTN_BROWSE "BTN_BROWSE"
|
||||
#define CTRL_BTN_DEL "BTN_DEL"
|
||||
#define CTRL_BTN_UP "BTN_UP"
|
||||
#define CTRL_BTN_DOWN "BTN_DOWN"
|
||||
#define CTRL_BTN_CLEAN "BTN_CLEAN"
|
||||
#define CTRL_BTN_IMPORT "BTN_IMPORT"
|
||||
#define CTRL_BTN_EXPORT "BTN_EXPORT"
|
||||
#define CTRL_BTN_OK "BTN_OK"
|
||||
#define CTRL_BTN_CANCEL "BTN_CANCEL"
|
||||
#define CTRL_BTN_HELP "BTN_HELP"
|
||||
#define CTRL_BTN_LANG "BTN_LANG"
|
||||
|
||||
#endif // UI_CONSTANTS_H
|
||||
Reference in New Issue
Block a user