2 * Copyright 2006-2112, Stephan Aßmus <superstippi@gmx.de>
3 * Distributed under the terms of the MIT License.
6 #ifndef COMPOUND_EDIT_H
7 #define COMPOUND_EDIT_H
12 #include "UndoableEdit.h"
14 class CompoundEdit
: public UndoableEdit
{
16 CompoundEdit(const char* name
);
17 virtual ~CompoundEdit();
19 virtual status_t
InitCheck();
21 virtual status_t
Perform(EditContext
& context
);
22 virtual status_t
Undo(EditContext
& context
);
23 virtual status_t
Redo(EditContext
& context
);
25 virtual void GetName(BString
& name
);
27 bool AppendEdit(const UndoableEditRef
& edit
);
30 typedef List
<UndoableEditRef
, false, 2> EditList
;
36 #endif // COMPOUND_EDIT_H