btrfs: Attempt to fix GCC2 build.
[haiku.git] / src / apps / icon-o-matic / style / SetGradientCommand.h
blob0a4887cc726fcc408b3723e80c8dbeb94680ad8d
1 /*
2 * Copyright 2006-2007, Haiku.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Stephan Aßmus <superstippi@gmx.de>
7 */
8 #ifndef SET_GRADIENT_COMMAND_H
9 #define SET_GRADIENT_COMMAND_H
12 #include "Command.h"
13 #include "IconBuild.h"
16 _BEGIN_ICON_NAMESPACE
17 class Gradient;
18 class Style;
19 _END_ICON_NAMESPACE
21 _USING_ICON_NAMESPACE
24 class SetGradientCommand : public Command {
25 public:
26 SetGradientCommand(Style* style,
27 const Gradient* gradient);
28 virtual ~SetGradientCommand();
30 virtual status_t InitCheck();
32 virtual status_t Perform();
33 virtual status_t Undo();
35 virtual void GetName(BString& name);
37 virtual bool CombineWithNext(const Command* next);
39 private:
40 Style* fStyle;
41 Gradient* fGradient;
44 #endif // CHANGE_GRADIENT_COMMAND_H