xref: /haiku/src/apps/icon-o-matic/shape/commands/UnassignPathCommand.h (revision 3cb015b1ee509d69c643506e8ff573808c86dcfc)
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 UNASSIGN_PATH_COMMAND_H
10 #define UNASSIGN_PATH_COMMAND_H
11 
12 #include "Command.h"
13 
14 class Shape;
15 class VectorPath;
16 
17 class UnassignPathCommand : public Command {
18  public:
19 								UnassignPathCommand(Shape* shape,
20 													VectorPath* path);
21 	virtual						~UnassignPathCommand();
22 
23 	virtual	status_t			InitCheck();
24 
25 	virtual	status_t			Perform();
26 	virtual status_t			Undo();
27 
28 	virtual void				GetName(BString& name);
29 
30  private:
31 			Shape*				fShape;
32 			VectorPath*			fPath;
33 			bool				fPathRemoved;
34 };
35 
36 #endif // UNASSIGN_PATH_COMMAND_H
37