btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / shape / commands / RemoveShapesCommand.h
blob867b21d6ffdfc6ae0cf09c675ad01a1402aafa35
1 /*
2 * Copyright 2006-2007, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef REMOVE_SHAPES_COMMAND_H
9 #define REMOVE_SHAPES_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
16 _BEGIN_ICON_NAMESPACE
17 class Shape;
18 class ShapeContainer;
19 _END_ICON_NAMESPACE
21 _USING_ICON_NAMESPACE
24 class RemoveShapesCommand : public Command {
25 public:
26 RemoveShapesCommand(
27 ShapeContainer* container,
28 int32* const indices,
29 int32 count);
30 virtual ~RemoveShapesCommand();
32 virtual status_t InitCheck();
34 virtual status_t Perform();
35 virtual status_t Undo();
37 virtual void GetName(BString& name);
39 private:
40 ShapeContainer* fContainer;
41 Shape** fShapes;
42 int32* fIndices;
43 int32 fCount;
44 bool fShapesRemoved;
47 #endif // REMOVE_SHAPES_COMMAND_H