Class TemplateEditor<T>
- Namespace
- AlphaFramework.Editor.World
- Assembly
- AlphaFramework.Editor.dll
Abstract base tab for editing Template<TSelf>es
public abstract class TemplateEditor<T> : UndoCloneTab<NamedCollection<T>>, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl where T : Template<T>
Type Parameters
T
The type of Template<TSelf>es to edit
- Inheritance
-
TemplateEditor<T>
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
TemplateEditor()
Initializes a new instance of the UserControl class.
protected TemplateEditor()
Fields
TemplateList
The filtered tree view listing all Template<TSelf>s.
protected readonly FilteredTreeView<T> TemplateList
Field Value
splitVertical
The vertical splitter separating the template list from the template editor.
protected SplitContainer splitVertical
Field Value
Methods
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue if managed resources should be disposed; otherwise, false.
OnDelete()
Called to delete the currently selected object in this tab
protected override void OnDelete()
OnInitialize()
Called on startup to load the content for this tab from a file
protected override void OnInitialize()
OnNewTemplate()
Hook to be called when the user wants a new Template<TSelf> to be added.
protected virtual void OnNewTemplate()
OnSaveFile()
Called when the content of this tab is to be saved to a file - no error-handling!
protected override void OnSaveFile()
OnUpdate()
Called on startup, content updates and tab switch to refresh any on-screen displays
protected override void OnUpdate()
Redo()
Hook to redo the last undone change
public override void Redo()
Undo()
Hook to undo the last change
public override void Undo()