Allow plugins to register scene operations
This commit is contained in:
parent
20dc2f6bd3
commit
b0a3d9e40f
1 changed files with 14 additions and 0 deletions
|
|
@ -2207,6 +2207,20 @@ namespace MatterHackers.MatterControl
|
|||
items.Add(printItemAction);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Register the given SceneSelectionOperation
|
||||
/// </summary>
|
||||
/// <param name="operation">The action to register</param>
|
||||
public void RegisterSceneOperation(SceneSelectionOperation operation)
|
||||
{
|
||||
if (operation.OperationType != null)
|
||||
{
|
||||
this.Thumbnails.OperationIcons.Add(operation.OperationType, operation.Icon);
|
||||
}
|
||||
|
||||
registeredSceneOperations.Add(operation);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Enumerate the given section, returning all registered actions
|
||||
/// </summary>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue