2025-03-22 18:14:48 +08:00
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
using Newtonsoft.Json.Linq;
|
2025-05-27 23:46:06 +08:00
|
|
|
|
using Serein.Library;
|
2025-03-22 18:14:48 +08:00
|
|
|
|
using Serein.Workbench.ViewModels;
|
|
|
|
|
|
using Serein.Workbench.Views;
|
|
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
using System.Linq;
|
2025-05-26 23:55:23 +08:00
|
|
|
|
using System.Reflection.Metadata;
|
2025-03-22 18:14:48 +08:00
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using System.Xml.Linq;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Serein.Workbench.Models
|
|
|
|
|
|
{
|
2025-07-30 21:15:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// FlowEditorTabModel 类表示一个流程编辑器的标签模型。
|
|
|
|
|
|
/// </summary>
|
2025-05-26 23:55:23 +08:00
|
|
|
|
public partial class FlowEditorTabModel : ObservableObject
|
2025-03-22 18:14:48 +08:00
|
|
|
|
{
|
2025-05-27 23:46:06 +08:00
|
|
|
|
[ObservableProperty]
|
2025-07-30 21:15:07 +08:00
|
|
|
|
private FlowCanvasDetails? _model;
|
2025-03-22 18:14:48 +08:00
|
|
|
|
|
2025-05-26 23:55:23 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 正在选中
|
|
|
|
|
|
/// </summary>
|
2025-03-22 18:14:48 +08:00
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private bool _isSelected;
|
2025-05-26 23:55:23 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// 正在编辑标题
|
|
|
|
|
|
/// </summary>
|
2025-03-22 18:14:48 +08:00
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private bool _isEditing;
|
2025-05-26 23:55:23 +08:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// tab对应的控件
|
|
|
|
|
|
/// </summary>
|
2025-03-22 18:14:48 +08:00
|
|
|
|
[ObservableProperty]
|
2025-07-30 21:15:07 +08:00
|
|
|
|
private FlowCanvasView? content;
|
2025-03-22 18:14:48 +08:00
|
|
|
|
|
2025-07-30 21:15:07 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// FlowEditorTabModel 构造函数
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="content"></param>
|
2025-03-22 18:14:48 +08:00
|
|
|
|
|
2025-05-26 23:55:23 +08:00
|
|
|
|
public FlowEditorTabModel(FlowCanvasView content)
|
2025-03-22 18:14:48 +08:00
|
|
|
|
{
|
2025-05-26 23:55:23 +08:00
|
|
|
|
this.Content = content;
|
2025-03-22 18:14:48 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|