完善IActionViewer接口的属性声明(暂时未实现具体定义与逻辑)
This commit is contained in:
@@ -88,18 +88,68 @@ namespace Deedy.Activity
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
[AllowNull, DefaultValue(null)]
|
public Runtime Runtime => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowBreakHandle => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowContinueHandle => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowExitHandle => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowReturnHandle => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowCustomHandle => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowHeader => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowFooter => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowInfoHandle => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowDeleteHandle => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowLeftExitline => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Visibility ShowRightExitline => throw new NotImplementedException();
|
||||||
|
public LogInfo InstantInfo => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public LogInfoCollection LogInfos => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public uint ElementCount => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public bool IsSelectable => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public bool IsSelected => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public bool IsCanExpand => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public bool IsExpanded => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public ViewerState ViewerState => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public WorkMode WorkMode => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Brush FillBrush => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Brush StrokeBrush => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public double StrokeThickness => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Thickness MarginCorrection_Top => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Thickness MarginCorrection_Bottom => throw new NotImplementedException();
|
||||||
|
|
||||||
|
public Thickness MarginCorrection_TopBottom => throw new NotImplementedException();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 动作节点
|
/// 动作节点
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
[AllowNull, DefaultValue(null)]
|
||||||
public IActionElement ActionElement
|
public IActionElement ActionElement
|
||||||
{
|
{
|
||||||
get { return (IActionElement)GetValue(ActionElementProperty); }
|
get { return (IActionElement)GetValue(ActionElementProperty); }
|
||||||
set { SetValue(ActionElementProperty, value); }
|
set { SetValue(ActionElementProperty, value); }
|
||||||
}
|
}
|
||||||
|
|
||||||
public Runtime Runtime => throw new NotImplementedException();
|
|
||||||
|
|
||||||
public static readonly DependencyProperty ActionElementProperty =
|
public static readonly DependencyProperty ActionElementProperty =
|
||||||
DependencyProperty.Register("ActionElement", typeof(IActionElement), typeof(ActionViewer), new PropertyMetadata(null,
|
DependencyProperty.Register("ActionElement", typeof(IActionElement), typeof(ActionViewer), new PropertyMetadata(null,
|
||||||
(d, e) => (d as ActionViewer)?.ActionElement_PropertyChangedCallback(e)));
|
(d, e) => (d as ActionViewer)?.ActionElement_PropertyChangedCallback(e)));
|
||||||
@@ -108,8 +158,24 @@ namespace Deedy.Activity
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
protected virtual void ActionElement_PropertyChangedCallback(DependencyPropertyChangedEventArgs e)
|
protected virtual void ActionElement_PropertyChangedCallback(DependencyPropertyChangedEventArgs e)
|
||||||
{
|
{
|
||||||
//
|
if (e.OldValue is IActionElement oldValue)
|
||||||
|
oldValue.PropertyChanged -= ActionElement_PropertyChanged;
|
||||||
|
if (e.NewValue is IActionElement newValue)
|
||||||
|
{
|
||||||
|
newValue.PropertyChanged += ActionElement_PropertyChanged;
|
||||||
|
//TODO:根据节点的特征与当前工作状态来判定如何处理当前视图的属性
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ActionElement_PropertyChanged(object? sender, PropertyChangedEventArgs e)
|
||||||
|
{
|
||||||
|
switch (e.PropertyName)
|
||||||
|
{
|
||||||
|
//TODO:处理托管的IActionElement节点的属性变更
|
||||||
|
default: break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void ReadyToWorking(IElement? element = null, Output? output = null)
|
public void ReadyToWorking(IElement? element = null, Output? output = null)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
throw new NotImplementedException();
|
||||||
|
|||||||
13
DeedyDesigner/Deedy.Activity/Collection/LogInfoCollection.cs
Normal file
13
DeedyDesigner/Deedy.Activity/Collection/LogInfoCollection.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public class LogInfoCollection : ObservableCollection<LogInfo>
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
13
DeedyDesigner/Deedy.Activity/Collection/OutputCollection.cs
Normal file
13
DeedyDesigner/Deedy.Activity/Collection/OutputCollection.cs
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Collections.ObjectModel;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace Deedy.Activity
|
||||||
|
{
|
||||||
|
public class OutputCollection : ObservableCollection<Output>
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -3,10 +3,12 @@ using System.Collections.Generic;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
namespace Deedy.Activity
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public class Info
|
public class LogInfo
|
||||||
{
|
{
|
||||||
|
public LogInfo() { }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
|||||||
|
|
||||||
namespace Deedy.Activity
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
public enum ViewState : int
|
public enum ViewerState : int
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 正常状态
|
/// 正常状态
|
||||||
@@ -8,7 +8,7 @@ namespace Deedy.Activity
|
|||||||
{
|
{
|
||||||
public abstract class Output
|
public abstract class Output
|
||||||
{
|
{
|
||||||
protected abstract void DoAppendInfo(Info info);
|
protected abstract void DoAppendInfo(LogInfo info);
|
||||||
public void AppendInfo(Info info) { this.DoAppendInfo(info); }
|
public void AppendInfo(LogInfo info) { this.DoAppendInfo(info); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,11 @@ using System.Collections.Generic;
|
|||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Security.Policy;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.Windows;
|
using System.Windows;
|
||||||
|
using System.Windows.Media;
|
||||||
|
|
||||||
namespace Deedy.Activity
|
namespace Deedy.Activity
|
||||||
{
|
{
|
||||||
@@ -13,5 +15,33 @@ namespace Deedy.Activity
|
|||||||
{
|
{
|
||||||
[AllowNull]
|
[AllowNull]
|
||||||
public IActionElement ActionElement { get; set; }
|
public IActionElement ActionElement { get; set; }
|
||||||
|
public Visibility ShowBreakHandle { get; }
|
||||||
|
public Visibility ShowContinueHandle { get; }
|
||||||
|
public Visibility ShowExitHandle { get; }
|
||||||
|
public Visibility ShowReturnHandle { get; }
|
||||||
|
public Visibility ShowCustomHandle { get; }
|
||||||
|
public Visibility ShowHeader { get; }
|
||||||
|
public Visibility ShowFooter { get; }
|
||||||
|
public Visibility ShowInfoHandle { get; }
|
||||||
|
public Visibility ShowDeleteHandle { get; }
|
||||||
|
public Visibility ShowLeftExitline { get; }
|
||||||
|
public Visibility ShowRightExitline { get; }
|
||||||
|
public uint ElementCount { get; }
|
||||||
|
public bool IsCanExpand { get; }
|
||||||
|
public bool IsExpanded { get; }
|
||||||
|
public bool IsSelectable { get; }
|
||||||
|
public bool IsSelected { get; }
|
||||||
|
[AllowNull]
|
||||||
|
public LogInfo InstantInfo { get; }
|
||||||
|
[AllowNull]
|
||||||
|
public LogInfoCollection LogInfos { get; }
|
||||||
|
public ViewerState ViewerState { get; }
|
||||||
|
public WorkMode WorkMode { get; }
|
||||||
|
public Brush FillBrush { get; }
|
||||||
|
public Brush StrokeBrush { get; }
|
||||||
|
public double StrokeThickness { get; }
|
||||||
|
public Thickness MarginCorrection_Top { get; }
|
||||||
|
public Thickness MarginCorrection_Bottom { get; }
|
||||||
|
public Thickness MarginCorrection_TopBottom { get; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user