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_GRADIENT_COMMAND_H
9#define SET_GRADIENT_COMMAND_H
10
11
12#include "Command.h"
13#include "IconBuild.h"
14
15
16_BEGIN_ICON_NAMESPACE
17	class Gradient;
18	class Style;
19_END_ICON_NAMESPACE
20
21_USING_ICON_NAMESPACE
22
23
24class SetGradientCommand : public Command {
25 public:
26								SetGradientCommand(Style* style,
27												   const Gradient* gradient);
28	virtual						~SetGradientCommand();
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			Gradient*			fGradient;
42};
43
44#endif // CHANGE_GRADIENT_COMMAND_H
45