btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / shape / commands / AddTransformersCommand.h
blob9f25b577f4fbcb55e4569d9e2445f9bc5337dc9f
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 ADD_TRANSFORMERS_COMMAND_H
9 #define ADD_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 "add items" command?
26 class AddTransformersCommand : public Command {
27 public:
28 AddTransformersCommand(
29 Shape* container,
30 Transformer** const transformers,
31 int32 count,
32 int32 index);
33 virtual ~AddTransformersCommand();
35 virtual status_t InitCheck();
37 virtual status_t Perform();
38 virtual status_t Undo();
40 virtual void GetName(BString& name);
42 private:
43 Shape* fContainer;
44 Transformer** fTransformers;
45 int32 fCount;
46 int32 fIndex;
47 bool fTransformersAdded;
50 #endif // ADD_TRANSFORMERS_COMMAND_H