xref: /haiku/src/apps/icon-o-matic/style/SetColorCommand.h (revision b028e77473189065f2baefc6f5e10d451cf591e2)
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 SET_COLOR_COMMAND_H
9 #define SET_COLOR_COMMAND_H
10 
11 
12 #include "Command.h"
13 
14 #include <InterfaceDefs.h>
15 
16 
17 namespace BPrivate {
18 namespace Icon {
19 	class Style;
20 }
21 }
22 using namespace BPrivate::Icon;
23 
24 class SetColorCommand : public Command {
25  public:
26 								SetColorCommand(Style* style,
27 												const rgb_color& color);
28 	virtual						~SetColorCommand();
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 	virtual	bool				CombineWithNext(const Command* next);
38 
39  private:
40 			Style*				fStyle;
41 			rgb_color			fColor;
42 };
43 
44 #endif // SET_COLOR_COMMAND_H
45