xref: /haiku/src/apps/icon-o-matic/transformable/ResetTransformationCommand.h (revision 1c09002cbee8e797a0f8bbfc5678dfadd39ee1a7)
1 /*
2  * Copyright 2006-2007, 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 
13 #include "Command.h"
14 #include "IconBuild.h"
15 
16 
17 _BEGIN_ICON_NAMESPACE
18 	class Transformable;
19 _END_ICON_NAMESPACE
20 
21 _USING_ICON_NAMESPACE
22 
23 
24 class ResetTransformationCommand : public Command {
25  public:
26 								ResetTransformationCommand(
27 										Transformable** const objects,
28 										int32 count);
29 	virtual						~ResetTransformationCommand();
30 
31 	// Command interface
32 	virtual	status_t			InitCheck();
33 
34 	virtual	status_t			Perform();
35 	virtual	status_t			Undo();
36 
37 	virtual void				GetName(BString& name);
38 
39  protected:
40 			Transformable**		fObjects;
41 			double*				fOriginals;
42 			int32				fCount;
43 };
44 
45 #endif // RESET_TRANSFORM_COMMAND_H
46