2 * Copyright 2006-2012, Stephan Aßmus <superstippi@gmx.de>
3 * Distributed under the terms of the MIT License.
6 #include "UndoableEdit.h"
14 //static int32 sInstanceCount = 0;
17 UndoableEdit::UndoableEdit()
19 fTimeStamp(system_time())
22 // printf("UndoableEdits: %ld\n", sInstanceCount);
26 UndoableEdit::~UndoableEdit()
29 // printf("UndoableEdits: %ld\n", sInstanceCount);
34 UndoableEdit::InitCheck()
41 UndoableEdit::Perform(EditContext
& context
)
48 UndoableEdit::Undo(EditContext
& context
)
55 UndoableEdit::Redo(EditContext
& context
)
57 return Perform(context
);
62 UndoableEdit::GetName(BString
& name
)
64 name
<< "Name of edit goes here.";
69 UndoableEdit::UndoesPrevious(const UndoableEdit
* previous
)
76 UndoableEdit::CombineWithNext(const UndoableEdit
* next
)
83 UndoableEdit::CombineWithPrevious(const UndoableEdit
* previous
)