HaikuDepot: notify work status from main window
[haiku.git] / src / apps / haikudepot / edits_generic / CompoundEdit.h
blob3edf639b0695245c3103a423f29f3ab6a62ee6cf
1 /*
2 * Copyright 2006-2112, Stephan Aßmus <superstippi@gmx.de>
3 * Distributed under the terms of the MIT License.
4 */
6 #ifndef COMPOUND_EDIT_H
7 #define COMPOUND_EDIT_H
9 #include <String.h>
11 #include "List.h"
12 #include "UndoableEdit.h"
14 class CompoundEdit : public UndoableEdit {
15 public:
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);
29 private:
30 typedef List<UndoableEditRef, false, 2> EditList;
32 EditList fEdits;
33 BString fName;
36 #endif // COMPOUND_EDIT_H