btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / style / AssignStyleCommand.h
blobb50c9252c81c5bd022c6937cb4d15c0f182909be
1 /*
2 * Copyright 2006-2007, Haiku. All rights reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef ASSIGN_STYLE_COMMAND_H
9 #define ASSIGN_STYLE_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
15 #include <InterfaceDefs.h>
18 _BEGIN_ICON_NAMESPACE
19 class Shape;
20 class Style;
21 _END_ICON_NAMESPACE
23 _USING_ICON_NAMESPACE
26 class AssignStyleCommand : public Command {
27 public:
28 AssignStyleCommand(Shape* shape,
29 Style* style);
30 virtual ~AssignStyleCommand();
32 virtual status_t InitCheck();
34 virtual status_t Perform();
35 virtual status_t Undo();
37 virtual void GetName(BString& name);
39 private:
40 Shape* fShape;
41 Style* fOldStyle;
42 Style* fNewStyle;
45 #endif // ASSIGN_STYLE_COMMAND_H