xref: /haiku/src/apps/icon-o-matic/style/AddStylesCommand.h (revision 16d5c24e533eb14b7b8a99ee9f3ec9ba66335b1e)
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_STYLES_COMMAND_H
9 #define ADD_STYLES_COMMAND_H
10 
11 
12 #include "Command.h"
13 
14 
15 namespace BPrivate {
16 namespace Icon {
17 	class Style;
18 	class StyleContainer;
19 }
20 }
21 using namespace BPrivate::Icon;
22 
23 class AddStylesCommand : public Command {
24  public:
25 								AddStylesCommand(
26 									StyleContainer* container,
27 									Style** const styles,
28 									int32 count,
29 									int32 index);
30 	virtual						~AddStylesCommand();
31 
32 	virtual	status_t			InitCheck();
33 
34 	virtual	status_t			Perform();
35 	virtual status_t			Undo();
36 
37 	virtual void				GetName(BString& name);
38 
39  private:
40 			StyleContainer*		fContainer;
41 			Style**				fStyles;
42 			int32				fCount;
43 			int32				fIndex;
44 			bool				fStylesAdded;
45 };
46 
47 #endif // ADD_STYLES_COMMAND_H
48