C# Class Oglr.Core.Model

Inheritance: IModel
Show file Open project: SteveDunn/oglr

Public Methods

Method Description
AddCustomProperty ( ITreeItem treeItem, CustomProperty newCustomProperty ) : void
AddEditor ( ItemEditor editor ) : void
AddEditorToSelection ( ItemEditor editor ) : void
AddNewLayer ( LayerEditor layer ) : void
AlignHorizontally ( ) : void
AlignRotation ( ) : void
AlignScale ( ) : void
AlignVertically ( ) : void
AttachBehaviour ( ITreeItem target, IBehaviour behaviour ) : void
CopySelectedItemsToLayer ( LayerEditor layer ) : void
CreateNewLevel ( ) : void
DeleteLayer ( LayerEditor layer ) : void
DeleteSelectedItems ( ) : void
DeserialiseLevel ( System.Xml.Linq.XElement xml ) : void
DuplicateLayer ( LayerEditor layer ) : void
LoadLevel ( LevelEditor level ) : void
Model ( IMemento memento ) : System
MoveEditorDown ( ItemEditor editor ) : void
MoveEditorUp ( ItemEditor i ) : void
MoveItemToLayer ( ItemEditor itemToMove, LayerEditor layer, ItemEditor itemToMoveNewItemUnder ) : void
MoveLayerDown ( LayerEditor layer ) : void
MoveLayerUp ( LayerEditor layer ) : void
MoveSelectedItemsToLayer ( LayerEditor chosenLayer ) : void
NotifyChanged ( IEnumerable items ) : void
NotifyChanged ( ItemEditor item ) : void
RemoveCustomPropertyItem ( ITreeItem item, DictionaryPropertyDescriptor propertyDescriptor ) : void
RenameItem ( ITreeItem treeItem, string newName ) : void
SaveLevel ( string filename ) : void
SelectBehaviour ( ITreeItem behaviour ) : void
SelectEditor ( ItemEditor editor ) : void
SelectEditors ( SelectedEditors itemEditors ) : void
SelectEverythingInSelectedLayer ( ) : void
SelectLayer ( LayerEditor layer ) : void
SelectLevel ( ) : void
ToggleSelectionOnItem ( ItemEditor item ) : void

Private Methods

Method Description
clearSelectedEditors ( ) : void
setActiveLayerIfItsDifferent ( LayerEditor layer ) : void
tryFire ( Func func, IEnumerable items ) : void
tryFire ( Func func, ITreeItem item ) : void

Method Details

AddCustomProperty() public method

public AddCustomProperty ( ITreeItem treeItem, CustomProperty newCustomProperty ) : void
treeItem ITreeItem
newCustomProperty Oglr.InGame.CustomProperty
return void

AddEditor() public method

public AddEditor ( ItemEditor editor ) : void
editor ItemEditor
return void

AddEditorToSelection() public method

public AddEditorToSelection ( ItemEditor editor ) : void
editor ItemEditor
return void

AddNewLayer() public method

public AddNewLayer ( LayerEditor layer ) : void
layer LayerEditor
return void

AlignHorizontally() public method

public AlignHorizontally ( ) : void
return void

AlignRotation() public method

public AlignRotation ( ) : void
return void

AlignScale() public method

public AlignScale ( ) : void
return void

AlignVertically() public method

public AlignVertically ( ) : void
return void

AttachBehaviour() public method

public AttachBehaviour ( ITreeItem target, IBehaviour behaviour ) : void
target ITreeItem
behaviour IBehaviour
return void

CopySelectedItemsToLayer() public method

public CopySelectedItemsToLayer ( LayerEditor layer ) : void
layer LayerEditor
return void

CreateNewLevel() public method

public CreateNewLevel ( ) : void
return void

DeleteLayer() public method

public DeleteLayer ( LayerEditor layer ) : void
layer LayerEditor
return void

DeleteSelectedItems() public method

public DeleteSelectedItems ( ) : void
return void

DeserialiseLevel() public method

public DeserialiseLevel ( System.Xml.Linq.XElement xml ) : void
xml System.Xml.Linq.XElement
return void

DuplicateLayer() public method

public DuplicateLayer ( LayerEditor layer ) : void
layer LayerEditor
return void

LoadLevel() public method

public LoadLevel ( LevelEditor level ) : void
level LevelEditor
return void

Model() public method

public Model ( IMemento memento ) : System
memento IMemento
return System

MoveEditorDown() public method

public MoveEditorDown ( ItemEditor editor ) : void
editor ItemEditor
return void

MoveEditorUp() public method

public MoveEditorUp ( ItemEditor i ) : void
i ItemEditor
return void

MoveItemToLayer() public method

public MoveItemToLayer ( ItemEditor itemToMove, LayerEditor layer, ItemEditor itemToMoveNewItemUnder ) : void
itemToMove ItemEditor
layer LayerEditor
itemToMoveNewItemUnder ItemEditor
return void

MoveLayerDown() public method

public MoveLayerDown ( LayerEditor layer ) : void
layer LayerEditor
return void

MoveLayerUp() public method

public MoveLayerUp ( LayerEditor layer ) : void
layer LayerEditor
return void

MoveSelectedItemsToLayer() public method

public MoveSelectedItemsToLayer ( LayerEditor chosenLayer ) : void
chosenLayer LayerEditor
return void

NotifyChanged() public method

public NotifyChanged ( IEnumerable items ) : void
items IEnumerable
return void

NotifyChanged() public method

public NotifyChanged ( ItemEditor item ) : void
item ItemEditor
return void

RemoveCustomPropertyItem() public method

public RemoveCustomPropertyItem ( ITreeItem item, DictionaryPropertyDescriptor propertyDescriptor ) : void
item ITreeItem
propertyDescriptor DictionaryPropertyDescriptor
return void

RenameItem() public method

public RenameItem ( ITreeItem treeItem, string newName ) : void
treeItem ITreeItem
newName string
return void

SaveLevel() public method

public SaveLevel ( string filename ) : void
filename string
return void

SelectBehaviour() public method

public SelectBehaviour ( ITreeItem behaviour ) : void
behaviour ITreeItem
return void

SelectEditor() public method

public SelectEditor ( ItemEditor editor ) : void
editor ItemEditor
return void

SelectEditors() public method

public SelectEditors ( SelectedEditors itemEditors ) : void
itemEditors SelectedEditors
return void

SelectEverythingInSelectedLayer() public method

public SelectEverythingInSelectedLayer ( ) : void
return void

SelectLayer() public method

public SelectLayer ( LayerEditor layer ) : void
layer LayerEditor
return void

SelectLevel() public method

public SelectLevel ( ) : void
return void

ToggleSelectionOnItem() public method

public ToggleSelectionOnItem ( ItemEditor item ) : void
item ItemEditor
return void