# WireForge V1 **Repository Path**: QK_4K2/wire-forge-v1 ## Basic Information - **Project Name**: WireForge V1 - **Description**: 1111111111111 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-05-19 - **Last Updated**: 2026-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # WireForgeMain
### 核心特性
- 🔌 **组件管理系统** - 支持 Connector/Terminal 类型组件的 JSON 描述与自动发现
- 📁 **项目管理** - 新建、打开、保存项目,完整的序列化支持
- 🎨 **QFluent UI** - 基于 QFluent 组件库,提供现代化 Fluent Design 界面
- 📑 **图层管理** - 支持多图层、可见性控制、锁定功能
- 🔧 **属性扩展** - 通用的 PropertyBag 属性管理系统
- 🌓 **深色/浅色主题** - 自动主题切换,支持自定义主题色
- 🖥️ **跨平台** - 支持 Windows、Linux、macOS
- 🏗️ **MVC 架构** - 清晰的职责分离,便于维护和扩展
---
## 技术栈
| 类别 | 技术 |
|------|------|
| UI 框架 | [QFluent](https://github.com/toddming/QFluentKit) (基于 Qt 的 Fluent Design) |
| 窗口管理 | QWindowKit (可选,支持无边框窗口) |
| 编程语言 | C++17 |
| 构建系统 | CMake 3.15+ |
| Qt 版本 | Qt 5.12+ / Qt 6.x |
| 数据格式 | JSON |
---
## 环境要求
### Qt 版本
- **Qt 5.12** 或更高版本
- **Qt 6.x** 完全支持
### 必需模块
- Core、Widgets、Svg、Xml
### 编译器
| 平台 | 推荐编译器 |
|------|-----------|
| Windows | MinGW 8.0+ 或 MSVC 2017+ |
| Linux | GCC 7+ 或 Clang 5+ |
| macOS | Clang (Xcode 10+) |
---
## 快速开始
### 1. 克隆项目
```bash
git clone https://github.com/your-repo/WireForgeMain.git
cd WireForgeMain
```
### 2. 构建项目
#### Windows (MinGW)
```bash
mkdir build && cd build
cmake -G "MinGW Makefiles" ..
mingw32-make
```
#### Windows (MSVC)
```bash
mkdir build && cd build
cmake -G "Visual Studio 17 2022" -A x64 ..
cmake --build . --config Release
```
#### Linux/macOS
```bash
mkdir build && cd build
cmake ..
make -j$(nproc)
```
### 3. 运行
```bash
cd build
./WireForgeMain # Linux/macOS
WireForgeMain.exe # Windows
```
---
## 项目架构
### MVC 分层设计
```
┌─────────────────────────────────────────────────────────────┐
│ View 层 │
│ ProjectEditorWidget │ ProjectCanvasWidget │
├─────────────────────────────────────────────────────────────┤
│ Controller 层 │
│ ProjectController (命令分发、Undo/Redo、文件操作协调) │
├─────────────────────────────────────────────────────────────┤
│ Model 层 │
│ ProjectModel │ LayerModel │ ConnectorModel │ WireModel │
├─────────────────────────────────────────────────────────────┤
│ Tools 层 │
│ ProjectSerializer │ ComponentAutoDiscovery │ PropertyBag │
└─────────────────────────────────────────────────────────────┘
```
### 核心数据模型
```
ProjectModel (项目根)
├── m_nodes: QVector