Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
SiliconStudio.ActionStack.CollectionChangedActionItem Class Reference
Inheritance diagram for SiliconStudio.ActionStack.CollectionChangedActionItem:
SiliconStudio.ActionStack.ActionItem SiliconStudio.ActionStack.IActionItem

Public Member Functions

 CollectionChangedActionItem (IList list, NotifyCollectionChangedAction actionToUndo, IReadOnlyCollection< object > items, int index)
 
 CollectionChangedActionItem (IList list, NotifyCollectionChangedEventArgs args)
 
- Public Member Functions inherited from SiliconStudio.ActionStack.ActionItem
void Freeze ()
 Freezes this ActionItem. A frozen action item can't be undone anymore and should have freed the resources stored for undo actions More...
 
void Undo ()
 Undo the action. More...
 
void Redo ()
 Redo the action. More...
 

Protected Member Functions

override void FreezeMembers ()
 Invoked by Freeze before setting IsFrozen to true. This method will not be invoked if IsFrozen is already true. More...
 
override void UndoAction ()
 Invoked by Undo after setting IsDone to true. More...
 
override void RedoAction ()
 Invoked by Redo after setting IsDone to true. More...
 
- Protected Member Functions inherited from SiliconStudio.ActionStack.ActionItem
 ActionItem (string name)
 Initializes a new instance of the ActionItem class with the given name. More...
 
 ActionItem ()
 Initializes a new instance of the ActionItem class. More...
 

Properties

NotifyCollectionChangedAction ActionToUndo [get]
 
int ItemCount [get]
 
- Properties inherited from SiliconStudio.ActionStack.ActionItem
Guid Identifier [get]
 
string Name [get, set]
 
virtual bool IsSaved [get, set]
 
virtual bool IsDone [get, set]
 
bool IsFrozen [get, set]
 
- Properties inherited from SiliconStudio.ActionStack.IActionItem
string Name [get, set]
 Gets or sets the name of the current action. More...
 
Guid Identifier [get]
 Gets an unique identifier of the action, per instance. More...
 
bool IsSaved [get, set]
 Gets or sets whether this action as already been saved when evaluating the dirtiness of an object. More...
 
bool IsDone [get]
 Gets whether this action is currently done. Modified when invoking Undo or Redo. More...
 
bool IsFrozen [get]
 Gets whether this action has been frozen with the Freeze method. More...
 

Detailed Description

Definition at line 11 of file CollectionChangedActionItem.cs.

Constructor & Destructor Documentation

SiliconStudio.ActionStack.CollectionChangedActionItem.CollectionChangedActionItem ( IList  list,
NotifyCollectionChangedAction  actionToUndo,
IReadOnlyCollection< object >  items,
int  index 
)

Definition at line 26 of file CollectionChangedActionItem.cs.

SiliconStudio.ActionStack.CollectionChangedActionItem.CollectionChangedActionItem ( IList  list,
NotifyCollectionChangedEventArgs  args 
)

Definition at line 34 of file CollectionChangedActionItem.cs.

Member Function Documentation

override void SiliconStudio.ActionStack.CollectionChangedActionItem.FreezeMembers ( )
protectedvirtual

Invoked by Freeze before setting IsFrozen to true. This method will not be invoked if IsFrozen is already true.

Implements SiliconStudio.ActionStack.ActionItem.

Definition at line 68 of file CollectionChangedActionItem.cs.

override void SiliconStudio.ActionStack.CollectionChangedActionItem.RedoAction ( )
protectedvirtual

Invoked by Redo after setting IsDone to true.

Implements SiliconStudio.ActionStack.ActionItem.

Definition at line 112 of file CollectionChangedActionItem.cs.

override void SiliconStudio.ActionStack.CollectionChangedActionItem.UndoAction ( )
protectedvirtual

Invoked by Undo after setting IsDone to true.

Implements SiliconStudio.ActionStack.ActionItem.

Definition at line 75 of file CollectionChangedActionItem.cs.

Property Documentation

NotifyCollectionChangedAction SiliconStudio.ActionStack.CollectionChangedActionItem.ActionToUndo
get

Definition at line 63 of file CollectionChangedActionItem.cs.

int SiliconStudio.ActionStack.CollectionChangedActionItem.ItemCount
get

Definition at line 65 of file CollectionChangedActionItem.cs.


The documentation for this class was generated from the following file: