Fix whitespace
This commit is contained in:
parent
37a323162f
commit
c0b7f39fd5
2 changed files with 15 additions and 1 deletions
|
|
@ -37,10 +37,15 @@ namespace MatterHackers.MatterControl
|
|||
public class NamedAction
|
||||
{
|
||||
public string Title { get; set; }
|
||||
|
||||
public string Shortcut { get; set; }
|
||||
|
||||
public Action Action { get; set; }
|
||||
|
||||
public ImageBuffer Icon { get; set; }
|
||||
|
||||
public Func<bool> IsEnabled { get; set; }
|
||||
|
||||
public string ID { get; set; }
|
||||
}
|
||||
|
||||
|
|
@ -51,13 +56,16 @@ namespace MatterHackers.MatterControl
|
|||
public class NamedBoolAction : NamedAction
|
||||
{
|
||||
public Func<bool> GetIsActive { get; set; }
|
||||
|
||||
public Action<bool> SetIsActive { get; set; }
|
||||
}
|
||||
|
||||
public abstract class LocalizedAction
|
||||
{
|
||||
public Func<string> TitleResolver { get; set; }
|
||||
|
||||
public string Title => this.TitleResolver?.Invoke();
|
||||
|
||||
public ImageBuffer Icon { get; set; }
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
Copyright (c) 2017, John Lewin
|
||||
Copyright (c) 2019, John Lewin
|
||||
All rights reserved.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -44,11 +44,17 @@ namespace MatterHackers.MatterControl.Library
|
|||
public string OperationID { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public IEnumerable<Type> MappedTypes { get; set; }
|
||||
|
||||
public Func<IObject3D, InteractiveScene, Task> Operation { get; set; }
|
||||
|
||||
public Func<IObject3D, bool> IsEnabled { get; set; }
|
||||
|
||||
public Func<IObject3D, bool> IsVisible { get; set; }
|
||||
|
||||
public Func<ThemeConfig, ImageBuffer> IconCollector { get; set; }
|
||||
|
||||
public Type ResultType { get; set; }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue