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 14 15 namespace BPrivate { 16 namespace Icon { 17 class Gradient; 18 class Style; 19 } 20 } 21 using namespace BPrivate::Icon; 22 23 class SetGradientCommand : public Command { 24 public: 25 SetGradientCommand(Style* style, 26 const Gradient* gradient); 27 virtual ~SetGradientCommand(); 28 29 virtual status_t InitCheck(); 30 31 virtual status_t Perform(); 32 virtual status_t Undo(); 33 34 virtual void GetName(BString& name); 35 36 virtual bool CombineWithNext(const Command* next); 37 38 private: 39 Style* fStyle; 40 Gradient* fGradient; 41 }; 42 43 #endif // CHANGE_GRADIENT_COMMAND_H 44