mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-09 18:02:52 +08:00
a769a6b9b3
- 将原有扁平目录结构重构为 MVC 分层架构: * src/core/: 核心业务逻辑(Model),完全独立于 UI 框架 * src/ui/: 界面组件构建(View),负责纯视觉展示 * src/controller/: 用户交互处理(Controller),连接数据与界面 * src/utils/: 底层工具函数,专注于系统调用和字符串处理 - 引入 AppContext 结构体统一管理应用状态,替代原有的全局变量模式 - 重命名并重新组织头文件,按功能模块划分到对应子目录 - 更新 CMakeLists.txt 以适配新的目录结构 - 同步更新 README.md 文档,说明新的架构设计
15 lines
399 B
C
15 lines
399 B
C
#ifndef REGISTRY_SERVICE_H
|
|
#define REGISTRY_SERVICE_H
|
|
|
|
#include "utils/string_ext.h"
|
|
|
|
// 加载系统变量和用户变量到字符串列表
|
|
int load_system_paths(StringList *list);
|
|
int load_user_paths(StringList *list);
|
|
|
|
// 从字符串列表保存系统变量和用户变量
|
|
int save_system_paths(const StringList *list);
|
|
int save_user_paths(const StringList *list);
|
|
|
|
#endif // REGISTRY_SERVICE_H
|