xref: /haiku/src/apps/icon-o-matic/shape/commands/ChangePointCommand.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
1 /*
2  * Copyright 2006, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 
9 #ifndef CHANGE_POINT_COMMAND_H
10 #define CHANGE_POINT_COMMAND_H
11 
12 #include <Point.h>
13 
14 #include "PathCommand.h"
15 
16 class ChangePointCommand : public PathCommand {
17  public:
18 								ChangePointCommand(VectorPath* path,
19 												   int32 index,
20 												   const int32* selected,
21 												   int32 count);
22 	virtual						~ChangePointCommand();
23 
24 	virtual	status_t			InitCheck();
25 
26 	virtual	status_t			Perform();
27 	virtual status_t			Undo();
28 	virtual status_t			Redo();
29 
30 	virtual void				GetName(BString& name);
31 
32  private:
33 			int32				fIndex;
34 
35 			BPoint				fPoint;
36 			BPoint				fPointIn;
37 			BPoint				fPointOut;
38 			bool				fConnected;
39 
40 			int32*				fOldSelection;
41 			int32				fOldSelectionCount;
42 };
43 
44 #endif // CHANGE_POINT_COMMAND_H
45