xref: /haiku/src/apps/icon-o-matic/shape/commands/AddPathsCommand.h (revision 1e60bdeab63fa7a57bc9a55b032052e95a18bd2c)
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 ADD_PATHS_COMMAND_H
9 #define ADD_PATHS_COMMAND_H
10 
11 
12 #include "Command.h"
13 #include "IconBuild.h"
14 
15 
16 _BEGIN_ICON_NAMESPACE
17 	class VectorPath;
18 	class PathContainer;
19 _END_ICON_NAMESPACE
20 
21 _USING_ICON_NAMESPACE
22 
23 
24 class AddPathsCommand : public Command {
25  public:
26 								AddPathsCommand(
27 									PathContainer* container,
28 									VectorPath** const paths,
29 									int32 count,
30 									bool ownsPaths,
31 									int32 index);
32 	virtual						~AddPathsCommand();
33 
34 	virtual	status_t			InitCheck();
35 
36 	virtual	status_t			Perform();
37 	virtual status_t			Undo();
38 
39 	virtual void				GetName(BString& name);
40 
41  private:
42 			PathContainer*		fContainer;
43 			VectorPath**		fPaths;
44 			int32				fCount;
45 			bool				fOwnsPaths;
46 			int32				fIndex;
47 			bool				fPathsAdded;
48 };
49 
50 #endif // ADD_PATHS_COMMAND_H
51