btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / shape / commands / FreezeTransformationCommand.h
blob82c452c44d783287f97aa1d9585e0784224b5641
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 FREEZE_TRANSFORMATION_COMMAND_H
9 #define FREEZE_TRANSFORMATION_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
16 _BEGIN_ICON_NAMESPACE
17 class Shape;
18 class Transformable;
19 _END_ICON_NAMESPACE
21 _USING_ICON_NAMESPACE
24 class FreezeTransformationCommand : public Command {
25 public:
26 FreezeTransformationCommand(
27 Shape** const shapes,
28 int32 count);
29 virtual ~FreezeTransformationCommand();
31 virtual status_t InitCheck();
33 virtual status_t Perform();
34 virtual status_t Undo();
36 virtual void GetName(BString& name);
38 private:
39 void _ApplyTransformation(Shape* shape,
40 const Transformable& transform);
42 Shape** fShapes;
43 double* fOriginalTransformations;
44 int32 fCount;
47 #endif // FREEZE_TRANSFORMATION_COMMAND_H