btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / shape / commands / RemoveTransformersCommand.h
blob2745011ea54cdf8c7a10932c66435c35411f637c
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_TRANSFORMERS_COMMAND_H
9 #define REMOVE_TRANSFORMERS_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
16 _BEGIN_ICON_NAMESPACE
17 class Shape;
18 class Transformer;
19 _END_ICON_NAMESPACE
21 _USING_ICON_NAMESPACE
24 // TODO: make a templated "remove items" command?
26 class RemoveTransformersCommand : public Command {
27 public:
28 RemoveTransformersCommand(
29 Shape* container,
30 const int32* indices,
31 int32 count);
32 virtual ~RemoveTransformersCommand();
34 virtual status_t InitCheck();
36 virtual status_t Perform();
37 virtual status_t Undo();
39 virtual void GetName(BString& name);
41 private:
42 Shape* fContainer;
43 Transformer** fTransformers;
44 int32* fIndices;
45 int32 fCount;
46 bool fTransformersRemoved;
49 #endif // REMOVE_TRANSFORMERS_COMMAND_H