From bd198cac02668e46f00b0e14c424de6bb36557d7 Mon Sep 17 00:00:00 2001 From: liuyu65 Date: Thu, 8 Oct 2026 12:11:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E5=90=8D=E3=80=8C=E6=97=B6?= =?UTF-8?q?=E5=BA=8F=E5=9B=BE=E8=AE=BE=E8=AE=A1=E3=80=8D=E5=B9=B6=E5=8F=91?= =?UTF-8?q?=E5=B8=83=20V1.0.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 软件名:时序图设计器 → 时序图设计(窗口标题 / 关于页 / 导出标题 / 文档 / Android 应用名) - 左上角标志区只显示「时序图」 - 版本号 1.0.4+5 → 1.0.5+6 --- BUILD-NOTES.md | 4 ++-- README.md | 12 ++++++------ android/app/src/main/AndroidManifest.xml | 2 +- docs/ARCHITECTURE.md | 2 +- docs/DESIGN.md | 2 +- docs/HELP.md | 4 ++-- lib/export/export_fit.dart | 2 +- lib/main.dart | 6 +++--- lib/ui/app_shell.dart | 4 ++-- lib/ui/dialogs.dart | 4 ++-- pubspec.yaml | 4 ++-- tools/keygen/keygen.cpp | 4 ++-- windows/runner/Runner.rc | 4 ++-- windows/runner/flutter_window.cpp | 2 +- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/BUILD-NOTES.md b/BUILD-NOTES.md index d36b75b..3df092f 100644 --- a/BUILD-NOTES.md +++ b/BUILD-NOTES.md @@ -127,10 +127,10 @@ flutter pub get flutter build apk --release # 产物:build\app\outputs\flutter-apk\app-release.apk ``` -- 发布包归档:`release\sequence_diagram_android_v1.0.4_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。 +- 发布包归档:`release\sequence_diagram_android_v1.0.5_release.apk`(universal:arm64-v8a / armeabi-v7a / x86_64)。 - 上架应用商店时建议在 `android\app\build.gradle.kts` 配置正式签名后再构建 AAB: `flutter build appbundle --release`。 -- 应用名「时序图设计器」、包名 `cc.sincos.sequence_diagram`、launcher 图标由 +- 应用名「时序图设计」、包名 `cc.sincos.sequence_diagram`、launcher 图标由 `tools\gen-android-icons.py` 生成(与桌面版「环序」标志同源)。 ### 正式签名 diff --git a/README.md b/README.md index 8760f47..ea05bf7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 时序图设计器 · Sequence Diagram Studio +# 时序图设计 · Sequence Diagram Studio 面向 **PLC 流程节拍设计 / 相位角设计** 的桌面设计软件(Flutter Desktop)。 @@ -9,7 +9,7 @@ - **深色 / 浅色双主题**:右上角 ☀ / ☾ 一键切换,语义颜色不变,导出 SVG 与屏幕一致 - **导出 SVG**:矢量、分层、带语义 `id` / `data-*` 元数据,可直接进工艺卡与 MES -## 正式版 V1.0.4 +## 正式版 V1.0.5 **可运行的 Flutter Windows 桌面正式版**(源码在 `lib/`),设计人:呆头鹅。 @@ -90,14 +90,14 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模 ## 安卓版(Android) - **目标分辨率**:1280×800dp(2560×1600 物理),并动态兼容其它横竖屏分辨率; -- **无 license 授权**(面向应用商店分发);包名 `cc.sincos.sequence_diagram`,应用名「时序图设计器」; +- **无 license 授权**(面向应用商店分发);包名 `cc.sincos.sequence_diagram`,应用名「时序图设计」; - **文件保存**:工程 / SVG / PNG 保存到系统公共目录(文件管理器可见,默认 `Documents/SequenceDiagram`,可在保存对话框「更改位置」中选择文档/下载/图片 + 自定义子文件夹;Android 10+ 走 MediaStore,无需权限); - **导出格式**:固定 **1920×1080**,标题恒定左上、图例恒定左下,内容按包围盒自适应缩放居中(SVG / PNG 一致,exe 与安卓一致); - **触控手势**:**单指点选选中动作,按住整体拖动移动**;选中后两端显示白色把手,抓把手拖动改时长(抓取目标加大);**双指捏合缩放 / 双指平移**(以捏合焦点为锚点);空白单指不平移;全屏无黑边(状态栏/导航栏区域融入界面); - **正式签名**:release 用独立 keystore 签名(`android/key/release.jks`,见 `BUILD-NOTES.md`),更新安装无需卸载重装; - **构建**:JDK 17 + Android SDK 36(详见 `BUILD-NOTES.md`),Gradle 与 Maven 已配置国内镜像: ```bash - flutter build apk --release # 产物 → release/sequence_diagram_android_v1.0.4_release.apk + flutter build apk --release # 产物 → release/sequence_diagram_android_v1.0.5_release.apk ``` - **自测**:`test/tablet_layout_test.dart` 覆盖 1280×800、2560×1600、960×600、800×480、竖屏 800×1280、600×960 等 7 种分辨率的无溢出回归; - **demo 图**:`demo/tablet-*.png`(由 `test/tablet_screenshots_test.dart` 生成)。 @@ -111,8 +111,8 @@ Flutter 3.29+(Desktop) · CustomPainter 自绘 · Riverpod · 不可变模 ## 关于 -- **软件**:时序图设计器 · Sequence Diagram Studio +- **软件**:时序图设计 · Sequence Diagram Studio - **设计人**:呆头鹅 -- **版本**:V1.0.4 +- **版本**:V1.0.5 - **版权**:Copyright © 2026 呆头鹅。保留所有权利。 - **架构文档**:[`docs/ARCHITECTURE.md`](docs/ARCHITECTURE.md) · **使用帮助**:[`docs/HELP.md`](docs/HELP.md) diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 8e5f70c..4f08117 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -4,7 +4,7 @@ android:name="android.permission.WRITE_EXTERNAL_STORAGE" android:maxSdkVersion="28" /> 面向 PLC 流程节拍 / 相位角设计的 Flutter Windows 桌面软件。 > 本文档描述代码结构、数据流、关键算法与**可优化点**,供后续性能与体验优化使用。 diff --git a/docs/DESIGN.md b/docs/DESIGN.md index db38595..c4dfbb8 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -1,4 +1,4 @@ -# 时序图设计器(Sequence Diagram Studio)设计文档 +# 时序图设计(Sequence Diagram Studio)设计文档 > PLC 流程节拍设计 / 相位角设计软件 > 版本 v0.1(设计草案) · 2026-09-17 diff --git a/docs/HELP.md b/docs/HELP.md index ad52093..2d323bd 100644 --- a/docs/HELP.md +++ b/docs/HELP.md @@ -1,4 +1,4 @@ -# 时序图设计器 · 使用帮助 +# 时序图设计 · 使用帮助 > 面向 **PLC 流程节拍 / 相位角设计** 的桌面软件(Flutter Desktop)。 > 应用内按 **F1**(或点顶部工具栏最右侧的 **?**)可随时打开同一份帮助。 @@ -37,7 +37,7 @@ | 位置 | 元素 | 说明 | | --- | --- | --- | -| 左 | 应用标志 + 「时序图设计器」 | 原创「环序」标志 | +| 左 | 应用标志 + 「时序图」 | 原创「环序」标志 | | 左 | 新建 / 打开 / 保存 | **纯图标**(`Ctrl+N / O / S`) | | 左 | 撤销 / 重做 | **纯图标**,不可用时自动置灰(`Ctrl+Z / Y`) | | 左 | **AI 生成** | 打开自然语言生成对话框 | diff --git a/lib/export/export_fit.dart b/lib/export/export_fit.dart index eba1005..927683d 100644 --- a/lib/export/export_fit.dart +++ b/lib/export/export_fit.dart @@ -82,7 +82,7 @@ String exportSubtitle(Project project, ViewMode mode) { /// 导出图例(左下角固定)。 String exportLegend(Project project) => - '时序图设计器 · ${project.name} · 循环 ${tfmt(project.cycle.durationMs, project.units)} = 360°'; + '时序图设计 · ${project.name} · 循环 ${tfmt(project.cycle.durationMs, project.units)} = 360°'; /// 导出专用令牌:始终使用浅色、**纯白背景**(印刷 / 工艺卡导向), /// 文字、语义色与屏幕浅色主题保持一致。 diff --git a/lib/main.dart b/lib/main.dart index 9a76c71..418a97d 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -78,7 +78,7 @@ class _SequenceDiagramAppState extends State { /// 原生窗口标题通道(在 Windows runner 中实现 SetWindowText)。 static const MethodChannel _windowChannel = MethodChannel('seqstudio/window'); - /// 更新原生窗口标题为「时序图设计器 - <文件名 | 未命名文件>」, + /// 更新原生窗口标题为「时序图设计 - <文件名 | 未命名文件>」, /// 有未保存修改时追加 ` *`。 void _updateWindowTitle() { final String name = _controller.filePath == null @@ -86,7 +86,7 @@ class _SequenceDiagramAppState extends State { : _controller.filePath!.split(RegExp(r'[\\/]')).last; final String dirty = _controller.dirty ? ' *' : ''; _windowChannel - .invokeMethod('setTitle', '时序图设计器 - $name$dirty') + .invokeMethod('setTitle', '时序图设计 - $name$dirty') .catchError((Object _) {}); } @@ -161,7 +161,7 @@ class _SequenceDiagramAppState extends State { builder: (BuildContext context, Widget? child) { final Tokens tokens = Tokens.of(_controller.brightness); return MaterialApp( - title: '时序图设计器 · Sequence Diagram Studio', + title: '时序图设计 · Sequence Diagram Studio', debugShowCheckedModeBanner: false, theme: buildTheme(tokens), // 固定文本缩放;系统栏图标随主题亮度自动切换(透明系统栏, diff --git a/lib/ui/app_shell.dart b/lib/ui/app_shell.dart index 596891f..07c6b95 100644 --- a/lib/ui/app_shell.dart +++ b/lib/ui/app_shell.dart @@ -485,7 +485,7 @@ class _AppShellState extends State { mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('时序图设计器', + Text('时序图', style: TextStyle( color: t.text, fontSize: _toolFont(14), @@ -529,7 +529,7 @@ class _AppShellState extends State { left = [ AppLogo(size: 28 * s), SizedBox(width: 8 * s), - Text('时序图设计器', + Text('时序图', style: TextStyle( color: t.text, fontSize: _toolFont(13), diff --git a/lib/ui/dialogs.dart b/lib/ui/dialogs.dart index 0701d6e..49d475b 100644 --- a/lib/ui/dialogs.dart +++ b/lib/ui/dialogs.dart @@ -2121,10 +2121,10 @@ class HelpDialog extends StatelessWidget { child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ - Text('时序图设计器 · Sequence Diagram Studio', + Text('时序图设计 · Sequence Diagram Studio', style: TextStyle(color: t.text, fontSize: 15, fontWeight: FontWeight.w700)), const SizedBox(height: 4), - Text('V1.0.4(${android ? '安卓版' : 'Windows 版'})', + Text('V1.0.5(${android ? '安卓版' : 'Windows 版'})', style: TextStyle(color: t.dim, fontSize: 12)), ], ), diff --git a/pubspec.yaml b/pubspec.yaml index 416997e..bb99790 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: sequence_diagram -description: "时序图设计器 · Sequence Diagram Studio —— 面向 PLC 流程节拍 / 相位角设计的桌面软件。" +description: "时序图设计 · Sequence Diagram Studio —— 面向 PLC 流程节拍 / 相位角设计的桌面软件。" # The following line prevents the package from being accidentally published to # pub.dev using `flutter pub publish`. This is preferred for private packages. publish_to: 'none' # Remove this line if you wish to publish to pub.dev @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.0.4+5 +version: 1.0.5+6 environment: sdk: ^3.13.3 diff --git a/tools/keygen/keygen.cpp b/tools/keygen/keygen.cpp index 7548001..499defd 100644 --- a/tools/keygen/keygen.cpp +++ b/tools/keygen/keygen.cpp @@ -1,4 +1,4 @@ -// keygen.cpp -- Win32 GUI license key generator for 时序图设计器. +// keygen.cpp -- Win32 GUI license key generator for 时序图设计. // // Enter a MAC address (e.g. AA-BB-CC-DD-EE-FF), press "生成", and copy the // resulting single-line license string into a .lic file under the app's @@ -182,7 +182,7 @@ int WINAPI wWinMain(HINSTANCE instance, HINSTANCE, PWSTR, int show) { const int w = 600, h = 260; const int x = (GetSystemMetrics(SM_CXSCREEN) - w) / 2; const int y = (GetSystemMetrics(SM_CYSCREEN) - h) / 2; - HWND hwnd = CreateWindowExW(0, wc.lpszClassName, L"时序图设计器 · 授权码生成器", + HWND hwnd = CreateWindowExW(0, wc.lpszClassName, L"时序图设计 · 授权码生成器", WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX, x, y, w, h, nullptr, nullptr, instance, nullptr); diff --git a/windows/runner/Runner.rc b/windows/runner/Runner.rc index 7eb7995..48eec94 100644 --- a/windows/runner/Runner.rc +++ b/windows/runner/Runner.rc @@ -90,12 +90,12 @@ BEGIN BLOCK "040904e4" BEGIN VALUE "CompanyName", "呆头鹅" "\0" - VALUE "FileDescription", "时序图设计器 Sequence Diagram Studio" "\0" + VALUE "FileDescription", "时序图设计 Sequence Diagram Studio" "\0" VALUE "FileVersion", VERSION_AS_STRING "\0" VALUE "InternalName", "sequence_diagram" "\0" VALUE "LegalCopyright", "Copyright (C) 2026 呆头鹅. All rights reserved." "\0" VALUE "OriginalFilename", "sequence_diagram.exe" "\0" - VALUE "ProductName", "时序图设计器" "\0" + VALUE "ProductName", "时序图设计" "\0" VALUE "ProductVersion", VERSION_AS_STRING "\0" END END diff --git a/windows/runner/flutter_window.cpp b/windows/runner/flutter_window.cpp index 5afd040..e57bfed 100644 --- a/windows/runner/flutter_window.cpp +++ b/windows/runner/flutter_window.cpp @@ -33,7 +33,7 @@ bool FlutterWindow::OnCreate() { SetChildContent(flutter_controller_->view()->GetNativeWindow()); // Method channel used by the Dart side to update the native window title - // (e.g. "时序图设计器 - "). + // (e.g. "时序图设计 - "). title_channel_ = std::make_unique>( flutter_controller_->engine()->messenger(), "seqstudio/window",