This commit is contained in:
LarsBrubaker 2020-05-30 08:59:32 -07:00
parent a42be48de0
commit 392583ad79
2 changed files with 13 additions and 13 deletions

View file

@ -36,17 +36,17 @@ 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 ImageBuffer Icon { get; set; }
public string ID { get; set; }
public string Shortcut { get; set; }
public string Title { get; set; }
}
public class ActionSeparator : NamedAction

View file

@ -41,19 +41,19 @@ namespace MatterHackers.Agg.UI
{
public Action<ISceneContext> Action { get; set; }
public Func<ISceneContext, bool> IsEnabled { get; set; } = (sceneContext) => true;
public Type OperationType { get; set; }
public Func<bool, ImageBuffer> Icon { get; set; }
public Func<string> TitleResolver { get; set; }
public string Title => this.TitleResolver?.Invoke();
public Func<ISceneContext, bool> IsEnabled { get; set; } = (sceneContext) => true;
public Func<string> HelpTextResolver { get; set; }
public Func<string> TitleResolver { get; set; }
public string HelpText => this.HelpTextResolver?.Invoke();
public string Title => this.TitleResolver?.Invoke();
public Type OperationType { get; set; }
}
public class SceneSelectionSeparator : SceneSelectionOperation