1/*
2 * Copyright 2006-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
4 *
5 * Authors:
6 *		Stephan A��mus <superstippi@gmx.de>
7 */
8#ifndef ASSIGN_STYLE_COMMAND_H
9#define ASSIGN_STYLE_COMMAND_H
10
11
12#include "Command.h"
13#include "IconBuild.h"
14
15#include <InterfaceDefs.h>
16
17
18_BEGIN_ICON_NAMESPACE
19	class PathSourceShape;
20	class Style;
21_END_ICON_NAMESPACE
22
23_USING_ICON_NAMESPACE
24
25
26class AssignStyleCommand : public Command {
27 public:
28								AssignStyleCommand(PathSourceShape* shape,
29												   Style* style);
30	virtual						~AssignStyleCommand();
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			PathSourceShape*	fShape;
41			Style*				fOldStyle;
42			Style*				fNewStyle;
43};
44
45#endif // ASSIGN_STYLE_COMMAND_H
46