1148330Snetchild/*
2148330Snetchild * Copyright 2006-2010, Stephan A��mus <superstippi@gmx.de>. All rights reserved.
3148330Snetchild * Distributed under the terms of the MIT License.
4148330Snetchild */
5148330Snetchild#ifndef TRANSFORM_GRADIENT_COMMAND_H
6148330Snetchild#define TRANSFORM_GRADIENT_COMMAND_H
7148330Snetchild
8148330Snetchild
9148330Snetchild#include "IconBuild.h"
10148330Snetchild#include "TransformBox.h"
11148330Snetchild#include "TransformCommand.h"
12148330Snetchild
13148330Snetchild
14148543Snetchild_BEGIN_ICON_NAMESPACE
15148543Snetchild	class Gradient;
16148330Snetchild_END_ICON_NAMESPACE
17169815Sdelphij
18169815Sdelphij_USING_ICON_NAMESPACE
19169815Sdelphij
20169815Sdelphij
21169815Sdelphijclass TransformGradientCommand : public TransformCommand,
22169815Sdelphij	public TransformBoxListener {
23169815Sdelphijpublic:
24169815Sdelphij								TransformGradientCommand(
25169815Sdelphij									TransformBox* box, Gradient* gradient,
26169815Sdelphij									BPoint pivot, BPoint translation,
27169815Sdelphij									double rotation, double xScale,
28169815Sdelphij									double yScale, const char* name,
29169815Sdelphij									int32 nameIndex);
30169815Sdelphij	virtual						~TransformGradientCommand();
31169815Sdelphij
32169815Sdelphij	// Command interface
33169815Sdelphij	virtual	status_t			InitCheck();
34169815Sdelphij
35169815Sdelphij	// TransformBoxListener interface
36169815Sdelphij	virtual	void				TransformBoxDeleted(const TransformBox* box);
37169815Sdelphij
38169815Sdelphijprotected:
39169815Sdelphij 	// TransformCommand interface
40169815Sdelphij	virtual	status_t			_SetTransformation(BPoint pivotDiff,
41169815Sdelphij									BPoint translationDiff,
42169815Sdelphij									double rotationDiff, double xScaleDiff,
43169815Sdelphij									double yScaleDiff) const;
44169815Sdelphij
45169815Sdelphij			TransformBox*		fTransformBox;
46169815Sdelphij			Gradient*			fGradient;
47169815Sdelphij};
48169815Sdelphij
49169815Sdelphij
50169815Sdelphij#endif // TRANSFORM_GRADIENT_COMMAND_H
51169815Sdelphij