xref: /haiku/src/apps/icon-o-matic/shape/commands/ChangePointCommand.h (revision 1acbe440b8dd798953bec31d18ee589aa3f71b73)
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			Perform();
25 	virtual status_t			Undo();
26 	virtual status_t			Redo();
27 
28 	virtual void				GetName(BString& name);
29 
30  private:
31 			int32				fIndex;
32 
33 			BPoint				fPoint;
34 			BPoint				fPointIn;
35 			BPoint				fPointOut;
36 			bool				fConnected;
37 
38 			int32*				fOldSelection;
39 			int32				fOldSelectionCount;
40 };
41 
42 #endif // CHANGE_POINT_COMMAND_H
43