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