port from perforce

This commit is contained in:
2026-04-18 22:31:51 +02:00
commit 8d0ab5b7cc
8409 changed files with 3972376 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
using System;
using Intromat.Interfaces;
using Intromat.Nodes.Code;
using Intromat.Views.Editors;
using NodeNetwork.Toolkit.ValueNode;
using ReactiveUI;
using Splat;
namespace Intromat.ViewModels.Editors
{
public class EnumEditorViewModel : ValueEditorViewModel<int>, IExpressionEditor
{
static EnumEditorViewModel()
{
Locator.CurrentMutable.Register(() => new EnumEditorView(), typeof(IViewFor<EnumEditorViewModel>));
}
public EnumEditorViewModel(Type enumType)
{
EnumType = enumType;
}
public Type EnumType { get; }
public ERelativeSource RelativeSource
{
get => ERelativeSource.Custom;
set => throw new NotSupportedException();
}
public bool HasParentSource => false;
public bool HasInputSource => false;
public CodeGenPortViewModel CodeGenPort => (CodeGenPortViewModel)Parent.Port;
}
}