xref: /haiku/src/apps/icon-o-matic/transformable/ResetTransformationCommand.h (revision 1acbe440b8dd798953bec31d18ee589aa3f71b73)
1 /*
2  * Copyright 2006, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef RESET_TRANSFORM_COMMAND_H
10 #define RESET_TRANSFORM_COMMAND_H
11 
12 #include "Command.h"
13 
14 namespace BPrivate {
15 namespace Icon {
16 	class Transformable;
17 }
18 }
19 using BPrivate::Icon::Transformable;
20 
21 class ResetTransformationCommand : public Command {
22  public:
23 								ResetTransformationCommand(
24 										Transformable** const objects,
25 										int32 count);
26 	virtual						~ResetTransformationCommand();
27 
28 	// Command interface
29 	virtual	status_t			InitCheck();
30 
31 	virtual	status_t			Perform();
32 	virtual	status_t			Undo();
33 
34 	virtual void				GetName(BString& name);
35 
36  protected:
37 			Transformable**		fObjects;
38 			double*				fOriginals;
39 			int32				fCount;
40 };
41 
42 #endif // RESET_TRANSFORM_COMMAND_H
43