xref: /haiku/src/apps/icon-o-matic/shape/commands/UnassignPathCommand.h (revision 02354704729d38c3b078c696adc1bbbd33cbcf72)
1 /*
2  * Copyright 2006-2007, Haiku.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Stephan Aßmus <superstippi@gmx.de>
7  */
8 #ifndef UNASSIGN_PATH_COMMAND_H
9 #define UNASSIGN_PATH_COMMAND_H
10 
11 
12 #include "Command.h"
13 #include "IconBuild.h"
14 
15 
16 _BEGIN_ICON_NAMESPACE
17 	class Shape;
18 	class VectorPath;
19 _END_ICON_NAMESPACE
20 
21 _USING_ICON_NAMESPACE
22 
23 
24 class UnassignPathCommand : public Command {
25  public:
26 								UnassignPathCommand(Shape* shape,
27 													VectorPath* path);
28 	virtual						~UnassignPathCommand();
29 
30 	virtual	status_t			InitCheck();
31 
32 	virtual	status_t			Perform();
33 	virtual status_t			Undo();
34 
35 	virtual void				GetName(BString& name);
36 
37  private:
38 			Shape*				fShape;
39 			VectorPath*			fPath;
40 			bool				fPathRemoved;
41 };
42 
43 #endif // UNASSIGN_PATH_COMMAND_H
44