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 INSERT_POINT_COMMAND_H
10#define INSERT_POINT_COMMAND_H
11
12#include <Point.h>
13
14#include "PathCommand.h"
15
16class InsertPointCommand : public PathCommand {
17 public:
18								InsertPointCommand(VectorPath* path,
19												   int32 index,
20												   const int32* selected,
21												   int32 count);
22	virtual						~InsertPointCommand();
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			BPoint				fPoint;
33			BPoint				fPointIn;
34			BPoint				fPointOut;
35
36			BPoint				fPreviousOut;
37			BPoint				fNextIn;
38
39			int32*				fOldSelection;
40			int32				fOldSelectionCount;
41};
42
43#endif // INSERT_POINT_COMMAND_H
44