sorting
This commit is contained in:
parent
a42be48de0
commit
392583ad79
2 changed files with 13 additions and 13 deletions
|
|
@ -36,17 +36,17 @@ namespace MatterHackers.MatterControl
|
||||||
{
|
{
|
||||||
public class NamedAction
|
public class NamedAction
|
||||||
{
|
{
|
||||||
public string Title { get; set; }
|
|
||||||
|
|
||||||
public string Shortcut { get; set; }
|
|
||||||
|
|
||||||
public Action Action { get; set; }
|
public Action Action { get; set; }
|
||||||
|
|
||||||
public ImageBuffer Icon { get; set; }
|
|
||||||
|
|
||||||
public Func<bool> IsEnabled { get; set; }
|
public Func<bool> IsEnabled { get; set; }
|
||||||
|
|
||||||
|
public ImageBuffer Icon { get; set; }
|
||||||
|
|
||||||
public string ID { get; set; }
|
public string ID { get; set; }
|
||||||
|
|
||||||
|
public string Shortcut { get; set; }
|
||||||
|
|
||||||
|
public string Title { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class ActionSeparator : NamedAction
|
public class ActionSeparator : NamedAction
|
||||||
|
|
|
||||||
|
|
@ -41,19 +41,19 @@ namespace MatterHackers.Agg.UI
|
||||||
{
|
{
|
||||||
public Action<ISceneContext> Action { get; set; }
|
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<bool, ImageBuffer> Icon { get; set; }
|
||||||
|
|
||||||
public Func<string> TitleResolver { get; set; }
|
public Func<ISceneContext, bool> IsEnabled { get; set; } = (sceneContext) => true;
|
||||||
|
|
||||||
public string Title => this.TitleResolver?.Invoke();
|
|
||||||
|
|
||||||
public Func<string> HelpTextResolver { get; set; }
|
public Func<string> HelpTextResolver { get; set; }
|
||||||
|
|
||||||
|
public Func<string> TitleResolver { get; set; }
|
||||||
|
|
||||||
public string HelpText => this.HelpTextResolver?.Invoke();
|
public string HelpText => this.HelpTextResolver?.Invoke();
|
||||||
|
|
||||||
|
public string Title => this.TitleResolver?.Invoke();
|
||||||
|
|
||||||
|
public Type OperationType { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
public class SceneSelectionSeparator : SceneSelectionOperation
|
public class SceneSelectionSeparator : SceneSelectionOperation
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue